* *

News

Nexon has recently updated Mabinogi to a 64 bit client. This update has broken many mods in memory patchers for the time being. The mod creators are working hard to essentially rebuild all mods from scratch, and this process will take some time. Please be patient, and stay tuned for more updates.

Keep in mind that you must register an account, and be logged in to view any content on this site.

Mabinogi Status

Erinn Timer

Time
Erinn Time 14:58
Local 01:34
Server 01:34
Moongate Prior G16 [ + / - ]
11:11 Tir Chonaill
12:22 Dunbarton
13:33 Emain Macha
14:44 Bangor
14:44 Emain Macha
16:66 Emain Macha

Ceo in days.

Price [ + / - ]
01:12 Emain Macha - Island in South Pathway
01:48 Sen Mag 5th house from West
Rua [ + / - ]
01:39 Resting
02:15 Resting

Themes





Author Topic: [Guide] Understanding itemdb.xml  (Read 1917 times)

0 Members and 1 Guest are viewing this topic.

Offline Noonehere

[Guide] Understanding itemdb.xml
« on: June 13, 2017, 08:30:20 pm »
I've been looking into the parameters of itemdb.xml.
Here's a short guide on what the parameters mean. Feel free to add in your knowledge.
This guide doesn't contain everything about itemdb.xml (yet).

Last Update: 25/10/2018
Contributors: Rydian, Flipend0

Legend:
Parameter: Description

ID: Item ID (or Class ID, for debugging)
DB_StoreType: Always 1. Never seen it 0
Category: Allows the item to do some stuff based on what the client can do. Examples are being a Wand type, a blunt weapon, a book, enchantable, dyable, repairable, ego-able, etc
XML: Extra info that gets parsed out. Can be read easier by using an HTML un-escaper. Examples are custom idle motions, wings mesh locations, head/ears framework, extra stats, etc.
Text_Name0: Internal Item Text name. Often used in KR as the "engrish" name
Text_Name1: The name of the item you see on Mabi. Use with itemdb.<language>.xml (from Language.pack) to find the item you're looking for
Text_Desc1: The item description
Bundle_Type: Has 3 values. 0 is does not stack. 1 is does stack on itself. 2 is a bag that holds a number of the item determined by the XML param.
Bundle_Max: Max stack size or bag carry size
Price_Buy: Npc default shop price (The NPC can override the price to something else)

Attr_ActionFlag: More information about this below
Attr_Type: Allows the item to act a certain way (like equips in the slot, or thing holds money). More info below
Attr_Grade: Unsure what it does. Only 1 item has Attr_Grade="1"
Attr_RaceFilter: Applies restrictions on the item (Giant, human, elf, female, male)
File_MaleMesh: The pmg mesh that appears on human/elf males
File_FemaleMesh: The pmg mesh that appears on human/elf females
File_GiantMesh: The pmg mesh that appears on Giant males
File_FemaleGiantMesh: The pmg mesh that appears on Giant females
File_FieldMesh: The pmg mesh that appears when on the floor
File_InvImage: The image of the item in inventory

Inv_XSize: Size of the item on the X axis of your inv.
Inv_YSize: Size of the item on the Y axis of your inv
App_WeaponActionType: ???
App_WearType: Not sure what other values go here and what they do. More info below.
App_UseC4Layer: A flag for using the fourth colour layer. Possibly on the .dds
App_Color1: First dyeable spot. Determines Dye Palette. More info below
App_Color2: Second dyeable spot. Determines Dye Palette. More info below
App_Color3: Third dyeable spot. Determines Dye Palette. More info below
App_ColorOrder: Not sure

App_AnimationType: The animation set used for the weapon. Corresponds to sets in motion.xml. No idea what the numbers in the brackets mean
App_SittingType: Determines sitting posture for clothing. More Info below
Taste_anything: NPC Gifting values. More info in Mabniation

Metalware_UItooltip: Something about being Reforgable
Enchant_UItooltip: Something about being Enchantable
Upgrade_UItooltip: Something about being Upgradable
Par_BlockUseFlag: Possibly controls what can be ctrl+clicked or not
Par_UpgradeMax: Max number of upgrades it can go through
Par_GemUpgradeMax: Max number of gem upgrades it can go through
Par_DurabilityMax: Base dura
Par_Defense: Base defense
Par_ProtectRate: Base prot
Par_AttackMin: Minimum base attack
Par_AttackMax: Max base attack
Par_WAttackMin: Minimum base wound
Par_WAttackMax: Max base wound
Par_CriticalRate: Base crit
Par_AttackBalance: Base balance
Par_EffectiveRange: The effective range of the weapon
Par_AttackSpeed: Possibly determines Normal, Very Fast, Fast, Slow, Very Slow weapons. More Info below
Par_DownHitCount: How much knockdown you apply with weapon

SmartSearchFlag: ???
AuctionSearchFlag: ???


Values:






▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄
/o/ r200 \o\
body -> chest -> leg1l -> leg1r -> leg2l -> leg2r -> head -> claviclel -> clavicler -> footl -> footr -> arm1l -> arm1r -> arm2l -> arm2r -> handl -> handr
Releases:
Vertical Bow Range Shot [.ani]
Everything I make is here
Flying Star Staff [.pmg]
Weapon Animation Translator Guide
Custom Animation on Clothing Guide
PMG Editor Guide

Offline Rydian

Re: [Guide] Understanding itemdb.xml
« Reply #1 on: June 14, 2017, 01:37:53 pm »
Changes I'd make...

ID: Add a note that it's also referred to as the item's "Class ID" (debug values on items in-game use that phrase, as well as debug menus seen sometimes when Sabina doesn't clear her dev title before making a vid or some screenshots).

Category: Note that they're tags for various properties that various skills use (if something is bladed or not), as well as enchants (wooden, cloth, etc).

XML: Note that it's escaped, running it through an HTML un-escaper makes it easily readable.

Text_Name0: Also note that this is the "internal name", the (often engrish) name KR assigns it that shows up below the normal item name in KR (and in NA if that mod/feature is enabled).

Text_Name1: Describe how to find the file and line being referenced.

Price_Buy: Note that this is the item's default price in shops, but NPC shops can override the price on items, for example the Composing book isn't actually 80K, but is set to that price specifically when put in the Dunby book shop.

Taste: Determines how NPCs like it as a gift, each NPC has their own tastes.
http://mabination.com/threads/84968-NPC-Relations-Memory-Favor-Stress-And-Gifting

Par_AttackSpeed: 0-VeryFast, 1-Fast, 2-Normal, 3-Slow, 4-VerySlow, 5+ seem to wrap around.

Offline Noonehere

Re: [Guide] Understanding itemdb.xml
« Reply #2 on: June 14, 2017, 08:06:55 pm »
Added your suggested changes.
Thank you Rydian!
▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄
/o/ r200 \o\
body -> chest -> leg1l -> leg1r -> leg2l -> leg2r -> head -> claviclel -> clavicler -> footl -> footr -> arm1l -> arm1r -> arm2l -> arm2r -> handl -> handr
Releases:
Vertical Bow Range Shot [.ani]
Everything I make is here
Flying Star Staff [.pmg]
Weapon Animation Translator Guide
Custom Animation on Clothing Guide
PMG Editor Guide

Offline Rydian

Re: [Guide] Understanding itemdb.xml
« Reply #3 on: June 26, 2017, 04:34:58 pm »
Alright so I ended up looking into trade options on items and found that the game uses the Attr_ActionFlag property (in addition to tags that may restriction options, and whether the item is "(player)-only").

According to the in-game debugging tooltips on items, some flags are named as such...
Attr_ActionFlag="0", "normal item" (normal crap)
Attr_ActionFlag="1", "static item" (Book Collector Bag, Super Gold Combo Card Pack, Dream Event Celebration Bag, Lorna's Adventure Bag)
Attr_ActionFlag="2", "important item" (Spirit weapon, Avon Feather, Adniel's Horn Bugle)
Attr_ActionFlag="3", "account personal item" (Homestead Fractal Well, Swimsuit (F), Aeira's Bookbag, Simon's Clothing Bag)
Attr_ActionFlag="4", "dungeon item" (Rusted Longsword, Dungeon Room Key)
Attr_ActionFlag="5", "character personal item" (Light of Palala, Advancement Test Discount Coupon, Incomplete Commerce Reforge Tool)
Attr_ActionFlag="12" "not deal item" (Special Tendering Potion S (Event), Chef's Bag, Student Pierrot Mini)
Attr_ActionFlag="13", "important2 item" (Brionac)
Attr_ActionFlag="14", "trade limit item" (Commerce Reforge Tool, Ancient Magic Powder-62067, items with 1 trade in general, trade unlocks on equippables do NOT change their attribute flag because flag is part of item class, not instance).

Yes that one says "important2 item".
http://i.imgur.com/OGACv1D.png

Offline Noonehere

Re: [Guide] Understanding itemdb.xml
« Reply #4 on: June 29, 2017, 07:36:32 pm »
Added your findings. That's pretty interesting.
Thanks Rydian!
▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄
/o/ r200 \o\
body -> chest -> leg1l -> leg1r -> leg2l -> leg2r -> head -> claviclel -> clavicler -> footl -> footr -> arm1l -> arm1r -> arm2l -> arm2r -> handl -> handr
Releases:
Vertical Bow Range Shot [.ani]
Everything I make is here
Flying Star Staff [.pmg]
Weapon Animation Translator Guide
Custom Animation on Clothing Guide
PMG Editor Guide

Offline Rydian

Re: [Guide] Understanding itemdb.xml
« Reply #5 on: July 03, 2017, 02:14:47 am »
I found the debug strings in memory, here's the names of the other attribute values.

6 = region fixed item
7 = bank blocked item
8 = new bag item
9 = bank blocked character personal
10 = guild item
11 = sealed item
15 = remove blocked item
16 = lord key item
17 = get item to personal item

Offline Noonehere

Re: [Guide] Understanding itemdb.xml
« Reply #6 on: July 11, 2017, 04:55:48 pm »
Added. Thank you Rydian!
▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄
/o/ r200 \o\
body -> chest -> leg1l -> leg1r -> leg2l -> leg2r -> head -> claviclel -> clavicler -> footl -> footr -> arm1l -> arm1r -> arm2l -> arm2r -> handl -> handr
Releases:
Vertical Bow Range Shot [.ani]
Everything I make is here
Flying Star Staff [.pmg]
Weapon Animation Translator Guide
Custom Animation on Clothing Guide
PMG Editor Guide

Offline Lady Playtime

Re: [Guide] Understanding itemdb.xml
« Reply #7 on: July 11, 2017, 10:59:17 pm »
Stickied this, as the database of guides is still a WIP.

And of course, my usual request to completely steal all your lovely hard work, to shove it into the master guide compilation. <3
Join me on Twitch, I stream!
^ Click to join me ^




Contact me by email: [email protected]. by Skype: Playtime.xel, PM me here, or say my name in a post and I'll find you!
Quote from: Marck
[12:37:42 AM] Marck: ...
[12:37:44 AM] Marck: Adam
[12:37:50 AM] Marck: You can take over MM now, I'm freaking stupid

Offline Noonehere

Re: [Guide] Understanding itemdb.xml
« Reply #8 on: July 13, 2017, 09:02:02 pm »
And of course, my usual request to completely steal all your lovely hard work, to shove it into the master guide compilation. <3
d('w'
Since it updates so frequently (Thanks Rydian), you're free to get the updates too.
▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄
/o/ r200 \o\
body -> chest -> leg1l -> leg1r -> leg2l -> leg2r -> head -> claviclel -> clavicler -> footl -> footr -> arm1l -> arm1r -> arm2l -> arm2r -> handl -> handr
Releases:
Vertical Bow Range Shot [.ani]
Everything I make is here
Flying Star Staff [.pmg]
Weapon Animation Translator Guide
Custom Animation on Clothing Guide
PMG Editor Guide