Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Members List Social Groups Calendar Mark Forums Read

Notices

 
 
Thread Tools
Old 10-17-2007, 05:41 AM   #1
Bloodclaw
Eduke32 : crash caused by bad CON files
Hi!
I'm new to the forums, I'm making a new gamemode for Duke3D (eduke32), but I get an error now :
When I start a game, everything go well, but when I start another game, the game crash, saying an error at "0x7c920f29", and "Memory could not be read".
It also crash when I quit the game.

Here a part of the log, where the crash happen :

Code:
(...)  - CCache time: 30ms
SetGameVarID(): invalid player (-1) for per-player gamevar SURVIVALKILLS from sprite -1 (-1), player -1
SetGameVarID(): invalid player (-1) for per-player gamevar ISANALIEN from sprite -1 (-1), player -1
SetGameVarID(): invalid player (-1) for per-player gamevar  from sprite -1 (-1), player -1
SetGameVarID(): invalid player (-1) for per-player gamevar CLASSCHOOSEN from sprite -1 (-1), player -1
SetGameVarID(): invalid player (-1) for per-player gamevar ADDEDWEAPON from sprite -1 (-1), player -1
E5L1: AS - DOCKS
BLOODCLAW HAS CALLED A VOTE TO CHANGE MAP Fatal Signal caught: SIGSEGV. Bailing out.
Uninitialising DirectDraw... (...)

And here the download link for the mod : http://bloodclaw7.titaniumpak.google.../d3d_ASmod.zip

I think there is something bad in the "AS.CON", but I didn't find anything.


Thanks for any reply
Bloodclaw is offline  
Old 10-17-2007, 11:20 AM   #2
TerminX

TerminX's Avatar
...
I don't find your original thread title to be a proper description of your problem, so I've taken the liberty of changing it to something more accurate. You might want to brush up on your gamevar usage... the mere fact that you have errors dumped to the console during the game should tell you that you're doing something wrong.
Last edited by TerminX; 10-17-2007 at 11:51 AM.
TerminX is offline  
Old 10-17-2007, 12:25 PM   #3
DeeperThought

DeeperThought's Avatar
Re: Eduke32 : crash caused by bad CON files
IIRC you can get that "invalid player" error message if you set a per-player var in EVENT_ENTERLEVEL without specifying which player it belongs to (i.e. using setvar ). Try creating an initialization state called from the APLAYER code that resets the vars. The var errors may have nothing to do with the crash, though.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 10-17-2007, 01:20 PM   #4
Xavier

Xavier's Avatar
Re: Eduke32 : crash caused by bad CON files
OpenAL strikes again "Fatal Signal caught: SIGSEGV. Bailing out."

I always hated openal, since ive worked with it before, back then [and maybe still] there was a hardcoded cap for like maxvoices at like 16 or so... dunno if thats still there, but seems like it. Cause ogg ingame music stops sometimes when not too many sounds play, and openal ignores the maxvoice limit set in .cfg...

Im getting carried away anyways, once a few days ago i got getting 'Fatal Signal caught: SIGSEGV. Bailing out.' and it did it everytime i started duke it would crash with that.
I just rebooted and it stopped, havent seen it since, dont know what causes it wasnt in other games i messed with though, try rebooting hope it works .

Im sure thats why it crashes but yeah, theres alot of var con errors there im not much into that .con stuff though.
__________________
DNX - My Multiplayer HRP...
Xavier is offline  
Old 10-17-2007, 10:09 PM   #5
Mblackwell

Mblackwell's Avatar
Re: Eduke32 : crash caused by bad CON files
Then why are you posting in this thread, and posting completely incorrect and unrelated information as well?
__________________
I don't wanna be like other people are
Don't wanna own a key, don't wanna wash my car
Don't wanna have to work like other people do
I want it to be free, I want it to be true

Eduke32.com : The Rejected Applications : The Meadhall of the Comitatus
Mblackwell is offline  
Old 10-18-2007, 03:54 AM   #6
Xavier

Xavier's Avatar
Re: Eduke32 : crash caused by bad CON files
Did you read the log the guy posted, it crashed at the end with "Fatal Signal caught: SIGSEGV. Bailing out." , that so far as i can tell only happens with the new music eduke32.exe and OpenAL.
__________________
DNX - My Multiplayer HRP...
Xavier is offline  
Old 10-18-2007, 05:05 AM   #7
Hunter_rus

Hunter_rus's Avatar
Re: Eduke32 : crash caused by bad CON files
About "Fatal Signal caught: SIGSEGV. Bailing out."
This happens when a program is trying to read/write something to wrong memory location. There may be many reasons of that message.

About the crash.
Here is a bug in CON(OpenAL has nothing to do with this crash).
To fix the crash:
Code:
gamevar TEMP 0 3
gamevar TEMP 0 1
You'd better not use the TEMP variable as storage and make it global.
But it seems it doesn't work properly anyway because of wrong usage of the variables. See DeeperThought's post(Don't use peractor variables in the events[for exception EVENT_GAME, etc]).
Last edited by Hunter_rus; 10-18-2007 at 09:46 AM. Reason: fixed some mistakes
Hunter_rus is offline  
Old 10-18-2007, 07:06 AM   #8
Bloodclaw
Re: Eduke32 : crash caused by bad CON files
Thank for your replys, I will fix everything soon.





The crash was because of the TEMP var (thanks to Hunter_rus) with a flag of 3 (that should be per-player + per-actor variable, but the player is an actor, so instead of 3 it must be a 2)
Last edited by Bloodclaw; 10-18-2007 at 07:13 AM.
Bloodclaw is offline  
Old 10-18-2007, 02:20 PM   #9
TerminX

TerminX's Avatar
Re: Eduke32 : crash caused by bad CON files
Ha, yeah, that would do it... a var is either per-player OR per-actor, not both.
TerminX is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:07 PM.

Page generated in 0.20660901 seconds (100.00% PHP - 0% MySQL) with 18 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.

Website is 1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.