Apaec Posted March 28, 2021 Author Posted March 28, 2021 2 hours ago, BloodyNoah said: I think I did something wrong Hey, That image doesn't seem to be working - please could you try re-uploading it? Apa
BloodyNoah Posted March 28, 2021 Posted March 28, 2021 48 minutes ago, Apaec said: Hey, That image doesn't seem to be working - please could you try re-uploading it? Apa On me it works fine but here you go: https://prnt.sc/10y6uwf
Apaec Posted March 28, 2021 Author Posted March 28, 2021 40 minutes ago, BloodyNoah said: On me it works fine but here you go: https://prnt.sc/10y6uwf Hey, Have you attached the OSBot JAR as an external library? Also, it looks like you have accidentally removed some semicolons and quotes around a string. Apa
BloodyNoah Posted March 28, 2021 Posted March 28, 2021 1 hour ago, Apaec said: Hey, Have you attached the OSBot JAR as an external library? Also, it looks like you have accidentally removed some semicolons and quotes around a string. Apa I think it should be like this: https://prnt.sc/10ya4je ?
Apaec Posted March 28, 2021 Author Posted March 28, 2021 13 minutes ago, BloodyNoah said: I think it should be like this: https://prnt.sc/10ya4je ? I'm no expert with Eclipse but I don't think that looks right - OSBot should be under 'referenced libraries'. If you right click on your project, then go to `build path > configure build path` and add OSBot as an external JAR there (`Add External JARs... > Select OSBot`), it should be happy. -Apa
chubbychaser Posted March 29, 2021 Posted March 29, 2021 hey there what does this mean and how do i resolve the error? RS2Object cannot be resolved to a type thanks
Delision Posted March 29, 2021 Posted March 29, 2021 9 hours ago, chubbychaser said: hey there what does this mean and how do i resolve the error? RS2Object cannot be resolved to a type thanks Did you hover over RS2Object and import it? That message means it doesn't recognize RS2Object which is due to either you missing the OSBot library or missing an import. 1
Smicxtague Posted April 5, 2021 Posted April 5, 2021 (edited) Hey guys. Im fairly new to learning how to code with osbot here and stumbled upon this guide. I understand the basics of java and im doing this mainly just to continue learning for myself... I am having an issue with eclipse though where even after importing my reference library with the latest build of osbot - it's spitting out errors with the code backbone? Is this a known issue or have i just messed something up somewhere? thanks a bunch. Edit: I moved over to intellj IDEA which I prefer personally anyways ..and it imported the library just fine and didn't throw any errors. So maybe eclipse is just being weird these days? Edited April 5, 2021 by Smicxtague
Apaec Posted April 5, 2021 Author Posted April 5, 2021 1 hour ago, Smicxtague said: Hey guys. Im fairly new to learning how to code with osbot here and stumbled upon this guide. I understand the basics of java and im doing this mainly just to continue learning for myself... I am having an issue with eclipse though where even after importing my reference library with the latest build of osbot - it's spitting out errors with the code backbone? Is this a known issue or have i just messed something up somewhere? thanks a bunch. Edit: I moved over to intellj IDEA which I prefer personally anyways ..and it imported the library just fine and didn't throw any errors. So maybe eclipse is just being weird these days? I'm not sure - it's working for me, and AFAIK both IntelliJ and Eclipse are backed by maven, so i'd hazard a guess that you might have missed a step in the setup, or that my setup guide is a little outdated I'd recommend IntelliJ either way, it's a great IDE. -Apa
Smicxtague Posted April 5, 2021 Posted April 5, 2021 8 hours ago, Apaec said: I'm not sure - it's working for me, and AFAIK both IntelliJ and Eclipse are backed by maven, so i'd hazard a guess that you might have missed a step in the setup, or that my setup guide is a little outdated I'd recommend IntelliJ either way, it's a great IDE. -Apa perfect im gonna use intellij and give it shot. This is all just a fun learning experience for me anyways. The runescape botting part just happens to be a fun thing for me lmao. I built a very primitive color bot and just wanting to learn something more advanced thanks for everything! If you have any updated guides or other content you suggest - hit me up with it Going to work through yours today though!
Apaec Posted April 6, 2021 Author Posted April 6, 2021 On 4/5/2021 at 7:10 PM, Smicxtague said: perfect im gonna use intellij and give it shot. This is all just a fun learning experience for me anyways. The runescape botting part just happens to be a fun thing for me lmao. I built a very primitive color bot and just wanting to learn something more advanced thanks for everything! If you have any updated guides or other content you suggest - hit me up with it Going to work through yours today though! Best of luck - do let me know if you run into any problems or have any further questions. I'm always happy to help. Have fun!
Smicxtague Posted April 8, 2021 Posted April 8, 2021 On 4/6/2021 at 3:40 PM, Apaec said: Best of luck - do let me know if you run into any problems or have any further questions. I'm always happy to help. Have fun! I'm not sure what I did wrong that night (admittedly i had been drinking a little bit) but i went back into eclipse and did it exactly how you had it and it's working no problem. I'm going to continue on with your guide. Made a few fun modifications just to test for like woodcutting and it works just fine. so should be a fun little learning project!! 1
Apaec Posted April 8, 2021 Author Posted April 8, 2021 18 hours ago, Smicxtague said: I'm not sure what I did wrong that night (admittedly i had been drinking a little bit) but i went back into eclipse and did it exactly how you had it and it's working no problem. I'm going to continue on with your guide. Made a few fun modifications just to test for like woodcutting and it works just fine. so should be a fun little learning project!! Awesome! Let me know how it goes
rawgreaze Posted June 17, 2021 Posted June 17, 2021 nice guide, up and running and shitting scripts out left and right for trivial things now how can i link scripts together? i really avoided java, it wants me to create a static method to use it in my onLoop in my osbot plugin however if i do that then it wants me to make your methods static and it just cascades, what's the proper way to make things like, a shared bank module so I can have my own logic? trying to do like osbotplugin.util.Bank.bank(items) for example which would in turn call a bunch of your api methods?