View Issue Details

IDProjectCategoryView StatusLast Update
0000490Gameplay + OpenGL[All Projects] Bugpublic2017-03-30 03:04
ReporterMinigunner 
Assigned ToGraf Zahl 
PrioritynormalSeverityminorReproducibilityrandom
Status resolvedResolutionno change required 
Summary0000490: Attempts to directly set a player actor as a monster's pointer results in "Read from Address Zero" or even crashes
DescriptionI've been attempting to have a friendly monster (in the case of the attached file, scripted marine) set an Actor variable to its friend player, yet trying to do anything with it has either led to "Read from Address Zero" errors, regular crashes, or silent crashes.
Steps To Reproduce
int fpnum = friendplayer - 1;
if(fpnum != -1) { Actor afriendplayer = players[fpnum].mo; }
else { <failure code> }


Doing anything with afriendplayer, such as setting it as the monster's target, results in random, unsolvable (on my end) cases of errors or even crashes. I still have a strong belief that it may be my code, but I'm in a block and have no clue what could result in this.
TagsNo tags attached.

Relationships

Activities

Minigunner

Minigunner

2017-03-26 22:59

reporter  

ZScriptedMarines.pk3 (5,585 bytes)
Graf Zahl

Graf Zahl

2017-03-28 14:55

administrator   ~0001137

Can't say. I never got it to crash.
Minigunner

Minigunner

2017-03-29 21:49

reporter   ~0001181

Hmm, I'll probably have to provoke a reportable crash in order to get anything out of it.
_mental_

_mental_

2017-03-30 02:30

developer   ~0001182

I'm running Doom II with the following command line:
-iwad doom2 +map map01 -file ZScriptedMarines.pk3 +summonfriend ZMarineShotgun

After scripted marine kills two zombiemen there will be no enemies in sight and the game will crash because of stack overflow. It is caused by infinite switch of states: idle -> see -> idle -> see -> ...
Although I cannot say for sure that it's the same crash you mentioned.
Graf Zahl

Graf Zahl

2017-03-30 03:03

administrator   ~0001183

Neither can I. But this is almost certainly some programming error and you are likely to get better feedback in the Editing forum, because most people never come here.

Issue History

Date Modified Username Field Change
2017-03-26 22:59 Minigunner New Issue
2017-03-26 22:59 Minigunner File Added: ZScriptedMarines.pk3
2017-03-28 14:55 Graf Zahl Note Added: 0001137
2017-03-28 15:57 Graf Zahl Assigned To => Graf Zahl
2017-03-28 15:57 Graf Zahl Status new => feedback
2017-03-29 21:49 Minigunner Note Added: 0001181
2017-03-29 21:49 Minigunner Status feedback => assigned
2017-03-30 02:30 _mental_ Note Added: 0001182
2017-03-30 03:03 Graf Zahl Note Added: 0001183
2017-03-30 03:04 Graf Zahl Status assigned => resolved
2017-03-30 03:04 Graf Zahl Resolution open => no change required