Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spell "Immolate" Throws Error #6

Closed
celestecaprine opened this issue Jan 26, 2023 · 3 comments · Fixed by #7
Closed

Spell "Immolate" Throws Error #6

celestecaprine opened this issue Jan 26, 2023 · 3 comments · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@celestecaprine
Copy link

The spell "Immolate" throws an error when I attempt to cast it.

[19:11:39] [Server thread/INFO]: [STDERR]: java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4 [19:11:39] [Server thread/INFO]: [STDERR]: at com.ssblur.scriptor.helpers.DictionarySavedData.parse(DictionarySavedData.java:407) [19:11:39] [Server thread/INFO]: [STDERR]: at com.ssblur.scriptor.item.Spellbook.method_7836(Spellbook.java:44) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_1799.method_7913(class_1799.java:276) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_3225.method_14256(class_3225.java:290) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_3244.method_12065(class_3244.java:1182) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_2886.method_12550(class_2886.java:29) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_2886.method_11054(class_2886.java:7) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_2600.method_11072(class_2600.java:22) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_3738.run(class_3738.java:18) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_1255.method_18859(class_1255.java:157) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_4093.method_18859(class_4093.java:23) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:776) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:159) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_1255.method_16075(class_1255.java:131) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:758) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:752) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.class_1255.method_18857(class_1255.java:140) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:737) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:669) [19:11:39] [Server thread/INFO]: [STDERR]: at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) [19:11:39] [Server thread/INFO]: [STDERR]: at java.base/java.lang.Thread.run(Thread.java:833)

@ssblur
Copy link
Owner

ssblur commented Jan 26, 2023

Fixed by #7, will close on next release. I would like to see what tripped up the parser, though, so if possible, could you tell me the contents of the Immolate book on the world which crashed? You can either send the full compound tag or convert the book using a smithing table and a leather binder and copy the text from inside.

@celestecaprine
Copy link
Author

Sure thing! Here's the NBT values of the book:
{ "id":"scriptor:spellbook", "tag":{ "pages":[ "{\"text\":\"ivo wghavx uaukg uf\"}" ], "resolved":1b, "title":"Immolate", "author":"Arnold the Unwise" }, "Count":1b }

@ssblur
Copy link
Owner

ssblur commented Jan 26, 2023

Thank you, it looks like this should be fixed in the next version, changes to the parser should prevent issues on worlds where spells end with DESCRIPTOR SUFFIXARTICLE.

@ssblur ssblur self-assigned this Jan 26, 2023
@ssblur ssblur added the bug Something isn't working label Jan 26, 2023
@ssblur ssblur linked a pull request Jan 26, 2023 that will close this issue
@ssblur ssblur closed this as completed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants