Forum

weird problem

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

weird problem

Postby revelator » Tue Jun 21, 2011 7:46 pm

still polishing my realm engine but im running into a rather strange bug.

normally it works just fine but if i load after the fall TC the executable just dies (no it does not crash it simply exits instantly).

since i cant hook up a debugger to it because it just exits im a bit lost to what can cause this.

maybe someone could have a look ?
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: weird problem

Postby Baker » Tue Jun 21, 2011 9:00 pm

reckless wrote:normally it works just fine but if i load after the fall TC the executable just dies (no it does not crash it simply exits instantly).


I'm assuming "the fall TC" is a mod or a map?

Answer: -condebug ! :D

I had an exit instantly situation, added -condebug and a few Con_Printf's and quickly pinpointed where the issue occurred. In my case, I had temporarily had a struct { ... } defined in 2 places differently after removing a variable.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby revelator » Tue Jun 21, 2011 9:19 pm

yup its a mod :) quite old to but still fun.

tried condebug to no avail look below for output.

Console initialized.
Winsock TCP/IP Initialized
WIPX_Init: Unable to open control socket
Exe: 19:16:43 Jun 21 2011
64.0 megabyte heap

Sound Initialization
Set primary sound buffer format: yes
Using secondary sound buffer
2 channel(s)
16 bits/sample
11025 bytes/sec
DirectSound initialized
Sound sampling rate: 11025
CDAudio_Init: No CD in player.
execing quake.rc
execing default.cfg
couldn't exec config.cfg
couldn't exec autoexec.cfg
3 demo(s) in loop
Playing demo from demo1.dem.

VERSION 1.08 SERVER (35442 CRC)
Clearing memory to 3.352 MB




Meet Your Beginning

kaboom closes with no data
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby Baker » Tue Jun 21, 2011 9:56 pm

Is the demo crashing it?

Add +startdemos to command line and it will not play the demos.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby metlslime » Tue Jun 21, 2011 10:55 pm

how about launching the exe from within the debugger?
metlslime
 
Posts: 316
Joined: Tue Feb 05, 2008 11:03 pm

Postby frag.machine » Wed Jun 22, 2011 12:32 am

Try to extract all files from the TC into a clean folder and start deleting the more likely culprits one by one until the game be able to start. This may give you some hint of what part of the engine is bombing out.
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 revelator » Wed Jun 22, 2011 1:41 am

how about launching the exe from within the debugger?


done and theres no crash recorded lol it simply exits.

tried the mod with tomazquake and no problems running it there so it seems to be related to something in my engine.

ill try and extract the paks.

btw its not the demos even loading a map directly from it causes it to bail.

hmm this is getting a bit strange
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby revelator » Wed Jun 22, 2011 1:50 am

unpacked the thing and the problem is the progs.dat something seems to be utterly fubar with it :S if i run it without the progs.dat it runs but a few things are out of whack
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby revelator » Wed Jun 22, 2011 11:09 pm

ouch well seems the bug is caused by aguires changes to gl_model.c and the vm. or well its probably not a bug with the code
but probably something with the qc functions making it go insane.

i can get it to run now but demos are squashed and theres some odd things with lightmaps ...
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby revelator » Sat Jun 25, 2011 12:40 am

hmm not only with lightmaps it seems, fullbrights also act up (there dark lol).

i suspect something qc related is either missing from aguires vm
or broken.

my TQX engine can run it with any problems but i havent touched the vm in that so all points to some problem in my engine.

only other problem i have atm is bastion (lava surfs are totally fubared) in the map with the huge lava surf i have lava everywhere even on the walls xD the funny thing is it works fine in other mods.
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest