Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

iff-files

Joined
Nov 27, 2006
Messages
68
Reaction score
12
I have just checked the Kr part.iff.
It has 516 bytes. Seems very close to the TH and US part.iff.
All the 1st 144 bytes and all textures are the same.
Only the Hidemask has moved (?)
Flags (shop and money) could be like those on the jap version.

chreadie - iff-files - RaGEZONE Forums


chreadie - iff-files - RaGEZONE Forums
 
Last edited:
Creator of Code
Joined
Mar 5, 2006
Messages
371
Reaction score
131
Card.iff is a little bit different than i originally thought, first byte custom to card.iff defines (what i believe to be) what type of card it is.

I will update my application soon to support this.
 
Deny everything.
Joined
Jun 17, 2005
Messages
488
Reaction score
110
Ive noticed that by using my bitmask for item position i get different values for different characters items:

Nuri Shoes is 5 while Hana shoes is 6, anyone have any ideas?

This is normal. The PosMask value within the IFF is different for each character. Here's a somwhat complete mask for Kooh:

Code:
Kooh

    32          28          24          20          16          12           8           4
____Ž`____  ____Ž`____  ____Ž`____  ____Ž`____  ____Ž`____  ____Ž`____  ____Ž`____  ____Ž`____
0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `- Hair
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `---- Ears (Face?)
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   `------ Upper Body
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |      `--------- Sleeves
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |     `------------- Gloves
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `---------------- Panties
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `------------------- Legs
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `---------------------- Shoes
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `------------------------- Cannon (?)
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `---------------------------- (?)
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `------------------------------- Dress Bow
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `---------------------------------- (?)
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `------------------------------------- Hair Ribbon
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `---------------------------------------- Hat
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `------------------------------------------- (?)
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `---------------------------------------------- (?)
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  `------------------------------------------------- Wings
|  |  |  |  |  |  |  |  |  |  |  |  |  |  `---------------------------------------------------- Glasses
|  |  |  |  |  |  |  |  |  |  |  |  |  `------------------------------------------------------- Blushies
|  |  |  |  |  |  |  |  |  |  |  |  `---------------------------------------------------------- Left Face War Paint
|  |  |  |  |  |  |  |  |  |  |  `------------------------------------------------------------- Right Face War Paint
|  |  |  |  |  |  |  |  |  |  `---------------------------------------------------------------- Ears/Headset/Feathers
|  |  |  |  |  |  |  |  |  `------------------------------------------------------------------- Tail
|  |  |  |  |  |  |  |  `---------------------------------------------------------------------- Motion Item
|  |  |  |  |  |  |  `------------------------------------------------------------------------- (?)
|  |  |  |  |  |  `---------------------------------------------------------------------------- (Unused?)
|  |  |  |  |  `------------------------------------------------------------------------------- (Unused?)
|  |  |  |  `---------------------------------------------------------------------------------- (Unused?)
|  |  |  `------------------------------------------------------------------------------------- (Unused?)
|  |  `---------------------------------------------------------------------------------------- (Unused?)
|  `------------------------------------------------------------------------------------------- (Unused?)
`---------------------------------------------------------------------------------------------- (Unused?)

As you'll notice the Pos marker you extract from the TypeID gives you the bit position (starting from 0) of the primary item type (i.e. Blushies or Feathers). This is important to note when dealing with items that take multiple slots.

I assume that due to the different model structure of each character, we'll have to run 9 different PosMasks.

A more interesting aspect is the Type value one can extract from the Type ID - it seems to be constantly increasing (just like the Serial, where I do expect this behaviour). For Nuri it's 0 for all upper body and lower body parts and many hats (if sorted by TypeID "Halloween (Nuri)", 134223885 will be the last item with type 0) - but suddenly starts fluctuating for newer hats (starting with the "Tomahawk Headset", 134293504 [type: 1] and goes on with the "Gentleman Hairdo", 134348800 [type: 2]). Begs the question whether or not the choice important. Every character has 4 numbers reserved, starting at 0. Some numbers are not being used, though.

It seems generated Type IDs with 0 as Item Type will still work fine - but as with the UCC shirts (where some of the DB values from the Type ID have been nulled) there might be problems later on (currently you can only buy one UCC shirt - so I guess the values are wrong).
 
Last edited:
Creator of Code
Joined
Mar 5, 2006
Messages
371
Reaction score
131
Nice explanation!

From what ive seen:
Position it a digit between 0 and 20 and type is a digit between 0 and 4.

More research will teach us more!
 
Back
Top