-
Content Count
6 -
Joined
-
Last Visited
-
@RobertaME Have you seen this thread on improving the realism of education buildings and EQ dynamics over sims' lifespans? The attached Educational Realism Mod would also benefit greatly from Modpacc Zero's Opera House Fix method for avoiding the phantom slider bug when updating building exemplars in existing cities.
-
Programmatically generating a city: A savegame experiment
clarencethemayor replied to smf_16's topic in SC4 Modding - Open Discussion
Hey @smf_16, even though you did not see your inserted lot in the game, did the Query Tool or any of the Data Views recognize it as a lot? -
Programmatically generating a city: A savegame experiment
clarencethemayor replied to smf_16's topic in SC4 Modding - Open Discussion
The three columns following the xpos, ypos, and zpos floats in the hex buffer seem to be end x coordinate of texture: all entries have a number that is 0.1 less than where the next tile starts at the next multiple of 16 (meters). angle of orientation: all entries have 270.0 degrees, which means they're facing due south. end z coordinate of texture: same as #1 but on the z axis for each entry. We definitely need to test lots with textures that cover multiple tiles to figure out what most of the other entries mean. Update: I created a savefile with buildings (plopped and zoned) as in the image below and nothing else, and here is my annotated 0xc97f987c file for the save: That being said, here is my guess for an interpretation of this Base Texture file: DWORD Size DWORD CRC DWORD Memory WORD Major Version? (only seen 0x0006) WORD Minor Version? (only seen 0x0004) WORD Unknown (only seen 0x0000) BYTE Unknown (only seen 0x00) BYTE Unknown (only seen 0x05) DWORD 0x9D6D7F49 (probably always the same) BYTE Min Tract X Coordinate (normally between 0x40 and 0x7F) BYTE Min Tract Z Coordinate (normally between 0x40 and 0x7F) BYTE Max Tract X Coordinate (normally between 0x40 and 0x7F) BYTE Max Tract Z Coordinate (normally between 0x40 and 0x7F) WORD X Tract Size? (power of 2) (only seen 0x0002) WORD Z Tract Size? (power of 2) (only seen 0x0002) 16 bytes unknown (only seen 16 0x00 bytes, could be related to SaveGame Properties) FLOAT32 Min X Coordinate FLOAT32 Min Y Coordinate FLOAT32 Min Z Coordinate FLOAT32 Max X Coordinate FLOAT32 Max Y Coordinate FLOAT32 Max Z Coordinate BYTE Unknown DWORD Texture Entry Count DWORD Unknown (probably parameters for generating texture) BYTE Tile X Coordinate BYTE Tile Z Coordinate BYTE Lot Orientation BYTE Texture Overlay Priority? (usually 0x00, seen 0x01 for Low R with pavement on grass) BYTE Unknown (only seen 0xff) DWORD Unknown (only seen 0xffffffff) BYTE Unknown (seen 0x00, 0x01, 0x02, 0x03 but changes between saves in same lot)
