V19 Inventory Resize

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Valued Member MakVee is offline
    MemberRank
    Mar 2021 Join Date
    MarsLocation
    129Posts

    V19 Inventory Resize

    I just want to share my inventory resize in v19 Ketchup's Release Files


    Download this --->Resize.rar
    Search for:
    Code:
    __RESIZE_INVENTORY
    Download this and Extract to your Theme Folder --->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..


  2. #2
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    New YorkLocation
    2,847Posts
    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.

  3. #3
    Enthusiast cognitivedesign is offline
    MemberRank
    Feb 2022 Join Date
    39Posts
    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 by cognitivedesign; 29-09-22 at 02:59 AM.

  4. #4
    Valued Member MakVee is offline
    MemberRank
    Mar 2021 Join Date
    MarsLocation
    129Posts
    Quote Originally Posted by Ketchup View Post
    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

    - - - Updated - - -

    Quote Originally Posted by cognitivedesign View Post
    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 by MakVee; 29-09-22 at 07:30 AM.

  5. #5
    Valued Member yjbytyx is offline
    MemberRank
    Jul 2013 Join Date
    138Posts
    Thanks for sharing !It seems work in V18.3 too,but something maybe wrong,the "sort button" what's missing.
    Attached Thumbnails Attached Thumbnails qqtu-pian-20220929213224.png  

  6. #6
    Valued Member MakVee is offline
    MemberRank
    Mar 2021 Join Date
    MarsLocation
    129Posts
    Quote Originally Posted by yjbytyx View Post
    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

  7. #7
    Enthusiast cognitivedesign is offline
    MemberRank
    Feb 2022 Join Date
    39Posts
    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...168-a-1208264/
    Last edited by cognitivedesign; 30-09-22 at 04:43 AM.

  8. #8
    Valued Member yjbytyx is offline
    MemberRank
    Jul 2013 Join Date
    138Posts
    Quote Originally Posted by MakVee View Post
    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 by yjbytyx; 30-09-22 at 11:53 AM. Reason: update

  9. #9
    Account Upgraded | Title Enabled! mehoh23 is offline
    MemberRank
    Jan 2014 Join Date
    224Posts
    can you share your __TARGET_INF_V19 WndField.cpp? i got error on this part adding this system

  10. #10
    Valued Member MakVee is offline
    MemberRank
    Mar 2021 Join Date
    MarsLocation
    129Posts
    Quote Originally Posted by mehoh23 View Post
    can you share your __TARGET_INF_V19 WndField.cpp? i got error on this part adding this system
    I got __TARGET_INF_V19 in attachment above

  11. #11
    Account Upgraded | Title Enabled! mehoh23 is offline
    MemberRank
    Jan 2014 Join Date
    224Posts
    o thanks

  12. #12
    Valued Member garinggo is offline
    MemberRank
    Oct 2015 Join Date
    Malolos BulacanLocation
    127Posts
    [IMG][/IMG]



  13. #13
    Valued Member MakVee is offline
    MemberRank
    Mar 2021 Join Date
    MarsLocation
    129Posts
    Quote Originally Posted by garinggo View Post
    [IMG][/IMG]


    Check this out: refreshItemrects

  14. #14
    Apprentice adelinue is offline
    MemberRank
    Jul 2022 Join Date
    6Posts
    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

  15. #15
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    New YorkLocation
    2,847Posts
    Quote Originally Posted by adelinue View Post
    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?



Page 1 of 2 12 LastLast

Advertisement