Commit Graph

83 Commits

Author SHA1 Message Date
Mark Aherne (Faerdan)
dacd5da81a Choose Profession
- Updated to new UI
- Put professions into columns to reduce the length of the window

Supply Ordering Console
- Updated to new UI
- Added "Main Menu" button to the top of all lists

Security Records Console
- Fixed colors (eyes should bleed less now)

Voting Panel
- Updated to new UI

Newscaster Unit
- Updated to new UI

DNA Modifier Console
- Overhauled UI to make it (slightly) more accessible

Airlock Control Console
- Fixed UI not updating automatically
- Updated to new UI
- Overhauled UI
2013-08-01 18:09:58 +01:00
errorage
86a68cb55b - Expands the maximum number of admin permission flags you can have from 16 to 31.
To test: add these debug lines somewhere:

//START COPY PASTE

mob/verb/give_allrights()
	src.client.holder.rights = 393087

mob/verb/hasright()
	var/hi = input(src,"Choose a file to access:","Download",null) as null|num
	var/r = check_rights(hi, 1);
	world << "[r]"

mob/verb/checkrights()
	for(var/i = 0; i < 32; i++)
		var/n = 1 << i
		var/r = check_rights(n , 1);
		world << "has right 2^[i] = [n]? [r]"

//END COPY PASTE

Start the game, run 'give allrights', which doesn't give all rights, but some of the rights. 128 and 131072 are missing. Then you can either run 'hasright' to check whether you have the permissions that correspond to a user defined number, or you can run 'checkrights' to check for all 31 theoretical permissions.
2013-07-22 19:22:47 +02:00
Giacomand
1dacc17070 Blueprint areas will now have dynamic lighting. 2013-07-03 21:08:50 +01:00
Carnie
78dc2f4f78 Merge pull request #824 from Giacomand/config_countdown
Made the lobby pre-game countdown timer a configuration option.
2013-06-23 21:58:12 -07:00
Giacomand
58b63f33f2 * Fixed spelling typos. Tratior -> Traitor 2013-06-20 21:29:14 +01:00
Giacomand
1ba80dc764 * Made the lobby pre-game countdown timer a configuration option.
* Changed the default value to 120, to compensate for BYOND adverts and round restarts closing the client or kicking you randomly.
2013-06-20 20:45:24 +01:00
Ikarrus
19285384ef Traitor scale added to game_options.txt
-Added traitor_scaling_coeff and changeling_scaling_coeff to server configuration files, allowing server operators to adjust the values to their preference.
-Updated changelog
2013-06-09 12:32:58 -06:00
Cheridan
d8ec1ba9c9 Separates the continuous round config options to be round-specific. For example, one can config wizard rounds don't have to end upon the wizard's death, while Rev rounds will still end upon one side's defeat. 2013-06-04 18:39:36 -05:00
Cael Aislinn
cd36661610 Merge pull request #644 from Ikarrus/latejoin
Latejoining Antagonists
2013-05-31 23:25:06 -07:00
Giacomand
1653082b2a Merge pull request #536 from MrPerson/allmaint
Two new game_options, SECURITY_HAS_MAINT_ACCESS and EVERYONE_HAS_MAINT_A...
2013-05-28 11:55:16 -07:00
Ikarrus
07590723d2 Gives latejoiners a chance of becoming a traitor and/or changeling depending on the game mode.
They will have the same chance of becoming an antagonist as round-start characters.

This function can be toggled off via server configuration.
2013-05-25 13:41:25 -06:00
Carnie
115fdcaff6 Merge pull request #592 from Yvar/Astarfix
A-star replacement
2013-05-19 20:10:47 -07:00
carnie
e6c8e67c3f Minor modifications to Yvar's A* fixes:
-Removed the priorityqueue datum. It is now a list()
-priorityqueue/proc/insert is now a helper /proc/sorted_insert() as it may be helpful in maintaining pre-sorted lists or insertion sorts.
-Replaced priorityqueue/proc/extract_last() calls with calls to pop(), which already existed.
-Removed last few references to "bestF" (from old awful A) in lighting and MC
-Replaced a section were it'd append to the end of the returned path list and then reverse the list. Now it inserts at the start of the list.
2013-05-19 09:54:39 +01:00
MrPerson
f6cc4cc0c6 Changed maint access game_option magic numbers to defines 2013-05-08 16:14:55 -07:00
supersayu
86d82ce51e Update to Sandbox Panel
The panel itself has been updated with subcategories and additional options.  The "air regulator" option was removed because what even does that mean.  The Suit Up option has been fixed, and should work properly now.  Additional items include an all-access ID, RCD, flashlight, light replacer, plasteel, cable, floorbot, medbot, gas mask, and emergency air tank.

The hrefs var was moved out of global scope because that's a terrible place for something so generically named.

The Spawn Item and Spawn Canister dialogs now use a browser window instead of a pick list.  This window is cached per user.

Sandbox's Spawn Airlock option gets a new interface.  It allows you to pick the accesses of the new airlock, as well as its paintjob, name, glass inserts where appropriate, and an option to make the access list "require one" instead of "require all."  It adds an airlock frame which can be repositioned; attack-hand-ing the airlock frame (if it has the airlock builder datum attached) will now open the window.

An administrative option has been added to the sandbox panel, which is configurable through game_options.txt.  Because the item spawning uses a persistent browser window, it is susceptible to spamming.  The added option forces the window closed after each item is spawned.  This only affects the item and canister selection windows, and not the whole sandbox panel.
2013-05-08 15:13:12 -04:00
MrPerson
cd9a8ac104 Two new game_options, SECURITY_HAS_MAINT_ACCESS and EVERYONE_HAS_MAINT_ACCESS.
Renamed ASSISTANT_MAINT to ASSISTANTS_HAVE_MAINT_ACCESS.
2013-05-08 03:48:46 -07:00
Giacomand
df245eec30 Merge pull request #352 from Aranclanos/ShuttleCall
Automatic shuttle calls 2 the electric boogaloo
2013-04-20 05:34:40 -07:00
Aranclanos
8a68a70335 The automatic shuttle call will now be triggered if there are no communications console on the station z level or an active AI. The shuttle will not have the standard 10 minutes to arrive, instead, it will take 25 minutes, so they have 20 minutes to recall.
They will use the new proc autoshuttlecall() in the emergency_shuttle controller.

Instead of taking a loop on world, there's a new list, shuttle_caller_list, it includes all communication consoles and AIs.

Fixed some weird things regarding recalling the shuttle if the arriving time of the shuttle was bigger than 10 minutes.
2013-04-13 02:17:41 -03:00
Giacomand
f49bef35ba * Added a two config options which allows you to disable the AI and Cyborgs from being able to vocally speak, except for AIs using the holopad.
* Added a new proc called IsVocal(). Only used by the new system so far but it will allow you to use it to stop mobs from being vocal.
2013-04-08 21:53:41 +01:00
carnie
6a98fc89d0 >datum/event and datum/event_control were renamed to datum/round_event and datum/round_event_control. This is because datum/event was already used by a different/more-general event queue system (used primarily on mechas)
Removed overriding of event values via feeding in an associative list into datum/round_event/New(). Instead you can do basic initializations (i.e. feed it constants) by doing new /datum/round_event{variablename=5;}(). This method is handled well by the compiler (it's the same method the maps use), so it will detect unrecognized variablenames etc.
More complex initializations for post setup() stuff can be done by accessing variables directly Event.variablename = whatever;
round_events now have a processing variable, which effectively pauses them.
2013-04-08 07:42:46 +01:00
Cael Aislinn
2c3a67ae7e Merge pull request #220 from Petethegoat/sqlerrors
Removes some redundant variables relating to SQL. Updates the config to ...
2013-04-04 16:32:02 -07:00
Pete Goodfellow
2a8432d8c4 Removes some redundant variables relating to SQL. Updates the config to reflect the change.
SQL errors are only displayed if SQL is enabled.
2013-04-04 16:38:24 +01:00
Pete Goodfellow
06e8c429f0 Updates configuration.dm and game_options.txt. They'll play nicely again.
Removes an error notice from game_options loading. The error didn't actually stop anything, and it came up for valid config options too.
2013-04-04 16:14:22 +01:00
Pete Goodfellow
6831ab046c Added a configuration option to force random names. This replaces the gameticker var/random_players. The 'Make everyone random' verb works as it did before. 2013-04-01 00:17:15 +01:00
Pete Goodfellow
3187fd1e14 Merge branch 'master' of github.com:tgstation/-tg-station into DB_cleanup 2013-03-27 17:10:54 +00:00
Pete Goodfellow
dffba3c827 Apologies in advanced for cramming this all into one commit, but it's all fairly interdependent.
Removes the old tgstation database. It has been merged into the newer feedback database.
All mentions of the old database have been replaced with the new one.
This includes updating tgstation_schema.sql and dbconfig.txt.

Removes README feedback.txt as it is now covered by the new schema.

Removes the unused forum DB stuff, including forumdbconfig.txt.
Updates the config, including both config.txt and game_options.txt. Many options have been moved into the latter.
Updates configuration.dm to reflect these changes.

Removes the config var/feature_object_spell_system as it did nothing.
2013-03-24 18:34:00 +00:00
Pete Goodfellow
9e50852028 Fixes a typo in the dirty floor MC setup. \ref -> \red. 2013-03-24 16:00:36 +00:00
SuperSayu
680d607e23 Relocated dirtystation.dm to the proper location and re-adds the dirt-making code to the master controller setup() 2013-03-21 19:59:54 -04:00
johnsonmt88@gmail.com
3cd19d8c8f sql_enabled is no longer hardcoded to be enabled; having it off in the config.txt will actually be reflected in the code.
The "Your server failed to establish a connection with the x database." message will now only show if you have sql_enabled.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5777 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-25 01:16:57 +00:00
giacomand@gmail.com
d18af57597 - Removed mobs being pulled back in the shuttle; still exists in pods.
- Added a check for turf in the pushback proc. Used Move() instead of step().

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5774 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-24 16:07:45 +00:00
giacomand@gmail.com
504342b4a7 - PA particles and projectiles will now be garbage collected. I have tested it to make sure that they are no longer in memory.
- You should no longer open doors when being pushed back in a pod/shuttle.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5750 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-20 23:29:07 +00:00
giacomand@gmail.com
6b03a2ebbb - The move_contents_to proc (which is used by shuttles and pods) will now move the air of the tile moving, instead of just replenishing the air.
- Added a new area proc, mob_activate, which is called by a living mob's Life(). You can use it to have mobs react differently to different areas.dm
 - Used the above change to make transit areas push mobs backwards.
 - Fixed the server room air alarm from freaking out.
 - Reverted my change to singularities, they will now pull correctly.
 - Made the wire interface screen bigger to accommodate for different fonts.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5749 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-20 22:10:14 +00:00
giacomand@gmail.com
4989c88a22 Committing carn's modifications to events and other things. Full details below.
http://forums.nanotrasen.com/viewtopic.php?f=16&t=12245#p189186

Ported all the random events to Pete/Gia's event system:
>Event system now supports weighting. default is 10. a weight of 5 is half as likely as default, 20 twice as likely....etc.
>Increased the frequency of events (dust happens over 60% of the time though)
>tidied up some ninja code: ninjas now get ~5 objectives. So they are hardmode.
>made the gravity toggle into a random event
>event system now supports round-start events
>event system now supports holiday events
>event system now supports events which can only happen after the round has lasted a certain number of ticks
>event system now supports max_occurrences for events. Setting any event's max_occurrences to 0 will stop it randomly occurring
>events now support being fed associative lists inside new(). This allows you to override their variables easily.
>wormhole events no longer cause loads of lag. They are extremely deadly. wormholes should be avoided

Other:
>replaced the procs for fetching candidates for ninjas and aliums with /proc/get_candidates(be_special_flag), it returns a list of active clients with that be_special preference enabled.
>minor fixes to minds
>your memories are displayed to you at Login()
>removed aliens_allowed
>removed ninjas_allowed
>pick_n_take() is now more efficient (uses Cut() rather than Remove()


Things I added:

 - Made the pandemic call ..() instead of doing the checks itself.
 - Made the staff of animation use more charge.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5720 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-17 11:44:37 +00:00
giacomand@gmail.com
ba64e33122 Committing DAL_TG lighting tweaks for carn.
http://forums.nanotrasen.com/viewtopic.php?f=16&t=12096

> UpdateAffectingLights() is a bit less silly. It now uses oview() to find lights which could be shining on it. It only searches a maximum of LIGHTING_MAX_LUMINOSITY_STATIC-1 away from itself, as this is all it needs to do (reducing the number of atoms it searches/lights it updates).
> UpdateAffectingLights() is called more sensibly, generally it will only be called when opacity actually changes on a lit turf (or something in a lit turf), as opposed to before where it would be called simply if something was opaque.
> Fixes a typo in cheap_hypotenuse(), it will now work correctly.
> Added circular lighting (using cheap_hypotenuse, a cheap linear approximation of pythagoras theorem). Old square lighting is toggable by commenting out #define LIGHTING_CIRCULAR
> Wall-fixed lighting will break when Move()ed. This means their lighting will not be updating whilst the singulo is on a rampage (which would cause lots of lighting updates). This should help reduce lighting updates a fair bit in such circumstances. Also the lord of darkness actually creates darkness! omg
>Halved the theoretical number of calls to UpdateAffectingLights() by turfs being deleted/created (aka replaced), by moving relevant code from New/Del into ChangeTurf(). Tidied ChangeTurf up a little.
>SpaceVines now update opacity correctly (this somewhat worries me though)
>Reduced the range of dynamic lighting effects for most objects. Fixed the bug where mob luminosity could try to go negative when dropping many held active flashlights.
>Space area no longer uses dynamic lighting. (at request)
>Fewer shades of darkness (reduced from 7 to 6) - means fewer shift_to_subarea calls and makes lower luminosity lights appear brighter
>Turfs can be luminous, removed the warnings. capped luminosity effects of turfs to a radius of 1.
>PDAS ARE NO LONGER SUNS!
>ChangeTurf() no longer replaces turfs with turfs of the same type. This means that singulos will no longer replace space with space with space over and over and over every tick
>there is a cpu-usage cap thingy on the lighting process(). It's currently set to (a ridiculously high) 98. This simply stops the process attempting to do any more work when the server is already dying. If you're feeling brave you could probably reduce further.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5650 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-04 19:58:14 +00:00
quartz235@gmail.com
d24cd192bf Logging update
- Added logging for prayers
- Added logging/admin messages for law uploads

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5624 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-29 02:27:24 +00:00
baloh.matevz@gmail.com
ea2c5059b8 - Undid my edits to the master controller regarding fast atmos.. I've tested it on the live server in several rounds and think we could spare to call atmos processing twice as often, meaning air movement would spread twice as fast. Calling it 4x as often was too much tho, resulting in noticeable lag, especially when the station was destroyed.
- Time to tidy up my old projects: Moved a few of my old, unfinished projects to unused: liquid simulation, brewing, heavy cables and logic gates/cables.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5621 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-28 02:32:04 +00:00
baloh.matevz@gmail.com
31dfb6ca9e - Replaced MAX_EXPLOSION_RANGE with MAX_EX_DEVASTATION_RANGE _HEAVY_ _LIGHT_ and _FLASH_.
- Moved explosion capping to explosion code, overridable by setting a proc parameter, which defaults to off, obviously.
- Reduced r-walls' explosion resistance from 25 to 15. They can now be destroyed by strong bombs.
- Added liquid processing to the sun part of the MC
- Added additional calls to atmos processing to the MC. You can enable this by (manually, with the debug controller verb) enabling the fast_atmos_1 .. 3 variables in the configuration datum. The intent of this is to enable it in a few rounds to see if it is possible to make atmos calls more common.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5607 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-24 17:38:20 +00:00
entrian.tration@gmail.com
32c65d614d Now you can properly profile all the components of the master controller. Preliminary tests show machines in aggregate are more processor intensive than atmospherics.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5570 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-18 01:19:03 +00:00
baloh.matevz@gmail.com
0c431e95d1 - Recursive explosions are not available in a config option. I want to do some live testing. Once live testing is done, if they prove to be better, they can go live. Once that happens, the config option can be removed.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5555 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-15 08:19:35 +00:00
baloh.matevz@gmail.com
5bb06b184c - Added a killswitch to the master controller for air processing and pipe processing, accessible through two toggle-verbs in debug verbs.
- Added a verb that breaks all airgroups into individually processing tiles and a verb that forces a group-rejoin attempt on all airgroups. Once the verb to break all air groups is used, they will not attempt to recreate until the recreate verb is used. In other words, this is for debugging, not goofing around. Verbs available in debug verbs.
- Some atmos code standardization
- Decreased the pressure resistance of most items by a factor of 10, meaning pressure will finally actually move items around!

I also attempted to speed up air movement, but it caused runtimes and everything moved in checkered patterns and I got scared so I didn't include it in this commit.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5554 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-15 07:12:32 +00:00
baloh.matevz@gmail.com
4b5b5ea87e - Added a config option that requires players to have played a certain number of days to select some jobs to play. The option is turned off by default and requires the database to work. See screenshot for default age requirement.
- When players connect, the database is polled for their age, accounts matching their ip and computer id. This information is stored in their client datum.

Screenshot: http://www.ss13.eu/account%20age%20restriction2.png

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5552 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-15 03:39:46 +00:00
Kortgstation@gmail.com
df0396ecf6 Added a config option to allow ghosts to spin chairs. ilu /vg/
Changed slime attack message from bit/slash to "glomp"

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5551 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-15 03:04:34 +00:00
petethegoat@gmail.com
f27399bcd5 Added a new events system!
The old one still exists, mainly so the associated admin buttons still work.
At some point I'll add a nice little panel for event stuff and remove the old procs.

event.dm is pretty well commented, and it should be pretty easy to figure it out.

Casualties of the change are space dust (which should probably be implemented separately if we want it back), the black hole event (which was awful), space ninjas (which didn't turn up), ionstorms (the non-admin ones sucked anyway) and CLANG, which I will probably add at some point, if no one else does first.
Also, I removed pierott's throat from the disease outbreak list. f that s.

Thanks to Sukasa and BS12, as my system is loosely based off of theirs.
Thanks Giacom for help with structuring and especially commenting this.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5511 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-10 23:45:57 +00:00
giacomand@gmail.com
1434a0154c -Added a config option, which defaults to off, which will let the gamemodes Wizard, Malf and Rev carry on playing without round interruption. Meaning...
The wizard round will carry on even if the wizard dies
The malf round will carry on even if the AI dies. When the AI dies the shuttle will become callable. If the AI takesover the station or causes the station to explode, the round will end like normal.
Rev will carry on playing even when all heads or all rev heads die. The shuttle will become callable when this is true.

-Properly fixed the PDA runtime without adding special snowflakes.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5489 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-07 20:53:03 +00:00
petethegoat@gmail.com
bd385e6d0f Custom votes now display the vote question when they are initiated.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5480 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-06 21:48:25 +00:00
baloh.matevz@gmail.com
0a1b16f620 - Moved access definitions for jobs to the job datum. In addition, I added an extra access definition: minimal_access and access. Minimal access is intended for servers with large populations. All jobs have the bare minimum access they need to survive. access, on the other hand, is a far more generous list of accesses, intended for servers with lower populations, where players are expected to do more than just the job they were assigned. Also for servers which don't want to allow people to hide in their own ultra secure departments, where no one can get to them.
I did not go through the list to assign 'access' yet, so the two are currently identical.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5479 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-06 16:38:45 +00:00
giacomand@gmail.com
45d98a271e -Fixes Issue 1142. Thanks to carn for the solution to the issue. The tags were being cut off and there were multiple areas of the same tag, so when locating with the tag it gave out unpredictable results.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5254 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-04 11:10:43 +00:00
giacomand@gmail.com
9941bb8587 Added mimics! There's the classic crate (chest) mimic which waits until somebody is close before trying to attack them. You can fill him with loot by putting items on him on your map. This was done by changing the base initialize proc to an /atom/movable and then instead of looping through the world for objects, instead loop for atom movables.
The next type of mimic is for the staff of animation! They will copy the icon of the object they're copying and will set themselves stats based on the object too. They will not attack the bearer of the staff which made them animated.

Added the option to get the staff on the wizard's spell book.

Added a "friends" var to hostile mobs. It will make the simple animal ignore friends when choosing targets.

Changed the statues from /obj/effect/showcase to /obj/structure/showcase.

Added a new variable to projectiles, "shot_from" is the gun that shot the projectile. It's used to determine what staff animated the mob and it will then add that staff, so it can ignore it when choosing targets.

Added a wander var for simple animals, turning it to 0 will stop the simple animal from moving when idle.



git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5246 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-02 04:38:43 +00:00
Kortgstation@gmail.com
0c4f441cb5 Added Cheridan's slime sprites to replace roros. Replaced all mentions of roro/metroid with slime. Once Cheri has the rest of the sprites/Phol gets mutant race sprites I'll start work on redoing metroid/slime code with Giacom and adding breeding.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5223 316c924e-a436-60f5-8080-3fe189b3f50e
2012-11-29 04:12:22 +00:00
elly1989@rocketmail.com
1d6d5d28ad Resolves Issue 1083 - Dynamic lighting will no longer revert custom areas back to their previous state.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5202 316c924e-a436-60f5-8080-3fe189b3f50e
2012-11-26 13:46:21 +00:00