Advertiser Content
Male
Seen July 4th, 2019
Posted June 29th, 2019
3 posts
3.5 Years
Increase Item Stack Limit from 99 to 999
Increase stack to 999
In the src\item.c
Delete
if (pocket != BERRIES_POCKET)
            slotCapacity = 99;
        else
Fully see total # of items
In the src\item_menu.c
Change (around line 861)
ConvertIntToDecimalStringN(gStringVar1, itemQuantity, 1, 2);
to
ConvertIntToDecimalStringN(gStringVar1, itemQuantity, 1, 3);
Male
Seen July 4th, 2019
Posted June 29th, 2019
3 posts
3.5 Years
Increase Pokemart Max Purchase Amount from 99 to 255 (255 seems to be the max)
In the src\shop.c
Around (around line 986)
Change
ConvertIntToDecimalStringN(gStringVar1, quantityInBag, STR_CONV_MODE_RIGHT_ALIGN, 4);
to
ConvertIntToDecimalStringN(gStringVar1, quantityInBag, STR_CONV_MODE_RIGHT_ALIGN, 5);
Around (around line 996)
Change
if (maxQuantity > 99)
    {
        gShopDataPtr->maxQuantity = 99;
    }
to
if (maxQuantity > 255)
    {
        gShopDataPtr->maxQuantity = 255;
    }
Around (around line 1028)
Change
ConvertIntToDecimalStringN(gStringVar2, tItemCount, STR_CONV_MODE_LEFT_ALIGN, 2);
to
ConvertIntToDecimalStringN(gStringVar2, tItemCount, STR_CONV_MODE_LEFT_ALIGN, 3);
Around (around line 1050)
Change
ConvertIntToDecimalStringN(gStringVar1, tItemCount, 2, 2);
to
ConvertIntToDecimalStringN(gStringVar1, tItemCount, 2, 3);
In the src\item_menu.c
Around (around line 1058)
Change
u8 r3 = (gBagPositionStruct.pocket == BERRIES_POCKET) ? 3 : 2;
    ConvertIntToDecimalStringN(gStringVar1, b, 2, r3);
to
ConvertIntToDecimalStringN(gStringVar1, b, 2, 3);
Male
Seen July 4th, 2019
Posted June 29th, 2019
3 posts
3.5 Years
Added bonus: Increase Bag and PC size (Unsure if there is a hard limit)
Need to do more testing, best not to use it
Spoiler:
In the include\constants\global.h
#define PC_ITEMS_COUNT 99
#define BAG_ITEMS_COUNT 99
#define BAG_KEYITEMS_COUNT 30
#define BAG_POKEBALLS_COUNT 99
#define BAG_TMHM_COUNT 64
#define BAG_BERRIES_COUNT 99
#define EVENT_OBJECT_TEMPLATES_COUNT 64

#define PYRAMID_BAG_ITEMS_COUNT 99

Buffel Saft

Male
Seen 1 Hour Ago
Posted 1 Hour Ago
584 posts
6.1 Years
Added bonus: Increase Bag and PC size (Unsure if there is a hard limit)
In the include\constants\global.h
#define PC_ITEMS_COUNT 99
#define BAG_ITEMS_COUNT 99
#define BAG_KEYITEMS_COUNT 30
#define BAG_POKEBALLS_COUNT 99
#define BAG_TMHM_COUNT 64
#define BAG_BERRIES_COUNT 99
#define EVENT_OBJECT_TEMPLATES_COUNT 64

#define PYRAMID_BAG_ITEMS_COUNT 99
To expand bag size you'll also need to edit the size of these buffers in src/item_menu.c:
struct ListBuffer1 {
    struct ListMenuItem subBuffers[65];
};

struct ListBuffer2 {
    s8 name[65][24]; 
};
I'm not sure if the buffer size is based on the largest bag pocket or just the TMs/HMs pocket (I've only tested TMs so far), but the buffers need to be at least one larger than the TMs pocket or the item graphics won't load and the game will freeze when you try to use a TM.

The limit on bag size depends on how much space you have available in the "SaveBlock1" struct in include/global.h; if there's nowhere to save all the extra items the bag won't work properly.
Advertiser Content