Alistair1231 / Kittens-Game-automation-and-tools

kittens game bot
1 stars 2 forks source link

Kittens-Game-automation-and-tools

Hey there my fellow KG addicts. :D  

I was pretty annoyed with wasting so much resources and all the grind, so that I at first looked for some scripts to automate some game aspects.

I started to use the snippets from this Reddit thread, but then started to write my own Userscript based on the snippets. The Userscript (kittens.user.js) only handles the UI, the rest is done in kittens.js, which gets injected via the userscript.

At this time there is nearly nothing of the code snippets left in my script and I integrated a simple UI: screen

I use a modified CSS, the script only adds the stuff above the chat button

Also I added a lot of features.

I waited before posting the script, so that you get the script with the new UI. Everything should work, I use the script daily myself...

If somthing is broken or if you want to suggest/request something, feel free to check out the GitHub page. I usually answer pretty quick. I am no master of JS or anything like that, so if you have suggestions for improvements, just tell me. :)

The script is published under GPL, so feel free to modify it, fork it, or whatever, as long as you publish it under GPL as well in the end (more info)

If some of you just want to use it as a script from the js console, then just say so and I will add a quick usage guide for the functions...

Install from here or here, If you can't, install this first
GitHub if you want to stay up to date, or if you have suggestions or issues..

originally based off of the code snippets in this Reddit Thread

Changelog (new to old)

- Finally completly reworked UI! 
- reworked kittens.js so that it now is a class, bc of that  
  now clearInterval does what it's supposed to, so readded stop button
- readded concrete, tweaked alloy`so that it only crafts  
  when titanium >0.95 full, while also steel amount >  0.1 * maxCoal  
  so that there is always steel available  
- concrete crafting freezes page every time removed it for now...  
- added concrete crafting while slab between 120000 and 90000  
- added auto titanium to alloy conversion  
- trading fixed for less than 250 titan and less than 5 uranium  
- fixed save  
- autosave delay 20  
- start isn't use by itself anymore so removed it  
- reworked functions, autosave, unlocked  
- uranium trade added  
- fixed prraying... v2  
- fixed auto pray  
- added basic import function  
- removed off bittons for now and changed craft  
  50 to 5 times craft 10, so that you can autocraft steel early game
- hopefully fix off button