Inventory test - problem

This is the place to discuss all issues relating to the manipulation of graphics/animations, sounds, music and cinematics within Diablo 2.

Moderators: Necrolis, Nefarius

Post Reply
User avatar
ZOMB
Posts: 51
Joined: Fri Feb 04, 2011 8:45 am

Inventory test - problem

Post by ZOMB » Sat Jun 04, 2011 11:01 am

Hi
I tried to make new inventory to my mod and it looks like this http://www.zomb.webzdarma.cz/inver.jpg
But i have a problem... whenever i displace a mouse under belt/boots/rings game crash - UNHANDLED EXCEPTION
here is my Inventory.txt http://www.zomb.webzdarma.cz/inventory.txt
Dont you know how to solve this?
Fan, player and modmaker of game Diablo 2
Diablo 2: Is Alive
Diablo 2: Skiller

User avatar
EmaStergam
Posts: 92
Joined: Tue Aug 28, 2007 4:53 pm
Location: Serbia

Re: Inventory test - problem

Post by EmaStergam » Sat Jun 04, 2011 1:42 pm

Hi,

Hmm few things i can see that look bad to me
-All slots for gear should be multiply by cell size. If weapon slot is 2x4 cells then it should be multiplied by 29x29 to get slot size, then it will be 58x116.
-*Couse of crash* Size of inventori must be 1 pixel smaller then calclated size. If you have 10x6 inventory you will calculate needed size as 290x174, but it must be 289x173. Dont ask why.

You can use D2Inventory to make inventory grid edits faster and check it against common errors.
viewtopic.php?f=7&t=56721&start=0

cya

User avatar
kingpin
Retired Admin
Cherub
Posts: 10954
Joined: Sat Jan 11, 2003 12:51 pm
Contact:
Sweden

Hand-picked

Re: Inventory test - problem

Post by kingpin » Sat Jun 04, 2011 1:49 pm

-All slots for gear should be multiply by cell size. If weapon slot is 2x4 cells then it should be multiplied by 29x29 to get slot size, then it will be 58x116.
-*Couse of crash* Size of inventori must be 1 pixel smaller then calclated size. If you have 10x6 inventory you will calculate needed size as 290x174, but it must be 289x173. Dont ask why.
It's very simple. They doing 0-x/0-y then calc size.

User avatar
ZOMB
Posts: 51
Joined: Fri Feb 04, 2011 8:45 am

Re: Inventory test - problem

Post by ZOMB » Sat Jun 04, 2011 3:22 pm

Thanks!! It works fine now...
And yes, im using D2Inventory - it is very useful program for editing inventory/stash/cube... very good work!
Fan, player and modmaker of game Diablo 2
Diablo 2: Is Alive
Diablo 2: Skiller

Post Reply

Return to “Multimedia”