andrepl / BuildInABox

Carry prefab buildings in enderchests.
3 stars 6 forks source link

Building house finishes, but no complete message - then exceptions. #4

Closed xavierthompson closed 11 years ago

xavierthompson commented 11 years ago

Hello!

I'm super interested in getting this plugin to work the a server I administrate, but I'm running into some problems. I've been following the demonstration guide on the bukkit plugin page.

So far, I have no problems packing a house into a BIAB, and giving it to players. Placing elicits the proper preview, followed by the

             [Build-In-a-Box] Building house...

message. The actual building occurs as it should, right up until completion. As the house finishes, I expect a Building Complete! text output, but never get it. This is where it gets weird.

Opening/closing doors or chests gives off this exception in console: http://pastebin.com/JVKh6PZS

Attempting to break any block in the house leads to automatic regeneration, as if block-break rights are denied. I can place blocks in the spaces, though. This also happens after server reload, and locking the house results in "house has been locked by house".

The BIAB placed on the ground functions for the most part. I can lock and unlock the house, no exceptions given, but it doesn't change anything mentioned above.

Lastly, I can double-left click the house to pack it up, and it does exactly that. Packs up neatly, pops the BIAB off, gives the proper "Removing house"/"Removal Complete!" output messages, and I can place blocks where the structure was formerly and break them without incident.

Using /biab permanent and breaking the BIAB is the only way to make it stop throwing exceptions and allow me to edit the blocks.

The environment on which it happened in is a home bukkit server running the latest craftbukkit build, with all the plugins that my main server runs. I figured it might be a conflict, so I generated a new server with only WorldEdit, WorldGuard, CommandBook, PermissionsEx and BIAB.

WorldEdit is the latest development version from sk89q's jenkins page.

BIAB is version 0.1.7. I tried 0.1.6 with the same results.

I've tried being op, I've tried with all the permissions nodes given. I've tried two different MC accounts. The exceptions won't stop being thrown until the build is made permanent.

Just thought I'd drop you a detailed line with what I've found. Excellent plugin, by the way, probably the most excited I've been for a plugin ever.

andrepl commented 11 years ago

Thanks for the bug report, and I'm glad you're enjoying it so far. Development is moving quickly so there are obviously bugs here and there :) the exception you pasted was a new one Introduced in 0.1.6, I just fixed it and will be pushing a development build within the hour.

The missing 'Build Complete' was just an oversight, i must have accidentally removed it at some point, so that will be in the next build as well.

The behaviour you're seeing with the block breaking is the way it's configured by default (protect-buildings: true) and the lock-containers option makes doors and chests restricted to use by the person who locked the enderchest. You can always place blocks inside your building, but they won't get picked up with it.

hope this helps, I'll reply again with a link to the build that /should/ fix the error message once its up.

xavierthompson commented 11 years ago

thanks for your speedy response! I did note that your development is speedy, you're doing a great job. I'll keep an eye on jenkins and test the build again for you. Happy to see that nothing is really wrong and I just suck at reading configs :smile:

andrepl commented 11 years ago

How's this for speedy? :)

http://mcgitlab.norcode.com:8081/job/BuildInABox/88/com.norcode.bukkit.buildinabox$BuildInABox/

I haven't tested it yet, and it's getting close to bed time, but I think it'll solve all your problems.

xavierthompson commented 11 years ago

hahaha great work! downloading now, will let you know how it goes in a sec

xavierthompson commented 11 years ago

flawless. great work man! will petition the hell out of my server owner just as soon as he wakes up. keep up the awesome work!