Jump to content
  • 0

Objects duplicating in database


kelso000

Question

So I've had a problem where some people couldn't replace a plot pole due to too many objects being built. I went through the code and rewrote some stuff so the object count check is the same everywhere.  To my surprise people were still having the problem.

Last night I had someone having the problem and had 490 objects on the pole. Much higher than my building limit. However, it doesn't seem like there is that many objects.

So I checked the database: duplicates. Some objects were doubled, some quadrupled. The only thing different is the ObjectID.

I've noticed that I sometimes get duplicate entries in HiveExt.log, but those are only for Player_Data. I'm not sure where to look for what is causing this problem. I'm running plot management and door management. The only thing I could think of is the plot take ownership, but I'm not even sure about that.

Has anyone else had the problem where buildables in object_data duplicate?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Maybe your rewrite of how object count check is done has caused a problem when the player maintains the base it does not delete the old object but creates new ones.

It should be deleting every object that is maintained then recreating them in the same spot.

Go on your test server and build a small base.. Change the dates in object_data so they will get damage applied to them. Restart the server and maintain the base. Restart server again and check if everything that was maintained duplicated.

I think that might be your problem.

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...