Authors: Un1 and Deathtopumpkins
Part 1 - How To Create and Mod Base & Overlay Textures
Before we get started, a common knowledge and the having of the following programs is required. (Click to go to the download link)
A Photo Editing Program (MS Paint is an example)
Just a note about the lot texture I am using, this texture I am using is just a easy texture I made so I can make invisible base textures.
Make the texture using any photo editing program.
Here is my example, (Read the texture note above for any questions on the texture)
Resize the texture to 128x128.
Try to use IrfanView for this, it is much more friendly to use.
Save the image as any name you desire, though, I like to save it as a texture code. (It keeps things simple in the long run)
Load SC4Tool and select the Texture Creator.
Select the .dat file you wish to load the texture into.
*Anyone who tries this out after the LAM (Landfill Addon Mod - by un1) is released, please don't put your textures in it*
Then select add texture.
Select the folder that is circled in the next photo and find your texture.
Make sure the circled items below are selected.
Insert the texture IID (Identification hex number) , you can get your own range here. If you do not use your own specific range, duplications can occur and produce unwanted results in the game. To avoid this, please request your own range.
*NOTE: Do not copy the above hex. This is my own and will cause conflicts.
Insert the first texture in your range in the selected area.
I suggest that you don't click on the "next free IID" button. This will require you to re-paste the IID.
Please do not put 0xF45AAA into that area as it is my personal IID. Get your own here
Then click on "OK".
That is all for making the textures, now you want to check the following things to make sure it works right.
Right after you click "OK" you close the add texture box then click on the texture you just added.
If it worked right it should look like this,
Then you open lot editor to see if it got into the list. If it did not make into this list, you either did not insert the correct hex, or something else went wrong. Re-read the above steps and try again.
Now check to see if the texture goes onto the lot the right way.
This concludes part one. Part two covers transit texturing.
Part 2- Transit Textures
-photo editing program (MS Paint will suffice)
Note: In this article I will be replacing the orthogonal road texture with a slightly modified one to match the SCRT's upcoming Transit Retexturing Project.
Open the Reader, and select "Texture Viewer" from the Tools menu.
Note: This only works for the Maxis network textures. To get any custom ones, such as for the Rural Highway, you must open the dat and extract the textures, by selecting them all, right clicking, and clicking "Save Decoded File." If you use this method, skip steps 1-3.
Expand "Street/Road/Rail/Highway" and then "Zoom 5," and click "Road." Don't panic if at first you don't see anything. Even on my high-end PC it takes a minute for them to load.
Scroll down until you come across the orthogonal road textures. Then right-click on the one entitled "0x00004b14" and click "Save FSH." It then saves the .fsh file for that texture somewhere on your computer, usually in the last folder you had open (i.e. when I just did this it saved it in the folder containing the pictures for this article.
Open FiSHman, select Open, and browse for your file. When open, right-click the bitmap icon, and click "Export... Color."
When saving the file, be sure to save it with the same name as the original .fsh file. This is not absolutely necessary, just extremely helpful later on when you go to putting it back in the game. It will always begin with "0x," and in this case it's "0x00004b14." Then in the "Save as type" field, save it as a .png (Portable Network Graphics). For the purposes of this article, it does not matter where the file is saved to.
Once you've saved the color png, do the exact same thing for the alpha, just add something on to the end of the filename to distinguish it. I usually use a lowercase a.
Close FiSHman and open the .png file in the image editing program of your choice, make your desired changes, and save. When you have all the textures you wish to make a texture mod out of, open SC4Tool.
Here's the texture I'm using:
Once SC4Tool opens, select the "Create your own textures" button, and wait as the program loads all of the texture files.
When it's done loading, you should be at this screen:
Click the Star to make a new dat file. You should then be at this screen:
Despite what the window's title says, this is in fact the "Save..." window, and is where you will name your dat file you're going to create. The name has no effect on the mod, so it doesn't really matter what you name it.
Once you click "Open," it returns you to the "Texture Creator" window. From there, click the little picture icon, and it opens this window:
You then need to check the "Disable TGI-checking" box, or you'll get an error when adding textures, and select the "Traffic texture" radio button.
Then click the camera icon next to the folder icon you clicked on. This tells SC4Tool to automatically copy this texture for all zoom levels. Some people prefer to do a separate texture for each zoom, but that is not necessary, so I don't usually bother.
Then repeat what you just did for the alpha textures, and you should end up with this:
(yes I'm aware that my images are JPEGs, I had to convert them to post on here, and so just used the converted ones for the purpose of this article)
The last thing you need to fill in for this texture is the IID (Instance ID), which goes in the field in the top left. Remember back when I had you name the .png after the .fsh? That was because the.fsh was named with the IID for that texture, and now, since the .pngs are named with the IID, we can use that as reference for entering the IID. But it's not exactly that simple... The last digit of the IID must be changed to 0 to work, as the last number of the IID stands for the zoom level, and the 0 acts as the overall one.
If your window now looks like this, you're good:
Then just click OK and you're good. A folder will appear in the panel on the left with your textures, and you can keep adding more by repeating the last few steps. Once all of the textures are in there, just close the window, move the dat into your plugins folder, and start the game! It automatically saves every time you add a texture.
Note: It is safe to delete the .sav file accompanying your dat when you are finished.