Discussion in   Report Bug   started     11 years ago   August 21, 2013, 03:06:40 PM   by   Kane

small crate turning issue

Kane
Offline
591 Posts
Topic :   small crate turning issue
11 years ago  August 21, 2013, 03:06:40 PM

Take a small crate you get from a Tyrant, lock it down at your house and then use the int dec tool to turn it.  The small crate turns into a small keg of the same color, turn it again and it turns back a small crate.   The other size crate seems to work fine, as does actual small kegs found this same way.

Thanks.

Keldon
Offline
223 Posts
#1 Re :   small crate turning issue
11 years ago  August 21, 2013, 04:09:38 PM

going to make a guess here as to what the issue is.  In the coding there is a line to call out what graphic to use depending on which way an item if facing.


Code: [Select]
[FlipableAttribute( 0x13db, 0x13e2 )]


This is probably set to 2 different container graphics so they only had to write 1 file to get the two different tyrant chest graphics.  Hence the reason we see either small crates or kegs as tyrant chests.  It is the same as the chest dropping facing the two different ways.

Kyn
Offline
336 Posts
#2 Re :   small crate turning issue
11 years ago  August 21, 2013, 06:03:55 PM

Code: [Select]
going to make a guess here as to what the issue is.  In the coding there is a line to call out what graphic to use depending on which way an item if facing.


[code
[FlipableAttribute( 0x13db, 0x13e2 )]


This is probably set to 2 different container graphics so they only had to write 1 file to get the two different tyrant chest graphics.  Hence the reason we see either small crates or kegs as tyrant chests.  It is the same as the chest dropping facing the two different ways.


Since its a square box. my fix was probably going to be making it the same itemID on flip. However I need to look at it first and see if there is an actual "flipped" itemID for the box first :)

Keldon
Offline
223 Posts
#3 Re :   small crate turning issue
11 years ago  August 21, 2013, 06:27:02 PM

hehe, made my post as i was running out the door to leave for work.  Corrected the code tags so it doesn't look like a retard posted it.


I think all of the containers are slightly longer but I do not know if they have a second ItemID for when it is turned.  If i was not at work I would take a look.