- Site Map >
- Modding and Creation >
- Sims 2 Creation >
- Modding Discussion >
- Research & Development >
- Roofs - Engine-Generated Geometry (Maxis Roofs)
- Site Map >
- Modding and Creation >
- Sims 2 Creation >
- Modding Discussion >
- Research & Development >
- Roofs - Engine-Generated Geometry (Maxis Roofs)
Replies: 7 (Who?), Viewed: 9486 times.
#1
18th Feb 2009 at 6:20 AM
Last edited by SimArchitect : 18th Feb 2009 at 6:44 AM.
Posts: 275
Thanks: 31802 in 40 Posts
Roofs - Engine-Generated Geometry (Maxis Roofs)
This question may never be answered due to the few people who have VERY advanced knowledge about The Sims 2 game files/data. Thus placing this question in this forum would be appropriate. I have questioned myself for years now about the maxis roofs.
Intrigued list:
1. You can drag them any size that you want.
2. They can go from a 15 degree pitch to 75 degree pitch.
3. There are 23 different roof shapes to choose from. (With all expansions)
4. Each roof cuts holes in its self and connects with other pieces to get the desired look.
5. The roofs have a set eave drop, and thickness.
Questions/Discussion:
1. Where “in the thousands of game files” is the information that controls these roofs?
2. Is there a way to make a custom roof? Not an object, but an actual generated roof that can have all the “Intrigued List” above and allow maxis textures to be used on them.
This is very advanced and I know very little about it, but I hope to hear some clarified discussion for the first time.
~ ҉ SimArchitect ҉ ~
Advertisement
#2
18th Feb 2009 at 11:25 AM
Posts: 3,129
Thanks: 4628 in 9 Posts
As far as I can tell, roof behavior is hardcoded.
Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
#3
18th Feb 2009 at 11:59 AM
Posts: 11,682
Thanks: 9680 in 11 Posts
I agree.
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
#4
18th Feb 2009 at 12:53 PM
Posts: 3,129
Thanks: 4628 in 9 Posts
The most annoying thing about roofs is the way it pointlessly demands you to move EVERY SINGLE OBJECT ON THE FLOOR just so you can then put them all back afterwards, even if move_objects is on.
Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
#5
18th Feb 2009 at 6:29 PM
Last edited by SimArchitect : 19th Feb 2009 at 7:25 PM.
Posts: 275
Thanks: 31802 in 40 Posts
Hardcoded...but where? It has to be somewhere in the files.
I was searching last night for an hour and found stuff about the roofs.
Scripts
Images
Text
Strings
The scripts were the most intesting to me...but that couldnt possibly be it.
I also searched in similar places in each expansion folder and found some different files that werent in the others. OFB and BV both added new roof shapes, so I focused on those and also M&G because of its UI change.
J. M. Pescado - Yes it is very annoying!!! I wish there was a way to make it not do that.
I was searching last night for an hour and found stuff about the roofs.
Scripts
Images
Text
Strings
The scripts were the most intesting to me...but that couldnt possibly be it.
I also searched in similar places in each expansion folder and found some different files that werent in the others. OFB and BV both added new roof shapes, so I focused on those and also M&G because of its UI change.
J. M. Pescado - Yes it is very annoying!!! I wish there was a way to make it not do that.
Attached files:
Roofs.rar (20.8 KB, 13 downloads) - View custom content | ||
Size Packed Ratio Date Time Attr CRC Meth Ver ------------------------------------------------------------------------------- roofPatterns (9).txt 1314 546 41% 11-03-08 17:29 .....AC 4C5F9410 m3b 2.9 roofPatterns (10).txt 1314 546 41% 11-10-08 14:12 .....AC 4C5F9410 m3b 2.9 roofPatterns (11).txt 1314 546 41% 17-08-05 16:41 .....AC 4C5F9410 m3b 2.9 roofPatterns (12).txt 1314 546 41% 06-02-06 14:32 .....AC 4C5F9410 m3b 2.9 roofPatterns (13).txt 1314 546 41% 08-09-06 22:05 .....AC 4C5F9410 m3b 2.9 roofPatterns (14).txt 1314 546 41% 25-01-07 21:11 .....AC 4C5F9410 m3b 2.9 roofPatterns (15).txt 1314 546 41% 02-10-07 04:12 .....AC 4C5F9410 m3b 2.9 roofPatterns (16).txt 1314 546 41% 14-02-05 19:56 .....AC 4C5F9410 m3b 2.9 roofPatterns (17).txt 1528 610 39% 17-08-04 19:05 .....AC BAC21E0F m3b 2.9 roofs.txt 1798 631 35% 06-02-06 14:32 .....AC 289E6AD4 m3b 2.9 roofs (2).txt 1593 617 38% 08-09-06 22:05 .....AC E4FD70E2 m3b 2.9 roofs (3).txt 2015 701 34% 25-01-07 21:11 .....AC 2BC91F77 m3b 2.9 roofs (4).txt 1593 617 38% 02-10-07 04:12 .....AC E4FD70E2 m3b 2.9 roofs (5).txt 971 479 49% 14-02-05 19:56 .....AC 87D4CDF8 m3b 2.9 roofs (6).txt 2139 679 31% 17-08-04 19:05 .....AC D01E31E3 m3b 2.9 roofs (7).txt 1806 696 38% 26-07-08 04:27 .....AC 8ED7E711 m3b 2.9 roofs (8).txt 2735 780 28% 04-08-07 05:18 .....AC B386AC5D m3b 2.9 roofs (9).txt 1035 510 49% 02-03-07 04:11 .....AC 8B7DAC20 m3b 2.9 roofs (10).txt 1035 510 49% 16-03-06 13:44 .....AC 8B7DAC20 m3b 2.9 roofs (11).txt 1640 649 39% 11-01-08 04:25 .....AC 6E5B55CE m3b 2.9 roofs (12).txt 1035 510 49% 21-07-06 04:12 .....AC 8B7DAC20 m3b 2.9 roofs (13).txt 1035 510 49% 14-05-07 17:19 .....AC 8B7DAC20 m3b 2.9 roofs (14).txt 1593 617 38% 27-05-08 12:02 .....AC E4FD70E2 m3b 2.9 roofs (15).txt 1593 617 38% 11-03-08 17:29 .....AC E4FD70E2 m3b 2.9 roofs (16).txt 1806 696 38% 11-10-08 14:12 .....AC 8ED7E711 m3b 2.9 roofs (17).txt 971 479 49% 17-08-05 16:41 .....AC 87D4CDF8 m3b 2.9 roofPatterns.txt 1314 546 41% 26-07-08 04:27 .....AC 4C5F9410 m3b 2.9 roofPatterns (2).txt 1314 546 41% 04-08-07 05:18 .....AC 4C5F9410 m3b 2.9 roofPatterns (3).txt 1314 546 41% 02-03-07 04:11 .....AC 4C5F9410 m3b 2.9 roofPatterns (4).txt 1314 546 41% 16-03-06 13:44 .....AC 4C5F9410 m3b 2.9 roofPatterns (5).txt 1314 546 41% 11-01-08 04:25 .....AC 4C5F9410 m3b 2.9 roofPatterns (6).txt 1314 546 41% 21-07-06 04:12 .....AC 4C5F9410 m3b 2.9 roofPatterns (7).txt 1314 546 41% 14-05-07 17:19 .....AC 4C5F9410 m3b 2.9 roofPatterns (8).txt 1314 546 41% 27-05-08 12:02 .....AC 4C5F9410 m3b 2.9 ------------------------------------------------------------------------------- 34 48945 19644 40% |
||
Description: Roof .txt files (Scripts) |
~ ҉ SimArchitect ҉ ~
#6
19th Feb 2009 at 7:25 PM
Posts: 275
Thanks: 31802 in 40 Posts
What makes me wonder so much about the location, etc...is because in SimPE you can clone a roof texture and make your own, which means SimPE knows where some of those files are located.
Also, many people have altered the games walls, and made fences and fireplaces which are not the common game objects. Fireplaces for example, take more to do then just "putting" them in the downloads folder. Scripts have had to be written by Numenor and others to make them function in SimPE.
Im just curious, as is there a way to mess with the games roofing???
EDIT: It turns out there are 1321 different shapes of The Sims 2 roofs (with all expansion packs). That is of course including the 60 different angles you can apply to 22 out of the 23 roofs (individually).
Also, many people have altered the games walls, and made fences and fireplaces which are not the common game objects. Fireplaces for example, take more to do then just "putting" them in the downloads folder. Scripts have had to be written by Numenor and others to make them function in SimPE.
Im just curious, as is there a way to mess with the games roofing???
EDIT: It turns out there are 1321 different shapes of The Sims 2 roofs (with all expansion packs). That is of course including the 60 different angles you can apply to 22 out of the 23 roofs (individually).
~ ҉ SimArchitect ҉ ~
#7
2nd Jun 2009 at 6:00 AM
Posts: 4,403
Thanks: 10660 in 115 Posts
Roofs - Engine-Generated Geometry (Maxis Roofs)
resonated here, too
One has to finish the roof-tool-based roof before the placement of objects and modular/connecting stairs.
SimArchitect,
May join Mod the Sims 2 > Social > Social Groups > Moo Tools
May check out Roof Pitch Adjuster
"hardcoded" here likely means codes implemented in the "exe", "dll" or else files. I personally believe such modding is not the goal of this site. :rolleye:
Thus, not much can be done about certain hardcoded roof components here.
The followering is just a generally known roadmap for infos pertaining to TS2 roof.
It seems to me that the roof' are composed of the followings (please keep in mind, some of the followerings are speculations based on what i've known):
1. the roof meshes (not counting the attic walls or other roof components):
It's believed that the roofs have their own hard-coded equations for assigning/computing temporary vertex for graphical presentation based on some sets of x and y coordinates and other parameters recorded in a lot, given what's found in the AB9406AA roof file in a given saved-at-least-once lot package file. The same file apparently holds other data like the roof pattern (eg. the roof recolours), the roof style (eg. cone, octagon),. roof pitch; angle of slope.
It assumed that there're some modular components as well as the non-modular components (esp. those with odd shapes or the edgy ones.)
wiki source:
http://www.sims2wiki.info/wiki.php?title=ROOF
We may be able to change the roof pitch, roof angle, x and ycoordinates, and afew more features of built roof-tool-based roofs in lot package files.
2. the roof recolours for roof pattern:
Basically it's a set of some graphical elements, as texture files and their reference files to the game engine, for the roof. We can add in customly made roof recolours.
3. the roof shader file:
This file has several shaders responsible to various graphical states and presentation of roofs:
a. roof-structures: the roof top, RoofUnder, RoofTrim (as seen in roof recolours, coz these shaders decide how those textures are drawn in-game)
roof shader modding:
http://www.modthesims2.com/showthread.php?t=192699
b. the roof preview materials
c. the roof bump mapping
d. various snowed roof states
e. misc. like highlight or else
http://www.sims2wiki.info/wiki.php?...Talk:ShaderRoof
We can alter how the roof are drawn out in-game.
4. the attic wall
This is actually a special type of the general walls. Many of its special definitive properties related to the build tools are enlisted in the wall.txt
Partitions:
Modding InfoCenter - Partitions: walls, fences, fence arches
http://www.modthesims2.com/showthread.php?t=106473
Wall and WAllPS shaders accounts for the graphical states and components (including but not limited to wallpaper, wallpaer bumpping, etc) for all walls in-game including attic walls.
http://www.sims2wiki.info/wiki.php?...Talk:ShaderWall
http://www.sims2wiki.info/wiki.php?...lk:ShaderWallPS
We can alter some wall properties of attic walls and their graphical presentations.
5. 3D arrays (2A51171B) Instances ID 0x09, 0x0A, or 0x0B, has some related values to closed-rooms done by roof-tool-based roofs
http://www.sims2wiki.info/wiki.php?title=3ARY
We may alter the light, load, and place properties of roof rooms.
6. WGRA files can have specific pattern(s) of data and values for attic wall
http://www.sims2wiki.info/wiki.php?title=WGRA
We may alter the locations of attic walls or even somedays switch it to other wall types relatively safely.
7. There may still be something not stated in this list.
Related thread linkage for roof-products modding:
lot files
http://www.sims2wiki.info/wiki.php?title=ROOF
http://www.sims2wiki.info/wiki.php?title=3ARY
http://www.sims2wiki.info/wiki.php?title=WGRA
attic wall
Modding InfoCenter - Partitions: walls, fences, fence arches
http://www.modthesims2.com/showthread.php?t=106473
shaders
http://www.sims2wiki.info/wiki.php?...Talk:ShaderRoof
http://www.sims2wiki.info/wiki.php?...Talk:ShaderWall
http://www.sims2wiki.info/wiki.php?...lk:ShaderWallPS
threads
Mod the Sims 2 > Modding and Creation > Sims 2 Creation > Modding Discussion > Research & Development
Roofs > Roofs - Engine-Generated Geometry (Maxis Roofs)
http://www.modthesims.info/showthread.php?t=318988
Mod the Sims 2 > Modding and Creation > Sims 2 Creation > Modding Discussion > Research & Development > modding - roof - material shader modded at the roof top texture definition
http://www.modthesims2.com/showthread.php?t=192699
Mod the Sims 2 > Social > Social Groups > Moo Tools > Roof Pitch Adjuster
http://www.modthesims.info/showthread.php?t=328329
Mod The Sims > Modding and Creation > Sims 2 Creation > Modding Discussion > How Do I Change The Defoult Roof Colors?
http://www.modthesims.info/showthread.php?t=225532
tutorials
Recolouring Roofs with Object Workshop (NEW Tutorial)
http://www.modthesims.info/showthread.php?t=103082
Quote: Originally posted by J. M. Pescado
As far as I can tell, roof behavior is hardcoded |
resonated here, too
Quote: Originally posted by J. M. Pescado
The most annoying thing about roofs is the way it pointlessly demands you to move EVERY SINGLE OBJECT ON THE FLOOR just so you can then put them all back afterwards, even if move_objects is on. |
One has to finish the roof-tool-based roof before the placement of objects and modular/connecting stairs.
SimArchitect,
May join Mod the Sims 2 > Social > Social Groups > Moo Tools
May check out Roof Pitch Adjuster
"hardcoded" here likely means codes implemented in the "exe", "dll" or else files. I personally believe such modding is not the goal of this site. :rolleye:
Thus, not much can be done about certain hardcoded roof components here.
The followering is just a generally known roadmap for infos pertaining to TS2 roof.
It seems to me that the roof' are composed of the followings (please keep in mind, some of the followerings are speculations based on what i've known):
1. the roof meshes (not counting the attic walls or other roof components):
It's believed that the roofs have their own hard-coded equations for assigning/computing temporary vertex for graphical presentation based on some sets of x and y coordinates and other parameters recorded in a lot, given what's found in the AB9406AA roof file in a given saved-at-least-once lot package file. The same file apparently holds other data like the roof pattern (eg. the roof recolours), the roof style (eg. cone, octagon),. roof pitch; angle of slope.
It assumed that there're some modular components as well as the non-modular components (esp. those with odd shapes or the edgy ones.)
wiki source:
http://www.sims2wiki.info/wiki.php?title=ROOF
We may be able to change the roof pitch, roof angle, x and ycoordinates, and afew more features of built roof-tool-based roofs in lot package files.
2. the roof recolours for roof pattern:
Basically it's a set of some graphical elements, as texture files and their reference files to the game engine, for the roof. We can add in customly made roof recolours.
3. the roof shader file:
This file has several shaders responsible to various graphical states and presentation of roofs:
a. roof-structures: the roof top, RoofUnder, RoofTrim (as seen in roof recolours, coz these shaders decide how those textures are drawn in-game)
roof shader modding:
http://www.modthesims2.com/showthread.php?t=192699
b. the roof preview materials
c. the roof bump mapping
d. various snowed roof states
e. misc. like highlight or else
http://www.sims2wiki.info/wiki.php?...Talk:ShaderRoof
We can alter how the roof are drawn out in-game.
4. the attic wall
This is actually a special type of the general walls. Many of its special definitive properties related to the build tools are enlisted in the wall.txt
Partitions:
Modding InfoCenter - Partitions: walls, fences, fence arches
http://www.modthesims2.com/showthread.php?t=106473
Wall and WAllPS shaders accounts for the graphical states and components (including but not limited to wallpaper, wallpaer bumpping, etc) for all walls in-game including attic walls.
http://www.sims2wiki.info/wiki.php?...Talk:ShaderWall
http://www.sims2wiki.info/wiki.php?...lk:ShaderWallPS
We can alter some wall properties of attic walls and their graphical presentations.
5. 3D arrays (2A51171B) Instances ID 0x09, 0x0A, or 0x0B, has some related values to closed-rooms done by roof-tool-based roofs
http://www.sims2wiki.info/wiki.php?title=3ARY
We may alter the light, load, and place properties of roof rooms.
6. WGRA files can have specific pattern(s) of data and values for attic wall
http://www.sims2wiki.info/wiki.php?title=WGRA
We may alter the locations of attic walls or even somedays switch it to other wall types relatively safely.
7. There may still be something not stated in this list.
Related thread linkage for roof-products modding:
lot files
http://www.sims2wiki.info/wiki.php?title=ROOF
http://www.sims2wiki.info/wiki.php?title=3ARY
http://www.sims2wiki.info/wiki.php?title=WGRA
attic wall
Modding InfoCenter - Partitions: walls, fences, fence arches
http://www.modthesims2.com/showthread.php?t=106473
shaders
http://www.sims2wiki.info/wiki.php?...Talk:ShaderRoof
http://www.sims2wiki.info/wiki.php?...Talk:ShaderWall
http://www.sims2wiki.info/wiki.php?...lk:ShaderWallPS
threads
Mod the Sims 2 > Modding and Creation > Sims 2 Creation > Modding Discussion > Research & Development
Roofs > Roofs - Engine-Generated Geometry (Maxis Roofs)
http://www.modthesims.info/showthread.php?t=318988
Mod the Sims 2 > Modding and Creation > Sims 2 Creation > Modding Discussion > Research & Development > modding - roof - material shader modded at the roof top texture definition
http://www.modthesims2.com/showthread.php?t=192699
Mod the Sims 2 > Social > Social Groups > Moo Tools > Roof Pitch Adjuster
http://www.modthesims.info/showthread.php?t=328329
Mod The Sims > Modding and Creation > Sims 2 Creation > Modding Discussion > How Do I Change The Defoult Roof Colors?
http://www.modthesims.info/showthread.php?t=225532
tutorials
Recolouring Roofs with Object Workshop (NEW Tutorial)
http://www.modthesims.info/showthread.php?t=103082
Test Subject
#8
2nd Jul 2009 at 6:17 AM
Posts: 3
Thanks: 57 in 2 Posts
hello sims 2 modders. ive been lurking quite a bit here for the past 2 days, gathering awesome mods and doing research so i can so some of my own, and now i really gotta speak up about this.
i spent the better part of today familiarizing myself with the asset layout of sims2 with simPE, and i came across the meshes for the roofs (the geometry data file in the original packs, sorry im not too versed yet), after more digging i was able to find their related resource files, geometry nodes, Cres' Txtr's and light files, non of which im really sure how to work with.
anyways i have a point, and i see a couple of you brushing roofs off as "calculated" well im sure you guys are more versed with this and understand the engine better than i can at the moment, but is it possible that these "placeholder" (im assuming here that they are the visuals that cue you to your roof placement) meshes also have something to do with how the end result is calculated? has anyone actually tryed toying around with these?
first, the visual placeholder scales when you are placing it, so honestly i could see the engine dynamically scaling them based on a particular bit of code, but at the same time, they do seem to exist as a base mesh to be scaled from. maybe once the base placeholder is set to the desired dimensions, it calculates the end result from that. if that is the case, i do not see why new meshes could not be cloned in to test.
i apologize if i have provided nothing of previous value to this topic, just felt the need to throw out ideas.
happy modding
i spent the better part of today familiarizing myself with the asset layout of sims2 with simPE, and i came across the meshes for the roofs (the geometry data file in the original packs, sorry im not too versed yet), after more digging i was able to find their related resource files, geometry nodes, Cres' Txtr's and light files, non of which im really sure how to work with.
anyways i have a point, and i see a couple of you brushing roofs off as "calculated" well im sure you guys are more versed with this and understand the engine better than i can at the moment, but is it possible that these "placeholder" (im assuming here that they are the visuals that cue you to your roof placement) meshes also have something to do with how the end result is calculated? has anyone actually tryed toying around with these?
first, the visual placeholder scales when you are placing it, so honestly i could see the engine dynamically scaling them based on a particular bit of code, but at the same time, they do seem to exist as a base mesh to be scaled from. maybe once the base placeholder is set to the desired dimensions, it calculates the end result from that. if that is the case, i do not see why new meshes could not be cloned in to test.
i apologize if i have provided nothing of previous value to this topic, just felt the need to throw out ideas.
happy modding
Who Posted
|