After thilo has fixed compile errors on Mac Os X snow Leopard, there are still issues on running ioquake3:
Starting it loads intro fine but then console show up (before seeing menu) and start printing a crazing amount of this errors:
UI_SetActiveMenu: bad enum 21340672
vid_restart doesn't work, but quit it exit ioquake3 fine.
This could be related to gcc, see this link:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37281
Should note that gcc boundled with xcode4 is version 4.2
(In reply to comment #1)
> I need shell access to an account where I can reproduce this or nothing will
> happen on this bug for a long time.
Ok, ssh login set up, contact me:
pez dot marcello at hotmail dot it
I will give you credentials and my IP (which is dinamic)
I have looked through the code and this is what i have found (not much really, but hope it will be helpfull):
UI_SetActiveMenu is called in code/q3_ui/ui_main.c:
/*
================
vmMain
This is the only way control passes into the module.
This must be the very first function compiled into the .qvm file
================
*/
Q_EXPORT intptr_t vmMain( int command, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10, int arg11 ) {
switch ( command ) {
case UI_GETAPIVERSION:
return UI_API_VERSION;
case UI_INIT:
UI_Init();
return 0;
...
case UI_SET_ACTIVE_MENU:
UI_SetActiveMenu( arg0 );
return 0;
case UI_CONSOLE_COMMAND:
return UI_ConsoleCommand(arg0);
...
return -1;
}
So the problem here it's arg0 which is out of bound of enumeration (which one, i don't know), where does vmMain is called? what is arg0?
I have looked through the code and this is what i have found (not much really, but hope it will be helpfull): UI_SetActiveMenu is called in code/q3_ui/ui_main.c: /* ================ vmMain This is the only way control passes into the module. This must be the very first function compiled into the .qvm file ================ */ Q_EXPORT intptr_t vmMain( int command, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10, int arg11 ) { switch ( command ) { case UI_GETAPIVERSION: return UI_API_VERSION; case UI_INIT: UI_Init(); return 0; ... case UI_SET_ACTIVE_MENU: UI_SetActiveMenu( arg0 ); return 0; case UI_CONSOLE_COMMAND: return UI_ConsoleCommand(arg0); ... return -1; } So the problem here it's arg0 which is out of bound of enumeration (which one, i don't know), where does vmMain is called? what is arg0?