1. Convert all of the .bot scripts into Groovy for use with Ender
2. Discover a way to make the KT (Ender client) updated and work with scripts
3. Produce, share and fix scripts for all users.
As this thread goes on, a credit list will appear to anyone contributing to this.
The first questions of the project would include:
1. How do we rewrite the .bot scripts to work with Groovy sys?
Changing the sys file protocol differences would be a start, I assume that all scripts can be rewritten if the Void protocols of sys.bot are switched to Class and Static protocls of sys.groovy?
Can anyone with .bot knowledge try to rewrite a simple .bot to .groovy to confirm if this works?
2. I have not checked myself in Arksu to Enders clients, but are the class files different?
Me and Foomanchu are looking for a way to make crafting work in a sequence, but .bot uses different codes to craft items then .Groovy so we have no start coding to base scripts off of ; How is it possible to find out the coding of clicking on the craft button? I assume that is client side?
3. Maybe only Ender could explain this or do this himself, but, What in the class files change when you update the client? Is it possible the class files were rewritten entirely or is something breaking the loading of scripts for instance?
4. How to add scripts into script tab?
All of us would love to know how to do this.
5. To be edited: A lost of all working script actions I have(know of)(Not the bot name):
1. Filling water barrels
2. Brick making
3. Building houses and cupboards
4. Destroying cave ins, and harvesting Cellar stones
5. Making cheese racks
6. Collecting fibres and wheat off ground, determined load by inventory space.
7. Crafting linen, but is a .bot file that we can't seem to convert. Here is script if anyone can figure it out:
- Code: Select all
import static sys.*
int CHEST_ID = 0;
int
LOOM_ID = 0;
void main(){
open_inventory_window();
CHEST_ID = input_get_object("select chest, please");
sleep(400);
LOOM_ID = input_get_object("select loom, please");
sleep(400);
take_fibre_from_chest();
do_click(LOOM_ID, MOUSE_RIGHT_BUTTON, NO_MOD);
wait_move();
sleep(200);
send_action("craft","linencloth");
wait_craft_window();
sleep(200);
craft(1);
wait_hourglass();
put_everything_to_the_chest();
}
void take_fibre_from_chest(){
do_click(CHEST_ID, MOUSE_RIGHT_BUTTON, NO_MOD);
wait_move();
set_inventory("Inventory");
int i = 0;
set_inventory("Chest");
while (next_item()){
if (is_item_name("flaxfibre")) {
if (i < 5){
item_click("transfer");
sleep(100);
i++;
}
}
}
}
void put_everything_to_the_chest(){
do_click(CHEST_ID, MOUSE_RIGHT_BUTTON, NO_MOD);
wait_move();
set_inventory("Inventory");
while (next_item()){
item_click("transfer");
sleep(100);
}
}
void wait_craft_window(){
int craftReady = 0;
do {
sleep(100);
craftReady = check_craft("Linen Cloth");
}
while(craftReady != 1);
}
void wait_for_end_of_crafting(){
set_inventory("Inventory");
int first_amount = get_items_count();
int amount = first_amount;
reset_inventory();
if (amount){
do {
sleep(1000);
reset_inventory();
amount = get_items_count();
}
while (first_amount == amount);
}
}
8. Put curds into cheese trays
9. Collect dreams
10. Starving/Drink water/ Eating
11. Harvest by selection of tiles and replant by selection of retiles
12. Wine making : Harvest, presses, puts juice in barrel
*would like to figure out how to add by selection of tiles to the farming and replanting after collecting seeds
13. Log cutting from a starting point/Hearth fire or Village
14. Cooking mussels
15. Lighting industry objects
16. Cutting stumps
*IIRC does not store logs
17. Patrolling walls
18. Paving (.Bot script)
19. Dropping all seeds/ Throw away 8 worst (.Bot) / Keep 23 best (.bot)
20. Mining (Straight line and snaking)
21. Transfer leaves
22. Filling troughs/Coops
23. Moving items from chest to cupboard
More to be added.
Credit:
Client creators: Enders, Ken, Arksu
Foomanchu for scripting work