Skip to main content

Releasing Scripts on the SDN

Author: eEvil


Terminology

  • CMD: Command prompt
  • Path: Location of your files

Step 1.

Request and get your repository details: https://sdn.dreambot.org/scripters/requests.

We then need to clone the repository provided by DreamBot.

You need the following

  • Git URL: usually (ForumName)@ssh.dreambot.org:(ForumName).git
  • Password: (DO NOT SHARE THIS WITH ANYONE)

Type Commands exactly as I type them

  1. Navigate to your C: drive
  2. Right-Click > open CMD (or similar) > Type this > git clone (ForumName)@ssh.dreambot.org:(ForumName).git
  3. Enter Password (Note if you cannot type directly into this, copy and paste. YOU WILL NOT SEE THE CHARACTERS)
  4. Press enter

Once you complete this you should find a file in C: that is your ForumName (Our example forum name will be ExampleName)

Step 2.

  1. Open File that was created, Presumably your ForumName
  2. Once open you should see .git file
  3. Create a folder with your desired script name, we will use ExampleScript.
  4. C:/ExampleName/ExampleScript/script.json (script.json must be exact. copy and paste your PSC script into this folder and rename to script.json)
  5. If done correctly your structure should be the following
  6. Folder > ExampleName > ExampleScript > script.json.
  7. Open Folder > ExampleName (Only Files that should be in here are ExampleScript)
  8. In Folder ExampleScript should only have script.json

Step 3

  1. Return to the main directory of C:/ExampleName
  2. Right-Click > open CMD (or similar)
  3. Type git status (this will show you any changes. odds are this will be red)
  4. Type git add . (This will appear to do nothing)
  5. Type git status (recheck this should reflect green now)
  6. Type git commit -m "Any edits here" (you'll put any changes inside the quotation marks)
  7. Type git push (This will update in the repository)

Now you should have successfully uploaded to the Repo.

In the event you need to update or modify your script.

  1. Navigate back to your ExampleName Folder in C:/
  2. Open CMD
  3. Type git status (This will show your changes in red)
  4. If this reflects correctly move on
  5. Type git add . (This will appear to do nothing)
  6. git commit -m "Enter changes here"
  7. git push

Step 4.

Finally, you are now ready to fill out the Submit First Script:

  • Category: What your script closely resembles
  • Name: Name your masterpiece
  • Description: Describe your hard work
  • Search tags: This helps your script be found via search
  • Thread URL: This is your forum post explaining your script
    • Ensure your thread is put in the correct category for your script
  • Script Repo: This is your repo's name (ExampleName from above)
  • Script Module: This is the module (folder) inside your Repo (ExampleScript from above)

Submit script!