Page 4 of 11

Posted: 04 Mar 2003 17:34
by mp3Pro
the whole thing frustrates me no end
:-(

Problems when encoding pcx files

Posted: 05 Mar 2003 16:14
by Emeric Pro
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.

Posted: 08 Mar 2003 04:27
by Patchman
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.

Posted: 08 Mar 2003 13:11
by mp3Pro
I do my editing in paintshop pro.. I always reload the pallete before saving

here are the dos and windows palleates in .pal format. these work for paintshop pro I am not sure about other editors

Posted: 24 Apr 2003 14:44
by Dinges
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?

Posted: 24 Apr 2003 15:27
by SHADOW-XIII
sorry .. I haven't it ... you must either wait on page up or someone other :roll:

Posted: 24 Apr 2003 16:50
by Dinges
This is so darn stupid :!: :!: :!: , just when I try to make some things his site is down :? Does anybody else have it?

Posted: 24 Apr 2003 20:03
by Patchman

Posted: 25 Apr 2003 12:55
by Dinges
Thank you, now I can make some vehicles.

Posted: 25 Apr 2003 15:28
by Dinges
My game seems to be crashing when I press new vehicles in depot window. I use this file:

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
And this is all I changed + explanation:

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 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.

Posted: 25 Apr 2003 16:47
by Patchman
I can't say for sure without having the file to test it myself, but action 6 must be terminated with FF, not 00. Try changing that and see if it helps maybe.

Posted: 25 Apr 2003 16:52
by uzurpator
I got one tip for anyone making new graphics. First make a simplistic model such as this one:

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
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 :)

Posted: 25 Apr 2003 16:53
by Dinges
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?

Posted: 26 Apr 2003 09:30
by Dinges
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

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]

Posted: 26 Apr 2003 16:22
by Patchman
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:

Code: Select all

41 * 8  03 00 01 1A 01 00 00 00 
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.

Posted: 26 Apr 2003 19:29
by Dinges
Thanks for the help, now I can start on action 4 and finish my train.

Posted: 28 Apr 2003 12:01
by Dinges
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.

Posted: 28 Apr 2003 14:14
by Patchman
You need to start a new game, or use "Cht: ResetVehicles". The date and climate aren't reset otherwise.

Posted: 28 Apr 2003 14:33
by uzurpator
One question - is it possible to alter the running cost base (to make for example a mod to make everything more expensive).
Second question - is it possible to add running cost to the wagons?

Posted: 28 Apr 2003 14:45
by Patchman
1. For those vehicle types that allow changing it, yes.
2. No.