How can I edit an item to be a container?

Discussion in 'Support' started by Sebastian Vega, Mar 21, 2017.

  1. Sebastian Vega

    Sebastian Vega New Member

    Joined:
    Mar 19, 2017
    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Hi, recently i added an item to my OT 8.6 and I edited it in xml so that it can be opened but when it opens I get 'debug', can someone help me?

    [​IMG]

    [​IMG]

    and here is the .xml

    [​IMG]
     
  2. grilo13

    grilo13 RAWR

    Joined:
    Jun 17, 2011
    Messages:
    177
    Likes Received:
    27
    Best Answers:
    0
    It doesn't have the value slotType neither weight (Don't know if you want this to be a backpack, but I guess it need to have weight)

    Code (Text):
    1.     <item id="1988" article="a" name="backpack">
    2.         <attribute key="weight" value="1800" />
    3.         <attribute key="containerSize" value="20" />
    4.         <attribute key="slotType" value="backpack" />
    5.     </item>
     
  3. Crevasse

    Crevasse 惡名昭彰

    Joined:
    Jan 13, 2017
    Messages:
    50
    Likes Received:
    8
    Best Answers:
    2
    You also need to edit the items.otb and make sure you flag it as a container in there. If you don't do that, only changing the xml file won't fix it.
     
  4. Sebastian Vega

    Sebastian Vega New Member

    Joined:
    Mar 19, 2017
    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    I did what u said and nothing changes :( and also i have the item as a container in items.otb, here some images

    [​IMG]



    [​IMG]


    [​IMG]

    [​IMG]

    and also it doesnt change the weight
     
  5. Crevasse

    Crevasse 惡名昭彰

    Joined:
    Jan 13, 2017
    Messages:
    50
    Likes Received:
    8
    Best Answers:
    2
    What type of server are you using?
     
  6. Sebastian Vega

    Sebastian Vega New Member

    Joined:
    Mar 19, 2017
    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    I'm using TFS 0.3.6
     
  7. Crevasse

    Crevasse 惡名昭彰

    Joined:
    Jan 13, 2017
    Messages:
    50
    Likes Received:
    8
    Best Answers:
    2
    Oh snap man I've never used that one before I'm not sure. All I know is from my own experience from adding custom items is this: 1) Put the sprite in the game with Object Builder, 2) mark all the attributes/flags in Object Builder (container, useable, pickupable, etc), 3) edit the items.otb, edit items.xml.

    Again I've never used 0.3.6 before so if there's some other steps I wouldn't know :/ sorry man!
     
  8. Sebastian Vega

    Sebastian Vega New Member

    Joined:
    Mar 19, 2017
    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Which type of server do u use? i have read that tfs 0.3.6 is pretty buggy, so i'm thinking on working on a updated version
     
  9. Il Knight

    Il Knight Active Member

    Joined:
    Dec 1, 2014
    Messages:
    461
    Likes Received:
    217
    Best Answers:
    6
    the debug is client side.
    use the option reload item or update item in the itemEditor then save as a new ITEM otb in other folder, and cut it and replace the old item.otb
     
  10. Sebastian Vega

    Sebastian Vega New Member

    Joined:
    Mar 19, 2017
    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    did it but it doesnt fix :/
     
  11. massuco

    massuco Brazilian, sorry for my bad english XD

    Joined:
    Feb 17, 2013
    Messages:
    58
    Likes Received:
    3
    Best Answers:
    4
    Try to use Object builder, find the sprite > go to propertys, and check Container. Save the sprite and the client.

    Only edit items.otb and items.xml will not works, client also needs the option container checked.
     
  12. Crevasse

    Crevasse 惡名昭彰

    Joined:
    Jan 13, 2017
    Messages:
    50
    Likes Received:
    8
    Best Answers:
    2
    @Sebastian Vega I have used TFS1.2 and OTX, I like both. Working on an OTX project right now.
     
  13. Lelodro

    Lelodro OTX Collaborator

    Joined:
    Sep 15, 2008
    Messages:
    289
    Likes Received:
    149
    Best Answers:
    1
    Edit flag un object builder...
     

Share This Page

Loading...