SRB2 Message Board  

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

 
 
Thread Tools Search this Thread
Old 07-24-2017   #1
Rapidgame7
Rookie modder
 
Rapidgame7's Avatar
Default [2.1.20] [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, 326 views)
File Type: txt srb2win_rpt.txt (1.2 KB, 315 views)
File Type: lua CVARbug.lua (264 Bytes, 244 views)
__________________
Ever tried to start a project until you find out it's too complicated then you abandon it

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
Moderator
 
Monster Iestyn's Avatar
Default

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.
__________________
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 online now  
Old 08-16-2017   #3
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

A fix was made by JTE, which has been merged to the "next" branch.
__________________
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 online now  
 
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 07:24 PM.


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