Code configuration for Dreamcast?

Started by KeiDash, October 18, 2017, 09:42:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KeiDash

Hi all,

I'm doing test with BennuGD and I have something working right now, very simple. I did a .cdi file witth BootDreams to try it in nullDC.

Let me say that my code it's very basic, a PRESS START text, a scroll background, a ship, movement keys and of course, shots.

When I execute the code in my PC works perfect and didn't show any error, but, when I throw the cdi file in nullDC, something wrong it's happening. nullDC shows the firs PRESS START message, but, when I press Start, the nullDC crashes and beging to show errors in console.

It's nesessary do something special in code for Dremcast?

Thanks

l1nk3rn3l


KeiDash

#2
It's working now, but something it's wrong.

Please, see de code here, maybe something it's wrong

The functionalities and the processes was executed correctly (I'm throwing "say" commands to follow the code) but the problems is that the fpg files was loaded but not showed. Maybe I'm doing something wrong with the screen configuration method?


Function SetSystemConfig()
Begin
    shootemGfx = load_fpg("/graphs/shootem.fpg");
    scale_mode = scale_normal2x;
    setConfigBySO(os_Id);
    set_fps(60,1);
define_region(1, 0, 0, 640, 480);

printDebug("SetSystemConfig", "Proceso ejecutado");

frame;
End

Function setConfigBySO(int osId)
Begin
switch(os_id)
case 0: //PC
set_mode(640,480,colors, mode_waitvsync);
printDebug("setConfigBySO", "PC");
end
case 1: //Linux
end
case 5: //Dreamcast
printDebug("setConfigBySO", "Dreamcast");
set_mode(640,480,colors, mode_waitvsync);
end
default:
printDebug("setConfigBySO", "Otro");
end
end
End


Thanks

l1nk3rn3l

send me test prg  for private message..

KeiDash

#4
Quote from: l1nk3rn3l on October 19, 2017, 02:58:45 PM
send me test prg  for private message..

Sent!  :D

EDITED:
I solved it, the problem was the mode of load the fpg files

if(os_Id == 5)
shootemGfx = load_fpg("/cd/graphs/shootem.fpg");
else
shootemGfx = load_fpg("/graphs/shootem.fpg");
End

Ryo Suzuki