I cannot figure out how to delete my post. I figured it out a few minutes after making the post. sorry. I know how to get a bag that has 36 slots. But every time I attempt to create a bag that has more than 36 slots, I get an error saying “Item has too large value in ContainerSlots (40), replace by hardcoded limit (36).” My question is that, Is that a client limit or is there a way I can change that to have more slots per bag?
That’s a limit in TC in file Bag.h
#define MAX_BAG_SIZE 36
I don’t know the client limitiations. You may can try to increase this value and check what’s happen.
I am pretty sure this is probably the wrong section to talk about this. If it is possible to move this topic to the right section that would be fine with me. I changed MAX_BAG_SIZE to 50 and once the server sees the bag with the 50 bag slots I get the error in the picture. I am very new to the programming and debugging unfortunately. However my guess is that there is a link to MAX_BAG_SIZE and something else that is stopping that value to be bigger than 36. When I attempt to debug I get these "
Unhandled exception at 0x00007FF616C83EAE in worldserver.exe: 0xC0000005: Access violation writing location 0x0000000000000000.
Exception thrown at 0x00007FF616C83EAE in worldserver.exe: 0xC0000005: Access violation writing location 0x0000000000000000.
Does anyone have any ideas?
[ATTACH]1765._xfImport[/ATTACH]
You have a unknown revision no. Do you use latest version of core and compile it yourself ?
There is no guaranty that increasing MAX_BAG_SIZE is really working. Neither on server nor on client side. I just don’t know.
The error is issued by the SetGuidValue() function which is already used in Bag::Create(). So may you don’t have enough fields somewhere to really save the additional slots and you ran into an overflow.
Edit: I found the reason in UpdateFieldFlags.cpp. The slots are quite hardcoded there and therefore can’t increased easily.
This is a client limit, you cannot go over 36