Downloading the source code: Difference between revisions

no edit summary
imported>Jordie0608
(Apparantly the 'setting up git' link was easily missed as it hid away on the side of the page. Also removed old nanotrasen.com link.)
imported>Errorage
No edit summary
Line 3: Line 3:
== Licensing ==
== Licensing ==


The TG Station 13 source code is open. The license allows you to do most things, but if you're really interested in more, see below.
The NT Station 13 source code is open. The license allows you to do most things, but if you're really interested in more, see below.
 
'''NOTE!''' The actual license is located on our [http://code.google.com/p/tgstation13/ Google SVN page].


The license that we use allows you:
The license that we use allows you:
Line 22: Line 20:
We use GitHub to host our project. Read [[Setting up git|this guide]] on how to use GitHub.
We use GitHub to host our project. Read [[Setting up git|this guide]] on how to use GitHub.


* Go to [https://github.com/tgstation/-tg-station]
* Go to [https://github.com/NTStation/NTstation13]
* Download the source code as a ZIP file, it is about 32MB
* Download the source code as a ZIP file, it is about 32MB


Line 45: Line 43:
To fix this, you need to:
To fix this, you need to:


*Delete tgstation13.dme
*Re-download everything
*Update your code
*Copy over your config folder and the data folder
*Run a Clean-Compile
*Clean compile
 
(There is no good alternative to this with TortoiseGit)


== Hosting a server ==
== Hosting a server ==
Line 53: Line 53:
To get a simple server running first
To get a simple server running first
* Download the source code as explained above
* Download the source code as explained above
* Open tgstation13.dme in dream maker (double click it)
* Open NTstation13.dme in dream maker (double click it)
* Once it opens select Build > Compile
* Once it opens select Build > Compile
* Wait until it compiles. Once it does a new file "tgstation13.dmb" will be created in the same folder where "tgstation13.dme" is. The dmb file has an orange icon. Compile time usually takes between 1 and 10 minutes, depending on your computer. Dream maker will show as 'not responding' during this time, but it is compiling.
* Wait until it compiles. Once it does a new file "NTstation13.dmb" will be created in the same folder where "NTstation13.dme" is. The dmb file has an orange icon. Compile time usually takes between 1 and 10 minutes, depending on your computer. Dream maker will show as 'not responding' during this time, but it is compiling.
* Open dream daemon (Win7: start menu > all programs > BYOND > Dream Daemon; Win8: start > type Dream Daemon > Dream Daemon)
* Open dream daemon (Win7: start menu > all programs > BYOND > Dream Daemon; Win8: start > type Dream Daemon > Dream Daemon)
* Select the "..." in the lower right corner and select the file "tgstation13.dmb".
* Select the "..." in the lower right corner and select the file "NTstation13.dmb".
* Click the "GO" button and wait until it changes to a red "stop" button. Starting the server usually takes between 1 and 5 minutes. It is fully started once you can normally interact with Dream Daemon and a byond://xxx.xxx.xxx.xxx:xxxxx link is present at the bottom.
* Click the "GO" button and wait until it changes to a red "stop" button. Starting the server usually takes between 1 and 5 minutes. It is fully started once you can normally interact with Dream Daemon and a byond://xxx.xxx.xxx.xxx:xxxxx link is present at the bottom.
* Click the yellow button (former "...") to auto-join
* Click the yellow button (former "...") to auto-join
Line 78: Line 78:
* Go to the following address in your browser: [http://localhost/phpmyadmin http://localhost/phpmyadmin] (will only work once you start up both Apache and MySQL in the XAMPP Control Panel)
* Go to the following address in your browser: [http://localhost/phpmyadmin http://localhost/phpmyadmin] (will only work once you start up both Apache and MySQL in the XAMPP Control Panel)
* Click on the button titled SQL in the row of buttons at the top.
* Click on the button titled SQL in the row of buttons at the top.
* Open the file 'SQL/tgstation_schema.sql' in notepad and copy its content. You can also find it [https://github.com/tgstation/-tg-station/blob/master/SQL/tgstation_schema.sql here], but it may be newer than the version you are using.
* Open the file 'SQL/tgstation_schema.sql' in notepad and copy its content. You can also find it [https://github.com/NTStation/NTstation13/blob/master/SQL/tgstation_schema.sql here], but it may be newer than the version you are using.
* Paste the file's content into the input field for sql in phpmyadmin and hit 'Execute' in the bottom right
* Paste the file's content into the input field for sql in phpmyadmin and hit 'Execute' in the bottom right
* Once you execute this, a new database should be added to the list on the left, called 'feedback'. If not, refresh the page. If you click on the database, it should show you all the tables it includes. At this point, you have created the database 'infrastructure'. You now have to create a user for it.
* Once you execute this, a new database should be added to the list on the left, called 'feedback'. If not, refresh the page. If you click on the database, it should show you all the tables it includes. At this point, you have created the database 'infrastructure'. You now have to create a user for it.
* Click on 'SQL' in the top again, and execute the following statement: CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypass'; GRANT ALL ON feedback.* TO 'myuser'@'%'; Replace both instances of myuser with some username and mypass with some password. Be careful to copy all the apostrophes. This will create a new user and grant him all privileges for the feedback database.
* Click on 'SQL' in the top again, and execute the following statement: CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypass'; GRANT ALL ON feedback.* TO 'myuser'@'%'; Replace both instances of myuser with some username and mypass with some password. Be careful to copy all the apostrophes. This will create a new user and grant him all privileges for the feedback database.
* Please keep phpmyadmin open for a while longer.
* Please keep phpmyadmin open for a while longer.
* Open the file: [https://github.com/tgstation/-tg-station/blob/master/config/dbconfig.txt config/dbconfig.txt] in notepad
* Open the file: [https://github.com/NTStation/NTstation13/blob/master/config/dbconfig.txt config/dbconfig.txt] in notepad
* Make sure to set it so that:
* Make sure to set it so that:
** SQL_ENABLED does not have a # in front of it
** SQL_ENABLED does not have a # in front of it
Line 105: Line 105:
=== Database based administration ===
=== Database based administration ===


'''DATABASE BASED ADMINISTRATION CURRENTLY DOES NOT WORK.'''
<div class="toccolours mw-collapsible  mw-collapsed" style="width:600px">
Offers a changelog for changes done to admins, which increases accountability (adding/removing admins, adding/removing permissions, changing ranks); allows admins with +PERMISSIONS to edit other admins' permissions ingame, meaning they don't need remote desktop access to edit admins; Allows for custom ranks, with permissions not being tied to ranks, offering a better ability for the removal or addition of permissions to certain admins, if they need to be punished, or need extra permissions. Enabling this can be done any time, it's just a bit tedious the first time you do it, if you don't have direct access to the database.
Offers a changelog for changes done to admins, which increases accountability (adding/removing admins, adding/removing permissions, changing ranks); allows admins with +PERMISSIONS to edit other admins' permissions ingame, meaning they don't need remote desktop access to edit admins; Allows for custom ranks, with permissions not being tied to ranks, offering a better ability for the removal or addition of permissions to certain admins, if they need to be punished, or need extra permissions. Enabling this can be done any time, it's just a bit tedious the first time you do it, if you don't have direct access to the database.


Line 114: Line 116:
* Done. Note that anyone in admins.txt lost admin status, including you! So do the step above! You can repeat it for everyone, as it's a lot easier to do that and just correct permissions with the ingame panel called 'permissions panel'.
* Done. Note that anyone in admins.txt lost admin status, including you! So do the step above! You can repeat it for everyone, as it's a lot easier to do that and just correct permissions with the ingame panel called 'permissions panel'.
* If your database ever dies, your server will revert to the old admin system, so it is a good idea to have admins.txt and admin_ranks.txt set up with some admins too, just so the loss of the database doesn't completely destroy everything.
* If your database ever dies, your server will revert to the old admin system, so it is a good idea to have admins.txt and admin_ranks.txt set up with some admins too, just so the loss of the database doesn't completely destroy everything.
 
</div>
If you need more help contact '''Errorage/Rageroro''' in [[Community|#coderbus]].
If you need more help contact '''Errorage/Rageroro''' in [[Community|#coderbus]].


Anonymous user