meepen / salien-bot

Steam Summer Sale 2018 "Salien" minigame bot - runs in console or browser
MIT License
417 stars 103 forks source link

Not sure what's going wrong here... #127

Closed Leotrak closed 6 years ago

Leotrak commented 6 years ago

Soooo, tried installing the thingy according to the posted guide for the headless version, and I keep getting this when I try to run the application... Any hints or ideas on what I'm doing wrong?

undefined:1

SyntaxError: Unexpected end of JSON input at JSON.parse () at Object. (E:\Everything Else\Small Games\nodejs\salien-bot-master\headless.js:67:23) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3

Final edit: thanks for the help, guys. Error ended up being the existence of two gettoken files - one created by me, one by the app. The one from the app, and thus used by the app, was empty...

EoD commented 6 years ago

Did you run npm install? Did you copy the token as described into gettoken.json?

meepen commented 6 years ago

gettoken.json doesn't exist

meepen commented 6 years ago

or has the wrong values.

Adenser commented 6 years ago

if it wouldnt exist there would be a error like this image

Frederic94500 commented 6 years ago

Me too I have a strange problem:

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:140:18)
    at node.js:1043:3
meepen commented 6 years ago

@Frederic94500 that's another issue entirely. it's caused by an older version of node. i will add support for it.

meepen commented 6 years ago

Yes, your gettoken.json has the wrong values. Make sure to copy everything from the gettoken link into that file.