So here is the situation I will try to explain this as best as possible in order for SOMEONE to help me
Ok here we go.
So simply. Our database is not running our SetDamageOnAge event to damage all objects to 0.1 damage. Thus meaning no one can maintain there objects because technically they are all still 100% health. Not as simple as this. Stay with me...
So once we figured out the event wasn't running and people couldn't maintain we said okay. Lets do some trouble shooting to get to the bottom of this and find the problem. Here we ran a query. As follows:
UPDATE `object_data` SET `Damage`=0.1 WHERE `Inventory` = '[]'
So basically we wanted to quickly update all the objects to .1 to see if running a query would have an effect on the objects within the database. This script did work. It set every object to 0.1. So we said great its just the event not running.
We jump in game and try to maintain some bases and nada. 0 objects can be maintained. Strange okay we had a look at the maintain_area.sqf file and found this:
if (damage _x >= 0.1) then {
So we said okay technically nothing is greater than 0.1 right now. So again we go ahead and run another query but just set it to 0.2.
UPDATE `object_data` SET `Damage`=0.2 WHERE `Inventory` = '[]'
But you guessed it still nothing.
The thing is, if you shoot a wall a bunch to damage it manually it eventually comes up as maintainable. So we find that object in the database. The damage is not being updated from what the in-game damage is displaying.
Okay so we go ahead and maintain the object.
We set that one object to 0.5 damage. Still not maintainable.
But if we then shoot it and make it maintainable and then maintainable it sets the 0.5 damage back to 0.0. So the script is working as it should it sets the damage back to 0.0.
For some reason our database won't update the damage to in-game. The maintain area script does set the damage back to 0.0 though
For the love of god I can't figure this out and I really don't want to set never to de-spawn objects as the server would build up lag really quick. Any help will be useful!!
Question
williamjbrown
So here is the situation I will try to explain this as best as possible in order for SOMEONE to help me
Ok here we go.
So simply. Our database is not running our SetDamageOnAge event to damage all objects to 0.1 damage. Thus meaning no one can maintain there objects because technically they are all still 100% health. Not as simple as this. Stay with me...
So once we figured out the event wasn't running and people couldn't maintain we said okay. Lets do some trouble shooting to get to the bottom of this and find the problem. Here we ran a query. As follows:
So basically we wanted to quickly update all the objects to .1 to see if running a query would have an effect on the objects within the database. This script did work. It set every object to 0.1. So we said great its just the event not running.
We jump in game and try to maintain some bases and nada. 0 objects can be maintained. Strange okay we had a look at the maintain_area.sqf file and found this:
So we said okay technically nothing is greater than 0.1 right now. So again we go ahead and run another query but just set it to 0.2.
But you guessed it still nothing.
The thing is, if you shoot a wall a bunch to damage it manually it eventually comes up as maintainable. So we find that object in the database. The damage is not being updated from what the in-game damage is displaying.
Okay so we go ahead and maintain the object.
We set that one object to 0.5 damage. Still not maintainable.
But if we then shoot it and make it maintainable and then maintainable it sets the 0.5 damage back to 0.0. So the script is working as it should it sets the damage back to 0.0.
For some reason our database won't update the damage to in-game. The maintain area script does set the damage back to 0.0 though
For the love of god I can't figure this out and I really don't want to set never to de-spawn objects as the server would build up lag really quick. Any help will be useful!!
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now