Page 1 of 1

Digitalfox NFO Questions!

Posted: 26 Dec 2014 20:06
by Digitalfox
I'm sure this is a just some silly typo I'm doing, but I have successfully converted ISR 1.0.1 source to GRFv32 (It loads fine) and now I'm trying to add the 32bpp sprites but NFORENUM gives no warning or error and GRF codec compiles it but doesn't load the 32bpp png's ?(

The start:

Code: Select all

// Automatically generated by GRFCODEC. Do not modify!
// (Info version 32)
// Escapes: 2+ 2- 2< 2> 2u< 2u> 2/ 2% 2u/ 2u% 2* 2& 2| 2^ 2sto = 2s 2rst = 2r 2psto 2ror = 2rot 2cmp 2ucmp 2<< 2u>> 2>>
// Escapes: 71 70 7= 7! 7< 7> 7G 7g 7gG 7GG 7gg 7c 7C
// Escapes: D= = DR D+ = DF D- = DC Du* = DM D* = DnF Du<< = DnC D<< = DO D& D| Du/ D/ Du% D%
// Format: spritenum imagefile depth xpos ypos xsize ysize xrel yrel zoom flags
    0 * 4	 7E 0C 00 00


 //Initial Configuration
    1 * 32	 14
    "C" "INFO"
		"B" "PALS" \w1 "W" 
		"B" "BLTR" \w1 "3"
		"B" "NPAR" \w1 \b0 //Lock Parameters button
		00
	00

	//Name of GRF and Description
    2 * 68	 08 07 "JC" 00 02 "Industrial Stations Renewal 1.0.1" 00 "Industrial Stations Renewal" 00
A sprite for example:

Code: Select all

39 * 4	 01 04 01 01
   40 graphics/isr_8bpp.png  8bpp  658    8   64   31  -31    0 normal // non-track ground level tile
    | graphics/isr_32bpp_00.png 32bpp   18    8  259  129 -129   -2 zi4
Where am I messing this? :bow:

Re: Digitalfox NFO Questions!

Posted: 27 Dec 2014 00:34
by Eddy Arfik
When compiling 32bpp GRFs with GRFCodec you need to add the -g 2 parameter to the command line, otherwise it will ignore the 32bpp sprites

Re: Digitalfox NFO Questions!

Posted: 27 Dec 2014 15:17
by Digitalfox
Eddy Arfik wrote:When compiling 32bpp GRFs with GRFCodec you need to add the -g 2 parameter to the command line, otherwise it will ignore the 32bpp sprites
Awesome Eddy :bow:

To be honest I looked everywhere for info if anything was also needed, but after I added ("B" "BLTR" \w1 "3") I thought there was no reasons for it not to load the 32bpp graphics!

Also I did see "-g <num> Version of the encoded container format (default 1, maximum 2)", but I assumed this was for debugging or something, since it was already at GRFv32 with the blitter!

Not that I really need it now, since it's working, but is there a page at the wiki with this info that maybe in future can help people who read this topic?

Re: Digitalfox NFO Questions!

Posted: 28 Dec 2014 02:30
by Eddy Arfik
Information about GRF container versions http://newgrf-specs.tt-wiki.net/wiki/Ve ... er_version