Page MenuHomeFeedback Tracker

missionProfileNamespace not automatically saved on leaving the game/server
Feedback, NormalPublic

Description

MissionProfileNamespace doesn't save automatically on leaving a game/server like profileNamespace does.

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

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

ElRabito created this task.Jul 22 2024, 2:26 PM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedJul 22 2024, 2:34 PM

It does not save by itself, you need to run saveMissionProfileNamespace https://community.bistudio.com/wiki/saveMissionProfileNamespace

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

dedmen added a subscriber: dedmen.Jul 24 2024, 12:32 PM

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.

Maybe we can just detect and only save on exit, if the file is already there.

That would be already enough i guess. Thanks for the info!

dedmen changed the task status from New to Feedback.Aug 5 2024, 12:52 PM