[0.4.2] [CON] 'savegamevar' saves var at strange position

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Posts: 45
Joined: Sat Mar 02, 2019 12:46 am

[0.4.2] [CON] 'savegamevar' saves var at strange position

Post by Gammli »

eduke32's CON language allows the player to store gamevars in the 'eduke32.cfg' file using the command 'savegamevar', and it can be read using the corresponding 'readgamevar' command.

This works in Raze, however instead of storing it in a separate section, the variable is instead dumped right into the

Code: Select all

section of the raze.ini, which makes me believe something is going wrong here.

Furthermore, I think it would be sensible for gamevars to be stored in a separate file entirely. I never liked eduke32's way of doing this, as it conflates game progress and settings into the same file, in a place where most users wouldn't expect it.
The attached CON file demonstrates this issue. The variable is stored as soon as the game is done initializing.
You do not have the required permissions to view the files attached to this post.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48320
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.2] [CON] 'savegamevar' saves var at strange positio

Post by Graf Zahl »

Fortunately just a minor oversight. The section to hold these variables was never created so it got stored in the last active one.

Return to “Closed Bugs [Raze]”