Goku1 Posted October 23, 2015 Posted October 23, 2015 (edited) What are the proper steps to do this? Unfortunately after placing the script in the OSBot script folder it does not want to appear in the Script Selector. Picture of the situation: http://puu.sh/kVfKG/c6b5c28081.png Edited October 24, 2015 by Goku1
Chris Posted October 24, 2015 Posted October 24, 2015 do you have a script manifest on your local scripts.?
Goku1 Posted October 24, 2015 Author Posted October 24, 2015 do you have a script manifest on your local scripts.? Can you show me an example of what you are describing?
Deceiver Posted October 24, 2015 Posted October 24, 2015 (edited) Can you show me an example of what you are describing? @ScriptManifest(name = "ScriptName", author = "YourName", version = 1.0, info = "", logo = "") public class YourScript extends Script { Edited October 24, 2015 by Stress
Goku1 Posted October 24, 2015 Author Posted October 24, 2015 @ScriptManifest(name = "ScriptName", author = "YourName", version = 1.0, info = "", logo = "") public class YourScript extends Script { The first script listed in my pic is a free local woodcutter from the second one is a script of my own. This is how my script looks like with the manifest: http://puu.sh/kVkBw/cdf1628968.png
Deceiver Posted October 24, 2015 Posted October 24, 2015 The first script listed in my pic is a free local woodcutter from the second one is a script of my own. This is how my script looks like with the manifest: http://puu.sh/kVkBw/cdf1628968.png The "logo" parameter in the Manifest should be not text, as it is an image, hence logo. :p As well, you have errors in your script, meaning it won't compile, correctly at least, while the errors exist.
Joseph Posted October 24, 2015 Posted October 24, 2015 The reason for the error is because your using old osb coding format. Before we needed to grab client instance to be able to grab our methods. Instead now script is above method provider. And MP have all these class that are organized with methods. You should read uo on the method prover class
Goku1 Posted October 24, 2015 Author Posted October 24, 2015 The "logo" parameter in the Manifest should be not text, as it is an image, hence logo. As well, you have errors in your script, meaning it won't compile, correctly at least, while the errors exist. This is a simple tree woodcutter. I cannot get rid of the errors because of these options: http://puu.sh/kVlJV/83773f04ea.png http://puu.sh/kVlM2/0495d57901.png http://puu.sh/kVlMY/26529bd576.png What would be alternative options to handling this? The reason for the error is because your using old osb coding format. Before we needed to grab client instance to be able to grab our methods. Instead now script is above method provider. And MP have all these class that are organized with methods. You should read uo on the method prover class Is the new coding format easier than the old? I need the examples of the new methods converted from my powerchop script.
Deceiver Posted October 24, 2015 Posted October 24, 2015 This is a simple tree woodcutter. I cannot get rid of the errors because of these options: http://puu.sh/kVlJV/83773f04ea.png http://puu.sh/kVlM2/0495d57901.png http://puu.sh/kVlMY/26529bd576.png What would be alternative options to handling this? Is the new coding format easier than the old? I need the examples of the new methods converted from my powerchop script. http://osbot.org/forum/topic/58775-a-beginners-guide-to-writing-osbot-scripts-where-to-get-started-by-apaec/
Goku1 Posted October 24, 2015 Author Posted October 24, 2015 (edited) http://osbot.org/forum/topic/58775-a-beginners-guide-to-writing-osbot-scripts-where-to-get-started-by-apaec/ I attempted to use that guide but it does not translate well to understand a simple woodcutter from a simple thiever. I managed to fix the issue of the scripts not showing up. I had .jar in a few of the scripts within the OSBot folder, along with multiple old versions of the OSBot folders scattered in my Pc. I deleted the client and everything related to OSBot and re downloaded and problem was fixed. Now I am having personal issues with my powerchops script. After starting the script, this is what it says in the log field: http://puu.sh/kVoj6/4c40353f39.png I can't grasp the knowledge on how to fix my three errors. Any tips? I just want it to be a simple regular tree cutter. http://puu.sh/kVlJV/83773f04ea.png http://puu.sh/kVlM2/0495d57901.png http://puu.sh/kVlMY/26529bd576.png Edited October 24, 2015 by Goku1
Deceiver Posted October 24, 2015 Posted October 24, 2015 No need to define the inventory as something. As in Apeac's tutorial, he simply used: if (inventory.isFull()) { Tree entity: Entity tree = objects.closest("TREE_NAME"); Camera: Camera.toEntity(tree);
Joseph Posted October 24, 2015 Posted October 24, 2015 No need to define the inventory as something. As in Apeac's tutorial, he simply used: if (inventory.isFull()) { Tree entity: Entity tree = objects.closest("TREE_NAME"); Camera: Camera.toEntity(tree); Tell him to use the getter methods instead of the public fields.Also op you didn't even look through the api. And if you remove the word client where you have most of the errors it should get rid of some errors