tegos / travian-elephant-finder Goto Github PK
View Code? Open in Web Editor NEWTravian Animals Finder
License: MIT License
Travian Animals Finder
License: MIT License
Привет, подскажи пожалуйста, в чем может быть проблема? Не находит оазисы. Проблема в конфиге или в самом скрипте? Я вижу что пресет кукиес отличается от того что на стрине, мб в этом проблема?
Вот видео: https://youtu.be/uMMtLa8lgeY
Can you please put some instructions on how to open it?
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
.
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 ?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] clean: node cleanData.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] clean script.
npm ERR! This is probably not a problem with npm. There is likely additional logging
output above.
2020-06-07T04_48_41_755Z-debug.log
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?
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'
}
This feature will allow add new functionality such token renew etc.
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', {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.