SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion > Bug Reports > Bug Report Archive

Thread Tools Search this Thread
Old 12-28-2019   #1
Katmint's Avatar
Default Lua cannot access MFE_TOUCHLAVA

I've provided a sample script that's intended to kill the player when touching lava to ensure the fault is not on my end.
addHook("MobjThinker", function(lava)
    if (lava.player)
    and ( & MFE_TOUCHLAVA)
        P_KillMobj(lava, lava, lava)
If you change MFE_TOUCHLAVA to MFE_TOUCHWATER in the above script, it will kill the player on water contact. Currently it will error on map load since MFE_TOUCHLAVA is nil.

Last edited by Monster Iestyn; 12-30-2019 at 11:39 AM.
Katmint is offline  
Old 12-30-2019   #2
Monster Iestyn
Monster Iestyn's Avatar

It turns out that MFE_TOUCHLAVA being missing from the list of recognised MFE_ flags also resulted in MFE_PUSHED, MFE_SPRUNG and MFE_APPLYPMOMZ getting the wrong values in SOC/Lua. In addition, MFE_TRACERANGLE was also missing from the list.

A fix has been made for all of these bugs for 2.2.1.
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".
Monster Iestyn 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 08:42 PM.

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