Graphics Tutorial (Almost Finished)
Posted: 14 Aug 2003 18:40
The Graphics Tutorial Written by Marcel Koonstra (Dinges)
The start...
First decide what you are going to draw, how should it look, how do you want to do it and what do you need to draw it in
You should visit this page, there are some tutorials that help you: http://users.tt-forums.net/purno/PDT/index.php
Message from Dinges:
I hope you had much fun reading this tutorial as I had with making this for you, and I hope you could do something with it, feel free to leave a message here. Also, I wish you happy Graphics making.
SHADOW-XIII: added "How to draw TTD graphic?"
The start...
First decide what you are going to draw, how should it look, how do you want to do it and what do you need to draw it in

- What do I need
- GRFcodec and GRFdiff, get them here: http://www.ttdpatch.net/grfcodec/
- A tool to edit PCX files, suggested is i.mage (free) or Paint Shop Pro (trial)
It must support palletes, paint doesn't - (optional) GRFWizard
- Your drawing skills
- Decoding the files
First seek what file you need to decode, here are some files: - trg1[r].grf > Almost everything is in here
- trgh[r].grf > Desert Climate Stuff (addition to trg1r.grf)
- trgc[r].grf > Arctic Climate Stuff (addtition to trg1r.grf)
- trgt[r].grf > Toyland
- trgi[r].grf > Start screens etc.
Select the file you need, if you have DOS, you should use without r, windows user should be with r
- Using GRFWizard
- Start the Wizard and Click "Decode graphics", next
- Select the directory where TTD is located, next
- Click the files you wan't to decode, next
- The pallete that is the same as your TTD version (Win/DOS) should be selected, if not do so.
- Alternate you can split the file in parts, read the tip below
- Press Next
- There should now be a box popping up, wait till it is finished/disapeared
- Doing it manualy
- Start up DOSpromt (winkey -> run, type: command)
- Navigate to the TTD Directory
- type the following:
Code: Select all
grfcodec -d grffile.grf
- You can also read the tip below to do make PCX files smaller
- This should now decode the file, wait till it is finished and then close it.
- Decoding tips
- When using i.mage, you'l; notice you have 2 windows, 1 zoomed in and one at 1:1, it would be handy that you use a good width to fit this, also when you have big files like trg1r.grf, you'le get enourmous files, these are un-easy to edit and not recommended.
- Recommandation for this in GRFWizard:
There are boxes for alternate width and height, fill in 500 for width and 2000 for the height and you'll get them nice and small, PCX files will all be very efficient to handle... - Reccomandation for this doing manually:
The following code will do the same as above:Code: Select all
grfcodec -d grffile.grf -w 500 -h 2000
- Recommandation for this in GRFWizard:
- Find the Sprites
After the decoding process, you'll need to edit the graphics. I presume you'll be using either. The first thing you need to do is find the sprite, the PCX files are decoded in the \sprites directory. You'll see a .NFO file and one or more .PCX files which have the same name as the .GRF file you've decoded. Open the .PCX file(s) to find the sprite(s) you want to change.
Very Important: Write down the numbers off the sprites you are changing, you WILL need them later on.
Editing Graphics- Part 1: Colors
Broodje made an color table for changing colors: http://home.tiscali.nl/broodje/colour_codes.txt
- Part 2: how to draw graphics
George made an excellent tutorial for this: http://ttd.cernun.net/graphicstutorial/
Purno also did:
http://users.tt-forums.net/purno/PDT/index.php
- Part 1: Colors
- Encoding the files
After you've edited the sprites, you must encode them again. This can be done as follows:
- Using GRFWizard
- Start the Wizard and Click "Encode graphics", next
- Select the directory where TTD is located, next
- Click the files you wan't to encode, next
- Keep the option for the same pallete in place
- Press Next
- There should now be a box popping up, wait till it is finished/disapeared
- Doing it manualy
- Start up DOSpromt (winkey -> run, type: command)
- Navigate to the TTD Directory
- type the following:
Code: Select all
grfcodec -e grffile.grf
- This should now encode the file, wait till it is finished and close it.
- Remember that this doesn't delete the .NFO or .PCX file, which you can still edit after the encoding.
Testing in TTD
You should now try to test it in TTD. Do the colors look goodIs the scale alright
etc, etc... If something isn't right, edit the files again (no need to decode again) and make the necessary corrections.
If you think you're creation is okay, head on to the next section...
- Submitting your Creations
If it is correct, you should have a list off the sprites you changed, get them in front off you. We are now going to make a .exe file now. Please read these things carefully if you wan't to get good results...
- Using GRFWizard
- Start the Wizard and Click "Generate Graphics with the modified Graphics", next
- Select the directory where TTD is located, next
- Click the file you wan't to give the update for, next
- Check the box before "Instead of search for new sprites, use these" box
- Now type in the sprites you changed, always use two numbers with a - between them even if there is only one sprite in the range...
f.e: 1234-5607, 5609-5609 - Type the name off the EXE in the box
- Press Next and wait till the box isfinished/disapeared
- Doing it manualy
- Start up DOSpromt (winkey -> run, type: command)
- Navigate to the TTD Directory
- type the following:
Code: Select all
grfdiff -l xxxx-xxxx, xxxx-xxxx grffile.grf grffile.bak -x -o filename.exe
- Change the xxxx parts for your spritenumbers, always use two numbers with a - between them even if there is only one sprite in the range...
f.e: 1234-5607, 5609-5609 - Offcourse Change grffile.grf and grffile.bak into the right values
- This should now make a .exe file, wait till it is finished and close it.
- Uploading the files, and getting them on my site
This is not relevent to the Tutorial, but I'll just post it here.
Follow the following steps/rules for doing this: - Make a topic in this forum containing the Graphics + Discription
- Register on my site
- Contact me abouit it
That was it, this is enough to get it added...
Convert it from WIN -> DOS, or vice versa
I am not going to include it here, but Marcel made a excellent guide for it here.
You should visit this page, there are some tutorials that help you: http://users.tt-forums.net/purno/PDT/index.php
Message from Dinges:
I hope you had much fun reading this tutorial as I had with making this for you, and I hope you could do something with it, feel free to leave a message here. Also, I wish you happy Graphics making.
SHADOW-XIII: added "How to draw TTD graphic?"