Coder Social home page Coder Social logo

breuerfelix / king-bot-api Goto Github PK

View Code? Open in Web Editor NEW
30.0 8.0 34.0 2.53 MB

advanced automation tool for travian kingdoms

Home Page: http://kingbot.felixbreuer.me

License: MIT License

JavaScript 74.24% TypeScript 24.70% HTML 0.50% Dockerfile 0.16% Shell 0.40%
bot travian kingdoms advanced api automate

king-bot-api's Introduction

king-bot-api's People

Contributors

a-jc-s avatar asremix avatar breuerfelix avatar dependabot[bot] avatar lijok avatar raj-aayush avatar tmfoltz avatar tom-boyd 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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

king-bot-api's Issues

Raise fields bug with insta finish

After setting to upgrade fields to lvl 5 (they were level from 1 to 3) it stopped working halfway through. It insta finished the field but did not build the next one. I turned the option off and on again and it started working again.

Screen of logger:
image

trade routes by %

Hi
I use trade routes to supply growing villages. The problem is that I have to adjust the thresholds for sending resources often, as the storage capacity of the new village grows.
It would require less adjustments, and would also be more intuitive for me, to set the thresholds as percentage of the storage capacity and not as absolute value.
As far as I remember, traviantactics had this implemented by considering values below 100 as percentage, and values above 100 as absolute values.

(Nice to have) Report manager

Export scout reports.
Sort farmlists (green/yellow/red).
Based on resources found set troop number to give village in farmlist (or send attack ?)

Is this worth doing ?

NPM install "method not allowed"

Hello, I'm having a problem installing the bot. After having installed npm from apt and cloned the repo, i get this error when running npm install:

`pi@raspberrypi:~/Travian/king-bot-api $ npm install
(node:8044) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR! at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.14.98-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/Travian/king-bot-api
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Travian/king-bot-api/npm-debug.log
npm ERR! not ok code 0
`
Has anyone encountered this before? I'm running it on a raspberry pi

Bot stop working ECONNREFUSED 52.21.71.179:8070 Error:

Bot not working anymore

Printing this error after run "npm start"
The gui is working fine but not connecting to travian

info: start login...
info: found lobby session in database...
info: database lobby connection successful
info: found gameworld session in database ...
info: database gameworld connection successful
info: server running on => http://localhost:3000
logzio-logger error: Error: connect ECONNREFUSED 52.21.71.179:8070 Error: connect ECONNREFUSED 52.21.71.179:8070
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14) {
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '52.21.71.179',
port: 8070
}

Modify and create farmlist

It would be a good option to be able to edit and modify the farmlist.
For example, being able to remove villages that were added some time ago or have one list for cows and other for active people that we are controlling.
I'm sorry if this option already exists and I haven't found it

iron on raise fields page is zero

Hi
I noticed that whatever I enter as iron value on the raise fields page, the next time I open this page, the iron value is always zero.

trade routes for others

We need a Resource support option to send resources at random interval like every 900-1500 seconds. This would be nice help with kingdoms and WW's later on.

Docker version keep restarting

Latest version
ARM CPU
OpenMediaVault
Docker CE

keep restarting
log
standard_init_linux.go:211: exec user process caused "exec format error"

schedule farmlist

implementing schedule sending farmlists.
this could be really handy for night shift servers.

kingdoms borders gone

After firing up the bot (nodejs version) all the kingdom borders dissapeared permanently, even after marking kingdoms or hovering them shows the default ranges. Is just visual thing but it stuck and no idea what exactly caused it or how to fix it. Tried different browsers - same issue, if i go to new server all is fine

re-login on logout

when some feature receives an error, the application needs to login again to get new tokens

Raise fields: upgrade by storage

It says: "this feature will raise all your fields to a given level on it's own. it will always upgrade the type which got the lowest storage."

I had around 3k of every resources and 300 wheat, the bot started upgrading clay field instead of crop, is it meant to work only for wood, iron, clay and wheat is counted as separate or is it a bug?

FL from multiple villages

Would it be able to change variable format of villages to array of villages ?
Sometimes I would like to send FL from 2 different villages.

Timed attack isn't working properly

It's not sending attacks with the hero. It can send without hero.

If the update can be done, wave attack feature and catapult target selection feature should come.

access bot runing in cloud

i managed to make it run on a ubuntu server in amazon, how do i open the localhost:3000 to access from the internet?

i tried ip_adress:3000, it wont work

please help

Trade Routes to WW and other players

It would be nice if we could sent resources every hour (or other time) to a Wonder of the World. The actually trade works great but only allow to sent res to ours villages/citys.. It could have the following option:

choose the x and y coordinate of destination (player or ww)
choose the interval time between sent
choose only to sent % missing to fill warehouse and granary (or as the actual trade route system is like source > than and destination < than)

It really makes sense in the end of the server.

working time schedule

Hi
I do not trust the bot to run 24/7. If there is anybody halfway attentive to what is going on in the game, he will know that a bot is playing.
I am running the bot by a bash script with timeout and sleep on a raspberry pi, so it's not a real issue for me, but it would be nice to have the working time schedule in the bot.

Use of village ID or village coordinates instead of village name in the code base

The current bot uses the village name when referring to tasks assigned to a certain village. This means that the bot will break under the following conditions:

  • A village name changes
  • Multiple villages (of the same player) share the same name

I think we can refactor the code to ensure that village ID is used (which stays constant and is unique) instead of village name to avoid such issues.

Log in as a Sitter

If you are playing as a sitter, you are getting an 404 in console.

Test case:
I have another account on kingdoms, with servers only playing as sitter/dual (no own servers).
If I give credentials of this account to the main.js console is throwing an 404.

(Heavy optional) Raid robber hideouts

Especially at the beginning of the server when you are left with very few tropps (Romans especially) you need to send those few soldiers again and again. When roman (pret capacity 20 -_-) it is even worse, you need to raid 20-30 times to clear that hideout, it is annoying.

Fresh Install Babel Error

I cloned ran npm install and on npm run build, got the error below.

image

Seems like babel is getting confused. Maybe one of the babel packages got updated and is causing conflicts?

Auto armoury upgrading

As name suggest, adding option that auto upgrades units in armoury to specific level.

Fake sender

How I imagine it:
User creates a farmlist. Sets up the troop number on bot page. Bot will send Attacks with given troop number to each village from farmlist.

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.