PDA

View Full Version : Roof Pitch Adjuster


QBUILDERZ
29th Apr 2009, 3:18 AM
Hey Mootilda! I have loved your stuff for quite some time now, but I have a suggestion / idea that -probably- won't work, but would be nice to know if it would/wouldn't anyway. But, as you probably know, since night life we have been able to adjust roof slope with cheats, and in M&Gs maxis finally addressed this by giving us the angle chooser. But, anyway, my idea was, would it be at all possible to try and use this idea of changing roof heights for Uni and Basegame?

Mootilda
29th Apr 2009, 5:15 AM
I haven't looked into the roof structures at all, so I don't know off-hand whether this is possible or not. However, it's an interesting idea.

Mootilda
30th Apr 2009, 5:25 PM
I think that it would be helpful if you changed the title to something about what the tool does; perhaps "Roof Angle Chooser"?

QBUILDERZ
30th Apr 2009, 9:39 PM
No problem :p

porkypine
7th May 2009, 7:29 PM
The game allows you to change the roof slope for gable, shed, etc. roof. However, the fixed cone pieces are not adjustable. It would be great if we could crack the height problems/slopes on those.

Mootilda
8th May 2009, 12:29 AM
The roof structure is pretty simple:
http://www.sims2wiki.info/wiki.php?title=ROOF

The X, Y, and Z (level) values for two opposite corners of the roof, plus 5 unknown values. It shouldn't take too much modding to figure out what all of the unknown values are.

The first unknown value is likely the roof type. The two end values, which are conditional upon the version number, are likely something to do with the roof slopes, since this feature was added in later versions of the game. If I'm correct, then there may be no way to set the roof pitch in the base game.

My guess is that the fixed roof pieces are not roofs, per se, but objects. If so, changing the height and slope of those "roof" pieces would involve creating new meshes, just as you would for any object.

[Update:]
A couple of quick tests found Roof Style (hip, gable, ...), Pattern (red, brown, blue, ...) and Pitch. There are still a couple of fields that I'm not sure about.

So, it looks like it is impossible to change the roof pitch unless the game handles version = 1 of this record. I'll have to check whether the base game can handle this version.

snowmoon2001
9th May 2009, 8:46 PM
[Update:]
A couple of quick tests found Roof Style (hip, gable, ...), Pattern (red, brown, blue, ...) and Pitch. There are still a couple of fields that I'm not sure about.

So, it looks like it is impossible to change the roof pitch unless the game handles version = 2 of this record. I'll have to check whether the base game can handle this version.

Is it possible that the remaining values have something to do with pagoda roofs? I know the depth of the eaves is adjustable.

Mootilda
9th May 2009, 10:35 PM
One of the fields is version 2 and later. I believe that version 2 appeared in Pets. The other has been there since the base game. When did pagoda roofs appear?

Is the depth of the eaves adjustable by something other than 1 tile increments? If not, then it may just be a different x, y coordinate.

snowmoon2001
10th May 2009, 12:05 AM
One of the fields is version 2 and later. I believe that version 2 appeared in Pets. The other has been there since the base game. When did pagoda roofs appear?

Is the depth of the eaves adjustable by something other than 1 tile increments? If not, then it may just be a different x, y coordinate.

Pagoda roofs came with BV. It's been a while since I built with them, but they're adjustable through a cheat which takes a decimal argument, and I think I recall using a fraction of a tile. I can double-check for you tomorrow.

ETA: The eaves can be adjusted to fractions of a tile. I tested up to 3.0, which is all I would practically use. Some fractions seem to be invalid (eave is set to the nearest whole tile) and others result in undesirable effects but the game doesn't throw any errors attempting to execute the instruction.

In case you want to investigate further, the x and y eave depth is independently adjustable, however I haven't had any luck setting different values for different roof segments. Like the old roofslope cheat, one x,y value pair rules for all pagoda roofs on the lot.

The relevant cheats are as follows:
floatprop pagodaEaveX
floatprop pagodaEaveY

niol
2nd Jun 2009, 5:46 AM
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?title=Talk:ShaderRoof
http://www.sims2wiki.info/wiki.php?title=Talk:ShaderWall
http://www.sims2wiki.info/wiki.php?title=Talk: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

Mootilda
2nd Mar 2011, 3:53 PM
Just a note: this still might be a useful tool. Nightlife allows you to change the slope of all roofs on the lot at once. However, internally, each roof section has a slope value. Therefore, this tool could be used to adjust the slope of individual roof sections from Nightlife on.