Objectlifetime

  • Offline LouD
  • Silent but deadly ;)
  • Moderator
  • Veteran
  • ******
  • Posts: 1415

Objectlifetime

« posted: Dec 06, 2014, 01:52 PM »
I could use anyones input here.

We have the below persistence settings on our server. In my belief this means that objects (baseparts, crates, spawnbeacons) stay on the server for 5 days if saved. If unlocked and resaved do they stay 5 new days? Or do they still despawn after 5 days?
I have people complaining on our server that their crates, baseparts and even spawn beacons dissapear even if resaved. They even dissapear overnight (not stolen).

Code: [Select]
// Persistence settings
A3W_playerSaving = 1;              // Save player data like position, health, inventory, etc. (0 = no, 1 = yes)
A3W_moneySaving = 1;               // If playerSaving = 1, save player money amount (0 = no, 1 = yes)
A3W_combatAbortDelay = 60;         // If playerSaving = 1, delay in seconds for which to disable abort and respawn buttons after firing or being shot (0 = none)
A3W_purchasedVehicleSaving = 1;    // Save vehicles purchased at vehicle stores between server restarts (0 = no, 1 = yes)
A3W_missionVehicleSaving = 1;      // Save vehicles captured from missions between server restarts (0 = no, 1 = yes)
A3W_baseSaving = 1;                // Save locked base parts between server restarts (0 = no, 1 = yes)
A3W_boxSaving = 1;                 // Save locked weapon crates and their contents between server restarts (0 = no, 1 = yes)
A3W_staticWeaponSaving = 1;        // Save locked static weapons and their magazines between server restarts (0 = no, 1 = yes)
A3W_warchestSaving = 1;            // Save warchest objects deployed by players between server restarts (0 = no, 1 = yes)
A3W_warchestMoneySaving = 1;       // Save warchest team money between server restarts (0 = no, 1 = yes)
A3W_spawnBeaconSaving = 1;         // Save spawn beacons between server restarts (0 = no, 1 = yes)
A3W_objectLifetime = 5*24;        // Maximum lifetime in hours for saved objects (baseparts, crates, etc.) across server restarts (0 = no time limit)
A3W_vehicleLifetime = 0;           // Maximum lifetime in hours for saved vehicles across server restarts, regardless of usage (0 = no time limit)
A3W_vehicleMaxUnusedTime = 2*24;   // Maximum parking time in hours after which unused saved vehicles will be marked for deletion (0 = no time limit)
PDB_PlayerFileID = "A3W_";         // Player savefile prefix (change this in case you run multiple servers from the same folder)
PDB_ObjectFileID = "A3W_";         // Object savefile prefix (change this in case you run multiple servers from the same folder)

Re: Objectlifetime

« Reply #1 posted: Dec 07, 2014, 01:20 AM »
i think thats 5 days in total whether they are moved or not.
  • Offline LouD
  • Silent but deadly ;)
  • Moderator
  • Veteran
  • ******
  • Posts: 1415

Re: Objectlifetime

« Reply #2 posted: Dec 07, 2014, 10:00 AM »
i think thats 5 days in total whether they are moved or not.
If that's the case I hope I can change that.
Gonna look into it. Maybe reset the timer. Hmmm

Re: Objectlifetime

« Reply #3 posted: Dec 07, 2014, 03:31 PM »
I have the same issue on my server but it doesn't happen to everyone.  I have a crate that has been around for at least a month and nothing has happened to it.
  • Offline LouD
  • Silent but deadly ;)
  • Moderator
  • Veteran
  • ******
  • Posts: 1415

Re: Objectlifetime

« Reply #4 posted: Dec 07, 2014, 08:17 PM »
Just tested it. The HoursAlive variable does reset when something is resaved.
Maybe it's because of a restart at the time of the save run?
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2600

Re: Objectlifetime

« Reply #5 posted: Dec 07, 2014, 11:41 PM »
Maybe it's because of a restart at the time of the save run?

That's quite possible indeed. extDB will fix that, since all objects have their unique IDs so they are saved separately rather than in a 1-2-3 sequence.