Strange, I did the same thing that caused the crash before, any ideas on how to fix this?
My fix would've fixed the first crash, but now it will be getting further along and crashing on the next mod incompatibility.
You could try disabling FastCraft and/or Tinkers' Construct and seeing if stops the crash (or if it does crash, seeing if it crashes somewhere else), just make sure you make a backup/copy of your World as removing a mod will usually delete that mods items and blocks from the World.
If removing one of the mods fixes the problem you could then report the crash to that mod's author.
@Brad16840 A call to brad16840.backpacks.items.Backpack.addInformation(Backpack.java:323) with a null world causes an NPE. Your UniqueCommonItem asumes that ToolTips can only be retrieved on the client side (or by having a world available), which is not guaranteed.
Is there a way to fix this? If you need more information you can contact me.
Item.addInformation has a @SideOnly(Side.Client) attribute which means it should only be called on the client side.
I've updated Backpack.addInformation to exit if the world is null, but my mod can't load its data without a valid world so I won't be updating the rest of my mod to support null worlds.
So we've been playing a World of Dragons modpack that has the backpacks in there, haven't had any issues until now, all of the backpacks that I've made no long allow me to use them, I can use the light gui but i can not right click them in my hand to open them, it tells me you do not have permission to open that backpack, no one else has used them, and I haven't changed the permissions, only left the game running while afk for a few hours, is there anyway to fix it without being opped
So we've been playing a World of Dragons modpack that has the backpacks in there, haven't had any issues until now, all of the backpacks that I've made no long allow me to use them, I can use the light gui but i can not right click them in my hand to open them, it tells me you do not have permission to open that backpack, no one else has used them, and I haven't changed the permissions, only left the game running while afk for a few hours, is there anyway to fix it without being opped
Sounds like the server and client have gotten out of sync.
Logging out and then logging back in usually fixes that, but If you're using version 3.4 or newer you should be able to use the '/backpack' command to force the server and client to resync (if the backpack commands are disabled it will give a warning but should still cause a resync).
You could also try '/backpack permissions' which should also force a resync and show you what backpacks you have permission for.
If neither works try logging out and logging back in (if you haven't already) and if that doesn't work you may need to restart the server (or ask for it to be restarted).
If restarting the server doesn't work you could reset the permissions for all backpacks by stopping the server, deleting data\BCMod-Permissions.dat (and BCMod-Permissions.dat_old if it exists) and restarting the server (just don't delete BCMod-Items.dat or you'll lose your backpacks).
I'm just calling PlayerProfileCache.getGameProfileForUsername, the timeout must be happening when the player's GameProfile isn't in the local cache and needs to be retrieved from Mojang's servers.
Do you think you could add a config option or something to change up the upgrade system to be more tiered? I love the features of your backpacks, especially the ability to open the backpack from your inventory but I don't like how easy it is to upgrade, and I know I can change the recipe, but I want it to be a tiered upgrade system like Iron Backpacks for example.
Version 3.5.4 allows you to configure different upgrade items for each upgrade tier.
Question, is there somewhere else other than playerdata that the saved inventory might be at? We had to reset our world to remove BiomesOPlenty and we're trying to restore everyone's inventories but if you had 1 backpack in your hand that had 5 or 6 other full backpacks inside that one, it only seems to be giving everyone the one backpack that was in their hand without any of the other bags that was inside it.
Question, is there somewhere else other than playerdata that the saved inventory might be at? We had to reset our world to remove BiomesOPlenty and we're trying to restore everyone's inventories but if you had 1 backpack in your hand that had 5 or 6 other full backpacks inside that one, it only seems to be giving everyone the one backpack that was in their hand without any of the other bags that was inside it.
Backpack data is stored in data\BCMod-Items.dat and in data\BCMod-Permissions.dat.
Any backpacks that were opened while these files were missing will have been given new backpack ids and will be treated as new backpacks when these files are restored. Players will be able to get their original backpacks back by using the in-game "Backpack Restorer" items, but if many players are affected it may be easier to just re-restore their inventories.
so I took the old playerdata from before the update and the old BCMod_Items.dat and the permissions one (as well as the files from playerdata) and transferred them over and it still only gave me the 1 backpack I had in my hand with 2 items and none of the other backpacks that were within that backpack, I'm currently the only one that's logged in yet and opened the backpack to see if it worked, doesn't seem like the backpack restorer is pulling up any info either other than the 1 black backpack that I already have.
so I took the old playerdata from before the update and the old BCMod_Items.dat and the permissions one (as well as the files from playerdata) and transferred them over and it still only gave me the 1 backpack I had in my hand with 2 items and none of the other backpacks that were within that backpack, I'm currently the only one that's logged in yet and opened the backpack to see if it worked, doesn't seem like the backpack restorer is pulling up any info either other than the 1 black backpack that I already have.
Copying those files should work, I've done it many times and see no reason it would ever fail.
The files are only loaded when the server is started so I'm hoping the only problem is that the server wasn't turned off when you copied the files, if they are copied while the server is running they will get overwritten when the server saves its data.
The only other thing I can suggest is bringing up your permission menu using "/backpack permissions" and enabling your "Moderator" option (you need to be opped to do this) when "Moderator" is enabled you will see everybody's backpacks when you use a backpack restorer and if the backpack restorer still doesn't show the missing backpacks then the backpack data hasn't been restored.
(You could also try copying the 2 dat files to a single player world and seeing if the backpacks can be restored there.)
I got it all sorted out, thanks for the help, when our host updated the server they made quite a mess of things and I had to dig around to get all the proper files, not sure why the backups had everything split up all over. I was able to get them back with the restorer finally.
The Meaning of Life, the Universe, and Everything.
Join Date:
11/25/2013
Posts:
60
Member Details
Recently had a power outage (tornado, yay) which took out our server. On coming back, everyone's backpacks were gone. Backpack restorer couldn't find them, either. In my case, my fully-upgraded backpack was replaced by a 3x9 with nothing in it, and the backpack restorer can find that, but can't find any previous instances.
EDIT: So BCMod-Items indeed lost its data somewhere around there. Copying in an old one, plus using a restorer for one player, seems to have recovered the lost bits.
The Meaning of Life, the Universe, and Everything.
Join Date:
9/14/2016
Posts:
57
Member Details
Request: Would it be possible to change the
B:"Allow auto-collect & auto-resupply"=true
config-option to two separate ones? The auto-resupply it a bit to aggressive for my taste. e.g. when I have a craftingtable in my inventory and in my backpack, and I place the craftingtable, it gets resupplied... I don't want that. But I would like to keep the auto-collect feature.
EDIT: Disregard, I just noticed a filter for auto-resupply. I overlooked that and thought there only was one for collect. Sorry.
When I take a backpack in my hand, and I right click to vanilia chest, chest is opened. After I click to backpack, I got two window. One of them the top of the chest, and the second is the bottom backpack. I can exhange items between these. This is okay. But I can't do this for example with @Bibliocraft framed framed chest, because the backpak is on the top window, and the inventory is the bottom window. How can I exchange item between @Bibliocraft chest and the backpaks directly? Thank you!
Edit:
I have a new idea (suggestion) because as I see, many modded chest/barrel incompatible with this mod (this is mean: I can't exchange item directly between backpaks and modded chest/barrel as I wrote above).
Well, resupply function is exists, and working. But this is works only, if I put item to the surface. My idea: if any item run out from inventory (for example the player put something to the modded chest/barrel) then resupply them automatically, similar to the "Inventory Tweaks" mod works:
Is there any way to use Backpacks! to transfer items from one world to another? I copied the player dat file, and the BCMod files but the backpacks were empty and the files reset to 1kb after I connected to the new server.
Thanks!
The backpack data is stored in the BCMod files but they only get loaded when the server is starts, so if you copied the files while the server was running the server wouldn't notice and would overwrite them when it saves.
If you copy the files while the server is stopped it should work.
Information about quantum backpacks/chests can be found in the 'Safe' section of the original post (included below for convenience).
Simply put your backpack inside a quantum chest and it will start dispensing "Quantum Backpacks".
Quantum backpacks are bound to the quantum chest they came from, and can be used to remotely open the backpack stored inside it.
The quantum chest allows you to take as many quantum backpacks as you want, so if you die, or if you just want another quantum backpack, you can just go back to the quantum chest and take another.
Today, while adding a Backpack Pouch to a new backpack my server crashed. The server rebooted, then when I attempted to add a second pouch it crashed again. In both instances, the server crashed the instant I added the pouch and both pouches had successfully upgraded the backpack.
Today, while adding a Backpack Pouch to a new backpack my server crashed. The server rebooted, then when I attempted to add a second pouch it crashed again. In both instances, the server crashed the instant I added the pouch and both pouches had successfully upgraded the backpack.
Strange, I did the same thing that caused the crash before, any ideas on how to fix this?
My fix would've fixed the first crash, but now it will be getting further along and crashing on the next mod incompatibility.
You could try disabling FastCraft and/or Tinkers' Construct and seeing if stops the crash (or if it does crash, seeing if it crashes somewhere else), just make sure you make a backup/copy of your World as removing a mod will usually delete that mods items and blocks from the World.
If removing one of the mods fixes the problem you could then report the crash to that mod's author.
Item.addInformation has a @SideOnly(Side.Client) attribute which means it should only be called on the client side.
I've updated Backpack.addInformation to exit if the world is null, but my mod can't load its data without a valid world so I won't be updating the rest of my mod to support null worlds.
Here's the link for the updated 1.12.2 version. If you need it for a different MC version let me know.
So we've been playing a World of Dragons modpack that has the backpacks in there, haven't had any issues until now, all of the backpacks that I've made no long allow me to use them, I can use the light gui but i can not right click them in my hand to open them, it tells me you do not have permission to open that backpack, no one else has used them, and I haven't changed the permissions, only left the game running while afk for a few hours, is there anyway to fix it without being opped
Sounds like the server and client have gotten out of sync.
Logging out and then logging back in usually fixes that, but If you're using version 3.4 or newer you should be able to use the '/backpack' command to force the server and client to resync (if the backpack commands are disabled it will give a warning but should still cause a resync).
You could also try '/backpack permissions' which should also force a resync and show you what backpacks you have permission for.
If neither works try logging out and logging back in (if you haven't already) and if that doesn't work you may need to restart the server (or ask for it to be restarted).
If restarting the server doesn't work you could reset the permissions for all backpacks by stopping the server, deleting data\BCMod-Permissions.dat (and BCMod-Permissions.dat_old if it exists) and restarting the server (just don't delete BCMod-Items.dat or you'll lose your backpacks).
Server crash reports when players are crafting and or using their backpacks.
We're using build 2760 of Forge 1.12.2
and version 1.12.2 -3.5.2 of backpacks!
http://paste.ubuntu.com/p/kQtbHkRbxh/
http://paste.ubuntu.com/p/DNmDGJjBsx/
http://paste.ubuntu.com/p/qnVcj2X2nf/
I'm just calling PlayerProfileCache.getGameProfileForUsername, the timeout must be happening when the player's GameProfile isn't in the local cache and needs to be retrieved from Mojang's servers.
I'll try to find a workaround next week.
Version 3.5.4 allows you to configure different upgrade items for each upgrade tier.
Should be fixed in version 3.5.4.
Question, is there somewhere else other than playerdata that the saved inventory might be at? We had to reset our world to remove BiomesOPlenty and we're trying to restore everyone's inventories but if you had 1 backpack in your hand that had 5 or 6 other full backpacks inside that one, it only seems to be giving everyone the one backpack that was in their hand without any of the other bags that was inside it.
Backpack data is stored in data\BCMod-Items.dat and in data\BCMod-Permissions.dat.
Any backpacks that were opened while these files were missing will have been given new backpack ids and will be treated as new backpacks when these files are restored. Players will be able to get their original backpacks back by using the in-game "Backpack Restorer" items, but if many players are affected it may be easier to just re-restore their inventories.
so I took the old playerdata from before the update and the old BCMod_Items.dat and the permissions one (as well as the files from playerdata) and transferred them over and it still only gave me the 1 backpack I had in my hand with 2 items and none of the other backpacks that were within that backpack, I'm currently the only one that's logged in yet and opened the backpack to see if it worked, doesn't seem like the backpack restorer is pulling up any info either other than the 1 black backpack that I already have.
Copying those files should work, I've done it many times and see no reason it would ever fail.
The files are only loaded when the server is started so I'm hoping the only problem is that the server wasn't turned off when you copied the files, if they are copied while the server is running they will get overwritten when the server saves its data.
The only other thing I can suggest is bringing up your permission menu using "/backpack permissions" and enabling your "Moderator" option (you need to be opped to do this) when "Moderator" is enabled you will see everybody's backpacks when you use a backpack restorer and if the backpack restorer still doesn't show the missing backpacks then the backpack data hasn't been restored.
(You could also try copying the 2 dat files to a single player world and seeing if the backpacks can be restored there.)
I got it all sorted out, thanks for the help, when our host updated the server they made quite a mess of things and I had to dig around to get all the proper files, not sure why the backups had everything split up all over. I was able to get them back with the restorer finally.
Recently had a power outage (tornado, yay) which took out our server. On coming back, everyone's backpacks were gone. Backpack restorer couldn't find them, either. In my case, my fully-upgraded backpack was replaced by a 3x9 with nothing in it, and the backpack restorer can find that, but can't find any previous instances.
EDIT: So BCMod-Items indeed lost its data somewhere around there. Copying in an old one, plus using a restorer for one player, seems to have recovered the lost bits.
Request: Would it be possible to change the
config-option to two separate ones? The auto-resupply it a bit to aggressive for my taste. e.g. when I have a craftingtable in my inventory and in my backpack, and I place the craftingtable, it gets resupplied... I don't want that. But I would like to keep the auto-collect feature.
EDIT: Disregard, I just noticed a filter for auto-resupply. I overlooked that and thought there only was one for collect. Sorry.
Hi!
I like this mod. But I have a problem.
When I take a backpack in my hand, and I right click to vanilia chest, chest is opened. After I click to backpack, I got two window. One of them the top of the chest, and the second is the bottom backpack. I can exhange items between these. This is okay. But I can't do this for example with @Bibliocraft framed framed chest, because the backpak is on the top window, and the inventory is the bottom window. How can I exchange item between @Bibliocraft chest and the backpaks directly? Thank you!
Edit:
I have a new idea (suggestion) because as I see, many modded chest/barrel incompatible with this mod (this is mean: I can't exchange item directly between backpaks and modded chest/barrel as I wrote above).
Well, resupply function is exists, and working. But this is works only, if I put item to the surface. My idea: if any item run out from inventory (for example the player put something to the modded chest/barrel) then resupply them automatically, similar to the "Inventory Tweaks" mod works:
https://minecraft.curseforge.com/projects/inventory-tweaks
"It automatically replaces your tools as they break, and item stacks once emptied"
Thank you! Otherwise, I use this mod long time ago, and I like it.
[removed]
The backpack data is stored in the BCMod files but they only get loaded when the server is starts, so if you copied the files while the server was running the server wouldn't notice and would overwrite them when it saves.
If you copy the files while the server is stopped it should work.
Information about quantum backpacks/chests can be found in the 'Safe' section of the original post (included below for convenience).
I am using your mod, Backpacks 3.5.4 for Minecraft 1.12.2 in my modpack https://minecraft.curseforge.com/projects/conquest-colonies-arcane.
Today, while adding a Backpack Pouch to a new backpack my server crashed. The server rebooted, then when I attempted to add a second pouch it crashed again. In both instances, the server crashed the instant I added the pouch and both pouches had successfully upgraded the backpack.
I hope the crash report helps identify the cause.
Crash report: https://pastebin.com/4tYcZ4YL
Thank you,
ClaudiusMinimus
The crash is caused by the 'thutessentials' mod - it's 'InventoryLogger' is crashing the server when a backpack changes size.
You'll want to report the crash to whoever maintains the 'thutessentials' mod.