RealEngine 24 Share Posted October 16, 2015 been using this thing for years and cant get dreambot to recognize that I have local scripts. Don't know what wrong and cant find it anywhere. Link to comment Share on other sites More sharing options...
Dreamlicker 749 Share Posted October 16, 2015 You have to set up your "Artifacts" to be able to build to a .jar. Check your project settings/structure and you'll see the tab for it. You make a new "artifact" and add the modules files to it, allowing you to build that "artifact", which is the .jar. Make sure your output folder is your DreamBot/Scripts folder as well. If they won't show up, make sure you have the script manifest. They won't show in the script selector without one. I don't really know what your exact problem is, but if you describe it more clearly I can help. Link to comment Share on other sites More sharing options...
RealEngine 24 Author Share Posted October 16, 2015 You have to set up your "Artifacts" to be able to build to a .jar. Check your project settings/structure and you'll see the tab for it. You make a new "artifact" and add the modules files to it, allowing you to build that "artifact", which is the .jar. Make sure your output folder is your DreamBot/Scripts folder as well. If they won't show up, make sure you have the script manifest. They won't show in the script selector without one. I don't really know what your exact problem is, but if you describe it more clearly I can help. ok so I have this http://imgur.com/TSg4E1N and then this http://imgur.com/qsfmZ74 and I get Error: Main method not found in class RealSlayer.Main, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application Process finished with exit code 1 I feel really dumb because I have never had these problems before. Then again ive been developing for andriod for the past year and I rarely deal with this. Link to comment Share on other sites More sharing options...
Dreamlicker 749 Share Posted October 16, 2015 ok so I have this http://imgur.com/TSg4E1N and then this http://imgur.com/qsfmZ74 and I get Error: Main method not found in class RealSlayer.Main, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application Process finished with exit code 1 I feel really dumb because I have never had these problems before. Then again ive been developing for andriod for the past year and I rarely deal with this. It looks like you're trying to put every modules output into 1 jar, which is not going to work. Your structure in Intellij is as such: Project -> Module -> Source files, where Modules are individual scripts and the Project is your overarching container. Make sure to only put a modules output into the artifact. So, the structure is like... Scripts (Project) -Miner (Module) --Main.java (Source) -Slayer (Module) --Main.java (Source) Link to comment Share on other sites More sharing options...
RealEngine 24 Author Share Posted October 16, 2015 It looks like you're trying to put every modules output into 1 jar, which is not going to work. Your structure in Intellij is as such: Project -> Module -> Source files, where Modules are individual scripts and the Project is your overarching container. Make sure to only put a modules output into the artifact. So, the structure is like... Scripts (Project) -Miner (Module) --Main.java (Source) -Slayer (Module) --Main.java (Source) ok so i reordered my work to look how you recommended, which makes sense. But I still get the same error after making the artifact and then editing the configuation to add to the jar i made with the artifact. i added you on skype btw if you prefer to see the shit. Why is there no tutorial on setting up dreambot for Intellij? I have coded for 2 other botting sites in the past and never run into any trouble making it run and compile. I am looking forward to getting started but right now im pissed off. so now when I press the play button the actual client starts but I still have no local scripts. Link to comment Share on other sites More sharing options...
Dreamlicker 749 Share Posted October 16, 2015 ok so i reordered my work to look how you recommended, which makes sense. But I still get the same error after making the artifact and then editing the configuation to add to the jar i made with the artifact. i added you on skype btw if you prefer to see the shit. Why is there no tutorial on setting up dreambot for Intellij? I have coded for 2 other botting sites in the past and never run into any trouble making it run and compile. I am looking forward to getting started but right now im pissed off. so now when I press the play button the actual client starts but I still have no local scripts. Your errors have nothing to do with Dreambot. If your correctly built .jar files are in your DreamBot/Scripts folder and they have a manifest, they'll show. You have an error in your code that I can't determine without seeing it. Technically, all you need is the client.jar on the build path. Anything else is standard to programming, so if you know how, you should be able to figure out those errors. Otherwise send me your code in a pastebin and I'll take a look. Link to comment Share on other sites More sharing options...
RealEngine 24 Author Share Posted October 16, 2015 Your errors have nothing to do with Dreambot. If your correctly built .jar files are in your DreamBot/Scripts folder and they have a manifest, they'll show. You have an error in your code that I can't determine without seeing it. Technically, all you need is the client.jar on the build path. Anything else is standard to programming, so if you know how, you should be able to figure out those errors. Otherwise send me your code in a pastebin and I'll take a look. I'm not coding anything yet, I'm just trying to get the script to show up so I can start working on it import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import java.awt.*; /** * Created by Dakati on 10/16/2015. */ @ScriptManifest(author = "RealEngine",name = "RealSlayer", version = .01, category = Category.SLAYER) public class Slayer extends AbstractScript { @Override public void onStart() { super.onStart(); } @Override public int onLoop() { log("hello"); return 100; } @Override public void onExit() { super.onExit(); } @Override public void onPaint(Graphics graphics) { super.onPaint(graphics); } } right now i have it so when i press the load button in intellij it launches the client but no scripts still show up. Not even the ones from the SDN i just added. EDIT: I have spent the last 4 hours trying to get local scripts to work using intellij. I am almost ready to quit Link to comment Share on other sites More sharing options...
Pandemic 2498 Share Posted October 17, 2015 You have to build an artifact (the JAR) and put it in the scripts folder, if SDN scripts aren't loading that means one of the local ones is horribly messed up. Launch the client in a terminal / command prompt and post the error you get when refreshing scripts. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.