LazyDuchess / OpenTS2

Open source re-implementation of The Sims 2 in Unity
Mozilla Public License 2.0
221 stars 17 forks source link

Pick correct road textures #45

Closed ammaraskar closed 11 months ago

ammaraskar commented 11 months ago

Currently we just use new_roads_ as the road texture prefix. This actually varies between neighborhood, not sure where it's stored.

LazyDuchess commented 11 months ago

These might be hardcoded? Or defined in the install files.

Terrain type is stored in two places in the nhood packages as strings "Temperate, Desert, etc."

In the NGBH resource (type 0x4E474248) - here it dictates what terrain type the roads are, both in hood view and lot skirt. In the Terrain Geometry resource (type 0xABCB5DA4) - this is the actual terrain type that will be displayed on the terrain.

So changing the terrain in the ngbh will only change the roads and vice versa.

LazyDuchess commented 11 months ago

I've implemented road texture names for the terrain types image image I haven't implemented the behavior of reading the terraintype for these from the NGBH rather than the terrain as I think it's redundant but it would be a very easy thing to change if we really want to

ammaraskar commented 11 months ago

Woo <3