kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
346 stars 334 forks source link

error 144 consistently when editing scripts #1804

Open Whitekey06 opened 5 years ago

Whitekey06 commented 5 years ago

d2 lod

// Sorceress config file

/* Brief instructions:

function LoadConfig() { /* Sequence config

mf022 commented 5 years ago

please remove wall of unaligned text. it's very hard even to compare, because the formatting isn't kept. Instead, use https://pastebin.com/ .

other way is to use http://esprima.org/demo/validate.html with that I found that you have added extra character \ and return around your line 509

Config.DodgeHP = 70\
;

3rd method is to use SVN Diff comparing your file and the default one Sorceress.js. You'll see easily the changes.

olsoner1 commented 5 years ago

// User addon script. Read the description in libs/bots/UserAddon.js Scripts.UserAddon = true; // !!!YOU MUST SET THIS TO FALSE IF YOU WANT TO RUN BOSS/AREA SCRIPTS!!!

Whitekey06 commented 5 years ago

Sorry, I should have switched that over so I didn’t confused the people helping. When that’s set to true it let’s you run other scripts like rushing bot and free play mode.

It pops an error up way before I change the first script option. I believe it’s a issue with notepad++ because I don’t have any issues when editing on normal notepad.

On Thu, Jul 18, 2019 at 5:01 PM olsoner1 notifications@github.com wrote:

// User addon script. Read the description in libs/bots/UserAddon.js Scripts.UserAddon = true; // !!!YOU MUST SET THIS TO FALSE IF YOU WANT TO RUN BOSS/AREA SCRIPTS!!!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kolton/d2bot-with-kolbot/issues/1804?email_source=notifications&email_token=AMTSJUJZ5BNPJRC6HYWRGFDQAD74FA5CNFSM4IEP4HRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2KFPJQ#issuecomment-513038246, or mute the thread https://github.com/notifications/unsubscribe-auth/AMTSJUIL3FNUXPY7BNNFO2DQAD74FANCNFSM4IEP4HRA .

--

David Bowles Manzon Development Contractor 604-751-3056 ManzonDevelopment.ca https://manzondevelopment.ca/

Spoofzor commented 5 years ago

In console it tells you which file/line is resulting in an error. The problem is in your config file Sorceress.ice_baller.js at line 508.

Like mf022 said, pasting a huge block of text doesn't maintain formatting, line numbering or syntax highlighting - making it very tedious for people to try and detect what's wrong. Please use pastebin or similar, and you can even select javascript/JS for syntax highlighting.

mf022 has already provided you the solution. You have a syntax error: Config.DodgeHP = 70\ ;

This syntax error causes the validation of your config file to fail (resulting in the first error) Then, config.js attempts to access your character specific config that has an error (resulting in the second error)

Simply remove the \ and it should read Config.DodgeHP = 70;

Whitekey06 commented 5 years ago

Thank you! That was it!

On Fri, Jul 19, 2019 at 1:23 PM Spoofzor notifications@github.com wrote:

In console it tells you which file/line is resulting in an error. The problem is in your config file Sorceress.ice_baller.js at line 508.

Like mf022 said, pasting a huge block of text doesn't maintain formatting, line numbering or syntax highlighting - making it very tedious for people to try and detect what's wrong. Please use pastebin or similar, and you can even select javascript/JS for syntax highlighting.

mf022 has already provided you the solution. You have a syntax error: Config.DodgeHP = 70\ ;

This syntax error causes the validation of your config file to fail (resulting in the first error) Then, config.js attempts to access your character specific config that has an error (resulting in the second error)

Simply remove the \ and it should read Config.DodgeHP = 70;

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kolton/d2bot-with-kolbot/issues/1804?email_source=notifications&email_token=AMTSJUKZADKGM4AHTE7EGALQAIPC5A5CNFSM4IEP4HRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2MVLQA#issuecomment-513365440, or mute the thread https://github.com/notifications/unsubscribe-auth/AMTSJUJKYVG6456LQRVV2B3QAIPC5ANCNFSM4IEP4HRA .

--

David Bowles Manzon Development Contractor 604-751-3056 ManzonDevelopment.ca https://manzondevelopment.ca/