Skip to content

Commit 6bbd618

Browse files
committed
Changed namespace
1 parent 1f1f8dc commit 6bbd618

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

Persistent/Core/fn_loadData.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ if (typeName _key == "STRING") then
2121
{
2222
_loadKey = _key;
2323
_keyToFind = format ["%1.%2.%3", Persistent_SavePrefix, _slot, _loadKey];
24-
_returnData = profileNamespace getVariable _keyToFind;
24+
_returnData = missionProfileNamespace getVariable _keyToFind;
2525
};
2626
if (typeName _key == "ARRAY") then
2727
{
2828
_loadKey = _key # 0;
2929
_default = _key # 1;
3030
_keyToFind = format ["%1.%2.%3", Persistent_SavePrefix, _slot, _loadKey];
31-
_returnData = profileNamespace getVariable [_keyToFind, _default];
31+
_returnData = missionProfileNamespace getVariable [_keyToFind, _default];
3232
};
3333

3434
[PersistentDebug, "loadData", format ["Key %1 loaded.", _key, _slot], false] call F90_fnc_debug;

Persistent/Core/fn_saveData.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222

2323
params ["_key", "_value", "_slot"];
2424

25-
profileNamespace setVariable [format ["%1.%2.%3", Persistent_SavePrefix, _slot, _key], _value];
25+
missionProfileNamespace setVariable [format ["%1.%2.%3", Persistent_SavePrefix, _slot, _key], _value];
2626

2727
[PersistentDebug, "saveData", format["Data saved to %1.%2.%3", Persistent_SavePrefix, _slot, _key],false] call F90_fnc_debug;

Persistent/Functions/fn_configurePersistent.sqf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ Persistent_Host = player; // can be your player name or just player
2121
Persistent_SavePrefix = "F90_ARMAPERSCORE"; // The script will find saves from file by using this prefix
2222
Persistent_SaveIntervals = 600; // This does nothing for now
2323

24+
// Add anything to save here
25+
Persistent_VehiclesToSave = [];
26+
Persistent_ContainersToSave = [];
27+
2428
configurePersistentDone = true; // do not change this
2529
[PersistentDebug, "configurePersistent", format ["Done configuring %1.", Scenario_Name], true] call F90_fnc_debug;

Persistent/PersistentInit.sqf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ configurePersistentDone = false;
33
[] call F90_fnc_configurePersistent;
44
waitUntil {configurePersistentDone};
55

6-
// Add anything to save here
7-
Persistent_VehiclesToSave = [];
8-
Persistent_ContainersToSave = [];
9-
106
Persistent_DefaultSlots = ["Empty Slot"];
7+
118
//Keys
129
Persistent_PersistentListKey = Scenario_Name + "_PersistentList";
1310
Persistent_VehicleIDKey = "Save_QueueID";

Persistent/Save/fn_saveGame.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ params ["_slot"];
1010
[_slot] call F90_fnc_saveEnvironment;
1111
[_slot] call F90_fnc_saveMapMarkers;
1212

13-
saveProfileNamespace;
13+
saveMissionProfileNamespace;
1414
[PersistentDebug, "saveGame", format ["Done saving progress into slot %1", _slot], true] call F90_fnc_debug;

mission.sqm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class EditorData
1717
class Camera
1818
{
1919
pos[]={4011.0095,24.177502,1799.5566};
20-
dir[]={-0.67139679,-0.73744261,0.073721066};
21-
up[]={-0.73303854,0.67541426,0.080489747};
22-
aside[]={0.10914749,-2.5278132e-007,0.99403793};
20+
dir[]={-0.83179766,-0.55414027,-0.032270528};
21+
up[]={-0.55372375,0.83242327,-0.021482337};
22+
aside[]={-0.038766965,0,0.99924839};
2323
};
2424
};
2525
binarizationWanted=0;

0 commit comments

Comments
 (0)