bobode / d2db

Online Inventory viewing for d2bs.
1 stars 0 forks source link

ReferenceError: JSON is not defined #2

Open efortenberry opened 9 years ago

efortenberry commented 9 years ago

I placed the script in tools/UploadAccount.js and here is where I called it from within default.dbj:

image

However, when it's loaded, I get the following output:

[Error (1)] File(kolbot/tools/uploadaccount.js:13) ReferenceError: JSON is not defined Script tools/uploadaccount.js ended

Any ideas on how to fix this?

efortenberry commented 9 years ago

I just tried adding include("json2.js"); to the top of UploadAccount.js. However, I'm now getting the following errors:

[Strict Warning] File(kolbot/tools/uploadaccount.js:59) trailing comma is not legal [Error (1)] File(kolbot/tools/uploadaccount.js:18) ReferenceError: socket is not defined Script tools/uploadaccount.js ended

bobode commented 9 years ago

JSON.stringify is somethig that comes with the latest d2bs core. socket comes with rev 1854 found here : https://www.assembla.com/spaces/d2bs/documents

the socket stuff needs d2bs 1854 or better

efortenberry commented 9 years ago

Bobode I'm not sure I understand how to update to d2bs 1854. I'm using kolton's kolbot version on github: https://github.com/kolton/d2bot-with-kolbot.

I see on Assembla, you have a more updated version, but I'm not sure if this is using Kolbot or how to run it. I've downloaded the latest 1854 branch, but not really seeing how to run it like I did with Kolbot.

Any help would be much appreciated.

bobode commented 9 years ago

just copy / replace the files in the supplied zip with the ones that came with kolbot

 On Sunday, August 30, 2015 4:56 PM, Eric Fortenberry <notifications@github.com> wrote:

Bobode I'm not sure I understand how to update to d2bs 1854. I'm using kolton's kolbot version on github: https://github.com/kolton/d2bot-with-kolbot. I see on Assembla, you have a more updated version, but I'm not sure if this is using Kolbot or how to run it. I've downloaded the latest 1854 branch, but not really seeing how to run it like I did with Kolbot.Any help would be much appreciated.— Reply to this email directly or view it on GitHub.