Jump to content

[Q] : how working decay timer ? How remoce it


lesvieuxcrevards

Recommended Posts

Hi there,

If referring to the database expiration times.
These can be edited to your liking and are in seconds.
Increase these numbers to keep the db entries longer than default times
Decrease these numbers to have the db remove entries quicker than default times
I do not believe there is a limit to how high you can make these numbers
These entries are necessary for the system to function properly and stay optimized over long periods of time.

epochconfig.hpp

Here is the ExpiresBuilding entry I feel you are asking about in reference to "decay"
https://github.com/EpochModTeam/Epoch/blob/release/Server_Install_Pack/%40epochhive/epochconfig.hpp#L81

 

EPOCH_server_loadBuildings.sqf

Here is the function loading the config entry (_maxTTL)
https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server/compile/epoch_bases/EPOCH_server_loadBuildings.sqf#L18
Here is the damage given to buildings based on that number. (_ttl / _maxTTL)
https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server/compile/epoch_bases/EPOCH_server_loadBuildings.sqf#L70


 

Where _ttl(Total Time from Database) is divided by _maxTTL(Max Total Time from config) and it results in the _damage applied(if any) at server start
Hope this helps you come to the conclusion you need or the direction to make the necessary changes to your liking.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...