Saving Custom variables on a dedicated server for Vandeason's Apocalypse player stats?

  1. 4 years ago

    @All: this year I gave the saving of custom variables a try (again!) but once more with no luck. I tried to execute the code from debug console running my mission on dedicated server. All the other ALIVE saving & loading operations work as desired. My intention is to save the variables/player stats from RAVAGE and Vandeason's Apocalypse and I used the code from the ALIVE WIKI for saving in local environment (saving set to local database). While each variant of the saving commands I executed returned "true" in the console window, none of the loading code variants had any effect. Hopefully someone here can give me directions on how to improve my code:

    ["hunger",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    _value = "hunger" call ALiVE_fnc_ProfileNameSpaceLoad;  
    
    ["thirst",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    _value = "thirst" call ALiVE_fnc_ProfileNameSpaceLoad;  
    
    ["radiation",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    _value = "radiation" call ALiVE_fnc_ProfileNameSpaceLoad;
     
    ["Vand_isbleeding",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    _value = "Vand_isbleeding" call ALiVE_fnc_ProfileNameSpaceLoad;  
    
    ["Vand_blood",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    _value = "Vand_blood" call ALiVE_fnc_ProfileNameSpaceLoad;  
    
    ["Vand_infected",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    _value = "Vand_infected" call ALiVE_fnc_ProfileNameSpaceLoad;  
    
    
    PACKAGE FOR SAVING TRIGGER OR DEBUG CONSOLE EXECUTION:
    
    ["hunger",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    ["thirst",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    ["radiation",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    ["Vand_isbleeding",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    ["Vand_blood",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    ["Vand_infected",_value] call ALiVE_fnc_ProfileNameSpaceSave;
    
    PACKAGE FOR SAVING NAMED VALUES TRIGGER OR DEBUG CONSOLE EXECUTION:
    
    ["hunger",_value_hunger] call ALiVE_fnc_ProfileNameSpaceSave;
    ["thirst",_value_thirst] call ALiVE_fnc_ProfileNameSpaceSave;
    ["radiation",_value_rads] call ALiVE_fnc_ProfileNameSpaceSave;
    ["Vand_isbleeding",_value_bleed] call ALiVE_fnc_ProfileNameSpaceSave;
    ["Vand_blood",_value_blood] call ALiVE_fnc_ProfileNameSpaceSave;
    ["Vand_infected",_value_infect] call ALiVE_fnc_ProfileNameSpaceSave;
    
    PACKAGE FOR LOADING SAVEGAME TRIGGER OR DEBUG CONSOLE EXECUTION:
    
    _value = "hunger" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = "thirst" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = "radiation" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = "Vand_isbleeding" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = "Vand_blood" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = "Vand_infected" call ALiVE_fnc_ProfileNameSpaceLoad;
    
    PACKAGE FOR LOADING NAMED VARS SAVEGAME TRIGGER OR DEBUG CONSOLE EXECUTION:
    
    _value_hunger = "hunger" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_thirst = "thirst" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_rads = "radiation" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_bleed = "Vand_isbleeding" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_blood = "Vand_blood" call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_infect = "Vand_infected" call ALiVE_fnc_ProfileNameSpaceLoad;
    
    ALTERNATIVE SYNTAX WITH [] PACKAGE FOR LOADING SAVEGAME TRIGGER OR DEBUG CONSOLE EXECUTION:
    
    _value = ["hunger"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = ["thirst"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = ["radiation"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = ["Vand_isbleeding"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = ["Vand_blood"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value = ["Vand_infected"] call ALiVE_fnc_ProfileNameSpaceLoad;
    
    OR
    
    _value_hunger = ["hunger"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_thirst = ["thirst"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_rads = ["radiation"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_bleed = ["Vand_isbleeding"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_blood = ["Vand_blood"] call ALiVE_fnc_ProfileNameSpaceLoad;
    _value_infect = ["Vand_infected"] call ALiVE_fnc_ProfileNameSpaceLoad;
    
      
 

or Sign Up to reply!