dealing with matrices (arrays)
Moderator: Stef
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: dealing with matrices (arrays)
Having a newer java should not be a problem, at worst java is not found and so the resource is not compressed (same as NONE).
What may have happened is that you're using an intermediate SGDK version (grabing changes from the github repository) and so having a broken resource compiler. Note that the new rescomp is fully in java now.
What may have happened is that you're using an intermediate SGDK version (grabing changes from the github repository) and so having a broken resource compiler. Note that the new rescomp is fully in java now.
Re: dealing with matrices (arrays)
To avoid any troubles, as the game is working again, when I finish this game, I will reinstall SGDK with the new version.Stef wrote: ↑Thu Apr 18, 2019 8:04 amHaving a newer java should not be a problem, at worst java is not found and so the resource is not compressed (same as NONE).
What may have happened is that you're using an intermediate SGDK version (grabing changes from the github repository) and so having a broken resource compiler. Note that the new rescomp is fully in java now.
One thing that happens is that before it took 2 minutes to "rebuild" the game (I am using codeblocks), now it takes about 5 minutes.
Thanks, Stef.
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: dealing with matrices (arrays)
The new resource compiler might be even slower (due to the sprite cutting operation and the improved LZ4W compression) but i plan to improve that
Re: dealing with matrices (arrays)
I am using the old one that I downloaded july 2018. I downloaded today from github, but didnt succeed to build the ROM, got some troubles with sprite resources, saying that sprite.s is missing or something like that. when I finish the game, is almost done, I will see if I make new SGDK to work properly.
Re: dealing with matrices (arrays)
still dont get how to use this new version of SGDK.
only errors, it doesnt compile the ROM.
I have the sprite.res file and there is one item called personagem1, then I get the error "personagem1 doenst exist". I go to sprite.res and change orders of just one entry, and then it compile but I get a error and the rom is not made.
there is no function called "personagem1", it is a sprite. also I got lots of errors related to all sprites and backgrounds and sounds.
any clue how to correct it?
only errors, it doesnt compile the ROM.
I have the sprite.res file and there is one item called personagem1, then I get the error "personagem1 doenst exist". I go to sprite.res and change orders of just one entry, and then it compile but I get a error and the rom is not made.
Code: Select all
out/res/sprite.o: In function `personagem1':
(.rodata+0xde1c): multiple definition of `personagem1'
out/res/sprite.o:(.rodata+0xde1c): first defined here
make.exe: *** [out/rom.out] Error 1
Process terminated with status 2 (1 minute(s), 21 second(s))
0 error(s), 0 warning(s) (1 minute(s), 21 second(s))
any clue how to correct it?
Code: Select all
||=== Build: default in IRMAOS ARATU (compiler: SEGA MEGA DRIVE COMPILER) ===|
out\res\gfx.o||In function `fase0A':|
out\res\gfx.o||In function `fase1A':|
out\res\gfx.o||In function `mapa_imageB':|
out\res\gfx.o||In function `fonteOk':|
out\res\gfx.o||In function `tela1A':|
out\res\gfx.o||In function `tela1B':|
out\res\gfx.o||In function `tela1Afinal':|
out\res\sound.o||In function `musica':|
out\res\sound.o||In function `snd_perdeu':|
out\res\sprite.o||In function `personagem1':|
out\res\sprite.o||In function `estrelaFX':|
out\res\sprite.o||In function `caveira':|
out\res\sprite.o||In function `caveiraChao':|
out\res\sprite.o||In function `caveiraVoa':|
out\res\sprite.o||In function `fogoCaveira':|
out\res\sprite.o||In function `caveiraVoa2':|
out\res\sprite.o||In function `semcabeca':|
out\res\sprite.o||In function `mula':|
out\res\sprite.o||In function `mao':|
||=== Build failed: 0 error(s), 0 warning(s) (0 minute(s), 7 second(s)) ===|
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: dealing with matrices (arrays)
You probably have a sprite.s file (generated from rescomp) that wasn't properly cleaned by make.
Do a full rebuild (clean / build) or remove manually the sprite.s file before recompiling your project.
Do a full rebuild (clean / build) or remove manually the sprite.s file before recompiling your project.
Re: dealing with matrices (arrays)
thanks, stef. it compiled the rom, but I am still getting some troubles.
I have 2 players, they almost look the same (one wears glasses, the other doesnt). one of them (one file), it reads all frames animations. but the other file it get stuck in the last frame of first animation.
also, the background is not displaying when I use VDP_setMapEx.
next week, when I get more patience, I will give another try.
I have 2 players, they almost look the same (one wears glasses, the other doesnt). one of them (one file), it reads all frames animations. but the other file it get stuck in the last frame of first animation.
also, the background is not displaying when I use VDP_setMapEx.
next week, when I get more patience, I will give another try.
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: dealing with matrices (arrays)
There is many changes in the last SGDK and it's still experimental (it's why i didn't yet made an official release of it).
Be sure that your SGDK is up to date and that you rebuild the library from last sources yourself, if that is not the case you may experiences issues.
Be sure that your SGDK is up to date and that you rebuild the library from last sources yourself, if that is not the case you may experiences issues.