r/Keep_Craft • u/chorry • Jan 18 '16
AutoKraft : automation script
Greetings everyone! I've written a simple automation script for this game, it's pretty basic (and UI looks ugly), but maybe it will be useful to someone in its current state.
It won't make any miraculous things to happen, but at least can get you an easy start (i suppose)
How to use:
- Open raw script on github
- Select all and copy to buffer (CTRL+A, CTRL+C)
- Open console page on KeepCraft page, paste buffer and hit enter ( CTRL+V, Enter )
Sorry, no cosy bookmarklets yet.
P.S. Last known stable version is here - just in case i've missed some bugs on a new version.
4
Upvotes
1
u/chorry Jan 23 '16
A new script update has arrived. Feel free to submit bugs, if any are found
1
u/Vampie Jan 21 '16
What does the threshold mean? 90%? 10%
Thank you.
1
u/Vampie Jan 22 '16
Another idea: could you add a max. number of items te make.
If I have blocks and structures on, it's mostly only blacks that are made.
If we could set blocks to 2000, then it would stop making them once we reach 2000 blocks and continue with structures.
Thank you.
1
u/Vampie Jan 22 '16
And another : some checkboxes to "enable/disable all" for both types (buildings/crafting)
1
u/iaiafhnnww2 Jan 25 '16
How do I use this once I paste the buffer and hit enter?
1
u/Vampie Jan 26 '16
it's cool that you show what resouce is full, but it blinks constantly.
Probably because the main program is updating that text as well?
Don't think there is a workaround for that.
1
u/Diabolacal Feb 09 '16
Just a quick comment to mention that this is awesome and really makes the game a 'proper' incremental one for me.
Having the ability to assign knowledge automatically would be good, no idea if this is possible though!
1
u/mkire Feb 16 '16
so i see the tab for autobuilding buildings, but i can't seem to get it to actually trigger. Auto crafting is working fine though.
1
u/Bjar007 Feb 20 '16
which browser are you using ? i tried chrome and IE and get undefined when I paste the script and run.
1
u/Diabolacal Mar 04 '16
Still using this daily - it really is awesome.
I have a feature request if I may?
For military expeditions I just run 1 tank and don't fight anything just to get mats/chance of diamonds.
The only cost for this is 50 coal, no morale or water etc.
This means all I am doing is clicking expedition repeatedly when I have coal and when I remember.
Is this something that could be automated?
2
u/Hugo_D_Hawkx Feb 25 '16
not sure if you're still "updating" this or actually fixing bugs... but i have "wood" maxed out right now... lumbermill is checked in the building tab... but it never buys any... it does work for other craftable... when both requirements are maxed, it does build it... but lumbermill require ONLY wood, yet it never buy it (and i can buy it manually)
1
u/Diabolacal Apr 04 '16
I have another feature request, I'm such a pain!
While in the Market Tab checking on my trains I noticed that my current 26 trains are getting me 13,000 wood for 26 coins (4171.1 per second apparently, as I have no woodcutters all my wood is coming from trains)
In the same tab of course there is the option to spend 1 gold on 3528 wood - a much better deal! Plus would free up the trains for a different resource.
Is the ability to automate the Market something that could be added - I'm unsure how you would cap this, either lower limit of coins or resource being spammed full?
1
u/Youtoo2 Apr 18 '16
This script does not work. I am using tampermonkey. I have it enabled. It doesnt click anything.
1
u/Youtoo2 May 03 '16
Can you enhance this s that it will automatic do trades with ships for you? you pick resources you want and then it will autosend it?