Giter VIP home page Giter VIP logo

travian-elephant-finder's Introduction

Github stats

Top Languages Card

travian-elephant-finder's People

Contributors

benealgirdas avatar dependabot[bot] avatar kingmaker-agm avatar tegos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

travian-elephant-finder's Issues

Не выполняется поиск оазисов

Привет, подскажи пожалуйста, в чем может быть проблема? Не находит оазисы. Проблема в конфиге или в самом скрипте? Я вижу что пресет кукиес отличается от того что на стрине, мб в этом проблема?
Вот видео: https://youtu.be/uMMtLa8lgeY

Unexpected end of JSON input

Following up on #18, I still get this error when I run npm run collect. Issue exists for ts7.x1.international.travian.com server.

> [email protected] collect
> node src/scripts/collectOasysPosition.js

P:\TravianElephantFinder\node_modules\jsonfile\index.js:67
      throw err
      ^

SyntaxError: data/oasis.json: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Object.readFileSync (P:\TravianElephantFinder\node_modules\jsonfile\index.js:63:17)
    at Object.<anonymous> (P:\TravianElephantFinder\src\scripts\collectOasysPosition.js:11:30)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

I installed by using yarn install and npm run preinstal-windows. I have correctly set the .env file (correct server) and pasted my cookie in src/config/cookie.txt.

bad credentials due to token expiration

for a long scan, there is an error "bad credentials" due to the expiration of the token I suppose? is there maybe something else that i miss ? any solutions ?

cant run the app

I'm writhing in this section because I couldn't send you private message.

I'm new to java-script, can you help me running this with eclipse?

json error then enoent

npm run collect

[email protected] collect
node src/scripts/collectOasysPosition.js

C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\jsonfile\index.js:67
throw err
^

SyntaxError: data/oasis.json: Unexpected end of JSON input
at JSON.parse ()
at Object.readFileSync (C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\jsonfile\index.js:63:17)
at Object. (C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\scripts\collectOasysPosition.js:8:30)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
PS C:\Users\Administrator\Desktop\travian-elephant-finder-master>

then if I place curly brackets inside the empty oasis.json file it runs but gives the different error below

Error: ENOENT: no such file or directory, open 'src/config/token.txt'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at Object.getToken (C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\config\index.js:39:20)
at Object.getBearerHeader (C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\config\index.js:43:22)
at C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\libs\axiosApi.js:14:27
at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:61:5)
at module.exports.runLoopOnce (C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\deasync\index.js:64:10)
at module.exports (C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\deasync-promise\index.js:13:9)
at module.exports (C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\system-sleep\module.js:30:36)
at Object. (C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\scripts\collectOasysPosition.js:47:5) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'src/config/token.txt'
}

Cannot read property 'data' of undefined

Hey, I tried to run this awesome script and I got this error.

Unhandled rejection TypeError: Cannot read property 'data' of undefined
at makeSearchElephant.then (C:\Users\Desktop\travian-master\app.js:49:26)
at tryCatcher (C:\Users\Desktop\travian-master\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\Desktop\travian-master\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Users\Desktop\travian-master\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Users\Desktop\travian-master\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Users\Desktop\travian-master\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (C:\Users\Desktop\travian-master\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (C:\Users\Desktop\travian-master\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Desktop\travian-master\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at module.exports.runLoopOnce (C:\Users\Desktop\travian-master\node_modules\deasync\index.js:65:10)
at module.exports (C:\Users\Desktop\travian-master\node_modules\deasync-promise\index.js:13:9)
at module.exports.interval (C:\Users\Desktop\travian-master\node_modules\system-sleep\module.js:24:36)
at Object. (C:\Users\Desktop\travian-master\app.js:74:3)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)

Second question does this work on Travian 4.x servers? because I change some lines like "travianServer", I change from Ajax to karte.php because 4.x server don't have Ajax. And last question will be. What I need to change in Config file? Cookie and Ajaxtoken, what is it? And how to get it? Sometimes when I launch script its showing 404.
return rp.post( travianServer + '/karte.php?cmd=viewTileDetails', {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.