Jump to content
  • 0

Maintenance Question


DavemanDingo

Question

I'm kinda of newbie when it comes to scripting.

 

I've been trying to search the forums, but I don't see how to turn maintenance off. I saw a couple of scripts that tried to fool the server, but nothing to turn it off.

 

Can I turn it off?

 

And if it's a script I must use, what is it and where do I add it?

 

Thank you!

Link to comment
Share on other sites

22 answers to this question

Recommended Posts

  • 0

hiveext.ini file

look for line:

CleanupPlacedAfterDays = 14

 

and change it to

CleanupPlacedAfterDays = -1

 

and this will make it so none of the stuff place will despawn after a certain amount of days.

 

you can also try turning on indestructible bases by looking for your //EpochConfig section and add this to it

 

DZE_GodModeBase = true;

 

which will make bases indestructable.

 

or you can add this to the same section 

DZE_requireplot = 0;

 

and you wont need plot poles to build.

 

This is everything I could think of that could probably help you.

Link to comment
Share on other sites

  • 0
CleanupPlacedAfterDays = 6

 is located in your HiveExt.ini can be opened with notepad or just a word file. if you dont know where then follow this handy guide:

 

  • Go to wherever you have server installed,  we'll call it Day z server
  • Day z Server\instance_11_chernarus\HiveExt.ini
  • Open with note pad find the section that reads:
    [Objects]
    ;Which table should the objects be stored and fetched from ?
    ;Table = Object_DATA
    
    ;Negative values will disable this feature
    ;0 means that ALL empty placed items will be deleted every server restart
    ;A positive number is how old (in days) a placed empty item must be, in order for it to be deleted
    CleanupPlacedAfterDays = -1
    
    ;Flag indicating whether hiveext should detect vehicles out of map boundaries (X < 0, or Y > 15360) and reset their position to []
    ;Note: YOU MUST have a proper dayz_server.pbo that supports this feature, otherwise you will get script errors
    ;You can find that file under the SQF directory for your server version
    ;ResetOOBVehicles = false
    
    ;If using OFFICIAL hive, the settings in this section have no effect, it will manage objects on its own
    
  • Edit "CleanupPlacedAfterDays= "to what ever youd like

 

Now I'm actually pretty sure it will be commented out like @Sukkaed mentioned so be sure to delete that when you want it available. 

Link to comment
Share on other sites

  • 0

Yeah, I have  set it to -1 and even changed it to 365.
It doesn't go much longer then 2 weeks and the walls, floors, etc disappears.
We are using HFB servers, & their control panel has a section with the HiveExt.ini
Just getting REAL old building something and having it disappear.

Link to comment
Share on other sites

  • 0

Create this event to your database. It updates the timestamp to current every day. Should prevent decay.

CREATE EVENT preventCleanup
ON SCHEDULE EVERY 1 DAY
COMMENT 'prevents all cleanup by setting datestamp to current'
DO
UPDATE `Object_DATA` SET `Datestamp`=CURRENT_TIMESTAMP WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )
Link to comment
Share on other sites

  • 0

 

Create this event to your database. It updates the timestamp to current every day. Should prevent decay.

CREATE EVENT preventCleanup
ON SCHEDULE EVERY 1 DAY
COMMENT 'prevents all cleanup by setting datestamp to current'
DO
UPDATE `Object_DATA` SET `Datestamp`=CURRENT_TIMESTAMP WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )

 

How does one create an event in the database?

Link to comment
Share on other sites

  • 0

I don't know much about them. I just know they are used to keep databases in order. For example. 

 

lets say you ran this:

UPDATE `Traders_DATA` SET qty=75 WHERE qty=0;

It will restock anything that is out of stock in traders.

 

There are tons of things to do also like

DELETE FROM `object_data` WHERE Damage = 1;

Where it deletes destroyed vehicles that are no longer on your server but still in your db. There are tons of things you can do to keep your DB nice and tidy.

 

Check this out

https://github.com/vbawol/DayZ-Epoch/blob/master/Server%20Files/SQL/add_recommended_mysql_events.sql

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
  • Advertisement
  • Discord

×
×
  • Create New...