Fermer2
TonmaLe 09/10/2018 à 16:40
Hi,
I start some tests to create a game on NeoGeo CD and before starting the development, I wish to test specific hardware features.

I can play CD audio wav files (in raine emulator) and the graphic part works too.


I wish to load all sprites at the beginning and only load a different .SPR for the background every level.

In the "IPL.TXT" I have a demo.spr (135ko) and demo2.spr (35ko). I wish to put the second file in the start of the bank 3 (name, num bank, start offset of the bank) but the NeoGeoCd doesn't like it and show me an error message DISC I/O error ID = 0000
Without the line demo2.spr,3,0, the game run but with a blank square instead of the sprite (because it didn't load)

DEMO.FIX,0,0 DEMO.Z80,0,0 DEMO.PCM,0,0 DEMO.SPR,0,0 DEMO2.SPR,3,0 TEST.PRG,0,0
I use buildchar file to create demo.spr :
<?xml version="1.0" encoding="UTF-8"?> <chardata> <setup> <starting_tile>256</starting_tile> <charfile>out\char.bin</charfile> <mapfile>out\charMaps.s</mapfile> <palfile>out\charPals.s</palfile> <incfile>out\charInclude.h</incfile> <incprefix>../</incprefix> </setup> <pict id="monstre"> <file>gfx\monstre.png</file> <flips>xyz</flips> </pict> <pict id="bg_001"> <file>gfx\lb2.png</file> </pict> <pict id="girl3"> <file>gfx\girl_3.png</file> <flips>xyz</flips> </pict> </chardata>
and demo2.spr :
<?xml version="1.0" encoding="UTF-8"?> <chardata> <setup> <starting_tile>0</starting_tile> <charfile>out\char2.bin</charfile> <mapfile>out\charMaps2.s</mapfile> <palfile>out\charPals2.s</palfile> <incfile>out\charInclude2.h</incfile> <incprefix>../</incprefix> </setup> <pict id="girl4"> <file>gfx\girl_4.png</file> <flips>xyz</flips> </pict> </chardata>