Register for your free account! | Forgot your password?

You last visited: Today at 00:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Resizeable Inventory

Discussion on [Release] Resizeable Inventory within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old 04/02/2019, 21:41   #46
 
elite*gold: 0
Join Date: Sep 2010
Posts: 229
Received Thanks: 13
Is was an ODBC issue, nothing was wrong with the source.
♪Chiqupon♫ is offline  
Old 06/21/2019, 05:43   #47
 
elite*gold: 0
Join Date: Jun 2019
Posts: 7
Received Thanks: 0
Hi! I was wondering, can anyone hook me up with your v17 or higher resdata? I have an error of this..
Code:
 2019/ 6/20   20:36:04   GetDlgItem : nID=143 not Found.
I think this is in resdata?
lasdra03 is offline  
Old 04/14/2020, 17:57   #48
 
Wezzy_Dev's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 248
Received Thanks: 28
sad!

i change

#ifdef _INVENTORY_RESIZEABLE
for(int i = 1; ; i++)
{
CTexture *ptex = NULL;
char tmp[32] = { 0 };

TO

#ifdef _INVENTORY_RESIZEABLE
for(int i = 1; i <= 12; i++)
{
CTexture *ptex = NULL;
char tmp[32] = { 0 };

And still

error Theme\Default\InvGrid13.bmp not found
Wezzy_Dev is offline  
Old 04/14/2020, 19:58   #49
 
Hyellow's Avatar
 
elite*gold: 0
Join Date: Feb 2020
Posts: 64
Received Thanks: 23
Quote:
Originally Posted by Wezzy_Dev View Post
sad!

i change

#ifdef _INVENTORY_RESIZEABLE
for(int i = 1; ; i++)
{
CTexture *ptex = NULL;
char tmp[32] = { 0 };

TO

#ifdef _INVENTORY_RESIZEABLE
for(int i = 1; i <= 12; i++)
{
CTexture *ptex = NULL;
char tmp[32] = { 0 };

And still

error Theme\Default\InvGrid13.bmp not found
Why would you change the source's code if the error itself telling you what you should do to fix your problem.

It seems you changed something inside its loop.
Hyellow is offline  
Old 09/01/2020, 11:20   #50
 
elite*gold: 0
Join Date: Aug 2020
Posts: 1
Received Thanks: 0
Error 1 error C2864: "CWndInventory::nGridTexSize": Only static constant integer data members can be initialized in the class H:\game\make\new80ff (SRC)-2\Src\_Interface\WndField.h 245
wyq123 is offline  
Old 03/16/2022, 19:49   #51
 
elite*gold: 0
Join Date: Aug 2017
Posts: 11
Received Thanks: 1
no errors on compiling but when i start neuz i got this problem.
styxhelix3 is offline  
Old 09/17/2022, 08:48   #52
 
Int16's Avatar
 
elite*gold: 115
Join Date: Jun 2022
Posts: 13
Received Thanks: 14
Thanks for the release i tweaked the design a little bit so the inventory equipment window stays centered


and i would use this method to set the new resizing sizes to avoid the bug where the inventory border cuts out

Code:
/*maximum slots you can expand by resizing*/
int maxWidthResize = 17;
int maxHeightResize = 10;

//your inventorys originals height/widht from the resdata
int inventoryHeight = 464;
int inventoryWidth = 240;

/*change nGridTexSize in the header file if you want play around with the v19 inventory alignment*/
AdjustMinRect(&rectWnd, inventoryWidth, inventoryHeight);
AdjustMaxRect(&rectWnd, inventoryWidth + ( nGridTexSize * maxWidthResize), inventoryHeight + ( nGridTexSize * maxHeightResize));
keep in mind that this download is not the full code only the changes i made after using the released code

Int16 is offline  
Thanks
1 User
Old 09/19/2022, 06:38   #53
 
elite*gold: 0
Join Date: Apr 2019
Posts: 81
Received Thanks: 7
Anyone knows how to fit this feature in v19 files?
IFlyffMc is offline  
Old 09/19/2022, 07:59   #54
 
Int16's Avatar
 
elite*gold: 115
Join Date: Jun 2022
Posts: 13
Received Thanks: 14
Quote:
Originally Posted by IFlyffMc View Post
Anyone knows how to fit this feature in v19 files?
first you need to change the nGridTexSize to 35 in the wndField.h (could also be 38 because on the v19 inventory it has 3 pixel spaces between each inventory slot)


then insert the default v19 inventory width/height in the AdjustMinRect part :

Code:
void CWndInventory::SetWndRect(CRect rectWnd, BOOL bOnSize)
.....
AdjustMinRect(&rectWnd, /*width here */,  /*height here */);

and if its still not properly aligned you have to play around with those vars :

Code:
   
void CWndInventory::OnDraw(C2DRender* p2DRender)
........
     
CWndTabCtrl *pwnd = (CWndTabCtrl*)GetDlgItem(WIDC_INVENTORY);
        int left = (pwnd->GetWndRect().left + 5) - 1; // +5 border left
        int top = (pwnd->GetWndRect().top + 1) - 1; // +1 offset top
        int width = (pwnd->GetWndRect().Width() - 23); // -18 scrollbar right (-5 border left)
        int height = (pwnd->GetWndRect().Height() - 22); // -21 label bottom (-1 offset top)
        int rows = (height / nGridTexSize), cols = (width / nGridTexSize);
someone on here was playing around with it too if you go a couple pages back you can find some more information about it
Int16 is offline  
Old 09/19/2022, 10:17   #55
 
elite*gold: 0
Join Date: Apr 2019
Posts: 81
Received Thanks: 7
Quote:
Originally Posted by Int16 View Post
first you need to change the nGridTexSize to 35 in the wndField.h (could also be 38 because on the v19 inventory it has 3 pixel spaces between each inventory slot)


then insert the default v19 inventory width/height in the AdjustMinRect part :

Code:
void CWndInventory::SetWndRect(CRect rectWnd, BOOL bOnSize)
.....
AdjustMinRect(&rectWnd, /*width here */,  /*height here */);

and if its still not properly aligned you have to play around with those vars :

Code:
   
void CWndInventory::OnDraw(C2DRender* p2DRender)
........
     
CWndTabCtrl *pwnd = (CWndTabCtrl*)GetDlgItem(WIDC_INVENTORY);
        int left = (pwnd->GetWndRect().left + 5) - 1; // +5 border left
        int top = (pwnd->GetWndRect().top + 1) - 1; // +1 offset top
        int width = (pwnd->GetWndRect().Width() - 23); // -18 scrollbar right (-5 border left)
        int height = (pwnd->GetWndRect().Height() - 22); // -21 label bottom (-1 offset top)
        int rows = (height / nGridTexSize), cols = (width / nGridTexSize);
someone on here was playing around with it too if you go a couple pages back you can find some more information about it

35 is fine but after i changed it the inventory resizing is not functioning. I mean the resize arrow is showing up but the inventory which is WndTile00 is not resizing can you help me please?
IFlyffMc is offline  
Old 09/28/2022, 05:20   #56
 
elite*gold: 0
Join Date: Jan 2016
Posts: 15
Received Thanks: 0
Quote:
Originally Posted by mcoocr View Post
Hi folks,

today i'm releasing what i've worked on for the last few days -> an resizeable inventory for Flyff!



So far i've seen this system on only one server, which is also the reason why i've decided to recode this because it's such a huge improvement for Flyff's interface which actually every server should provide.

Although this requires a bunch of modifications through various files (including resources). Therefore you may be faster by diffing the files to your own source rather than inserting the snippets below manually.

If you prefer merging the snippets into your source / resource, and i really recommend you to do so, you can grab the snippets (including the base source for diff) from here (password = "mcoocr"):


Also note i've coded this on a clean V15 base, you may need to add your custom or additional inventory controls (like perin counter, etc.)... to make this more comprehensible i've added the checkbox controls from __SYS_280514 (hide / show CS items) as an example to show how this could be done.

In case you modified the original inventory size (for example if you use perin counters, etc.) make sure you adjust the size at AdjustMinRect() call to the new one.


Monstrous spoiler warning!




Done!

PS: i'm entirely sure there are better or smarter ways to handle the custom textures for the grid / weapon / armor background rendering rather than the way i actually implemented it (didn't wasted much time on this), feel free to leave comments or improve this on your own.


Greetings ~mcoocr
is possible that re-upload the link?thanks
yjbytyx is offline  
Old 09/28/2022, 07:56   #57
 
Int16's Avatar
 
elite*gold: 115
Join Date: Jun 2022
Posts: 13
Received Thanks: 14
Quote:
Originally Posted by yjbytyx View Post
is possible that re-upload the link?thanks


let me know if i missed something
Int16 is offline  
Thanks
1 User
Old 09/29/2022, 10:05   #58
 
elite*gold: 0
Join Date: Jan 2016
Posts: 15
Received Thanks: 0
Quote:
Originally Posted by Int16 View Post


let me know if i missed something
thank you ~
yjbytyx is offline  
Old 10/06/2022, 05:26   #59
 
okatokat²'s Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 680
Received Thanks: 106
Quote:
Originally Posted by Int16 View Post
Thanks for the release i tweaked the design a little bit so the inventory equipment window stays centered



and i would use this method to set the new resizing sizes to avoid the bug where the inventory border cuts out

Code:
/*maximum slots you can expand by resizing*/
int maxWidthResize = 17;
int maxHeightResize = 10;

//your inventorys originals height/widht from the resdata
int inventoryHeight = 464;
int inventoryWidth = 240;

/*change nGridTexSize in the header file if you want play around with the v19 inventory alignment*/
AdjustMinRect(&rectWnd, inventoryWidth, inventoryHeight);
AdjustMaxRect(&rectWnd, inventoryWidth + ( nGridTexSize * maxWidthResize), inventoryHeight + ( nGridTexSize * maxHeightResize));
keep in mind that this download is not the full code only the changes i made after using the released code

thats a huge inventory . would be useful for servers which are high rate / farm server.
okatokat² is offline  
Old 10/06/2022, 05:57   #60
 
Int16's Avatar
 
elite*gold: 115
Join Date: Jun 2022
Posts: 13
Received Thanks: 14
Quote:
Originally Posted by okatokat² View Post
thats a huge inventory . would be useful for servers which are high rate / farm server.
You just never know what inventory sizes people prefer lol

Just give them some options
Int16 is offline  
Reply

Tags
flyff, inventory, resizeable, snippet, source


Similar Threads Similar Threads
[Selling] Sell CS.GO Inventory | Verkaufe mein CS.GO Inventory "CHEAP"
10/10/2015 - Counter-Strike Trading - 3 Replies
Sold Verkauft Best regards Souza
Verkaufe Inventory/Sell Inventory
09/16/2015 - Counter-Strike Trading - 3 Replies
Verkaufen mein Inventar, wenn ihr Interesse an was habt pn´t mich. Steam Community :: Mr.NoAIm :: Item Inventory Akzeptiere Paypal und PSC. ihr gebt First oder MM den wir zusammen aussuchen. LG Erek :)
[Release]Automatic Cps in Inventory
08/29/2012 - CO2 PServer Guides & Releases - 95 Replies
This is for 5165! Go to Mob.cs and search for this. else if (MyMath.ChanceSuccess(DropRates.CPBag)) Under that void put this. if (MyMath.ChanceSuccess(DropRates.CPs)) { if (Char != null) { Char.CPs += CPS AMOUNT YOU WANT;
resizeable 9dragons window
10/01/2008 - 9Dragons - 4 Replies
hi all how do i make resizeable 9dragons window that i can use not on a full screen? like this on picture: http://i34.tinypic.com/ibxa20.jpg thanks



All times are GMT +1. The time now is 00:26.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.