My First Trainset

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

DaleStan wrote:That looks to me like the DOS palette, flipped end-for-end.

This is the Windows palette.
Hmm... I've always used the DOS palette, and never had any problems with it, AFAIK.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

Well my trains are running in my games cuz I pasted my pics over others and that worked.. but when I create my own .grf it's colors are very weird...
Image
User avatar
Jezulkim
Chairman
Chairman
Posts: 844
Joined: 04 Jan 2004 09:40
Location: Finland/Suomi

Post by Jezulkim »

That's because the palette is correct on that picture.

This is how to get a correct palette for your own grfs:

1)Convert your trains to ttd win palette with option "match to nearest colour" (or something like that)
2)Then encode the grf file and you're done
Image
In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Darkmast49 wrote:Well my trains are running in my games cuz I pasted my pics over others and that worked.. but when I create my own .grf it's colors are very weird...
Just decode, paste your sprites over them again, and encode again. That's what did the trick for me.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

ok thanks ;) Now I have to learn to configure the .grf files with NFO... I can only input the graphics now in the good order..
Image
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

Hmm.. It worked.. And I followed the wiki grf tuts and created my first .grf file.. I included it, that worked all fine.. But when I create my train it runs WAY from the track and does not connect to others trains and even in depot it doesn't go in the right cube.. Can anyone help?? :oops: :oops:
Attachments
This is the graphic source file. (of course normaly in pcx..)
This is the graphic source file. (of course normaly in pcx..)
mytrain.jpg (71.37 KiB) Viewed 2818 times
mytrain.grf
This is the .grf file
(1.23 KiB) Downloaded 98 times
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Your xrel and yrel are wrong.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

ok ty.. how can I adjust the right ones of them? Dunno what numbers I have to input there..
Image
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Post by mart3p »

Try loading your GRF file in TTDPatch and then use the GRF Author Helper Window.
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Did you follow the link?
Did you read the corresponding section of the page I linked to?
Does it not describe what values to use?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

It was a link.. didn't see it.. :oops:
Image
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

good.. they are ON the track now.. Now I have to reset the graphics positions.. Cuz they give the wrong ones :oops:

Edit: I'm getting sick of this... what can be wrong?? :

The NFO File:
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 6)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 0D 00 00 00
1 * 8 08 06 "PB99" 00 00
2 * 4 01 00 01 08
3 sprites/mytrain.pcx 66 8 01 22 8 -3 -9
4 sprites/mytrain.pcx 82 8 02 15 22 -14 -6
5 sprites/mytrain.pcx 114 8 03 12 33 -10 -7
6 sprites/mytrain.pcx 162 8 04 13 21 -1 -2
7 sprites/mytrain.pcx 194 8 05 22 8 -3 -9
8 sprites/mytrain.pcx 210 8 06 13 21 -14 -4
9 sprites/mytrain.pcx 242 8 07 12 33 -10 -7
10 sprites/mytrain.pcx 290 8 08 15 22 -1 -4
11 * 9 02 00 00 01 01 00 00 00 00
12 * 7 03 00 01 16 00 00 00
13 * 7 00 00 01 01 16 12 FD

Please help..
Attachments
The image (normally .pcx)
The image (normally .pcx)
mytrain.jpg (8.11 KiB) Viewed 2688 times
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Darkmast49 wrote:good.. they are ON the track now.. Now I have to reset the graphics positions.. Cuz they give the wrong ones
What do you mean by graphics positions?

All of the meta-data now looks sane, except for your compression.

NFORenum should be objecting to that, BTW.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Jezulkim
Chairman
Chairman
Posts: 844
Joined: 04 Jan 2004 09:40
Location: Finland/Suomi

Post by Jezulkim »

Do you mean the in game sprite positions? Then the grf author helperis for you.
Image
In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

Nono.. It's something else.. When I start up the game with my .grf included in openttd.cfg, the train drives ON the track.. But he uses the same sprite for every direction :S the / front view, so if the train goes _ it still has the same sprite used (/ front view).. whats the problem about that??
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Darkmast49 wrote:... my .grf included in openttd.cfg ...
1) Does it work in TTDPatch? If so, your grf is fine, and Open is broken.
2) What does NFORenum tell you?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

1) I don't have the right version of TTDPatch.. When I use my original files of TTDLX and past the TTDPatch over it and run TTConfig/exe, it saids error reading registry.. And I don't have Transport Tycoon Deluxe.exe in my folder of TTDPatch.

2)Where can I find NFORenum? (I know, I'm completely noobish right now
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

1) You have to have a full TTD install to use TTDPatch.
2) Somewhere down vvvv there.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Samwise
Tycoon
Tycoon
Posts: 2459
Joined: 09 Apr 2006 18:50
Location: Oss, Netherlands, At home
Contact:

Post by Samwise »

1) I'm getting further with that.. I only need a right TTDLOADW.OVL now...
2) Thanks ;)
Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Brickblock1 and 17 guests