SRB2 Message Board  

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

Closed Thread
Thread Tools Search this Thread
Old 07-24-2017   #1
pressure pressure pressure
Rapidgame7's Avatar
Default [Lua] Assigning a cvar three times crashes the game

That's basically it.

Loading, via -file, a Lua script (or a WAD with a Lua script) that tries to define the same CVar three times makes the game crash.
Also it has deleted my config.cfg file everytime it crashes this way.

If the script were to assign it twice, the game seems to become unstable, and with that I mean if has a chance to crash while loading or when quitting the game.

Loading it via "addfile" doesn't seem to have any adverse effects.

I've attached the error log, the RPT file as a TXT, and a Lua script reproducing the bug.
The logs correspond to the crash with three CVars.
Attached Files
File Type: txt errorlog.txt (9.8 KB, 80 views)
File Type: txt srb2win_rpt.txt (1.2 KB, 75 views)
File Type: lua CVARbug.lua (264 Bytes, 65 views)
<Steel Titanium> so many eggman laughs
<Rapidgame7> hehehe HEHE HEhEhe

Last edited by Monster Iestyn; 08-16-2017 at 07:16 PM. Reason: text
Rapidgame7 is offline  
Old 07-26-2017   #2
Monster Iestyn
Friendly Neighbour-Hood
Monster Iestyn's Avatar

It gets worse when you try to addfile the script in question, apparently it can even wreck your config.cfg (it can crash in the middle of saving it, resulting it becoming blank), making the game reset all the convars and controls to their defaults.

Lucky I had a backup config.cfg myself when that happened while testing this. Just a warning for anyone else who tries to debug this.
Monster Iestyn is offline  
Old 08-16-2017   #3
Monster Iestyn
Friendly Neighbour-Hood
Monster Iestyn's Avatar

A fix was made by JTE, which has been merged to the "next" branch.
Monster Iestyn is offline  
Closed Thread
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 01:11 PM.

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