After some trial and error, I made some progress...
Basic gameplay with normal data files:
Basic gameplay with DOS version data files:
Keyboard controls behave strange, I can use X to cancel/skip, J to select, E to select all troops, ESC for menu and Enter for move down in the menus.
Also game locks the up the system when quitting the game.
With normal data files, it is not possible to display game menu, with DOS version it works.
Also if you watch the both videos until the end, you can see other problems that occurs (color palette problems, menu crashing with DOS data files but possible to ignore DSI e.t.c)
Also game locks the up the system when quitting the game.
Many games have bad exit code. On Linux, people only get core dump, so it’s not a major problem. I suggest using RS232 null modem cable, and use putty on PC. And use DebugPrintF function to write out pointer values as hex and file/function/line numbers. Maybe game tries to free something was not loaded, for example sound, free something twice, close library more then once. Or freeing something before all threads has stopped.
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
I know newlib will open console if none exists, clib2 might not do that. Simple fix use fprintf, maybe its in thread, or they somehow has disabled the output.
It seems MOS port does not have problems. MOS port is using noixemul switch in makefile. I do not know if this makes a change ?
Ixemul for morphos is just additional library where they have additional posix functions/includes, which we have inside of clib2 and newlib already. Probabaly, they follow the way to have ixemul still only because of "true old amiga way", as ixemul was born on classic amigas to expand those posix functions which "true amiga" didn't have. I mostly like the way how it done on amigaos4 : we do not have this ixemul crap, and have everything inside of clib2/newlib, so no needs for worry about things which you should't worry.
So to answer : if you see in any morphos makefile "-noixemul", for os4 you just remove it and that all.
Quote:
One general question: I added some printf in the sources,but I can not get any output in console?.
Another way to have printf as well, is add after prinf "fflush(stdout);".
Thanks to Bruno (BeWorld) he kindly shared his source code for VanillaConquer MorphOS port.
I also thank everyone on this thread for their help..Afxgroup for improving clib2..
After small changes, I finally got it working without OpenAL sound. I also can compile a sound enabled version, but it crashes when launching the game.
Is anybody using clib2 version of OpenAL 1.2.1 ? Newlib version of OpenAL on OS4 depot.net is 1.8.x
I'll share a video soon, and upload the game on Google Drive for testing.
P.S.: Is it ok to upload the game to OS4 Depot ? Will it make any copyright problems ?
it's most likely ok to upload to os4depot as long as you don't upload any datafiles (unless those are specifically in the public domain.
ixemul used to contain some code for fork(), vfork(), _fork(), unix signal handling and such..
but the switch is -noixemul which indicates that ixemul is not used, so the problem might not be with ixemul, but rather something perhaps with openAL, pthread (are you using psemaphore.lib too, it improves compatability with 'real' pthread?) on the amigaOS4 side.
and ixemul was not the prefered way on the old classic amiga, it was libnix
Nah... the Vampire version was most likely modded to bang hardware.
MorphOS and AmigaOS4.x has similar limitation when running on AmigaONE hardware, hardware bagging is not desired, nor needed. and it was bad idea to begin with. Sadly, Amiga500 and 1000 has too little ram and too slow CPU, they choose to make the OS as small as possible to compensate.
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
How to run the game faster: TD may run slow when you run in default SDL2 mode. Please change the driver to Default in SDL2Prefs. (found in SDL2 release on OS4Depot)