pharaoh 130 Share Posted January 17, 2022 So following the guide to setting up the development environment, say we named the folder something like "db_scripts" and this would be the 'main' folder to hold scripts. Would we just make another module within the folder for a new script and a artifact for that as well, instead of making a new project for each script? Link to comment Share on other sites More sharing options...
Pandemic 2712 Share Posted January 17, 2022 You can do it that way, or just make a single artifact that contains all of them. The script manager should look for any and all scripts inside the jar, so you could have many even in the same package and it should work fine Please note that if you plan on uploading it to the SDN it would have to be in a separate folder ("module" as we call it) so your project would look like: RepoName (project folder / git root) - ScriptNameOne (module name for the SDN) - - src - - - ScriptOne.java - ScriptNameTwo (another script, module for the SDN) - - src - - - ScriptTwo.java Link to comment Share on other sites More sharing options...
pharaoh 130 Author Share Posted January 18, 2022 3 hours ago, Pandemic said: You can do it that way, or just make a single artifact that contains all of them. The script manager should look for any and all scripts inside the jar, so you could have many even in the same package and it should work fine Please note that if you plan on uploading it to the SDN it would have to be in a separate folder ("module" as we call it) so your project would look like: RepoName (project folder / git root) - ScriptNameOne (module name for the SDN) - - src - - - ScriptOne.java - ScriptNameTwo (another script, module for the SDN) - - src - - - ScriptTwo.java I understand but I am also a bit confused on this part; When I try to make a new module (for another script), it does not allow me to, idea says it cannot use the same content root (dream_scripts) to put another module in. When I make a new directory, it is fine but it says the Java file is outside of source root, so it's not 'catching' that it is a java file. How can I correct this so I could eventually upload to the SDN? Link to comment Share on other sites More sharing options...
BeepBoopBop 9 Share Posted April 25, 2022 Bumping this a bit - is there any way to create shared objects between several different DreamBot scripts? For example, I've created a wrapper object called "Banker" that makes my bank handling more simple from a programming end. Can I have one copy of Banker.java that is shared across all scripts? Link to comment Share on other sites More sharing options...
Pandemic 2712 Share Posted April 26, 2022 2 hours ago, BeepBoopBop said: Bumping this a bit - is there any way to create shared objects between several different DreamBot scripts? For example, I've created a wrapper object called "Banker" that makes my bank handling more simple from a programming end. Can I have one copy of Banker.java that is shared across all scripts? That's still not possible via the SDN, but if you mean for a local script you should be able to just create libraries and import those in your scripts just fine like normal Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.