Eccentric Tome

Eccentric Tome

1M Downloads

Books disappearing from Tome

Dubya72 opened this issue · 20 comments

commented

Versions

  • Minecraft: [e.g. 1.18.2]
  • Eccentric Tome: [e.g. 1.8.0]

Describe the bug
In ATM7 and Direwolfs Modpack all the books in the tome were deleted except the current book loaded. I don't know when it happed, but when I went to change books to look something up they were all gone.

To Reproduce
Don't know how to reproduce it.

Expected behavior

Screenshots

Additional context

commented
commented
commented

Do you know if you had recently updated versions of the Eccentric Tome? (for example 1.3.1 → 1.8.0)

I'll try to investigate sometime this weekend.

commented

I was doing some testing in 1.19.2 this morning. I think I managed to replicate the issue. Lost all the books in the Tome except for the one I was just using (Mystical Agriculture).

Books in tome

  • Mystical Agriculture
  • Cooking for Blockheads I
  • Cooking for Blockheads II
  • Cooking for Blockheads #NoFilter edition

I don't think it's an issue with the NBT size limit anymore.

I immediately tried to do it again, but couldn't force it to happen. I'll continue investigating

commented

I did some digging

  • Investigated the raw tome data for 1.18.2 to see if there were any leaks. Couldn't find anything
  • Searched for any known issues with NBTs (that's what Minecraft uses to store the Tome's data). Couldn't find anything
  • Looked up the max NBT size in 1.18.2. It's 2 MiB which should be more than enough to store the guide books
    • It is possible one of the guide books in ATM and DIrewolf20 is doing some really crazy stuff with NBTs and causing the Eccentric Tome to go over the 2 MiB limit. But I can't fix it unless I know which one it is

I recommend gathering logs if you start playing either of the mod packs again. If it is exceeding the 2 MiB limit, that should show up in the logs. Another thing that might help is keeping track of which guide books you've put into the Eccentric Tome.

commented
commented

I spent 4 or 5 hours today trying to replicate this in different versions. I had the most (worst?) luck on 1.19.2 in creative mode.

To get a better look at what was happening, I added some additional logging. Managed to catch the items disappearing in the log. The Tome was successfully converted to Mystical Agriculture. But when the revert started, the items were gone.

[27Aug2022 12:45:58.771] [Server thread/DEBUG] [eccentrictome/]: Converted Eccentric Tome
[27Aug2022 12:45:58.772] [Server thread/DEBUG] [eccentrictome/]: {display:{Name:'{"translate":"eccentrictome.name","with":[{"color":"green","text":"Mystical Agriculture"}]}'},"eccentrictome:is_tome":1b,"eccentrictome:mods":{cookingforblockheads:{0:{Count:1b,id:"cookingforblockheads:crafting_book"},1:{Count:1b,id:"cookingforblockheads:no_filter_edition"},2:{Count:1b,id:"cookingforblockheads:recipe_book"}}},"patchouli:book":"mysticalagriculture:guide"}
[27Aug2022 12:46:06.061] [Server thread/DEBUG] [eccentrictome/]: Reverting Eccentric Tome
[27Aug2022 12:46:06.062] [Server thread/DEBUG] [eccentrictome/]: {display:{Name:'{"translate":"eccentrictome.name","with":[{"color":"green","text":"Mystical Agriculture"}]}'},"eccentrictome:is_tome":1b,"eccentrictome:mods":{},"eccentrictome:version":1,"patchouli:book":"mysticalagriculture:guide"}

I think I'm getting closer to the root cause.

I wasn't able to replicate it again after catching it in the logs. So, this will probably take another week. Thanks for your patience

commented

I've been seeing this too in a pack I am working on, 1.18.2. The books in my tome are

  • Materials and You (Tinkers Construct)
  • Engineer's Manual (Immersive Engineering)
  • Mahou Tsukai Knowledge Compendium (Mahou Tsukai)
  • Decorating Your Home (Adorn)
  • Food Book (Spice of Life Carrot)
  • Big Book of Bees (Productive Bees)
  • Lexica Botania (Botania)
  • Biomepedia (BYG)
  • Worn Notebook (Ars Nouveau)
  • Sanguine Scientiem (Blood Magic)
  • Thermalpedia (Thermal Series)
  • On the Dynamics of Integration (Integrated Dynamics)
  • LaserIO 101 (LaserIO)
  • Encyclopedia Arcana (Malum)
    Thankfully, I wrote a script so players can give themselves a new copy of a filled-out tome, so this error doesn't really impact us but it isn't ideal. I hope you track down the cause.
commented

I've pushed Eccentric Tome 1.9.0-beta which simplifies the mod's internal logic and expands logging. Since this bug doesn't cause crashes, the logging will be sent to .minecraft/logs/debug.log if your launcher supports it.

I'm going to be doing a bunch of testing this weekend (mostly just playing a personal mod pack). I'm trying to hunt down exactly when/where the bug occurs.

If you would like to assist the bug hunt, update to the beta version and post a comment with your debug.log immediately after the bug occurs.

commented

This just happened to me after many hours in a world and having most of the books added to the tome. This happened after a server restart. Im not sure if it is related, but another bug where i right clicked a mana spreader with a mana ring caused the mana spreader to eat the ring voiding it aparently. i logged off and when i started the server and logged in the next day, only the active book (botania) was loaded.

commented

If you're still actively using the mod, I recommend upgrading to Eccentric Tome 1.9.0-beta. I was playing with it all weekend and encountered no issues. Fingers crossed that simplifying the logic fixed the bug since I still haven't been able to isolate the root cause.

This happened after a server restart.

Good to know. I haven't included anything server-side in my testing. I might start testing that if 1.9.0 doesn't fix it

Im not sure if it is related, but another bug where i right clicked a mana spreader with a mana ring caused the mana spreader to eat the ring voiding it

I think it's unrelated.

commented

This happened again last night for me

i believe it occurs when you switch from the standard inventory screen to a book which is triggered by clicking on the tab at the bottom of the inventory screen. In my case and using the ATM7 Modpack i cycled through the 2 options i had available to me.

2022-10-08_15 40 39
2022-10-08_15 40 42
2022-10-08_15 40 43

That last image shows a shortcut to opening the blue skies book. im unsure if this was loaded in the tome. maybe worth checking out

commented

@ozhound Do you know which version of Eccentric Tome you were using?

commented
commented

This just happened to me as well, using version 1.8.0, not sure what I did to trigger it though sadly.

ETA: I'm on MC 1.18.2

commented

After a bunch of hours of testing, I think I've fixed it. This issue should be fixed in Eccentric Tome 1.9.0, which I just released.

Let me know if you're still seeing the issue after the update.

commented

Closing this as completed. Leave a comment if you're still experiencing the issue.

commented

@EccentricVamp Hello, excuse me, I am experiencing the same problem with the latest ATM7 module package, I noticed that the version in the package is 1.8.0, I found that you have fixed this problem.
My question is, is there a command to retrieve preset books? Because I want to update this mod manually.
My English is not good, the above text is from the translation software

commented

I mean, is there any way to retrieve the birth book. I don't know if you can understand. I'm sorry

commented

@EnterFor sorry, there isn't a command. If you want to get it back, you'll need to add the books back in manually, probably using creative mode. Check this thread on Reddit for more info: https://www.reddit.com/r/allthemods/comments/v651np/how_to_get_eccentric_tome_back_after_losing_it/