- Chunk Starts To Unload
- As chunk unloads it marks all the tile entities as being deleted
- Chunk Finishes Unloading
- Next World tick when it goes to run the update callback for the tile entity finds its been deleted
- The world then requests the chunk that the tile entity is in which has been unloaded. Its probably supposed to return back null but in this case reloads the Chunk instead.
- It then seeing it has a chunk tells the chunk to delete the tile entity
- The chunk gets unloaded again since it wasn't supposed to be loaded and saves out the chunk with all of the tile entities in it having been deleted by the last world tick
End result of this is you don't have any of the extra information available for your blocks. Meaning signs have no text, chest have no items, and triggers don't have any targets.
Now the proper way to fix this bug probably would have been to figure out why the chunk was being reloaded when asked for instead of returning null. Since I had already spent two and half hours debugging what was going wrong instead I went for a simpler solution. I added an additional boolean flag to the tile entity that marks if its been unloaded from the chunk. Then if this flag is set the world tick won't even bother to request the tile entities chunk since the delete doesn't mean it needs to be deleted just that its no longer a valid tile entity reference.
Edit: Good news! I was able to get Jeb to look at it and fixed it with a simple check to ensure the chunk is in memory first. I forgot all about that function last night in a rush to fix it before I needed to drive to my brother's wedding. He says there won't be a 1.7.4 but he's passed on the fix to the Bukkit team, so a fix should be in quickly for those of you playing SMP on a Bukkit server.
Edit: Good news! I was able to get Jeb to look at it and fixed it with a simple check to ensure the chunk is in memory first. I forgot all about that function last night in a rush to fix it before I needed to drive to my brother's wedding. He says there won't be a 1.7.4 but he's passed on the fix to the Bukkit team, so a fix should be in quickly for those of you playing SMP on a Bukkit server.
Sooooooooo update or what I want to play I got it 2 days ago and was so mad that the signs would make me crash and have no words on them and that i had buttloads of empty chests !
ReplyDeleteYay, Jens!
ReplyDeleteIs there a way to edit a map outside of the game? i.e. to make a compass rose.
ReplyDeleteSo is there anyway to restore the information into my triggers?
ReplyDeleteI had entire structures that took hours to build that I had not on the map, but things that were to appear when you hit a trigger, do I have to rebuild them all?
I don't think Memory Block Data is wiped. You should be able to just trigger it or right click it with the cursor item and load saved data.
ReplyDeleteI sure hope you plan on adding the ability to control the actual time and place of lighting strikes, especially without precipitation...
ReplyDeleteSomewhere along the line, anyway...
The final boss in LotAC is on the verge of godhood, and I thought it would be pretty awesome to set up lighting strike attacks.
Is the game compatible with 1.7.3? I downloaded it and ran the file. When I install it either way and click start, the window closes, but the game doesn't pop up... :(
ReplyDeleteIt's not compatible with 1.7.3 kid-techboy
ReplyDeleteWhere's the update?Please, I need the update to 1.7.3!
ReplyDeleteHe's away for 4 days, since this update.
ReplyDelete