From c46b9b8be6905c980b69e0b15cab1d3f755a1391 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Sat, 1 Jun 2013 18:41:15 +0400 Subject: [PATCH 1/4] Fixes debuglog spam. --- code/game/machinery/alarm.dm | 1 - 1 file changed, 1 deletion(-) diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index 1945be11a65..4d7a32b04f3 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -172,7 +172,6 @@ danger_level = overall_danger_level() - log_debug("Processing [name] : level - [danger_level]") if (alarm_area.master_air_alarm == src) refresh_danger_level() From caba54c87c316f23d70c658d67a16a2969de5a26 Mon Sep 17 00:00:00 2001 From: Mloc Date: Sat, 1 Jun 2013 17:17:20 +0200 Subject: [PATCH 2/4] Updated readme. --- README.md | 79 ++++++++++++++++++++++--------------------------------- 1 file changed, 32 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index d016900cc37..661c7de6fde 100644 --- a/README.md +++ b/README.md @@ -4,54 +4,40 @@ --- +### GETTING THE CODE +The simplest way to obtain the code is using the github .zip feature. + +Click [here](https://github.com/Baystation12/Baystation12/archive/master.zip) to get the latest code as a .zip file, then unzip it to wherever you want. + +The more complicated and easier to update method is using git. You'll need to download git or some client from [here](http://git-scm.com/). When that's installed, right click in any folder and click on "Git Bash". When that opens, type in: + + git clone git@github.com:Baystation12/Baystation12.git + +(hint: hold down ctrl and press insert to paste into git bash) + +This will take a while to download, but it provides an easier method for updating. + ### INSTALLATION -First-time installation should be fairly straightforward. First, you'll need -BYOND installed. You can get it from http://www.byond.com/. Once you've done -that, extract the game files to wherever you want to keep them. This is a -sourcecode-only release, so the next step is to compile the server files. -Open baystation12.dme by double-clicking it, open the Build menu, and click -compile. This'll take a little while, and if everything's done right you'll get -a message like this: +First-time installation should be fairly straightforward. First, you'll need BYOND installed. You can get it from [here](http://www.byond.com/). + +This is a sourcecode-only release, so the next step is to compile the server files. Open baystation12.dme by double-clicking it, open the Build menu, and click compile. This'll take a little while, and if everything's done right you'll get a message like this: saving baystation12.dmb (DEBUG mode) baystation12.dmb - 0 errors, 0 warnings -If you see any errors or warnings, something has gone wrong - possibly a corrupt -download or the files extracted wrong. +If you see any errors or warnings, something has gone wrong - possibly a corrupt download or the files extracted wrong, or a code issue on the main repo. Ask on IRC. -It could be an issue with the current version of the code, either. Ask on IRC -or wait for a fix. +Once that's done, open up the config folder. You'll want to edit config.txt to set the probabilities for different gamemodes in Secret and to set your server location so that all your players don't get disconnected at the end of each round. It's recommended you don't turn on the gamemodes with probability 0, as they have various issues and aren't currently being tested, so they may have unknown and bizarre bugs. -Once that's done, open up the config folder. You'll want to edit config.txt to -set the probabilities for different gamemodes in Secret and to set your server -location so that all your players don't get disconnected at the end of each -round. It's recommended you don't turn on the gamemodes with probability 0, -except Extended, as they have various issues and aren't currently being tested, -so they may have unknown and bizarre bugs. Extended is essentially no mode, and -isn't in the Secret rotation by default as it's just not very fun. - -You'll also want to edit admins.txt to remove the default admins and add your -own. "Game Master" is the highest level of access, and the other recommended -admin level for now is "Game Admin". The format is: +You'll also want to edit admins.txt to remove the default admins and add your own. "Game Master" is the highest level of access, and the other recommended admin levels for now are "Game Admin" and "Moderator". The format is: byondkey - Rank -where the BYOND key must be in lowercase and the admin rank must be properly -capitalised. There are a bunch more admin ranks, but these two should be -enough for most servers, assuming you have trustworthy admins. +where the BYOND key must be in lowercase and the admin rank must be properly capitalised. There are a bunch more admin ranks, but these two should be enough for most servers, assuming you have trustworthy admins. -Additionally, you can set up moderators in moderators.txt, with this format: - - byondkey - -Moderators have access to player notes and a few other low-level commands. - -Finally, to start the server, run Dream Daemon and enter the path to your -compiled baystation12.dmb file. Make sure to set the port to the one you -specified in the config.txt, and set the Security box to 'Trusted'. Then press -GO and the server should start up and be ready to join. +Finally, to start the server, run Dream Daemon and enter the path to your compiled baystation12.dmb file. Make sure to set the port to the one you specified in the config.txt, and set the Security box to 'Trusted'. Then press GO and the server should start up and be ready to join. --- @@ -60,25 +46,24 @@ GO and the server should start up and be ready to join. To update an existing installation, first back up your /config and /data folders as these store your server configuration, player preferences and banlist. -Then, extract the new files (preferably into a clean directory, but updating in -place should work fine), copy your /config and /data folders back into the new -install, overwriting when prompted except if we've specified otherwise, and -recompile the game. Once you start the server up again, you should be running -the new version. +If you used the zip method, you'll need to download the zip file again and unzip it somewhere else, and then copy the /config and /data folders over. + +If you used the git method, you simply need to type this in to git bash: + + git pull + +When this completes, copy over your /data and /config folders again, just in case. + +When you have done this, you'll need to recompile the code, but then it should work fine. --- ### SQL Setup -The SQL backend for the library and stats tracking requires a -MySQL server. Your server details go in /config/dbconfig.txt, and the SQL -schema is in /SQL/tgstation_schema.sql. More detailed setup instructions are -coming soon, for now ask in our IRC channel. +The SQL backend for the library and stats tracking requires a MySQL server. Your server details go in /config/dbconfig.txt, and the SQL schema is in /SQL/tgstation_schema.sql. More detailed setup instructions arecoming soon, for now ask in our IRC channel. --- ### IRC Bot Setup -Included in the repo is an IRC bot capable of relaying adminhelps to a specified -IRC channel/server (thanks to Skibiliano). Instructions for bot setup are -included in the /bot/ folder along with the bot/relay script itself. +Included in the repo is an IRC bot capable of relaying adminhelps to a specified IRC channel/server (thanks to Skibiliano). Instructions for bot setup are included in the /bot/ folder along with the bot/relay script itself. From af8e3a9192dbc7d474b32bed4b90015ce2e8f21a Mon Sep 17 00:00:00 2001 From: cib Date: Sat, 1 Jun 2013 18:11:24 +0200 Subject: [PATCH 3/4] Fixed the issue of missing when hitting yourself. --- code/modules/mob/living/carbon/human/human_defense.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 34a57cd9316..3c18f21398b 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -114,6 +114,8 @@ emp_act if(!I || !user) return 0 var/target_zone = get_zone_with_miss_chance(user.zone_sel.selecting, src) + if(user == src) // Attacking yourself can't miss + target_zone = user.zone_sel.selecting if(!target_zone) visible_message("\red [user] misses [src] with \the [I]!") return From 91fd698ee8d2c57561d452df8349813b44b345aa Mon Sep 17 00:00:00 2001 From: Asanadas Date: Sat, 1 Jun 2013 13:40:54 -0400 Subject: [PATCH 4/4] Sandbox is silly and not RP. This is an RP server and all --- baystation12.dme | 2 -- 1 file changed, 2 deletions(-) diff --git a/baystation12.dme b/baystation12.dme index bd0d1a256d3..52ef844ae7d 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -255,8 +255,6 @@ #include "code\game\gamemodes\nuclear\pinpointer.dm" #include "code\game\gamemodes\revolution\revolution.dm" #include "code\game\gamemodes\revolution\rp_revolution.dm" -#include "code\game\gamemodes\sandbox\h_sandbox.dm" -#include "code\game\gamemodes\sandbox\sandbox.dm" #include "code\game\gamemodes\traitor\traitor.dm" #include "code\game\gamemodes\wizard\rightandwrong.dm" #include "code\game\gamemodes\wizard\soulstone.dm"