Items.xml problem (Bug)

Discussion in 'Support' started by Priest3, Dec 4, 2018.

  1. Priest3

    Priest3 New Member

    Joined:
    Feb 16, 2018
    Messages:
    28
    Likes Received:
    9
    Best Answers:
    0
    Hello Guys ,I have been in server developing for a while now even though I haven't faced an issue like this :) which is any Items.xml on my pc is corrupted
    As an example :
    Code (Lua):
    1.   <item id="2492" article="a" name="dragon scale mail">
    2.     <attribute key="weight" value="11400" />
    3.     <attribute key="armor" value="15" />
    4.     <attribute key="slotType" value="body" />
    5.   </item>
    6.   <item id="2493" article="a" name="demon helmet">
    7.     <attribute key="description" value="You hear an evil whispering from the inside." />
    8.     <attribute key="weight" value="2950" />
    9.     <attribute key="armor" value="10" />
    10.     <attribute key="slotType" value="head" />
    11.   </item>
    12.   <item id="2494" article="a" name="demon armor">
    13.     <attribute key="weight" value="8000" />
    14.     <attribute key="armor" value="16" />
    15.     <attribute key="slotType" value="body" />
    16.   </item>
    17.   <item id="2495" name="demon legs">
    18.     <attribute key="weight" value="5400" />
    19.     <attribute key="armor" value="9" />
    20.     <attribute key="slotType" value="legs" />
    21.   </item>
    22.   <item id="2496" article="a" name="horned helmet">
    23.     <attribute key="weight" value="5100" />
    24.     <attribute key="armor" value="11" />
    25.     <attribute key="slotType" value="head" />
    26.   </item>
    27.   <item id="2497" article="a" name="crusader helmet">
    28.     <attribute key="weight" value="5200" />
    29.     <attribute key="armor" value="8" />
    30.     <attribute key="slotType" value="head" />
    31.   </item>
    32.   <item id="2498" article="a" name="royal helmet">
    33.     <attribute key="description" value="An excellent masterpiece of a smith." />
    34.     <attribute key="weight" value="4800" />
    35.     <attribute key="armor" value="9" />
    36.     <attribute key="slotType" value="head" />
    37.   </item>
    38.  
    As shown above royal helmet id is 2498 while the true id should be :3386
    , dragon scale mail id is 2492 while the true id should be :3392
    P.S :That's items.xml 8.6 :)
     
  2. MikeOT

    MikeOT Active Member

    Joined:
    Jan 22, 2017
    Messages:
    128
    Likes Received:
    25
    Best Answers:
    2
    What do you mean by "true id" ? There are two different ids associated with your server:

    1. The server id, which is what your items.xml file references
    2. Your client id, which is used by the client

    They both CAN be the same. It depends on the order in which they are in your spr and dat files, and your items.otb respectively, but they don't have to be.
     
    Xikini likes this.
  3. Priest3

    Priest3 New Member

    Joined:
    Feb 16, 2018
    Messages:
    28
    Likes Received:
    9
    Best Answers:
    0
    I mean with "true id" that the id supposed to be 3386 in rh not 2498
    I recognize that there are two different ids but what i wanna know is why does any items.xml gets corrupted whenever i download a new one
     
  4. MikeOT

    MikeOT Active Member

    Joined:
    Jan 22, 2017
    Messages:
    128
    Likes Received:
    25
    Best Answers:
    2
    So, when you download a new items.otb and items.xml, in the otb and the items.xml a royal helmet is id 3386..... but somehow it automatically changes in your items.xml to 2498?


    I suppose what I'm getting at is: How do you know that RH is supposed to be 3386 in your distro?

    What distro are you using?
     
    luptonicedtea and Xikini like this.
  5. Priest3

    Priest3 New Member

    Joined:
    Feb 16, 2018
    Messages:
    28
    Likes Received:
    9
    Best Answers:
    0
    Yup whenever i download a new items.otb and items.xml it changes even before i open it for the first time
    I do not know sadly :(
    tfs 0.4
     
  6. Loney

    Loney Premium User Premium User

    Joined:
    Jul 23, 2012
    Messages:
    1,785
    Likes Received:
    105
    Best Answers:
    0
    If you look through the console error, you'll know which exact line of your xml file is corrupted. Then open it with NotePad++ and search for the line.
     
  7. Stigma

    Stigma Support Team Support Team

    Joined:
    Feb 14, 2015
    Messages:
    4,323
    Likes Received:
    2,027
    Best Answers:
    351
    that's not a corruption error
    where are you getting your items.xml from?
     
  8. Priest3

    Priest3 New Member

    Joined:
    Feb 16, 2018
    Messages:
    28
    Likes Received:
    9
    Best Answers:
    0
    I don't get any console errors :) the server works just fine but with wrong item ids
    tried to get it from many sources like Emporia Vapus ,Euforia and Masiyah Datapack which im using right now
     
  9. Ascuas Funkeln

    Ascuas Funkeln Rakkedo Game

    Joined:
    Apr 14, 2013
    Messages:
    93
    Likes Received:
    44
    Best Answers:
    4
    Nope man, your id's are fine. You just do not understand how it works.
    ID: 3386 is a client side ID, this number using only client its defined in tibia.spr/tibia.dat.
    ID: 2498 is a server ID, this number using only server its defined in items.xml.
    Items.otb works like "decoder and merger", merges them together and then server read the same item in different value.

    The simplest explanation of it...
    @MikeOT told you the same...
     
    luptonicedtea and MikeOT like this.

Share This Page

Loading...