Page 9 of 11

Request for information

Posted: 14 Aug 2003 13:46
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!

Posted: 14 Aug 2003 14:13
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.

Posted: 14 Aug 2003 14:15
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

Re: Request for information

Posted: 14 Aug 2003 15:20
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

Thanks for the help

Posted: 14 Aug 2003 21:24
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.

Vehicle number assignments

Posted: 14 Aug 2003 23:32
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!

Posted: 14 Aug 2003 23:37
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

Action 7 & 8 questions

Posted: 15 Aug 2003 01:25
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?

Re: Thanks for the help

Posted: 15 Aug 2003 06:11
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.

Re: Action 7 & 8 questions

Posted: 15 Aug 2003 06:13
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

Posted: 15 Aug 2003 08:47
by Dinges
damn what a long Copyright, what did you stuff in there :?:, mine is only 80-90 bytes...

Posted: 15 Aug 2003 09:38
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 :)

counting engines

Posted: 15 Aug 2003 22:09
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! :)

Posted: 15 Aug 2003 22:18
by Lilman424
uh..../me runs away

Don't run away!

Posted: 16 Aug 2003 00:28
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?

Posted: 16 Aug 2003 09:12
by Dinges
it is correct, /me has made a full vehicle list somewhere, probably in a database...

Posted: 16 Aug 2003 12:08
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).

Posted: 16 Aug 2003 12:49
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

Posted: 16 Aug 2003 15:56
by Petae
LOL 2 Owen, you silly, Patch 4.1 will take a while, by that time everybody has forgotten what you said...

Posted: 16 Aug 2003 19:10
by orudge
Um, I mean TTDAlter 4.1. ;)