
Adding new vehicle graphics
Moderator: Graphics Moderators
- Emeric Pro
- Engineer
- Posts: 107
- Joined: 23 Feb 2003 23:42
- Location: Toulouse, France
- Contact:
Problems when encoding pcx files
I never manage to keep the colors I want when I encode new vehicles (I've tried changing palette etc.. but it didn't work)
here are a pcx file, a nfo file and the grf file which is created with those. Can someone try to explain why it doesn't work?
Edit: Oops I put the wrong pcx - it should look normal... it's repaired now.



here are a pcx file, a nfo file and the grf file which is created with those. Can someone try to explain why it doesn't work?
Edit: Oops I put the wrong pcx - it should look normal... it's repaired now.
- Attachments
-
- beluga.zip
- (6.57 KiB) Downloaded 247 times
It would be better if i was gliding

If you're having trouble with the colours, it means your graphics program isn't meant to deal with a fixed palette.
One possibility is that it always converts images to truecolour, and saves them in 256 colour palette images. This means though that it doesn't remember the original palette and instead makes up a new one.
One possibility is that it always converts images to truecolour, and saves them in 256 colour palette images. This means though that it doesn't remember the original palette and instead makes up a new one.
This is very stupid, I can't get the manual about this, The patchman linked it to his own site and It is down, Shadow do you have it?
Dinges
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
-
- Tycoon
- Posts: 14275
- Joined: 09 Jan 2003 08:37
This is so darn stupid
, just when I try to make some things his site is down
Does anybody else have it?




Dinges
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Temporary location: http://publish.uwo.ca/~jdrexler/ttdpatch/sprites.txt
Thank you, now I can make some vehicles.
Dinges
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
My game seems to be crashing when I press new vehicles in depot window. I use this file:
And this is all I changed + explanation:
I didn't change any other line exept this one. Also there are no new graphics. I'll post GRF too
I wonder what is wrong??
I included crash log too.
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 4)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 0F 00 00 00
1 * 5 06 00 01 04 00
2 * 34 00 00 0D 01 00 03 13 04 18 05 00 06 04 09 09 01 0B 32 30 0D 10 0E 4C 3C 12 FD 13 01 16 5A 17 10 19 30
3 * 4 01 00 01 08
4 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 82 8 01 18 8 -3 -10
5 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 98 8 09 14 20 -14 -6
6 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 130 8 01 12 28 -14 -6
7 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 178 8 09 16 20 -4 -8
8 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 210 8 01 18 8 -3 -10
9 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 226 8 09 16 20 -14 -7
10 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 258 8 01 12 28 -14 -6
11 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 306 8 09 14 20 -4 -6
12 * 9 02 00 00 01 01 00 00 00 00
13 * 5 06 00 01 03 00
14 * 7 03 00 01 00 00 00 00
Code: Select all
//00 - Actie 0
//00 - Trein
//0D - num-props (13)
//01 - Number of vehicles
//00 - Offset into each property (only one vehicle so 0)
//props changed
//03 18 - Rides for 24 years
//04 13 - Goes after 19 years
//05 00 - Railway vehicle
//06 04 - Tropic only
//08 01 - Voor passgiers
//09 09 01 - 165 mph = 264 = hex 01 09
//0B 32 30 - 12338pk = hex 3032
//0D 10 - runcost ??dunnow?? set to 16
//0E 4C 3C - runcost base (for electrics)
//12 FD - Nieuwe Graphics
//13 01 - Doubbelheaded
//16 5A - 90 tonnes
//17 10 - cost ??dunnow?? set to 16
//19 30 - Electric Sounds
This is the end line
* 34 00 00 0D 01 00 03 13 04 18 05 00 06 04 09 09 01 0B 32 30 0D 10 0E 4C 3C 12 FD 13 01 16 5A 17 10 19 30
I wonder what is wrong??
I included crash log too.
- Attachments
-
- Crash000.txt
- Crash log
- (1.21 KiB) Downloaded 204 times
-
- aexpressw.zip
- (1.41 KiB) Downloaded 202 times
I got one tip for anyone making new graphics. First make a simplistic model such as this one:
then make sure it works and then add new properites one by one. It is hard to see a misteake when all you see is a plethora of numbers.
BTW - there is a hope for my trucks afterall
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 4)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 0E 00 00 00
1 * 7 00 00 02 01 00 12 FD
2 * 4 01 00 01 08
3 d:\u-vassal\ttdx\newgraph\sprites\garrat-front.pcx 00 00 01 16 08 -3 -10
4 d:\u-vassal\ttdx\newgraph\sprites\garrat-front.pcx 14 00 09 17 22 -12 -9
5 d:\u-vassal\ttdx\newgraph\sprites\garrat-front.pcx 40 00 01 15 32 -14 -9
6 d:\u-vassal\ttdx\newgraph\sprites\garrat-front.pcx 80 00 09 17 22 -6 -9
7 d:\u-vassal\ttdx\newgraph\sprites\garrat-front.pcx 112 00 01 16 08 -3 -10
8 d:\u-vassal\ttdx\newgraph\sprites\garrat-front.pcx 128 00 09 17 22 -12 -9
9 d:\u-vassal\ttdx\newgraph\sprites\garrat-front.pcx 156 00 01 15 32 -14 -9
10 d:\u-vassal\ttdx\newgraph\sprites\garrat-front.pcx 192 00 09 17 22 -6 -9
11 * 9 02 00 00 01 01 00 00 00 00
12 * 8 03 00 01 00 01 00 00 00
13 * 7 04 33 33 33 33 33 00
BTW - there is a hope for my trucks afterall

Last edited by uzurpator on 25 Apr 2003 16:57, edited 1 time in total.
No it doesn't help (changing action 6). but I'm gonna delete every addition and add them one by one to check which is troubling this. And it worked the first run when I have changed nothing.
Heurekaaaa! It is the runcost base thats buggin it. i delete it and it is OK.
Patchman what's wrong with it? Can you fix it?
Heurekaaaa! It is the runcost base thats buggin it. i delete it and it is OK.
Patchman what's wrong with it? Can you fix it?
Dinges
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Isn't there a list of all the vehicle Id's and engines used by the game? The only thing I know is:
00 = Crappy Paul Tank.
1B = Passenger Wagon
1C = Mail Wagon
I can't get wagon overide to work properly
The passenger wagon gets overwritten by new graphics succesfully, but in the menu I see the original engine (not the wagon), like in the image. All graphics for driving/loading are OK
00 = Crappy Paul Tank.
1B = Passenger Wagon
1C = Mail Wagon
I can't get wagon overide to work properly

The passenger wagon gets overwritten by new graphics succesfully, but in the menu I see the original engine (not the wagon), like in the image. All graphics for driving/loading are OK
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 4)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 2C 00 00 00
1 * 5 06 00 01 04 FF
2 * 33 00 00 10 01 1A 03 18 04 13 05 00 06 07 08 01 09 09 01 0B 32 30 0D 01 12 FD 13 01 16 5A 17 32 19 30
3 * 7 00 00 01 01 1B 12 FD
4 * 4 01 00 04 08
5 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 82 8 01 18 8 -3 -10
6 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 98 8 09 14 20 -14 -6
7 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 130 8 01 12 28 -14 -6
8 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 178 8 09 16 20 -4 -8
9 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 210 8 01 18 8 -3 -10
10 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 226 8 09 16 20 -14 -7
11 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 258 8 01 12 28 -14 -6
12 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 306 8 09 14 20 -4 -6
13 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 338 8 01 18 8 -3 -10
14 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 354 8 09 14 20 -14 -6
15 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 386 8 01 12 28 -14 -6
16 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 434 8 09 16 20 -4 -8
17 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 466 8 01 18 8 -3 -10
18 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 482 8 09 16 20 -14 -7
19 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 514 8 01 12 28 -14 -6
20 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 562 8 09 14 20 -4 -6
21 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 594 8 01 18 8 -3 -10
22 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 610 8 09 14 20 -14 -6
23 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 642 8 01 12 28 -14 -6
24 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 690 8 09 16 20 -4 -8
25 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 722 8 01 18 8 -3 -10
26 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 738 8 09 16 20 -14 -7
27 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 2 40 01 12 28 -14 -6
28 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 50 40 09 14 20 -4 -6
29 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 82 40 01 18 8 -3 -10
30 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 98 40 09 14 20 -14 -6
31 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 130 40 01 12 28 -14 -6
32 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 178 40 09 16 20 -4 -8
33 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 210 40 01 18 8 -3 -10
34 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 226 40 09 16 20 -14 -7
35 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 258 40 01 12 28 -14 -6
36 C:\Games\TTD\newgrf\msts\SPRITES\aexpressw.pcx 306 40 09 14 20 -4 -6
37 * 9 02 00 00 01 01 00 00 00 00
38 * 9 02 00 01 01 01 01 00 01 00
39 * 9 02 00 02 01 01 02 00 02 00
40 * 9 02 00 03 01 01 03 00 03 00
41 * 8 03 00 01 1A 01 00 00 00
42 * 8 03 00 81 1B 01 00 01 00
43 * 5 06 00 01 03 00
[quote][/quote]
- Attachments
-
- Image1.jpg (13.58 KiB) Viewed 4066 times
Dinges
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
The running cost base is a DWORD, so you need to specify 0E 4C 3C 00 00, don't forget the last two zeroes.
For a list of vehicle IDs, run TTDAlter and count from the top.
Your action 3 is incorrect:
After the 1A, you have 01 = one cargo ID. Then you have the cargo type, 00 = passengers. After that you have the cargo ID 00 00. What's missing is the default cargo ID, which is shown in the purchase screen or when the train is refitted to something else. Alternatively, define cargo type FF and that's what will be shown in the purchase screen. But you must always specify the default cargo ID.
For a list of vehicle IDs, run TTDAlter and count from the top.
Your action 3 is incorrect:
Code: Select all
41 * 8 03 00 01 1A 01 00 00 00
Thanks for the help, now I can start on action 4 and finish my train.
Dinges
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
00 BA 07, why doesn't it make my train available from 1978? It is available from the 1920 instead of 1978.
Can you explain how this property works? In MB's tempset I found this:
00 B5 70 or 00 B9 66. and if I use that I both times 1920 too.
Can you explain how this property works? In MB's tempset I found this:
00 B5 70 or 00 B9 66. and if I use that I both times 1920 too.
Dinges
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Who is the other person in me?
my Blog (dutch) - my Last.fm profile
Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
Who is online
Users browsing this forum: Semrush [Bot] and 14 guests