Fixed [2.1.20] [Lua] Assigning a cvar three times crashes the game

Status
Not open for further replies.

amperbee

thunderdome denizen
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.
 

Attachments

  • errorlog.txt
    9.8 KB · Views: 476
  • srb2win_rpt.txt
    1.2 KB · Views: 440
  • CVARbug.lua
    264 bytes · Views: 353
Last edited by a moderator:
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.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top