Jump to content

simplynice

Members
  • Content Count

    52
  • Joined

  • Last visited


Reputation Activity

  1. Upvote
    simplynice got a reaction from Kido in Item DB file structure overhaul   
    I like the idea how you guys changed the item database file structure just for the sake that us server owner and you guys as a developers wants a readable format. In my point of view I can only see:
     
     
    { // =================== Mandatory fields =============================== Id: ID                        (int) AegisName: "Aegis_Name"       (string, optional if Inherit: true) Name: "Item Name"             (string, optional if Inherit: true) // =================== Optional fields ================================ Type: Item Type               (int, defaults to 3 = etc item) Buy: Buy Price                (int, defaults to Sell * 2) Sell: Sell Price              (int, defaults to Buy / 2) Weight: Item Weight           (int, defaults to 0) Atk: Attack                   (int, defaults to 0) Matk: Magical Attack          (int, defaults to 0, ignored in pre-re) Def: Defense                  (int, defaults to 0) Range: Attack Range           (int, defaults to 0) Slots: Slots                  (int, defaults to 0) Job: Job mask                 (int, defaults to all jobs = 0xFFFFFFFF) Upper: Upper mask             (int, defaults to any = 0x3f) Gender: Gender                (int, defaults to both = 2) Loc: Equip location           (int, required value for equipment) WeaponLv: Weapon Level        (int, defaults to 0) EquipLv: Equip required level (int, defaults to 0) EquipLv: [min, max]           (alternative syntax with min / max level) Refine: Refineable            (boolean, defaults to true) View: View ID                 (int, defaults to 0) Script: <" Script (it can be multi-line) "> OnEquipScript: <" OnEquip Script (can also be multi-line) "> OnUnequipScript: <" OnUnequip Script (can also be multi-line) "> // =================== Optional fields (item_db2 only) ================ Inherit: true/false           (boolean, if true, inherit the values                              that weren't specified, from item_db.conf,                              else override it and use default values)},  35 lines of code if it's a complete code, 3 lines of mandatory code excluding braces. In my item_db.txt i have 8.3k lines of code and I'm still using the old format, converting it will increase the line and yes parsing is not that fast.

    I agree it's readable. Format is good but line consuming. Parsing is not that fast. Size of file increase.
  2. Upvote
    simplynice reacted to Mhalicot in Help Inventory Size   
    Download this msgstringtable.txt of mine.
     
    Please Mark "ANSWERED" if it solved your problem
     
    The reason is, there is a missing text in line 1749. I've seen this solution somewhere else in this forum, I can't remember where.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.