Commit Graph

1687 Commits

Author SHA1 Message Date
Gary Lafortune
5086418467 [admin] Slightly Improves the Admin Viewrange Verb, Allows for Custom Viewranges (#5040)
* Connects the ghost viewrange verb with the admin one
2019-04-07 19:23:48 -05:00
Gary Lafortune
937f089f9b [admin] Admins are now warned if they try to change the roundendsound if another admin has already set it to something (#4954)
* Adds a confirm to setroundendsound
2019-04-04 16:54:58 -05:00
ShizCalev
f1ce713899 Fix stealthmin adminpm issue (#43167) 2019-03-19 23:55:26 +01:00
JJRcop
a7d44cf3a7 Internet midi respects start and end times (#43021)
* Play Internet Sound respects start time
For example, adding &t=400 to youtube links.
Doesn't try to parse the start time, youtube-dl does that for us already. Will probably work on most sites not just youtube.

* [Play Internet Sound] now supports end time too

Switched event handler for start to loadeddata from canplay

loadeddata fires when the first frame is available
this is quicker and more consistent than canplay, which tries
to predict at least a few moments of playability being
available before it fires

* [Internet Sound] music_extra_data now starts null
2019-03-09 23:28:42 +01:00
Nichlas Pihl
d074a33783 Merge pull request #4726 from yogstation13/upstream-merge-43037
[MIRROR] Adds missing logging for admin tickets.
2019-03-08 15:18:04 +00:00
Menshin
46a1e9c6e5 Fixes advanced proc calls not working + various code cleaning (#42952)
* Fixes advanced proc calls not working + various code cleaning

* Reverted Destroy() call protection.
2019-03-08 11:33:01 +01:00
ShizCalev
580a552cd3 Merge pull request #43037 from AnturK/missingticketlog
Adds missing logging for admin tickets.
2019-03-08 10:31:22 +01:00
yogstation13-bot
3be86a6f07 [MIRROR] Move GLOBAL_PROTECT statements after their globals (#4554)
* Move GLOBAL_PROTECT statements after their globals

* Merge pull request #42870 from AutomaticFrenzy/patch/global-protect

Move GLOBAL_PROTECT statements after their globals
2019-02-24 13:30:27 -05:00
yogstation13-bot
4880ef6e7b [MIRROR] Fix some incorrect list/ type annotations (#4532)
* Merge pull request #42862 from AutomaticFrenzy/patch/cant-believe-dm-accepts-this

Fix some incorrect list/ type annotations

* Fix some incorrect list/ type annotations
2019-02-21 11:32:25 -05:00
81Denton
bf129cb0d6 Add cancel button to ahelp and asay popup (#42835) 2019-02-19 04:56:53 +01:00
nichlas0010
1d6a19a208 Merge pull request #4394 from yogstation13/upstream-merge-41535
[MIRROR] [Ready] Outputs datum
2019-02-05 20:07:08 +01:00
vuonojenmustaturska
32d6d731a5 [READY] playsound performance (#40045)
tl;dr: we have lists of playermobs on the z-level, which generally have fewer player mobs to iterate through. If we use them, we can get rid of the z-level checks too. On the off-chance that something plays a sound in nullspace, we can skip pretty much everything. The client-check can go too, there are no playermobs without a client.
2019-02-05 19:47:45 +01:00
oranges
30597e05b0 Species types sources refactor (#42523)
There is now a bitflag that controls all the ways a species can be
selected from the different methods of changing species, xeno spawn,
pride mirror, magic mirror etc.

The soviet and capitalist golems are no longer selectable from the pride
or magic mirrors (just the badmin one)

interesting thing I found, androids and synths (including military
synth) are acheivable via xeno extracts!
2019-02-03 13:46:39 +01:00
Ling
63545b1649 Merge pull request #4302 from yogstation13/upstream-merge-42529
[MIRROR] [s]Advance proc call no longer allows you to call world/datum procs as global procs
2019-01-27 00:37:06 +01:00
monster860
5a77934085 Fixes word salad in admin logs for VV 2019-01-26 18:19:56 -05:00
Kyle Spier-Swenson
f0143d936f [s]Advance proc call no longer allows you to call world/datum procs as global procs (#42529)
* [s]Advance proc call no longer allows you to call world/datum procs as static procs

* Update debug.dm
2019-01-26 21:21:13 +01:00
nichlas0010
50644390a4 Merge pull request #4104 from yogstation13/upstream-merge-42008
[MIRROR] [READY]Ports yet another SDQL2 upgrade, refactors SDQL2 to a datum, adds SDQL2 options/more features
2019-01-11 15:47:25 +01:00
YoYoBatty
19116ef581 Check plumbing verb upgrade + t-ray view verb (#42218)
cl YoYoBatty
add: Added a ghost verb that lets you t-ray view underfloor objects
admin: Checking plumbing verb checks every atmospheric component instead of just pipes
code: Check plumbing verb is less snowflakey
/cl
2019-01-07 18:39:24 +01:00
kevinz000
68600e751a [READY]Ports yet another SDQL2 upgrade, refactors SDQL2 to a datum, adds SDQL2 options/more features (#42008)
Thanks to PJB3005
cl
experimental: SDQL2 has been refactored to a datum!
rscadd: A new SDQL2 panel has been added to admin tabs, for tracking, VVing, and halting SDQL2 queries.
rscadd: SDQL2 documentation is now available in SDQL_2.dm
rscadd: SDQL2 now has MAP added. MAP will cause the query to execute on whatever is specified in MAP, whether it's a variable or a procedure call (which will grab the return results), etc etc.
rscadd: SDQL2 now has a superuser mode, for uses outside of admin button pressing. This causes it to operate without admin protection wrapping.
rscadd: SDQL2 now supports options, including ignoring nulls in select or forcing it to operate in high priority mode, which lets it use 95% of the tick instead of obeying the Master Controller's tick limit. USE WITH CAUTION. Also includes a mode for blocking proccalls
rscadd: SDQL2 now supports TRUE/FALSE.
rscadd: To use options, append OPTIONS to the query. Available are "PRIORITY" = HIGH/NORMAL, "SELECT" = FORCE_NULLS/DISABLE or 0/FALSE, "PROCCALL" = ASYNC/BLOCKING.
/cl

Also displaytimetext is refactored.
2019-01-07 18:39:12 +01:00
Ling
6db87969cf Revert "Revert "Revert "[MIRROR] Rework of admin rank loading to support punctuation""" 2019-01-04 12:05:42 +01:00
nichlas0010
e747971f8d Revert "Revert "[MIRROR] Rework of admin rank loading to support punctuation"" 2019-01-04 06:43:36 +01:00
nichlas0010
282fdd5eb0 Revert "[MIRROR] Rework of admin rank loading to support punctuation" 2019-01-04 06:37:29 +01:00
Jordan Brown
54cbd582ad Rework of admin rank loading to support punctuation 2018-12-24 21:25:44 +01:00
Jordie
3e8ca861ec Merge pull request #41962 from tgstation/optimumtact-patch-1
Update the SDQL grammar comment
2018-12-17 20:32:55 +01:00
Ling
342e15ffdf Merge pull request #3751 from yogstation13/upstream-merge-41176
[MIRROR] Ban system and interface update
2018-12-11 13:49:47 +01:00
Jordie
8c346d91fa Merge pull request #41860 from subject217/multilineadminpm
Replaces the single line text prompt in Admin PMs with a multiline one
2018-12-09 12:00:13 +01:00
Jordie
a28de54405 Ban system and interface update (#41176)
Spiritual successor and extension to #17798, an almost entire rebuild of the SQL ban system backend and interface.
Bantypes are removed per #8584 and #6174. All bans are now 'role bans', server bans are when a ban's role is server. Admin bans are a column, meaning it's possible to ban admins from jobs.
Bans now have only an expiry datetime, duration is calculated from this when queried.
unbanned column is removed as it's superfluous, checking unban status is now done through checking unban_datetime. unban_round_id column added. Each ip and computerid columns rearranged so ip is always first, like in other tables. Bans now permit a null ckey, ip and computerid.

Ban checking is split into two procs now is_banned_from() does a check if a ckey is banned from one or more roles and returns true or false. This effectively replaces jobban_isbanned() used in simple if() statements. If connected a client's ban cache is checked rather than querying the DB. This makes it possible for a client connected to two or more servers to ignore any bans made on one server until their ban cache is rebuilt on the others. Could be avoided with cross-server calls to update ban caches or just the removal of the ban cache but as is I've done neither since I think it's enough of an edge case to not be worth it.
The second proc is is_banned_from_with_details(), this queries the DB for a role ban on a player's ckey, ip or CID and returns the details. This replaces direct queries in IsBanned.dm and the preferences menu.

The legacy ban system is removed.

The interfaces for banning, unbanning and editing bans have been remade to require less clicking and easier simultaneous operations. The banning and jobban panel are combined. They also store player connection details when opened so a client disconnecting no longer stops a ban being placed.

New banning panel:
Key, IP and CID can all be toggled to allow excluding them from a ban.
Checking Use IP and CID from last connection lets you enter only a ckey and have the DB fill these fields in for you, if possible.
Temporary bans have a drop-menu which lets you select between seconds, minutes, hours, days, weeks, months and years so you don't need to calculate how many minutes a long ban would be. The ban is still converted into minutes on the DB however.
Checking any of the head roles will check both of the boxes for you.
The red role box indicates there is already a ban on that role for this ckey. You can apply additional role bans to stack them.

New unbanning panel:
Unbanning panel is now separate from the banning panel but otherwise functionally the same.

Ban editing panel:
Actually just a modified banning panel, all the features from it work the same here.
You can now edit almost all parameters of a ban instead of just the reason.
You can't edit severity as it's not really part of the ban.
The panels have been tested but I've not been able to get my local server to be accessible so ban functionality isn't properly confirmed. Plenty of testing will be required as I'd rather not break bans.

cl
admin: Ban interface rework. The banning and unbanning panels have received a new design which is easier to use and allows multiple role bans to be made at once.
prefix: Ban search and unbanning moved to unbanning panel, which is now a separate panel to the old banning panel.
/cl
2018-12-04 20:48:17 +01:00
nichlas0010
fe3aa6d835 Merge pull request #3602 from nichlas0010/tgmirrorsfuck
Tgmirrorsfuck
2018-11-20 19:23:21 +01:00
ShizCalev
4e2d1576d0 Replaces radio channel names and keys with defines 2018-11-20 19:04:25 +01:00
Jordan Brown
7fb4d355b3 Merge pull request #41596 from tralezab/patch-13
Select equipment only asks to empty pockets if there are things in your pockets
2018-11-20 17:42:42 +01:00
ShizCalev
736bce805d Adds a dirty var viewer in TESTING mode (#41498) 2018-11-16 14:25:38 +01:00
nichlas0010
fb914db2be Merge pull request #3391 from yogstation13/upstream-merge-41318
[MIRROR] Fixes admin damage editting not logging the target's real name / key.
2018-11-08 16:19:21 +01:00
ShizCalev
2054c958c9 Fixes admin damage editting not logging the target's real name / key. (#41318)
* Fixes admin damage editting not logging the target's real name / key.

* few more areas
2018-11-06 20:09:25 +01:00
Ktlwjec
e9fbdfe07d what headcoder thatling wished for 2018-11-06 14:00:43 +00:00
Ktlwjec
6820298824 is this what niclas9000 wanted? 2018-11-04 13:20:33 +00:00
Ktlwjec
9cfc2b30f5 fixes release obj 2018-11-04 02:31:32 +00:00
Ling
b3e7187e3e Merge pull request #3189 from yogstation13/upstream-merge-40696
[MIRROR] Cleans up and adds more concise admin logging to the centcom podlauncher
2018-10-28 19:08:41 +01:00
nichlas0010
b6a083f299 Update randomverbs.dm 2018-10-27 20:40:02 +02:00
ShizCalev
82d13f079c Admin prefs stuff (#41041)
fixes #41106 since it'll have it's own fucking location.

cl ShizCalev
add: Admins can now personalize their asay message color on servers with the feature enabled.
tweak: Moved some admin only preference verbs out of the Preferences tab and to a new admin preferences tab to help unclutter it / prevent accidental toggling of fun things.
/cl

Note that the start of the admin message will still use the default formatting just so it can be quickly recognized as an admin message and not an OOC one.
2018-10-24 23:42:46 +01:00
MrDoomBringer
ba1ab608a7 Cleans up and adds more concise admin logging to the centcom podlauncher (#40696)
* shoutout to spacemaniac and qusdtyu

* slight yeets

* slight grammer fixes

* yes

* asdf

* yikes

* fixes

* ok this should be better

* key_name

* begone, proc overhead
2018-10-23 13:44:27 +01:00
Jordan Brown
0308341f37 Merge pull request #41056 from SamHPurp/sdql-typo
Minor typo fix in SDQL
2018-10-22 19:52:10 +01:00
MrDoomBringer
b81cdfdc54 Clean up some admin-transform related code (#40890)
1. there was an option for cancel when the input already had a cancel button
2. hitting either of these cancels did nothing, and it continued on with the
   transformation
3. there were some 1's and 0's that shoulda been TRUE and FALSE
2018-10-13 20:16:07 +01:00
Ling
8c64457693 Merge pull request #2975 from yogstation13/upstream-merge-40785
[MIRROR] Stealthmode dsay now supports joke rank names
2018-10-11 21:04:31 +02:00
Jordan Brown
f222888237 Merge pull request #40785 from Jordie0608/anothergreatstepforwardforbadminning
Stealthmode dsay now supports joke rank names
2018-10-11 16:07:35 +01:00
kevinz000
1f7a76ade0 Combat/Stun (slip) overhaul staging, mobility flags, adds crawling (#39967)
Aiming to implement the framework oranges has detailed in https://tgstation13.org/phpBB/viewtopic.php?f=10&t=19102
Moves canmove to a bitflag in a new variable called mobility_flags, that will allow finer grain control of what someone can do codewise, for example, letting them move but not stand up, or stand up but not move.

Adds Immobilize()d status effect that freezes movement but does not prevent anything else.
Adds Paralyze()d which is oldstun "You can't do anything at all and knock down).
Stun() will now prevent any item/UI usage and movement (which is similar to before).
Knockdown() will now only knockdown without preventing item usage/movement.
People knocked down will be able to crawl at softcrit-speeds
Refactors some /mob variables and procs to /mob/living.
update_canmove() refactored to update_mobility() and will handle mobility_flags instead of the removed canmove

cl
rscadd: Crawling is now possible if you are down but not stunned. Obviously, you will be slower.
/cl
Refactors are done. I'd rather get this merged faster than try to fine tune stuff like slips. The most obvious gameplay effect this pr has will be crawling, and I believe I made tiny tweaks but I can't find it Anything I missed or weird behavior should be reported.
2018-10-10 23:21:27 +01:00
Ling
ae5c0fc164 Merge pull request #2950 from yogstation13/upstream-merge-40766
[MIRROR] Fixes admin_headset_message() runtime
2018-10-10 19:30:20 +02:00
ShizCalev
55398362cf Fix admin_headset_message() runtime (#40766) 2018-10-10 15:15:32 +01:00
deathride58
cd3da56322 Make asay support emoji (#40795) 2018-10-10 15:14:55 +01:00
Ling
3dee53abd1 Add LOOC 2018-10-07 13:09:06 +02:00
subject217
9ff6064a57 Revert "Improve youtube-dl subsystem (#40396)" (#40665)
This reverts commit 7d05db3.

This was done on behalf of Arianya for testmerge. Kevinz broke the play internet sound verb.
2018-10-06 11:41:20 +01:00