-
Notifications
You must be signed in to change notification settings - Fork 99
How To Contribute
Rhicora edited this page Nov 4, 2018
·
9 revisions
This guide is designed to help you make small changes to Persistence, even if you haven't written any code before! While it doesn't get into too much detail, it's a great starting point if you aren't sure where to begin. In this example, we're going to give the clown an extra bike horn, but you can go ahead and try with an idea of your own.
- Make a GitHub account: https://github.com/join
- Go to https://github.com/Persistent-SS13/Persistent-Bay and click the Fork button in the upper right. This creates your own personal copy of the code.
- Download and install GitHub Desktop: https://desktop.github.com/ , then sign in with the account you just made.
- On the Configure Git page, click Continue - the defaults are fine. Finish the setup.
- Click Clone A Repository and select your copy of Persistence (e.g. rhicora/Persistent-Bay). Await the download!
- Now you can open up File Explorer and see your copy of Persistence, most likely at C:\Users\Admin\Documents\GitHub\Persistent-Bay
Congrats! You're all set up to contribute!
- In GitHub Desktop, click the Repository menu and click Pull to get the latest Persistence.
- In that same menu, click New Branch to create a branch - a group of changes you're planning to make.
- Name it something easily understandable, like
give-clown-extra-bikehorn
. - Open the files you want to edit in some form of editor; it's up to you! Dream Maker itself works (double click persistentss13.dme), but we also recommend Atom or Sublime Text.
- Type the changes you want. Supply crates are a great starting point, they're located in https://github.com/Persistent-SS13/Persistent-Bay/tree/dev/code/datums/supplypacks
- Save your work (CTRL-S). Now that you have set
/obj/item/weapon/bikehorn = 2
in the clown's supply pack (assignments.dm), the clown will get two bikehorns per crate. Time to commit our changes! - In the lower left corner of GitHub Desktop, write a short message describing the individual change. Click the button that says Commit To...
- In the Repository menu, click Push to send your changes back to GitHub.
- In the Branch menu, click Create Pull Request. You'll see a full comparison of your changes vs. official Persistence.
- Click the big green button to propose the code change!
Don't worry, it gets much faster after you do it a few times. If you get stuck, just ping @Contributors in #code-discussion. We're happy to help you through.