Page 2 of 2

Posted: 07 Jan 2006 10:48
by SkeedR
DOH! I am so sorry for that inconvenience. Thank you OzTransLtd and Jezulkim. One thing though, i set it to 50 and it came out as 100. Also, the HP and speed are iffy. What are the maximum values for these? (in decimal, not hex please)

Posted: 07 Jan 2006 15:57
by Jezulkim
Did you convert 50 to hex? HP and speed are both two byte long so I guess the maximum value is 65535 (FF FF)

Posted: 07 Jan 2006 16:43
by Patchman
They might be used as signed integers in odd places, so the largest "safe" value is 32,767.

Posted: 07 Jan 2006 17:01
by SkeedR
it keeps changing my HP setting from 75 30-(30,000) to "u0" for some reason. Can you think of any reason why?

Posted: 07 Jan 2006 17:21
by Jezulkim
That's a grf codec feature, it converts hex codes to letters. 75 is hex code for "u" and 30 is "0"

Posted: 07 Jan 2006 23:59
by Patchman
And since both are exactly equivalent, it's nothing to worry about. Run grfcodec with the -t option if it bothers you.

Posted: 08 Jan 2006 00:34
by SkeedR
ok, another newbie question, how do iget it to make the grf from the nfo and pcx in \sprites when the grf needs to end up in \newgrf ?
(i'll be back on in around 8-12 hours)

Posted: 08 Jan 2006 00:50
by Flamelord
If you encode the GRF with GRFCodec by itself, it will stick the grf in the folder that grfcodec is in. Then you can just copy and paste it to the newgrf folder.

Posted: 08 Jan 2006 01:28
by Prof. Frink
Not entirely true - it'll put the .grf in the directory grfcodec is run from.

If you put the executables in C:\WINDOWS\System32 then you can run them from anywhere ;)

Posted: 08 Jan 2006 04:51
by Aegir
Prof. Frink wrote:Not entirely true - it'll put the .grf in the directory grfcodec is run from.

If you put the executables in C:\WINDOWS\System32 then you can run them from anywhere ;)
Or just add the directory to your PATH.