Something goes wrong when saving/loading missionConfigFile classes in array and trying to do + copy
Description
Details
- Severity
- Crash
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
Step 1) Start the mission and run this code from the console:
_testCfg = missionconfigfile >> "CfgSavingTest" >> "InnerClass"; profilenamespace setVariable ["cfgTestSave",[123,_testCfg]]; saveprofilenamespace;
Step 2) Exit mission to the editor
Step 3) Start the mission again
Finally) Run this code from the console:
_load = (profilenamespace getVariable "cfgTestSave"); _data = +_load; // This line crashes arma
Event Timeline
rev 148073
Also, what you are doing makes no sense, I mean saving mission config in profile namespace, same as saving display for use later. Mission config exists only while mission is running. New mission, new config instance. On top profile namespace is serialized and loaded on game start. way before any mission is started, so mission config saved to profile namespace will give you exactly nothing after you left mission.
Yes this is the understanding which I also had. I faced this problem when making a savegame in the profileNamespace and it crashed on load because of the reference to mission config class (which I wanted to save for further use). So I fixed it by removing the reference. But I decided to still report this because of the crashing.
So it's fixed now?