TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
527 stars 354 forks source link

"this area is too close to another town" when it isn't #2082

Closed LlmDl closed 9 years ago

LlmDl commented 9 years ago

Originally reported on Google Code with ID 2059

What steps will reproduce the problem?
1.  Mayor tries to type /plot claim on wilderness land
2.  Is told "This area is too close to another town"
3.  Checked surrounding area and there isn't a single town nearby.  There was one a
few hundred blocks away but it recently fell.

What is the expected output? :
Plot becomes an unowned town property plot

What do you see instead? :
This area is too close to another town when it isn't.

What is your Towny version number? :
86.1.0
What is your TownyChat version number? :
40.0
What is your Bukkit version number? :
Build #3078
What operating system? :
CentOS 6 

Please use pastebin.com to link the following files:
- Your full server startup from server.log,
http://pastebin.com/JVG7qUWf
- Your towny config.yml,
http://pastebin.com/pmCLaiWC
- Your townyperms.yml,
http://pastebin.com/kA3epWSA
- Your permissions file.
http://pastebin.com/aZXgfWre

I will also include the town data in question.  The town name is ocean_view.

http://pastebin.com/29Fkh7GS

Reported by ebeats on 2014-05-10 01:42:13

LlmDl commented 9 years ago
You have:

min_plot_distance_from_town_plot: '5'

min_distance_from_town_homeblock: '10'

So there must be something nearby whether its a townblock, an outpost or a town's homeplot.

Reported by LlmDlio on 2014-05-10 03:23:55

LlmDl commented 9 years ago
I have investigated heavily and no there is not a townblock or outpost or town's homeplot
anywhere near.  Here is a live map of my server including towny regions.
http://mc.bzgaming.com:8123/

The town having the issue is near coordinates X: -500, Z: 400, ocean_view.

Reported by ebeats on 2014-05-10 15:29:13

LlmDl commented 9 years ago
It gets even stranger.  The town of ocean_view did a /town unclaim on a plot in their
town.  It's not even on the edge of the town.  They then tried to /town claim the same
plot and that is when it started saying you are too close to another town.  

However, on the dynmap it shows the towny region as red like as if it is claimed, when
in fact it is not.  Im currently standing on it on the livemap.  The coords are -485,
389

Reported by ebeats on 2014-05-10 15:34:20

LlmDl commented 9 years ago
Screenshot of me crossing over from their homeblock into a wilderness plot inside their
town.  http://imgur.com/UjPkP5K

Reported by ebeats on 2014-05-10 15:40:25

LlmDl commented 9 years ago
And here is the /towny map output
http://i.imgur.com/1tljhfG.png

Reported by ebeats on 2014-05-10 15:42:23

LlmDl commented 9 years ago
Did you run any 0.85.0.* builds? There was a bug in those builds where if players changed
their townname multiple times too quickly townblocks got stuck with improper names.

Reported by LlmDlio on 2014-05-10 21:06:17

LlmDl commented 9 years ago
Yes whatever version was out when 1.7 for bukkit was released is the version this map
started on fresh.  I think it was 84 then upgraded to 85 now 86.1
As far as I know this town has not changed their name but I will verify with the mayor
first and also dig through the logs and see if they did change the name.  

On the dynmap, towny map, etc I cant find any townblocks.  Any suggestions are appreciated
or information you need to help me resolve this

Reported by ebeats on 2014-05-10 21:12:26

LlmDl commented 9 years ago
Found the log.  He only renamed the town 1 time.  There went any other entries.  Also
this was dated March 16th, 2014.  

[13:54:10] [Server thread/INFO]: [PLAYER_COMMAND] couvillion: /town set name Ocean_View
[13:54:10] [pool-6-thread-1/INFO]: Creating empty config: /backup/minecraft/plugins/Essentials/userdata/town_ocean_view.yml
[13:54:10] [Server thread/INFO]: [Town Msg] Ocean_View: couvillion renamed town to
Ocean_View.

At this time I was running 84.  I'm almost certain I skipped over 85 or only ran it
for a very short time. 

Reported by ebeats on 2014-05-10 21:39:28

LlmDl commented 9 years ago
You can search for the old town name in teh townblocks files and replace it with Ocean_View

Reported by LlmDlio on 2014-05-10 21:41:53

LlmDl commented 9 years ago
Just searched the contents of 1396 .data files from the townblocks folder and did not
find any reference to their old town name.

Reported by ebeats on 2014-05-10 22:02:23

LlmDl commented 9 years ago
I uploaded my towny data folder, maybe it will help
http://www1.zippyshare.com/v/49999833/file.html

Reported by ebeats on 2014-05-10 22:15:54

LlmDl commented 9 years ago
Old town name was norway

Reported by ebeats on 2014-05-10 22:18:36

LlmDl commented 9 years ago
More info after scanning my logs and I now have more accurate information when I upgraded
towny.

12/9/2013 - 4/3/2014 running Towny 84.0.0.7-10
4/3/2014 - 4/18/2014 running Towny 85.0.0.0
4/19/2014 - 4/28/2014 running Towny 86.0.0.0
4/29/2014 - Curreent running Towny 86.1.0.0

Conclusion: 
They created their town on March 5th
They renamed their town on March 17th
The problem started happening 5/3/2014 (at least when it was first noticed).

Reported by ebeats on 2014-05-10 23:14:55

LlmDl commented 9 years ago
Need anything else?  Any other ideas?

Reported by ebeats on 2014-05-11 16:18:33

LlmDl commented 9 years ago
Any progress on this issue?  

Reported by ebeats on 2014-05-17 15:00:50

LlmDl commented 9 years ago
May 3rd you noticed the problem, did you at any point downgrade towny, or use any data
from an older backup?

Reported by LlmDlio on 2014-05-17 15:58:29

LlmDl commented 9 years ago
When the essentials dev version converted all the eco files to uuid and broke town banks,
I rolled back to a complete backup I made before upgrading.  I did not restore using
towny backup data.  

The only other major event that recently happened was the town closest to them named
Stonewall_Citadel fell due to no longer having money in their bank account.  However
when both towns existed close to each other they had no problems claiming land.

Reported by ebeats on 2014-05-17 18:12:23

LlmDl commented 9 years ago
When you used a backup from pre-update, did you set the towny version in the config
back to 0.84.0.0? 

Reported by LlmDlio on 2014-05-17 20:53:34

LlmDl commented 9 years ago
The backup included the pre-update config so the config version matched the installed
version of the plugin.

Reported by ebeats on 2014-05-17 21:02:10

LlmDl commented 9 years ago
We haven't been able to reproduce anything that is corrupting towny on either of Elgarl
or I's production servers. The few people who've had trouble we've solved down to using
an old build with bugs or using data from pre-database-schema changes.

It could be that your data had old things in it which were bugged but because the way
the DB was handled was never an issue.

Reported by LlmDlio on 2014-05-17 22:32:17

LlmDl commented 9 years ago
This is only a 6 month old database.  We started fresh when bukkit 1.7 dev went live.

I guess at this point I can only delete the town and hope that recreating it allows
us to claim the plots as normal.  

Reported by ebeats on 2014-05-18 02:19:18

LlmDl commented 9 years ago
Deleting his town and recreating it still has the same problem.  This really sucks not
being able to pinpoint the issue

Reported by ebeats on 2014-05-25 00:43:49

LlmDl commented 9 years ago
I even scanned the entire townblocks folder for any files that were close to the towns
homeblock.  Nothing.

Reported by ebeats on 2014-05-25 00:50:45

LlmDl commented 9 years ago
The only way I could make it work was setting min_plot_distance_from_town_plot: '0'
Even if I set it to 1 it would still say we are too close to another town.  

Reported by ebeats on 2014-05-25 01:06:00

LlmDl commented 9 years ago
This was found and fixed in 0.89.2.10

Reported by LlmDlio on 2015-04-26 03:04:46

LlmDl commented 9 years ago

Reported by LlmDlio on 2015-04-26 20:41:24