Jump to content
  • 0

Maintaining doesnt maintain Plot pole ?!


Sandbird

Question

Is Plastic_Pole_EP1_DZ supposed to be maintained as well when we maintain buildings ?

Cause i see alot of them with 0.1 damage in the database....wont they get deleted from the SQL event if they are not maintained?

They are not in the DZE_maintainClasses variable...They belong in Fortifications, so they are NOT getting maintained.

Link to comment
Share on other sites

17 answers to this question

Recommended Posts

  • 0

Yep they will disappear. 

Only way the server won't delete them is if you remove and build them again.

Same thing with safes.

 

So why doesnt the maintain area fix plotpoles by default as well. I dont understand this...DZE_maintainClasses doesnt have plot_poles....meaning they wont get maintained.

How come no one else has seen this before.

Link to comment
Share on other sites

  • 0

So why doesnt the maintain area fix plotpoles by default as well. I dont understand this...DZE_maintainClasses doesnt have plot_poles....meaning they wont get maintained.

How come no one else has seen this before.

 

I think a lot of people remove their plot poles after building.

Link to comment
Share on other sites

  • 0

In your variables.sqf add Plastic_pole, solves the problem.

 

DZE_maintainClasses = ["ModularItems","DZE_Housebase","LightPole_DZ","Plastic_Pole_EP1_DZ"];

 

I love the little comment there :  - Skaronator, looks like some classes are missing not sure if this is intended

Link to comment
Share on other sites

  • 0

Any chance to get a copy of that? 

 

 

DZE_maintainClasses = ["ModularItems","DZE_Housebase","LightPole_DZ","Plastic_Pole_EP1_DZ","DZE_LockedStorage"];

 

- ModularItems for all epoch buildings

- HouseBase by default i left that there

- LighPole for the light poles :P

- Plastic_pole for the plot pole

- DZE_LockedStorage for any Storage type object (vaults, storageboxes, sheds etc)

Link to comment
Share on other sites

  • 0

DZE_maintainClasses = ["ModularItems","DZE_Housebase","LightPole_DZ","Plastic_Pole_EP1_DZ","DZE_LockedStorage"];

 

- ModularItems for all epoch buildings

- HouseBase by default i left that there

- LighPole for the light poles :P

- Plastic_pole for the plot pole

- DZE_LockedStorage for any Storage type object (vaults, storageboxes, sheds etc)

Thanks mate, also I know this is not the thread for it but do you know how to make maintaining actually work? I've got it set to 13 days now, but no damage is being done to my buildings, not sure where to set it.

Link to comment
Share on other sites

  • 0

Thanks mate, also I know this is not the thread for it but do you know how to make maintaining actually work? I've got it set to 13 days now, but no damage is being done to my buildings, not sure where to set it.

 

Do you have the SQL event running ?

setDamageOnAge

CREATE DEFINER=`dayz`@`localhost` EVENT `setDamageOnAge` ON SCHEDULE EVERY 1 DAY STARTS '2014-03-07 12:37:10' ON COMPLETION NOT PRESERVE ENABLE COMMENT 'This sets damage on a wall so that it can be maintained' DO UPDATE `object_data` SET `Damage`=0.1 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]'))

You need to activate that event on the database...This sql is located in the SQL folder when you downloaded the dayz_epoch server files.

 

You need to access the database ( i use phpmyadmin ) and enable Event scheduler, for events to run all the time.

If you are using a windows setup, and run things manually instead of a villalayer type of hosting then you have to manually set the Event scheduler to autostart

http://stackoverflow.com/questions/10071871/enabling-mysql-event-scheduler-on-server-restarts

Link to comment
Share on other sites

  • 0

Do you have the SQL event running ?

setDamageOnAge

CREATE DEFINER=`dayz`@`localhost` EVENT `setDamageOnAge` ON SCHEDULE EVERY 1 DAY STARTS '2014-03-07 12:37:10' ON COMPLETION NOT PRESERVE ENABLE COMMENT 'This sets damage on a wall so that it can be maintained' DO UPDATE `object_data` SET `Damage`=0.1 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]'))

You need to activate that event on the database...This sql is located in the SQL folder when you downloaded the dayz_epoch server files.

 

You need to access the database ( i use phpmyadmin ) and enable Event scheduler, for events to run all the time.

If you are using a windows setup, and run things manually instead of a villalayer type of hosting then you have to manually set the Event scheduler to autostart

http://stackoverflow.com/questions/10071871/enabling-mysql-event-scheduler-on-server-restarts

I'm getting this error when I try to enable event scheduler: "#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation""...

Link to comment
Share on other sites

  • 0

I'm getting this error when I try to enable event scheduler: "#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation""...

 

You need to be root, or at least your login username has to have root privileges. If this is a machine that you are an admin on, then you must know the root pass right?

If you are renting this....then ask the admin to do it for you.

Link to comment
Share on other sites

  • 0

You need to be root, or at least your login username has to have root privileges. If this is a machine that you are an admin on, then you must know the root pass right?

If you are renting this....then ask the admin to do it for you.

I've sent in a support ticket. Is there any way I can check if event schedulers are turned on? Maybe they're on by default.

Link to comment
Share on other sites

  • 0

I've sent in a support ticket. Is there any way I can check if event schedulers are turned on? Maybe they're on by default.

well hardly...unless the guys that have the server already knew that epoch needs that, and they do it after a new setup.

Either way...they have to have that enabled in order for the events to work on every SQL server restart.

And you have to have that event imported in the database as well....to give damage to your objects every 3 days.

Basically all the events that are in that SQL folder have to be imported for a 100% operational server.

Link to comment
Share on other sites

  • 0

well hardly...unless the guys that have the server already knew that epoch needs that, and they do it after a new setup.

Either way...they have to have that enabled in order for the events to work on every SQL server restart.

And you have to have that event imported in the database as well....to give damage to your objects every 3 days.

Basically all the events that are in that SQL folder have to be imported for a 100% operational server.

I've ran all the sql as far as I can tell.. it's just that the event scheduler thing doesn't work (as far as I know) hopefully i'll get a reply on my ticket soon...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...