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

Unable to put bags in slots #244

Open
Alatarius opened this issue Jan 15, 2024 · 8 comments
Open

Unable to put bags in slots #244

Alatarius opened this issue Jan 15, 2024 · 8 comments

Comments

@Alatarius
Copy link

When I try to put a bag in the bag slot, it just gets returned to my inventory. There were no errors given, just bags not able to be used

@Alatarius
Copy link
Author

@SmallJoker
Copy link
Member

Cannot reproduce.
Please add a print or minetest.log calls in between here to check whether the callback is executed. The function will always be called when dropping a bag inside any of the bag slots.

unified_inventory/bags.lua

Lines 207 to 208 in 921a6d7

end
return 1

Then also check whether on_put is executed too. According to your video, this function will never run.

unified_inventory/bags.lua

Lines 210 to 214 in 921a6d7

on_put = function(inv, listname, index, stack, player)
player:get_inventory():set_size(listname .. "contents",
stack:get_definition().groups.bagslots)
save_bags_metadata(player, inv)
end,

If my prediction is true, please start a new world with only unified_inventory enabled and enable the mods one-by-one until the bug occurs.

@Alatarius
Copy link
Author

Cannot reproduce. Please add a print or minetest.log calls in between here to check whether the callback is executed. The function will always be called when dropping a bag inside any of the bag slots.

unified_inventory/bags.lua

Lines 207 to 208 in 921a6d7

end
return 1

I know nothing about coding at all. How would I do that?

@SmallJoker
Copy link
Member

@Alatarius For example, change this

	end
	return 1

Into this:

	end
	minetest.log("warning", "Hello world 1")
	return 1

Or just create a new world and try to figure out which mods it needs until the bags can no longer be put into the slots.

@Alatarius
Copy link
Author

Alatarius commented Jan 17, 2024

So this is exactly what I write in that space? minetest.log("warning", "Hello world 1")

Because this is happening to everyone on my server. Some experience it with mods some have even experience this without mods and the experience is not consistent on mod usage among my users

@Alatarius
Copy link
Author

I tried 3 new worlds and the mod that breaks the bag thing is different in all 3. They I retried it again in all 3 worlds and the mods that broke it were different. It's not consistent with which mod is doing it. On my 4th try all I had was UI active and it did it again and am unable to place bags in their slots.

@Alatarius
Copy link
Author

I added the bit of code above but I don't know what to do after that. I ran it but there is nothing anywhere on my drive that has minetest.log filename

@fluxionary
Copy link

I tried 3 new worlds and the mod that breaks the bag thing is different in all 3.

can you provide a full list of mods in use for any case where the issue happens? it's almost certainly due to a conflict with another mod. it's impossible to guess what that is though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants