More Awesome Than You!

TS3/TSM: The Pudding => Pudding Factory => Topic started by: Goggalor on 2010 July 15, 10:41:42



Title: Fix for missing WA terrain paints.
Post by: Goggalor on 2010 July 15, 10:41:42
Here's a fix for the missing WA terrain paints. There are two options.

The first is to just download the WATerrainPaintFix.package file. This will make the paint visible for any new started world. Won't work for any world saved after the latest patches, since saving with missing textures gets rid of the data.
This is not a very good option if you have lots or worlds you want to share, since it requires the one who installs it to have the fix as well.  (ETA clarification: this only applies to the lots/worlds that are affected by the missing textures, all other lots/worlds can be shared as usual without the fix.)

The other option, unfortunately, requires hex editing.
 
Short explanation for people who already knows how to do this. For all lots there is a REFS resource (type: 0x05ED1226 group: 0x00000000) that among other things contain references to the terrain paint textures. For all WA paints, the group must be changed from 0x00000000 to 0x08000000.
I've attached a text file with the relevant instance numbers.

Long explanation:
First, you need s3pe (http://dino.drealm.info/den/denforum/index.php?topic=189.0), XVI32 (http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm#download)(hex editor), and the attached replacing script (WATextureReplacer.rar).
Extract XVI32 to a folder somewhere. Extract the script.

1. Open up s3pe and go to settings/external programs (img1). click "Use external hex editor" and browse to XVI32.exe. Make sure to check "Needs quotes around filename" (img2).

img1
(http://i354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/th_img1.jpg) (http://s354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/?action=view&current=img1.jpg)

img2
(http://i354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/th_img2.jpg) (http://s354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/?action=view&current=img2.jpg)

2. Now, browse to the world or lot file you want to edit. If you have a world you want to edit it should be in documents\electronic arts\the sims 3\installed worlds. If you saved the lot to bin it can be found in documents\electronic arts\the sims 3\library. If you have a CAW project the lots are stored separately in  usertooldata\worlds\name of your world\lots. Either apply the following steps to all lot files or identify the ones you want to edit by their ICON resource.
Before you actually start to edit anything, BACKUP your files. Seriously.

3. Open the file with s3pe. Find the resources with type 0x05ED1226 and group 0x00000000. If it's a single lot there will just be one, if it's a world there will be many. Select it and click the "Hex Editor" button(img3). Now XVI32 should open. Go to XVI script/editor(img4) and click open in the new window. Browse to the WATextureReplacer.xsc that you saved earlier and open it(img5). Click "Execute" (img6). You should get the message "Script executed succesfully!"

img3
(http://i354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/th_img3.jpg) (http://s354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/?action=view&current=img3.jpg)

img4
(http://i354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/th_img4.jpg) (http://s354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/?action=view&current=img4.jpg)

img5
(http://i354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/th_img5.jpg) (http://s354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/?action=view&current=img5.jpg)

img6
(http://i354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/th_img6.jpg) (http://s354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/?action=view&current=img6.jpg)


4. Close the XVI32 window and click "yes" when it asks if you want to save (img7). If it didn't ask there were no WA paints on that lot. Click "yes" again to commit changes(img8). Now save and close if it's a single lot, or continue with the next REFS resource if you're editing a world until you've changed all of them, then save and close.

img7
(http://i354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/th_img7.jpg) (http://s354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/?action=view&current=img7.jpg)

img8
(http://i354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/th_img8.jpg) (http://s354.photobucket.com/albums/r427/Goggalor_Pics/Sims3/WATerrainPaint/?action=view&current=img8.jpg)

The terrain paints should now be restored.
Note that just like the other fix this only works if the lots/world were saved before the paint went missing.

I will upload the changed REFS for the WA worlds later so that you can just import them in s3pe with no need for the hex editor.



Title: Re: Fix for missing WA terrain paints.
Post by: ElectricSimmer on 2010 July 17, 10:37:47
yes! yes yes yes!

Thanks for this!


Title: Re: Fix for missing WA terrain paints.
Post by: Rothchild on 2010 July 19, 17:27:40
I went through and edited the WA worlds, loaded up a new game and could see the textures perfectly.  Unfortunately, I can't see the textures in saved games where I've already traveled to that location.  I opened the saved location (China_0x0859db4c.nhd) with s3pe and ran WATextureReplacer on the mentioned resources, but none of them had any changes.  Any clue how to fix saved games?


Title: Re: Fix for missing WA terrain paints.
Post by: Goggalor on 2010 July 20, 09:09:03
Is it a game that you haven't played or saved since patching? The references to non-existing textures disappears when you do. You can always save lots to bin from a fresh world and plop them down in your saved game with the downside of tombs being reset.


Title: Re: Fix for missing WA terrain paints.
Post by: ElectricSimmer on 2010 November 01, 09:12:34
This was not fixed in the latest patch so it is still necessary for Destination textures to show up.


Title: Re: Fix for missing WA terrain paints.
Post by: Freezerburn on 2010 December 04, 03:46:43
If EA eventually fix this without I'm noticing about it, will it be a conflict with this mod?


Title: Re: Fix for missing WA terrain paints.
Post by: Argon on 2012 August 16, 08:14:56
I will upload the changed REFS for the WA worlds later so that you can just import them in s3pe with no need for the hex editor.

Necro-posting since the files never appeared...

ellacharm3d's (http://www.modthesims.info/member.php?u=1515002) routing fixes + terrain paint fixed REFS (.world files)
http://www.mediafire.com/file/v4jz38z7t0v85ba/China.7z
http://www.mediafire.com/file/gmxf71xncb93w9q/Egypt.7z
http://www.mediafire.com/file/c1hy1kx0r565m5g/France.7z

REFS only (import with s3pe):
http://www.mediafire.com/file/mwfgjsist3auaul/WA_World_fixed_REFS.7z


Title: Re: Fix for missing WA terrain paints.
Post by: Goggalor on 2012 August 16, 14:29:46
Oops! Thanks Argon.