Just found smth weird, nothing critical, but when you log in, while having "Toggle CA on log in" turned on, it turns CA's on and off several times.
You can see that in the Messages tab.
Edit: Maybe you can just release one small script already and explain how to use scripts (its more than just placing files into a folder from what i saw?!) ? So ppl can start understanding your engine
Edit2: Will bots work with multi session? Like run 2 bots in 2 different sessions?
I haven't had much time fixing things but the API is getting more and more stuff added to it and I might have to make big changes to it. Thats why I haven't released example scripts yet. Will very soon and it should then help with the understanding of the API. But right now as there are changes made it might cause issues.
The template script is an example of how to make script though. Very rough version and without any explanation. It might give a hint towards how to make other scripts. Also you will of course be able to run one script per session at any time. There will however be a limit of running only a single script per session.
Apoc script and Apoc lite have been separated inside the client. Based on the run.bat you can choose to start either one of the 2 clients. The only difference is the scripting engine that Apoc script is based on. Apoc lite simply doesn't have the scripting features for the non-scripters.
Shortly will follow up on descriptions on how to make scripts work on this client, finish the installer and QnA and the feature list before release. I believe it should be out in the next few days. In the release I will include some of the most requested and useful scripts for people to try there hands at. Scripts I personally believe are worth sharing and learning from. The farming script and some other older scripts that I made over 2 years ago will be useful but shouldn't be used as script examples as they are to crude and uses old and outdated API features and would be a very bad tool to learn and base other scripts on.
The only things left for me to finish off now are some of the requested features that I haven't gotten around to add. I might finish adding them before release or might postpone it. I also need to convert to make them Apoc script compatible. There are also always some polishing details that needs fixing here and there.
v04.04.2015 is out. Make sure to add "-v script" at the end of your run.bat to hack your client into Apoc script.
Last edited by Xcom on Sun Apr 05, 2015 4:03 am, edited 1 time in total.
I hope this will be a smooth release without insane bugs all over. Clearly it will be nearly impossible understanding and using the API without proper explanations. For this I have decided to make a short video for explanation of everything starting with A to Z. Installation, bug fixing and general troubleshooting, API functions, client functions and explaining the scripts that have been released.
I hope you are all patient for the release of said video. As for other scripts you are free to modify and play around with the scripts that have been released. Just keep in mind that the farming script is a massive mess and was only released as per request. I just didn't want to clean the code up so I just released the script as is.
Farming script short description
This is the farming layout. Place LCs on the right, for each 2 rows there needs to be 1 LC (beetroots need 1 LC per row). The farm is 8 tiles wide and needs 1 plow on the south side and a palisade cornerpost sign with blocks of wood in it. North there needs to be a small chest on the north east side with water buckets and a flask. Some types of crops need LCs on the left as well (tobacco, tea, wheat, flax and hemp) For farming grapes you need to place a wine press north and place a small chest next to it with empty buckets in said small chest. The crops can be planted per 2 rows as shown in this picture. Just make sure to have each type of crop on its individual LC (per 2 rows) or things will mess up. 1 LC should basically hold seeds for 2 rows of farmed crops. If the script messes up you might end up with a mess. There is sadly no way to fix said problem other then waiting till crops have fully grown to replant them properly.
This is an image of a mixed field.
This is an image of a wheat field and the quern for turning it into flour.
This is an image of a beetroot setup and troughs used for animal fooder.
This is an image of a glue cooking setup. The sign is a palisade cornerpost with blocks of wood in it. The basket holds buckets for grabbing water from the well. The LCs holds the bones that turns into glue and the cauldron is there for cooking said glue.
There are other script functions that preform other detailed functionalitys. The most useful feature is the Rally farming that can simply be used to program multiple fields for farming. After placing rally markers in several fields the farming character can then farm all crops from all selected fields.
Mining script explained
The mining script needs an LC with said materials in the LC looking exactly like this. Before starting the mining operation, make sure to place 1 rally marker nearby. This rally point will be the safespot your miner will escape to in case you get a troll. Using PLM you can select the starting tiles the miner will start mining from. The selection area doesn't have to be larger then a few tiles. In case an ore vain is mined out the miner will continuously dig the node out.
The LC will behave as a resupply, both water and food will be resupplied from said LC and later an assistant can use both nuggets, rustroot and dream+block to move its hearth fire, place supports and restock the LC.
In the release version a minor bug was introduced where you can't continue from last known mined area. This can be done by selecting a reference point. Said reference point can be chosen using a bonfire. This will be fixed in the coming release along with other minor updates.
Auto oath explained
The auto oath can be used to simply oath any character you have set as green or light blue in your kin list. There exists an option to turn off the script after 30 seconds as well. The last option for auto oathing any character exists as well but is not as safe to use.
Craft script explained
The crafting script can be used to craft any object in bulk from cupboard. Simply select what item you wish to craft and stand near the tool you wish to use. The materials will be grabbed from the east row and crafted then placed in the west row. There exists and option to reverse this behavior and grab from west and place finished materials in the east row. Make sure there is a small chest with water and flask nearby to drink water from.
Cauldrons need an additional sign with blocks in it (a palisade cornerpost), barrels of water on the east side as shown in the image (note the barrels on the west end of the barrel rows, placed with 1 barrel missing on the south row to prevent a bug) and the cauldron needs to be placed 1 tile further north.
If a crafting recipe needs wine, vinegar, milk or water said materials needs to be in buckets in the crafting cupboards.
An image of tools and the rows of cupboards.
Crucible needs a cupboard with coal in the north west side.
Pile of wood needs an empty cupboard on the north east side as well as block of wood in a sign.
Animals can be butchered directly into cupboards by placing them next to the row of cupboards they need to be dumped inside of as shown in said image. Don't forget to equip a sharp tool. Works well with a grinder setup.
Wooden Plow Script explained
The wooden plow script can plow an area using a wooden plow. The closest wooden plow will be grabbed and plowed with. Unfortunately metal plows don't work and will break the script if the script picks up the wrong type of plow. The blocks of wood shown in this image can be either in a sign (palisade cornerpost) or in the inventory. Make A PLM selection and start the script.
Curio Script explanation is to complicated and will be explained in more detail in a later date. The script needs to be programmed, a larger setup needs to be built for it and the script requires crossroads that your character will have to port and grab curios from.
Small notation. A PLM is a Position by landmark, it can be accessed using backspace to select an area for scripts. Simply press backspace and select the area with the cursor.
Last edited by Xcom on Sat Apr 11, 2015 7:58 pm, edited 1 time in total.
Xcom wrote:Apoc script and Apoc lite have been separated inside the client. Based on the run.bat you can choose to start either one of the 2 clients. The only difference is the scripting engine that Apoc script is based on. Apoc lite simply doesn't have the scripting features for the non-scripters.
Shortly will follow up on descriptions on how to make scripts work on this client, finish the installer and QnA and the feature list before release. I believe it should be out in the next few days. In the release I will include some of the most requested and useful scripts for people to try there hands at. Scripts I personally believe are worth sharing and learning from. The farming script and some other older scripts that I made over 2 years ago will be useful but shouldn't be used as script examples as they are to crude and uses old and outdated API features and would be a very bad tool to learn and base other scripts on.
The only things left for me to finish off now are some of the requested features that I haven't gotten around to add. I might finish adding them before release or might postpone it. I also need to convert to make them Apoc script compatible. There are also always some polishing details that needs fixing here and there.
v04.04.2015 is out. Make sure to add "-v script" at the end of your run.bat to hack your client into Apoc script.
Update completely screwed up my client. It doesnt even start +1
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019 http://i.imgur.com/CRrirds.png?1 Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2 Purus Pasta, The Best Client
It requires java 8? My other stuff doesnt work on java 8. Is there way to get Java 7 and java 8 both but then choose which one to use.
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019 http://i.imgur.com/CRrirds.png?1 Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2 Purus Pasta, The Best Client
You even can set Java 7 to active in Java Control Panel, Java 8 to inactive and with Java 8 path in run.bat client runs ...
Just be aware the choose the right path when installing Java 8 - i also suggest to disable Autoupdate - otherwise Java 7 gets automaticly updated to Java 8.