The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other [HELP] Change the limit of items in bag (https://www.pokecommunity.com/showthread.php?t=350354)

RuFF June 9th, 2015 10:00 PM

[HELP] Change the limit of items in bag
 
Is there a way of changing the limit of items in the bag in Gen 3 games (Most probably RUBY)?
Like if the limit of items is 20 you can change it to 50 or 100.

EDIT: What I meant was I'd like to see if we can change the number if different items that can fit in the bag.

robinjea June 12th, 2015 1:29 PM

I'm not really sure but iirc, all items (as in normal items not key items) can go up to x999 without errors.

BluRose June 12th, 2015 1:37 PM

I think what they are asking is the amount of different items, right?

RuFF June 12th, 2015 6:41 PM

Quote:

Originally Posted by BlackWhiteRobin (Post 8795197)
I'm not really sure but iirc, all items (as in normal items not key items) can go up to x999 without errors.

Just like what BluRose said, I'm asking if the amount of different items that can fit in the bag to avoid the "too bad the bag is full" message. I might not have said it clear from the first post. Sorry.
Quote:

Originally Posted by BluRose (Post 8795207)
I think what they are asking is the amount of different items, right?

Yes that's what I meant. :)

BluRose June 13th, 2015 11:47 AM

Quote:

Originally Posted by quil09 (Post 8795515)
Just like what BluRose said, I'm asking if the amount of different items that can fit in the bag to avoid the "too bad the bag is full" message. I might not have said it clear from the first post. Sorry.


Yes that's what I meant. :)

Well, anyways, I'm no expert on this, but I do think that this would require some (or a lot of) ASM.
I don't know how much different items the Bag currently supports (or could theoretically support with the current data structure).
What this could mean is just changing the value of a limiter somewhere or having to change the whole Bag's routine in order to give it more space to hold items.
I'm willing to bet the latter, though...

Q-orca June 13th, 2015 4:27 PM

Quote:

Originally Posted by BluRose (Post 8796491)
Well, anyways, I'm no expert on this, but I do think that this would require some (or a lot of) ASM.
I don't know how much different items the Bag currently supports (or could theoretically support with the current data structure).
What this could mean is just changing the value of a limiter somewhere or having to change the whole Bag's routine in order to give it more space to hold items.
I'm willing to bet the latter, though...

Assuming Ruby has the same structure as Sapphire, it can hold 166 different items.
IMO, ASM is required only for save / load, if the maximum is more than 166

PokéMew June 13th, 2015 4:45 PM

Pretty sure none of this involves ASM, it probably just involves changing a few bytes in a hex editor to make it so that the bag limit is no longer required. Of course, this could be wrong and doing so could cause minor or major problems with the item bag or the items beyond the new limit themselves.. In which case, it would involve ASM.

azurile13 June 13th, 2015 9:00 PM

Quote:

Originally Posted by Q-orca (Post 8796754)
Assuming Ruby has the same structure as Sapphire, it can hold 166 different items.
IMO, ASM is required only for save / load, if the maximum is more than 166

Uhh. The original post was about increasing the number of items a pocket can hold. Given that they probably don't want to do it at the cost of other pockets or PC space, it can be inferred that they do want a maximum of more than 166. I don't know what you're trying to get at.

Quote:

Originally Posted by PokéMew (Post 8796770)
Pretty sure none of this involves ASM, it probably just involves changing a few bytes in a hex editor to make it so that the bag limit is no longer required. Of course, this could be wrong and doing so could cause minor or major problems with the item bag or the items beyond the new limit themselves.. In which case, it would involve ASM.

It would be great if I'm wrong on this, but I very much doubt this. Every additional item entry costs 4 bytes (even key items, iirc). That space has to be coming from somewhere, and it seems unlikely that the game would be programmed in a way that changing a few bytes makes it magically know where to store additional items. Even if items are stored in a single static location, I wouldn't be surprised to see them stacked up against each other.

PokéMew June 14th, 2015 4:30 AM

Quote:

Originally Posted by azurile13 (Post 8797092)
It would be great if I'm wrong on this, but I very much doubt this. Every additional item entry costs 4 bytes (even key items, iirc). That space has to be coming from somewhere, and it seems unlikely that the game would be programmed in a way that changing a few bytes makes it magically know where to store additional items. Even if items are stored in a single static location, I wouldn't be surprised to see them stacked up against each other.

Yeah, your absolutely right, I always forget about the ram -_-
In which case... You'd resort to option 2 of my post, asm, because as I said it would probably cause corruption to the item bag or the item's themselves if you didn't. However that doesn't change the fact that the limit itself still exists, in which case i'm 90% sure you would just need to change some hex to remove the limiter. THEN I suppose you would write a routine to let the items go beyond the limit to make it actually work..


All times are GMT -8. The time now is 2:30 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.