[SPIGOT-3987] Writing in book removes LocName attribute Created: 06/Jul/18 Updated: 08/Jul/18 Resolved: 08/Jul/18 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Panossa | Assignee: | md_5 |
Resolution: | Fixed | Votes: | 2 |
Labels: | Spigot,, advancement, advancements, function, functions, mapmaking | ||
Environment: |
(Virtual) game server with "openjdk:8-jre" (Java 8), hardware: This bug is present on every other system we tested though: |
Attachments: |
![]() ![]() ![]() |
Version: | Latest 1.12 build (spigot-R0.1-642f6d2-6103339) |
Description |
We tried playing a map ( http://www.minecraftmaps.com/game-maps/sorcerers-book-2 ) in vanilla Minecraft, it worked flawlessly. Here are our current configs (we tested a few, see "Description" for more): command-block-overrides: - '*' unrestricted-advancements: true aliases: icanhasbukkit: - version $1- Spigot.yml: commands: tab-complete: 0 log: true spam-exclusions: - /skill silent-commandblock-console: false replace-commands: - help (And we changed mobranges.) Bukkit.yml: <default>
What is supposed to happen: What happens instead (even with all the configs mentioned above): Even if you are OP nothing happens. What I first suspected when testing this is that advancements test for permissions and as Spigot has its own system it could have gone wrong there. Sadly, even with the right configs and even if all players are OP none of the commands in the advancement reward function get triggered. We tested:
My conclusion: The log doesn't say anything (all commands being executed and shown in the chat/log by us were executed through manual input in chat), I'll attach it anyways. Also attached our own copy of the map in a zip file, though you can download a fresh copy on your own, both won't work. Edit 1: I've recieved a small function/advancement zip with only one example of advancement rewards and it works. So Sorcerers Book 2 isn't working on Spigot, though the newly attached file is working. |
Comments |
Comment by md_5 [ 08/Jul/18 ] |
Issue was nothing to do with advancements, rather LocName was not being preserved when writing in a book |
Comment by Panossa [ 07/Jul/18 ] |
Btw Phoenix, if you'd like, you can add me on Discord: @Panossa(YT)#8203 |
Comment by Panossa [ 07/Jul/18 ] |
Well, I could add here that we tested adding a tellraw in the reward function for unlocking spells. If you then grant yourself the advancement, the tellraw isn't called at all. Can you test that, Phoenix? Seems like two different pieces are buggy then, right? The text detection inside the book if you close/update it and the reward functions, if our test with the tellraw was correct. Going to break down the functions today by deleting everything but what is needed for bal to work. |
Comment by Phoenix616 [ 07/Jul/18 ] |
I did some testing and it seems that the advancement that is used to detect the writing in the book (sorcerersbook:spell/bal) isn't triggered at all. Granting it with the ingame command works and runs the commands but trying to trigger it automatically doesn't do anything. (I tried multiple different triggers besides the inventory_changed one with the book as I suspected that the book page text detection gets broken by CraftBukkit's book meta/text handling) |
Comment by md_5 [ 07/Jul/18 ] |
Yes, but it needs to be like 5 functions / commands. To this ticket is fine. |
Comment by Panossa [ 07/Jul/18 ] |
Hey, md_5! But let's talk about the problem. I know the map has way to many function files etc, although I'm really not able to debug Java code at this level. Would it be okay if I come back at you with a lite version of the broken map where only as few commands are in there as possible? Or do I really need to find a specific cause for what's breaking? Cause I'm not sure I can do that without debugging the code of Spigot itself. Edit: If it's okay to reup the broken part of the map, do I need to open another issue or should I attach it here? |
Comment by md_5 [ 06/Jul/18 ] |
Yeah I just downloaded that adventure map, there is no way I can spend time debugging an entire adventure map. Of course if you can identify a specific issue I will endeavour to fix it, but there are 5487 functions in that map!! |
Comment by md_5 [ 06/Jul/18 ] |
You have no idea how much I hate things like this |