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
- Navigate to your C: drive
- Right-Click > open CMD (or similar) > Type this >
git clone (ForumName)@ssh.dreambot.org:(ForumName).git
- Enter Password (Note if you cannot type directly into this, copy and paste. YOU WILL NOT SEE THE CHARACTERS)
- 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.
- Open File that was created, Presumably your ForumName
- Once open you should see .git file
- Create a folder with your desired script name, we will use ExampleScript.
- C:/ExampleName/ExampleScript/script.json (script.json must be exact. copy and paste your PSC script into this folder and rename to script.json)
- If done correctly your structure should be the following
- Folder > ExampleName > ExampleScript > script.json.
- Open Folder > ExampleName (Only Files that should be in here are ExampleScript)
- In Folder ExampleScript should only have script.json
Step 3
- Return to the main directory of C:/ExampleName
- Right-Click > open CMD (or similar)
- Type
git status
(this will show you any changes. odds are this will be red) - Type
git add .
(This will appear to do nothing) - Type
git status
(recheck this should reflect green now) - Type
git commit -m "Any edits here"
(you'll put any changes inside the quotation marks) - 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.
- Navigate back to your ExampleName Folder in C:/
- Open CMD
- Type
git status
(This will show your changes in red) - If this reflects correctly move on
- Type
git add .
(This will appear to do nothing) git commit -m "Enter changes here"
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!