MissionProfileNamespace doesn't save automatically on leaving a game/server like profileNamespace does.
Description
Details
- Severity
- Feature
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
Set variable
missionProfileNamespace setVariable ["SaveTestVariable","TestValue"];
Leave the game/round and start/join again and try to read the variable.
missionProfileNamespace getVariable ["SaveTestVariable",""];
Event Timeline
It does not save by itself, you need to run saveMissionProfileNamespace https://community.bistudio.com/wiki/saveMissionProfileNamespace
Dedmen (ง •̀_•́)ง — today at 14:00
Looks like a bug.
The save call at game shutdown was missed. Ticket.
It looks like a bug in the code thats correct but intentionally left out from autosaving so that it only saves when you request it. It autoloads when exists though. It has been explained on wiki
We do not want to spam empty/unused namespace files on every game shutdown. That's why it only saves if you manually save.
Though. It would expect that after the first manual save, we consider it "enabled" and also save on shutdown. Because the file is already there anyways, so we wouldn't spam unused files in that case.
Maybe we can just detect and only save on exit, if the file is already there.