Backpacked icon indicating copy to clipboard operation
Backpacked copied to clipboard

[Fabric] backpacked-common.toml config file not saving certain changes

Open Jakotens opened this issue 2 years ago • 5 comments
trafficstars

Fabric v0.14.19 Backpacked v2.2.0 Minecraft v1.19.2

Certain settings in the backpacked-common.toml file keep resetting on launch. I'm trying to change the inventory size of the backpacks. The setting backpackInventorySizeColumns seems to consistently stay to what I set it as, but the other setting, backpackInventorySize, keeps resetting back to 1 as soon as I launch the game.

Jakotens avatar Apr 20 '23 22:04 Jakotens

This is happening to me aswell, did you manage to find a sollution?

Diogoess avatar May 31 '23 20:05 Diogoess

Happening here as well. I change the backpacked-common.toml file to 27 "backpackInventorySizeColumns", I save and close. Soon as I open it again, its reset to 9.

Zunwolf1896 avatar Nov 05 '23 10:11 Zunwolf1896

Also having this issue (backpacked-forge-1.20.1-2.2.5), and when the file is made immutable, the server crashes. Doesn't seem to crash when the file is readonly but the field still changes, so it's almost like the file is being recreated

Zennii avatar Dec 21 '23 13:12 Zennii

Figured it out by looking through the code, the max backpackInventorySize is 7. It's not very obvious just from the config and unintuitive how it enforces the maximum. If you exceed 7 it will revert to default. This is probably the same for many other fields. For example the max columns is 13. See here, IntProperty.create 3rd argument

Zennii avatar Dec 21 '23 13:12 Zennii

The configs work fine, the problem is that you've provided a value that is incorrect. I am however partly to blame since I don't specify in the config property's comments what the allowed values/range is. The maximum rows of a backpack is 7, while the maximum columns is 13.

MrCrayfish avatar Dec 30 '23 07:12 MrCrayfish