SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > SRB2 Forum Archives > Bug Reports (2.1.X)

 
 
Thread Tools Search this Thread
Old 08-30-2014   #1
Sky The Destroyer
 
Sky The Destroyer's Avatar
Default When the Egg Mobile attacks after being spawned through SOC/Lua, the game crashes

Title.

This is easily reproducable with Terminal's spawnobject command and through a simple spawn code such as below.

Code:
COM_AddCommand("eggspawn", function(player)
    P_SpawnMobj(player.mo.x, player.mo.y, player.mo.z + player.mo.height*2, MT_EGGMOBILE)
end)
EDIT: It also crashes through SOC, but if you modify the Egg Mobile's states, it doesn't crash (like my customized Egg Mobile in one of my mods).
__________________
<SkyTheDestroyer> Why does the Master Server delist my server once it hits 32/32?
<SpiritCrusher> Your server has attained GOD STATUS
<SpiritCrusher> The MS can't display it anymore

Last edited by Monster Iestyn; 08-30-2014 at 11:07 AM.
Sky The Destroyer is offline  
Old 08-30-2014   #2
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

...aha, I can see EXACTLY what's up here! A_Boss1Laser incorrectly assumes actor->spawnpoint will always exist, so when it tries to access actor->spawnpoint->options (to check if the Ambush flag is set) when actor->spawnpoint is NULL (aka nil), BAM the game crashes.
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record. Also, it's pronounced "Yes-tin".

Last edited by Monster Iestyn; 08-30-2014 at 11:08 AM.
Monster Iestyn is offline  
Old 08-30-2014   #3
Katmint
Default

That finally explains why I could never manage to get the laser action to not crash the game.
Katmint is offline  
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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. The time now is 05:10 PM.


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