Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

V19 Inventory Resize

Junior Spellweaver
Joined
Mar 24, 2021
Messages
149
Reaction score
25
I just want to share my inventory resize in v19 Ketchup's Release Files


Download this --->View attachment Resize.rar
Search for:
Code:
[B]__RESIZE_INVENTORY[/B]

Download this and Extract to your Theme Folder --->View attachment Inventory Resize Theme.rar

ResData.inc
Code:
APP_INVENTORY "WndTile00.tga" "" 1 256 512 0x2410040 26
{
// Title String
IDS_RESDATA_INC_002130
}
{
// ToolTip
IDS_RESDATA_INC_002131
}
{
    WTYPE_CUSTOM WIDC_CUSTOM1 "" 0 196 8 240 52 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002132
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002133
    }
    WTYPE_TABCTRL WIDC_INVENTORY "" 1 8 276 242 439 0x220000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002134
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002135
    }
    WTYPE_CUSTOM WIDC_GOLD "" 0 102 450 123 471 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002136
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002137
    }
    WTYPE_STATIC WIDC_GOLD_NUM "WndEditTile00.tga" 1 130 450 234 470 0x2220000 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_002138
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002139
    }
    WTYPE_CUSTOM WIDC_CUSTOM2 "" 0 196 55 240 99 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002140
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002141
    }
    WTYPE_CUSTOM WIDC_CUSTOM3 "" 0 196 102 240 146 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002142
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002143
    }
    WTYPE_CUSTOM WIDC_CUSTOM4 "" 0 196 149 240 193 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002144
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002145
    }
    WTYPE_CUSTOM WIDC_CUSTOM5 "" 0 8 8 52 52 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002146
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002147
    }
    WTYPE_CUSTOM WIDC_CUSTOM6 "" 0 8 55 52 99 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002148
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002149
    }
    WTYPE_CUSTOM WIDC_CUSTOM7 "" 0 8 102 52 146 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002150
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002151
    }
    WTYPE_CUSTOM WIDC_CUSTOM8 "" 0 8 149 52 193 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002152
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002153
    }
    WTYPE_CUSTOM WIDC_CUSTOM9 "" 0 8 196 52 240 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002154
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002155
    }
    WTYPE_CUSTOM WIDC_CUSTOM10 "" 0 196 196 240 240 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002156
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002157
    }
    WTYPE_CUSTOM WIDC_CUSTOM11 "" 0 62 6 86 30 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002158
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002159
    }
    WTYPE_CUSTOM WIDC_CUSTOM12 "" 0 87 6 111 30 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002160
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002161
    }
    WTYPE_CUSTOM WIDC_CUSTOM13 "" 0 112 6 136 30 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002162
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002163
    }
    WTYPE_CUSTOM WIDC_CUSTOM14 "" 0 138 6 162 30 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002164
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002165
    }
    WTYPE_CUSTOM WIDC_CUSTOM15 "" 0 163 6 187 30 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002166
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002167
    }
    WTYPE_CUSTOM WIDC_CUSTOM16 "" 0 60 210 91 241 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002168
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002169
    }
    WTYPE_CUSTOM WIDC_CUSTOM17 "" 0 92 210 123 241 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002170
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002171
    }
    WTYPE_CUSTOM WIDC_CUSTOM18 "" 0 125 210 156 241 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002172
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002173
    }
    WTYPE_CUSTOM WIDC_CUSTOM19 "" 0 158 210 189 241 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002174
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002175
    }
    WTYPE_CUSTOM WIDC_CUSTOM20 "" 0 64 32 184 206 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_002176
    }
    {
    // ToolTip
    IDS_RESDATA_INC_002177
    }
    WTYPE_CUSTOM WIDC_CUSTOM21 "" 0 8 450 33 475 0x260000 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_003778
    }
    {
    // ToolTip
    IDS_RESDATA_INC_003779
    }
    WTYPE_STATIC WIDC_STATIC11 "InvLeft.bmp" 0 8 8 52 240 0x220002 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_800190
    }
    {
    // ToolTip
    IDS_RESDATA_INC_800191
    }
    WTYPE_STATIC WIDC_STATIC12 "InvTop.bmp" 0 62 6 188 31 0x220002 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_800192
    }
    {
    // ToolTip
    IDS_RESDATA_INC_800193
    }
    WTYPE_STATIC WIDC_STATIC13 "InvRight.bmp" 0 196 8 241 240 0x220002 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_800194
    }
    {
    // ToolTip
    IDS_RESDATA_INC_800195
    }
    WTYPE_STATIC WIDC_STATIC14 "InvBottom.bmp" 0 59 209 191 242 0x220002 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_800196
    }
    {
    // ToolTip
    IDS_RESDATA_INC_800197
    }
    WTYPE_STATIC WIDC_STATIC1 "ButtMoney.tga" 0 104 450 126 469 0x220002 0 0 0 0 246 204 77
    {
    // Title String
    IDS_RESDATA_INC_800198
    }
    {
    // ToolTip
    IDS_RESDATA_INC_800199
    }

}
I take zero credits for this thread i just slightly edit things to fit the items in inventory slots and some png edits..
 

Attachments

You must be registered for see attachments list
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
Just curious what the white spots are in the photo, are those custom things you removed or ?

Asking as people might get confused, nonetheless thanks for your contribution.
 
Initiate Mage
Joined
Feb 28, 2022
Messages
39
Reaction score
10
Installed this over base Ketchup V19, and have multiple errors in the compiler, but they're all about only a single thing. Hopefully you, or someone, can direct me on how to fix this! Thanks :)

6x Error: identifier "WIDC_BUTTON_OPEN_SWITCH" is undefined [Neuz] \_Interface\WndField.cpp


Update: void refreshItemRects(); from \_Interface\WndField.h needs to be defined on the base Ketchup V19 as well.
Quickadd: search for bool SetEnchantCursor(); and add void refreshItemRects(); under that.

Update #2: add #define WIDC_BUTTON_OPEN_SWITCH 2000 to \Source\Resource\ResData.h before the #endif at the bottom of the file.
This made errors disappear, and compile completed. Testing now :)
 
Last edited:
Junior Spellweaver
Joined
Mar 24, 2021
Messages
149
Reaction score
25
Just curious what the white spots are in the photo, are those custom things you removed or ?

Asking as people might get confused, nonetheless thanks for your contribution.

It's just item search and a button below for switch equipment



Installed this over base Ketchup V19, and have multiple errors in the compiler, but they're all about only a single thing. Hopefully you, or someone, can direct me on how to fix this! Thanks :)

6x Error: identifier "WIDC_BUTTON_OPEN_SWITCH" is undefined [Neuz] \_Interface\WndField.cpp


Update: void refreshItemRects(); from \_Interface\WndField.h needs to be defined on the base Ketchup V19 as well.
Quickadd: search for bool SetEnchantCursor(); and add void refreshItemRects(); under that.

Update #2: add #define WIDC_BUTTON_OPEN_SWITCH 2000 to \Source\Resource\ResData.h before the #endif at the bottom of the file.
This made errors disappear, and compile completed. Testing now :)


Remove this in WndField.cpp:
Code:
arOriginalSizes.push_back(ctrlhelp(WIDC_BUTTON_OPEN_SWITCH, STATIC, GetDlgItem(WIDC_BUTTON_OPEN_SWITCH)->GetWndRect()));

case WIDC_BUTTON_OPEN_SWITCH:

Replace this in WndField.h

Search for SetEnchantCursor();
Replace:
Code:
void SetEnchantCursor();
to
Code:
bool SetEnchantCursor();
void refreshItemRects();

Hope it will fix your problem
 
Last edited:
Junior Spellweaver
Joined
Jul 13, 2013
Messages
139
Reaction score
1
Thanks for sharing !It seems work in V18.3 too,but something maybe wrong,the "sort button" what's missing.
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Mar 24, 2021
Messages
149
Reaction score
25
Thanks for sharing !It seems work in V18.3 too,but something maybe wrong,the "sort button" what's missing.

Check your resdata if you have function for inventory sort and add function for inventory sort like this:
Code:
    WTYPE_BUTTON WIDC_BUTTON1 "WndInventoryAlign.tga" 0 38 450 62 474 0x220010 0 0 0 0 0 0 0
    {
    // Title String
    IDS_RESDATA_INC_800144
    }
    {
    // ToolTip
    IDS_RESDATA_INC_800145
    }

or use GUIEditor maybe you got the button in your inventory but position was not right
 
Initiate Mage
Joined
Feb 28, 2022
Messages
39
Reaction score
10
Thanks for the reply!

With the clean KetchupV19, I have also had to change this code in WndField.cpp:

Replace:
Code:
void CWndInventory::SetEnchantCursor()
{
    // Àκ¥Ã¢ÀÌ ¿­·ÁÀÖ°í ÀÎþƮ ¸ðµåÀ̸é Ä¿¼­¸ð¾ç º¯°æ
    if( m_bIsUpgradeMode )
    {
        SetMouseCursor( CUR_HAMMER );
    }
    else
    {
        SetMouseCursor( CUR_BASE );        
    }
}

With:
Code:
bool CWndInventory::SetEnchantCursor()
{
    bool bRet = false;

    if (m_bIsUpgradeMode)
    {
        SetMouseCursor(CUR_HAMMER);
        bRet = true;
    }
    else
    {
        SetMouseCursor(CUR_BASE);
    }

    return bRet;
}

After doing all this, the files compile properly. However, after I log in to my account, when I choose the channel I want to log in to, before the character selection, the client hangs on that screen now.

UPDATE:
After reinstalling my database I was able to connect on a fresh character and it works just fine! Now to solve why I can't log in a second time....


UPDATE 2:
For anyone having the same issues as myself, I've solved them all and detailed how here: https://forum.ragezone.com/f483/help-client-stalling-with-168-a-1208264/
 
Last edited:
Junior Spellweaver
Joined
Jul 13, 2013
Messages
139
Reaction score
1
Check your resdata if you have function for inventory sort and add function for inventory sort like this:
Code:
    WTYPE_BUTTON WIDC_BUTTON1 "WndInventoryAlign.tga" 0 38 450 62 474 0x220010 0 0 0 0 0 0 0
    {
    // Title String
    IDS_RESDATA_INC_800144
    }
    {
    // ToolTip
    IDS_RESDATA_INC_800145
    }

or use GUIEditor maybe you got the button in your inventory but position was not right

thanks and i will try later~~

update:this solved my fault , thank you !
 
Last edited:
Initiate Mage
Joined
Jul 8, 2022
Messages
8
Reaction score
1
I have the same compile error as the user above (Garinggo).
Severity Code Description Project File Line Suppression StateError LNK2019 unresolved external symbol
"public: void __thiscall CWndInventory::refreshItemRects(void)" (?refreshItemRects@CWndInventory@@QAEXXZ) referenced in function "public: virtual void __thiscall CWndInventory::OnInitialUpdate(void)" (?OnInitialUpdate@CWndInventory@@UAEXXZ) Neuz C:\Users\thinkpad\Desktop\K19\Source\Source\Neuz\WndField.obj 1

i tried the suggested fix (below) but no luck, still the same error

Code:
bool SetEnchantCursor();
void refreshItemRects();

Working on the vanilla V19 (VS22) Ketchup release
 
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
I have the same compile error as the user above (Garinggo).


i tried the suggested fix (below) but no luck, still the same error

Code:
bool SetEnchantCursor();
void refreshItemRects();

Working on the vanilla V19 (VS22) Ketchup release

Did u add this to WndField.h and change them in WndField.cpp?
 
Initiate Mage
Joined
Jul 8, 2022
Messages
8
Reaction score
1
This was already in WndField.h and there weren't any mention of adding them to the cpp?
 
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
Initiate Mage
Joined
Jul 8, 2022
Messages
8
Reaction score
1
Take a look here you'll see the diff im talking about:

This was also discussed here: https://forum.ragezone.com/f457/v19-inventory-resize-1208233-post9144609/#post9144609

Ignore his remarks about logging in as they shouldn't effect you if its just a clean 19.

I have the exact same cpp as the one on the left, with bRet.

are you using this release...? it has many changes to wndfield.cpp

I basically have a clean V19 and I copy pasted WndField.h/cpp and WndItemCtrl.h/cpp from this release to the clean one.

Ps: I'm sorry, I'm a total Noob. We're just putting up this server for a group of friend who want the vanilla experience with no P2W and a bit of QoL, mainly this inventory system >;< Thank you for the quick replies!
image_2022-10-20_144959826 - V19 Inventory Resize - RaGEZONE Forums image_2022-10-20_145026163 - V19 Inventory Resize - RaGEZONE Forums
MakVee - V19 Inventory Resize - RaGEZONE Forums

MakVee - V19 Inventory Resize - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
I have the exact same cpp as the one on the left, with bRet.



I basically have a clean V19 and I copy pasted WndField.h/cpp and WndItemCtrl.h/cpp from this release to the clean one.

Ps: I'm sorry, I'm a total Noob. We're just putting up this server for a group of friend who want the vanilla experience with no P2W and a bit of QoL, mainly this inventory system >;< Thank you for the quick replies!
View attachment 172615View attachment 172614
MakVee - V19 Inventory Resize - RaGEZONE Forums

MakVee - V19 Inventory Resize - RaGEZONE Forums

Upload your .cpp and .h and when i have some spare time ill take a look.
 
Back
Top