Forum

Frikqcc problems?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Frikqcc problems?

Postby metlslime » Mon Nov 22, 2010 11:32 am

I'm using Frikqcc 2.7, which seems to be the latest. Basically, i have intermittent problems where if i compile the code and run a map (any map), the command will fail with a message like these:

"couldn't spawn server maps/sub_checkrefire.bsp"
"couldn't spawn server maps/ftos.bsp"
"couldn't spawn server maps/testplayerstart.bsp"

Making additional code changes and recompiling will usually fix it, but then it comes up again in the future.

On a hunch i put a call to runerror() in GotoNextMap (the only place in the source that calls "changelevel", and it produces this call stack:

GotoNextMap
ExitIntermission
ClientConnect

I put in a dprint to see the value of intermission_running when ClientConnect is called, and the value appears to be "-60"... and the value of "nextmap" appears to be "sub_checkrefire" -- so that explains the symptoms, but what would explain these garbage values?

Anyone see problems like this before or know what causes them? At the moment, i am back to things working again, but it would be nice not to be at the mercy of things magically breaking and fixing themseves.
metlslime
 
Posts: 316
Joined: Tue Feb 05, 2008 11:03 pm

Postby frag.machine » Mon Nov 22, 2010 11:36 am

Smells like globals area corruption, maybe due some compiler optimization.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby Spike » Mon Nov 22, 2010 12:45 pm

make sure numpr_globals doesn't exceed 32k.
Not only do most engines not support that, but I remember frikqcc having a bug in that area, but that might have been version 2.6.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby metlslime » Mon Nov 22, 2010 8:15 pm

Spike wrote:make sure numpr_globals doesn't exceed 32k.
Not only do most engines not support that, but I remember frikqcc having a bug in that area, but that might have been version 2.6.


Thanks, i'll check that out.
metlslime
 
Posts: 316
Joined: Tue Feb 05, 2008 11:03 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest