Adding new vehicle graphics

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

ttd player
Engineer
Engineer
Posts: 8
Joined: 11 Aug 2003 05:07
Location: Portland, OR USA

Request for information

Post by ttd player »

Still trying to learn about pseudo-sprites and how to build my own vehicles...

For anyone else who is learning like I am, a handy webpage can be found at http://jaworski.com/htmlbook/dec-hex.htm ... the site prints out a nice one-page decimal to hex conversion chart.

I wonder if someone would be willing to furnish the following information:

:arrow: Win & Dos TTDlx palettes which can be used in Photoshop?

:arrow: A list of hex values for the English/American alphabet (I think I've deduced that hex 41 thru 5A are capitalized letters A thru Z; what about lowercase, punctuation and numbers)?

:arrow: EITHER some help getting TTDAlter to work for me OR a numbered list of the vehicles as they would appear in TTDAlter?

TTD Alter shows a 'version incorrect' error with no apparent way to correct the version. It also wants either the TTDX.EXE or TYCOON.EXE application, neither of which exist on my system. What can I do?

Thanks!
User avatar
orudge
Administrator
Administrator
Posts: 25216
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

About TTDAlter: I'm guessing you're using TTDAlter 3.0. Download TTDAlter 4.0.10 from http://www.owenrudge.net/TT/ - this supports the Windows version of TTD as well.
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

:arrow: yep

:arrow: hmmm

Code: Select all

Hex Letters:
Letter:		Lowercase:	Uppercase:
A 		61 		41
B 		62 		42
C 		63 		43
D 		64 		44
E 		65 		45
F 		66 		46
G 		67 		47
H 		68 		48
I 		69 		49
J 		6A 		4A
K 		6B 		4B
L 		6C 		4C
M 		6D 		4D
N 		6E 		4E
O 		6F 		4F
P 		70 		50
Q 		71 		51
R 		72 		52
S 		73 		53
T 		74 		54
U 		75 		55
V 		76 		56
W 		77 		57
X 		78 		58
Y 		79 		59
Z 		7A 		5A
Some more:

Code: Select all

Other stuff
Result		ASCII		Hex:
"		34		22
'		39		27
(		40		28
)		41		29
-		45		2D
/		47		2F
0		48		30
1		49		31
2		50		32
3		51		33
4		52		34
5		53		35
6		54		36
7		55		37
8		56		38
9		57		39
:		58		3A
:arrow: You should contact orudge about TTDalter
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/
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Request for information

Post by George »

ttd player wrote:Still trying to learn about pseudo-sprites and how to build my own vehicles...

For anyone else who is learning like I am, a handy webpage can be found at http://jaworski.com/htmlbook/dec-hex.htm ... the site prints out a nice one-page decimal to hex conversion chart.

I wonder if someone would be willing to furnish the following information:

:arrow: Win & Dos TTDlx palettes which can be used in Photoshop?
Both
ttd player wrote: :arrow: A list of hex values for the English/American alphabet (I think I've deduced that hex 41 thru 5A are capitalized letters A thru Z; what about lowercase, punctuation and numbers)?
Letters, numbers, (), are Ok. I had some problems with [], but may be it was my mistake
ttd player
Engineer
Engineer
Posts: 8
Joined: 11 Aug 2003 05:07
Location: Portland, OR USA

Thanks for the help

Post by ttd player »

Thanks for the helping hand, Orudge and Dinges! :D

George, you say that you do have palettes for photoshop? Could you send them to me via email? My address is kellsong@comcast.net.

Cheers!
Matt K.
ttd player
Engineer
Engineer
Posts: 8
Joined: 11 Aug 2003 05:07
Location: Portland, OR USA

Vehicle number assignments

Post by ttd player »

When looking at the list of vehicles in TTD Alter, the vehicles are numbered beginning with zero, correct? So the Kirby Paul Tank would be zero as well as the MPS Regal Bus.

Do these numbers also go up in hex values like everything else? So the SH '8P' steam engine would be 0A.

I think I'm beginning to understand some of this!
Cheers!
Matt K.
Portland, OR
User avatar
Lilman424
Tycoon
Tycoon
Posts: 2743
Joined: 20 Oct 2002 14:55
Location: Georgia
Contact:

Post by Lilman424 »

no.....the SH 8P would be 01, then the Ginzu would be 02...

hex goes 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10,11,12 and so on,
not 0,A,B,C,D,E,F,1,2,etc
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction. - Albert Einstein
ttd player
Engineer
Engineer
Posts: 8
Joined: 11 Aug 2003 05:07
Location: Portland, OR USA

Action 7 & 8 questions

Post by ttd player »

More questions...

An action 8 "...must be the first pseudo-sprite of a .grf [.nfo?] file except for one or more action 7 entries that may (and probably should) come before it."

Does this mean that an action 8 pseudo sprite should come before the pseudo-sprite at line zero that defines the number of sprites in the .nfo file (the first line after the 3 comment lines)?

Can someone post an example of an action 7 and action 8 in the context of an actual .nfo file?
Cheers!
Matt K.
Portland, OR
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Thanks for the help

Post by George »

ttd player wrote:Thanks for the helping hand, Orudge and Dinges! :D

George, you say that you do have palettes for photoshop? Could you send them to me via email? My address is kellsong@comcast.net.

Cheers!
Matt K.
When you use indexed images in photoshop, they work in the fixed palette. All you need is to open the pcx file gnerated with grfcodec. even if there is no graphics, it has the required palette.
A useful thing is the code for replacement of colours.
Attachments
ttd3.rar
Photoshop 7 actions
(8.76 KiB) Downloaded 204 times
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Action 7 & 8 questions

Post by George »

ttd player wrote:More questions...

An action 8 "...must be the first pseudo-sprite of a .grf [.nfo?] file except for one or more action 7 entries that may (and probably should) come before it."

Does this mean that an action 8 pseudo sprite should come before the pseudo-sprite at line zero that defines the number of sprites in the .nfo file (the first line after the 3 comment lines)?

Can someone post an example of an action 7 and action 8 in the context of an actual .nfo file?
From Long Vehicles .NFO (skips the file in Toyland)

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	 00 08 00 00
    1 * 6	 07 83 01 02 03 00
    2 * 148	 08 02 4D 65 6F 43 4C 6F 6E 67 20 76 65 68 69 63 6C 65 73 00 43 6F 70 79 72 69 67 68 74 20 28 43
	 29 20 32 30 30 33 20 62 79 20 47 65 6F 72 67 65 2E 20 41 6C 6C 20 72 69 67 68 74 73 20 72 65 73
	 65 72 76 65 64 2E 20 65 2D 6D 61 69 6C 3A 20 67 65 6F 72 67 65 76 62 40 66 6C 61 73 68 6D 61 69
	 6C 2E 63 6F 6D 2C 20 67 65 6F 72 67 65 2D 62 40 6D 61 69 6C 2E 72 75 3B 20 57 57 57 3A 20 68 74
	 74 70 3A 2F 2F 74 74 64 2E 63 65 72 6E 75 6E 2E 6E 65 74 00
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

damn what a long Copyright, what did you stuff in there :?:, mine is only 80-90 bytes...
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/
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Post by George »

Dinges wrote:damn what a long Copyright, what did you stuff in there :?:, mine is only 80-90 bytes...
There is a description too

BTW. the exercise for whose, who have problems with HEX mode - read this text :)
ttd player
Engineer
Engineer
Posts: 8
Joined: 11 Aug 2003 05:07
Location: Portland, OR USA

counting engines

Post by ttd player »

Lilman424 wrote:no.....the SH 8P would be 01, then the Ginzu would be 02...

hex goes 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10,11,12 and so on,
not 0,A,B,C,D,E,F,1,2,etc
I understand how hex counts up... but how could the SH '8P' possibly be 01 when it is eleventh on the list in TTD Alter? You're supposed to count down from the top, right? Maybe I'm totally missing something here. The Ginzu is tenth on the list, although the sprite setting reads it as 2. The SH 8P reads as 0 and the Kirby Paul reads as 4.

I'm sure I'm making this more difficult than it really is! :)
Cheers!
Matt K.
Portland, OR
User avatar
Lilman424
Tycoon
Tycoon
Posts: 2743
Joined: 20 Oct 2002 14:55
Location: Georgia
Contact:

Post by Lilman424 »

uh..../me runs away
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction. - Albert Einstein
ttd player
Engineer
Engineer
Posts: 8
Joined: 11 Aug 2003 05:07
Location: Portland, OR USA

Don't run away!

Post by ttd player »

Lilman424 wrote:uh..../me runs away
:( C'mon... don't run away. Help me out!

Here are the first 11 entries on the list of trains from TTD Alter along with the hex value I am assuming goes with them:

0 Kirby Paul Tank
1 MJS 250 (Diesel)
2 Ploddyphut Choo-Choo
3 Powernaut Choo-Choo
4 Mightymover Choo-Choo
5 Ploddyphut Diesel
6 Powernaut Diesel
7 Wills 2-8-0 (Steam)
8 Chaney 'Jubilee' (Steam)
9 Ginzu 'A4' (Steam)
A SH '8P' (Steam)
... etc.

Is this not correct?
Cheers!
Matt K.
Portland, OR
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

it is correct, /me has made a full vehicle list somewhere, probably in a database...
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/
User avatar
orudge
Administrator
Administrator
Posts: 25216
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

TTDPatch 4.1 will also have a plug-in that exports the vehicle list and details to HTML, a MySQL .sql file, and possibly other formats (eg, MS Access, XML, CSV, etc).
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Post by George »

orudge wrote:TTDPatch 4.1 will also have a plug-in that exports the vehicle list and details to HTML, a MySQL .sql file, and possibly other formats (eg, MS Access, XML, CSV, etc).
Could it help me to support this?
It's the base of all the vehicles for transport analizer. All the corrections are welcome
Last edited by George on 16 Aug 2003 17:02, edited 1 time in total.
User avatar
Petae
Tycoon
Tycoon
Posts: 1076
Joined: 15 Jun 2003 15:26

Post by Petae »

LOL 2 Owen, you silly, Patch 4.1 will take a while, by that time everybody has forgotten what you said...
Everything is relative
User avatar
orudge
Administrator
Administrator
Posts: 25216
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

Um, I mean TTDAlter 4.1. ;)
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Amazon [Bot], Baidu [Spider] and 21 guests