[Release] Resizeable Inventory

05/05/2018 15:25 accelerated#16
when i open the inventory in game i crash and with log folder text file.

Quote:
2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory00.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory00.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory01.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory01.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory02.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory02.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory03.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory03.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory04.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory04.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory05.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory05.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory06.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory06.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory07.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory07.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory08.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory08.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory09.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory09.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory10.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory10.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:19 CTarga::Load Failed = Theme\Default\WndInventory11.tga

2018/ 5/ 5 08:20:19 CWndNeuz::AdditionalSkinTexture¿¡¼* WndInventory11.tga Open1 ½ÇÆÐ

2018/ 5/ 5 08:20:20 rCnt=1

Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:007CFFF0

- Registers

EAX=00001000 EBX=00267000 ECX=00000630 EDX=00000000 ESI=0019B380
EDI=773D4FB0 EBP=0019B18C ESP=0019A920 EIP=007CFFF0 FLG=00010246
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B

0023:007CFFF0 Neuz.exe
0023:004DC4AE Neuz.exe
0023:004DAC7C Neuz.exe
0023:005199CC Neuz.exe
0023:004DA716 Neuz.exe
0023:004DB4BC Neuz.exe
0023:00574397 Neuz.exe
0023:00513568 Neuz.exe
0023:004DBE69 Neuz.exe
0023:00570915 Neuz.exe
0023:004C5769 Neuz.exe
0023:004C5E91 Neuz.exe
0023:004C59BC Neuz.exe
0023:0060E4D6 Neuz.exe
0023:00513FFC Neuz.exe
0023:004C7DAF Neuz.exe
0023:004719EB Neuz.exe
0023:00492290 Neuz.exe
0023:004920D1 Neuz.exe
0023:00479F01 Neuz.exe
0023:0093899C Neuz.exe
0023:773D8654 KERNEL32.DLL
0023:77B54B17 ntdll.dll
0023:77B54AE7 ntdll.dll
05/05/2018 17:20 mcoocr#17
Quote:
Originally Posted by accelerated View Post
when i open the inventory in game i crash and with log folder text file.
Check your resdata.inc, you obviously got an merge error there.

Take some special attention if you are not using the one from V15 Clean Repack.
05/06/2018 01:19 yazuka21#18
Anyone can share their v19 resource code of this inventory. Thank you. :)

Thank you Thank you !

[Only registered and activated users can see links. Click Here To Register...]

I'm just going to fix the other resdata part and cut v19 inventory eq slots. lol :) :) Btw, Look at the Inventory Slots, items were not perfectly place in each slot and look at the Penya to Perin Converter it is changing its place when I change the Inventory Height.

[Only registered and activated users can see links. Click Here To Register...]

but still thank you. an update will be more helpful . Lol

EDIT:

If you want to change Inventory Slots.

Search :
Code:
  const int nGridTexSize = 32; // texturesize grid
Change : 32 to what size are you going to use.
05/06/2018 04:10 mcoocr#19
Quote:
Originally Posted by yazuka21 View Post
Anyone can share their v19 resource code of this inventory. Thank you. :)

Thank you Thank you !

[Only registered and activated users can see links. Click Here To Register...]

I'm just going to fix the other resdata part and cut v19 inventory eq slots. lol :) :) Btw, Look at the Inventory Slots, items were not perfectly place in each slot and look at the Penya to Perin Converter it is changing its place when I change the Inventory Height.

[Only registered and activated users can see links. Click Here To Register...]

but still thank you. an update will be more helpful . Lol

EDIT:

If you want to change Inventory Slots.

Search :
Code:
  const int nGridTexSize = 32; // texturesize grid
Change : 32 to what size are you going to use.
As mentioned in the initial post, make sure you add the control from the perin counter to the methods saveOriginRects() and getItemRect() to move them properly when the inventory size changes.
05/06/2018 04:35 yazuka21#20
Quote:
Originally Posted by mcoocr View Post
As mentioned in the initial post, make sure you add the control from the perin counter to the methods saveOriginRects() and getItemRect() to move them properly when the inventory size changes.
Yep yep I did, and it works now. ^_^ What I am currently facing is perfect placed items on each slots. I think 38 is the perfect size cuz I advance to 40. Lol

You know any size that you think fits for my inventory ?
[Only registered and activated users can see links. Click Here To Register...]

34/36/38/40, Isn't perfect. :/
05/06/2018 13:39 mcoocr#21
Quote:
Originally Posted by yazuka21 View Post
Yep yep I did, and it works now. ^_^ What I am currently facing is perfect placed items on each slots. I think 38 is the perfect size cuz I advance to 40. Lol

You know any size that you think fits for my inventory ?
[Only registered and activated users can see links. Click Here To Register...]

34/36/38/40, Isn't perfect. :/
With an V15 base 32 is the size of each items .dds file (and the actual space between each item) and also the size for each grid bitmap.

If you are trying to change the texture size to 38 you may also edit the real size of the bitmaps to 38x38 because otherwise the grid items will stretch and overlap the actual items.

But since every item should be 32x32 too i really wonder why the space would be different than 32 pixels.

Another option is, rather than resizing the grid bitmaps, to put an extra offset between each grid element, right here:

Code:
CTexture *ptex = NULL;
CPoint cp;
cp.x = (left + (nGridTexSize * x));
cp.y = (top + (nGridTexSize * y));
Though i also dont have anything other than a V15 source so i only can speculate on this one.
05/06/2018 15:12 yazuka21#22
Can you give me an example of changes here:

Code:
        int left = (pwnd->GetWndRect().left + 5) - 1;
        int top = (pwnd->GetWndRect().top + 1) - 1;
        int width = (pwnd->GetWndRect().Width() - 23);
        int height = (pwnd->GetWndRect().Height() - 22);
Thanks !
05/06/2018 15:42 mcoocr#23
Quote:
Originally Posted by yazuka21 View Post
Can you give me an example of changes here:

Code:
        int left = (pwnd->GetWndRect().left + 5) - 1;
        int top = (pwnd->GetWndRect().top + 1) - 1;
        int width = (pwnd->GetWndRect().Width() - 23);
        int height = (pwnd->GetWndRect().Height() - 22);
Thanks !
These are the boundries of the inventory, no need to change them.

You‘d better try something like this (assuming that you have not altered the nGridTexSize already):
Code:
CTexture *ptex = NULL;
CPoint cp;
cp.x = (left + (6 * (x + 1)) + (nGridTexSize * x));
cp.y = (top + (6 * (y + 1)) + (nGridTexSize * y));
05/06/2018 16:43 yazuka21#24
Quote:
Originally Posted by mcoocr View Post
These are the boundries of the inventory, no need to change them.

You‘d better try something like this (assuming that you have not altered the nGridTexSize already):
Code:
CTexture *ptex = NULL;
CPoint cp;
cp.x = (left + (6 * (x + 1)) + (nGridTexSize * x));
cp.y = (top + (6 * (y + 1)) + (nGridTexSize * y));
Sorry :D

[Only registered and activated users can see links. Click Here To Register...]
05/06/2018 17:21 mcoocr#25
Quote:
Originally Posted by yazuka21 View Post
Sorry :D

[Only registered and activated users can see links. Click Here To Register...]
According to your screenshot the items are indeed 32x32px, also you got 3px space between each item... tweak it a bit and you should get it right.
05/07/2018 08:27 yazuka21#26
Quote:
Originally Posted by mcoocr View Post
According to your screenshot the items are indeed 32x32px, also you got 3px space between each item... tweak it a bit and you should get it right.
You think it's fine or enough ? :D

[Only registered and activated users can see links. Click Here To Register...]

And look at the Item equiped and its background is blurry ? Image error or what ? :D
05/07/2018 17:53 Mike Oxmaul#27
if it's tga set bmyLoader true
05/07/2018 18:14 ディオニュソス#28
Quote:
Originally Posted by Jupsi332 View Post
if it's tga set bmyLoader true
[Only registered and activated users can see links. Click Here To Register...] can deal with tga images as well.
05/10/2018 05:52 yazuka21#29
Quote:
Originally Posted by Jupsi332 View Post
if it's tga set bmyLoader true
It's not tga, it is bmp file.
07/16/2018 22:02 MPZooey#30
Help when i try to open my inventory it crash. and i have this :thinking:
Code:
2018/ 7/17   04:01:27   Jul 17 2018 03:42:59 1 rCnt=1

Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:005B9AD6, CWndInventory::OnInitialUpdate()+0710 byte(s), d:\flyff\source\program\_interface\wndfield.cpp, line 3069+0022 byte(s)

 - Registers

EAX=00000020  EBX=105DF3EC  ECX=0B645350  EDX=00000026  ESI=105DA710
EDI=1049F250  EBP=00000000  ESP=0018B68C  EIP=005B9AD6  FLG=00210202
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B

0023:005B9AD6 Neuz.exe, CWndInventory::OnInitialUpdate()+0710 byte(s)
0023:00514629 Neuz.exe, CWndBase::Create()+0249 byte(s)
0023:004E4ADB Neuz.exe, CWndNeuz::InitDialog()+0251 byte(s)
0023:0057838E Neuz.exe, CWndInventory::Initialize()+0078 byte(s)
0023:004D1673 Neuz.exe, CWndMgr::CreateApplet()+0243 byte(s)
0023:004DE6D7 Neuz.exe, CWndMgr::ObjectExecutor()+0951 byte(s)
0023:703D77F6 d3d9.dll
0023:70116707 atiu9pag.dll, XopOpenAdapters9()+2995 byte(s)
0023:6EF3E6E7 atiumdag.dll, OpenAdapter()+17191 byte(s)
0023:759743E4 USER32.dll, ScreenToClient()+0047 byte(s)
0023:008B449F Neuz.exe, free()+0112 byte(s)
0023:008F3C87 Neuz.exe, CPtrArray::SetSize()+0043 byte(s)
0023:009F6878 Neuz.exe, type_info::`vftable'()+0088 byte(s)
AMD A4-6300 APU with Radeon(tm) HD Graphics     Service Pack 1
AMD Radeon HD 8370D, 48234496(1404)
0x7d:0x7d-YS1003 1 73-last Model:part_fStarguardianFoot.o3d
PaintTexture - IN
Surface 256 256, Pt 208 128 IMG_BIT = 3, D3DFORMAT = 26
PaintTexture - OUT