Apaec 79 Posted November 25, 2014 Heya guys, I just thought I'd post a quick step-by-step guide on how to submit a script to the SDN, focusing on the git side of things. Step 1: Request a git repository name Head to http://dreambot.org/sdn/and click Scripter Panel > Git Repo Request Then enter a name in the text box, preferably similar/the same to your forum name: Once you have entered your name, click the Submit Request button, Step 2: Processing of request After having submitted your request, you must wait for the devs to verify and implement your account to the system. You will know that your request has been submitted when the table at Scripter Panel > Requests shows your account has been completed. In the image below, you can see my request was accepted. Once your request has been accepted, you can move to step 3. Step 3: Installing SmartGit SmartGit is the program we will be using to push&commit your scripts (& updates) to Dreambot's gitweb. Download SmartGit by visiting the following link: http://www.syntevo.com/smartgit/ Once you have installed SmartGit, you can move on to step 4. Step 4: Linking your SmartGit to Dreambot's GitWeb Once you have opened up SmartGit, navigate to Repository > Clone as seen the image below: You will see a pane appear, similar to below: Select the Remote Git, Mercurial or SVN repository radiobutton, and enter your Repository URL (which can be found on the SDN directory (Scripter Panel > Requests), as seen below: You should be able to see your URL & password. Copy the URL and paste it into the text box, then click next. A new box will pop up, this one requesting credentials. Select the 'Password' radiobutton, and enter your password (also found on the SDN page at Scripter Panel > Requests. You should copy and paste the password to avoid copying it out. Do NOT check the 'Store password' box. Press 'Login'. Once you've pressed Login, a new page will appear, where the default options are correct. Just click next. Finally, after clicking next, it will ask where you want your directory for your repository. Navigate the path to your desktop, and name the folder your repository name, as below: Once you've done that, click finish and we're done! You're now ready to move on to step 5. Step 5: Uploading a script To upload a script, firstly ensure it's fully working on the client. Then, open your IDE and locate the src of your desired script: Once you've got the src, right click and copy it. Once it's on your clipboard, navigate to your freshly created folder on your desktop, and create a new folder with the name of your script. (Ensure that the name has only alphanumeric characters). The name of this folder is your 'Module Name'. Paste your src inside this folder. Then, open SmartGit, right click your folder, and select 'Commit'. A box will appear. Select everything you want to commit, and enter a message, then finally click Commit & Push. If SmartGit requests a password, that is the password on your SDN requests page. Once you press Commit & Push, your script will be on the DreamBot Gitweb and you can proceed to fill out the script application form! That's all for this guide, hope you found it useful. I did my best to go through each stage as simply as possible but let me know if you run into any problems. Good Luck! Apaec Infinity, crazykid080, Aeon and 12 others 3 12
Wizard 20 Posted November 26, 2014 Thanks for the guide, Im using IntelliJ built in git service to push and pull my scripts :3
Nuclear Nezz 2063 Posted November 26, 2014 The only thing I'd change:You don't need to push the whole project from eclipse. Just the java files. You don't need to push the .class files or whatnot. Just the source java files. And the structure for the uploading files is:scriptName/src/yourfiles You can keep any file structure you have inside of src. Otherwise great guide. Very informative, and a fantastic step by step to set everything up.
Explicit 213 Posted February 21, 2015 The only thing I'd change: You don't need to push the whole project from eclipse. Just the java files. You don't need to push the .class files or whatnot. Just the source java files. And the structure for the uploading files is: scriptName/src/yourfiles You can keep any file structure you have inside of src. Otherwise great guide. Very informative, and a fantastic step by step to set everything up. gitignore xD How do I upload a new version of my script? Commit/push it?
slasso 27 Posted April 30, 2016 Is there a way to have passwordless push/pull? Or change the password. The git repo is using ssh and not https so is it possible to change the ssh passphrase
tranquilabys 2 Posted June 2, 2020 On 11/25/2014 at 7:15 PM, Wizard said: Thanks for the guide, Im using IntelliJ built in git service to push and pull my scripts :3 I know this is super old, but I use IntelliJ too. How do you use the built in git service? Thank You-
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now