additem issue

  • Here is the error SMS below :

    TypeError: Cannot use 'in' operator to search for 'Durability' in undefined

    at Function.addMissingCondition (E:\Client.0.12.10.2.12646\obj\bundle.js:50321:40)

    at Function.getItemCondition (E:\Client.0.12.10.2.12646\obj\bundle.js:50298:30)

    at Function.createOffer (E:\Client.0.12.10.2.12646\obj\bundle.js:50183:27)

    at Function.generateTraderOffers (E:\Client.0.12.10.2.12646\obj\bundle.js:50147:21)

    at Function.update (E:\Client.0.12.10.2.12646\obj\bundle.js:50103:23)

    at Function.load (E:\Client.0.12.10.2.12646\obj\bundle.js:50050:19)

    at Object.load [as aki-ragfair] (E:\Client.0.12.10.2.12646\obj\bundle.js:41601:19)

    at Function.load (E:\Client.0.12.10.2.12646\obj\bundle.js:50597:27)

    at Function.main (E:\Client.0.12.10.2.12646\obj\bundle.js:40117:9)

    at Object.142../Lib.js (E:\Client.0.12.10.2.12646\obj\bundle.js:40122:9)

    [SUCCESS] Started webserver at https://127.0.0.1:443

    [SUCCESS] Started websocket at wss://127.0.0.1:443



    The problem are when i add newitem data into traders assort file (54cb50c76803fa8b248b4571) like add a bullt or anything .than the erroe SMS is show up. in the server 1.40 , is normal.
    like is :


        "items": [

    {
                "_id": "DBP10", <---newitem
                "_tpl": "DBP10",
                "upd": {
                    "UnlimitedCount": true,
                    "StackObjectsCount": 999999999
    },
                "parentId": "hideout",
                "slotId": "hideout"
    },

    .....

       "barter_scheme": {

            "DBP10": [
    [
    {
                        "count": 500,
                        "_tpl": "5449016a4bdc2d6f028b456f"
    }
    ]
    ],

    ....

        "loyal_level_items": {

            "DBP10": 2,

    ......

  • SPT Team

    Closed the thread.
  • SPT Team

    Set the Label from In progress to Unresolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!