Commit Graph

38 Commits

Author SHA1 Message Date
SkyratBot
ae61b17587 [MIRROR] Shuttle tweak and fix (#1330)
* Shuttle tweak and fix (#54395)

Fix lavaland podding
Make lavaland pod destinations hidden
Removed unused variables from connect_to_shuttle() proc
Shuttle consoles remove old custom port id from possible destinations when connects to new shuttle
Custom ports keeps clear from unwanted numbers.
Now shuttle machinery property connects to additional loaded shuttles.
Add some docking_port register logging and safety.

* Shuttle tweak and fix

Co-authored-by: Dennok <Deneles@yandex.ru>
2020-10-15 22:09:49 +01:00
SkyratBot
666c1a108a [MIRROR] Some shuttes rework. Allow many shuttles of one template to work at the same time. (#1162)
* Some shuttes rework. Allow many shuttles of one template to work at the same time. (#53993)

* add replace button to shuttle panel

load button now only load new shuttle

* shuttle teplate loads as shuttle

* new shuttle console connects to shuttle

* new navigation computer connect to shurrle

* docking_port id now unique

add count to id if id already in work

* many docks from one base tenplate

* up

* fix unregister

* up

* up

* up

* block multiple shuttle loading

* return preview button

* up  id generation

* Some shuttes rework. Allow many shuttles of one template to work at the same time.

Co-authored-by: Dennok <Deneles@yandex.ru>
2020-10-05 22:31:15 +01:00
SkyratBot
a2511bc8bb tgui: Interface improvements (#990)
Co-authored-by: Arkatos1 <43862960+Arkatos1@users.noreply.github.com>
Co-authored-by: Azarak <azarak10@gmail.com>
2020-09-26 16:46:14 +02:00
SkyratBot
100d18a011 [MIRROR] Admin controlled shuttles improvements (#610)
* Admin controlled shuttles improvements (#53237)

This PR improves options for admin controlled shuttles - all shuttle controls can be admin-locked, and players must request authorization so the shuttle can move or for controls to unlock. Before this PR, authorization request always redirected admin staff to control the CentCom ferry, even if request came from a shuttle elsewhere, which was a little odd.

Authorization request will now properly prompt the staff to control that specific shuttle, and now they also have quick option to unlock/lock the shuttle. Could come handy in events to restrict player movement.

Last change, escape pods no longer start as admin controlled, as they cannot be launched without atleast code red anyway. They instead properly state they are just locked.

* Admin controlled shuttles improvements

Co-authored-by: Arkatos1 <43862960+Arkatos1@users.noreply.github.com>
2020-09-02 03:06:28 +02:00
SkyratBot
04cce0722d [MIRROR] Shuttle Console UI fixes (#536)
* Shuttle Console UI fixes (#53236)

* Shuttle Console UI fixes

* Labor shuttle fix

* Cleanup

* Shuttle Console UI fixes

Co-authored-by: Arkatos1 <43862960+Arkatos1@users.noreply.github.com>
2020-08-27 03:09:42 +02:00
SkyratBot
ef51dfdff6 [MIRROR] tgui: Shuttle Console (#524)
* tgui: Shuttle Console (#53168)

* tgui: Shuttle Console

Co-authored-by: Arkatos1 <43862960+Arkatos1@users.noreply.github.com>
2020-08-26 01:41:58 +02:00
SkyratBot
e8bfe6eb68 [MIRROR] [Ready] CDN browser assets! (#312)
* [Ready] CDN browser assets! (#52681)

Rewrites the asset_cache system to handle sending assets to a CDN via a webroot.

see https://github.com/MrStonedOne/tgstation/blob/asset-cdn/code/modules/asset_cache/readme.md

Fixed a lot of bugs with assets, removed some dead code.

Changes:
    Moved asset cache code to transport datums, the currently loaded one is located at SSassets.transport, asset cache calls made before the config is loaded use the simple browse_rsc transport.
    Added subsystem call for when the config loads or reloads.
    Added a webroot CDN asset transport. assets are saved to a file in a format based on the file's hash (currently md5).
    Assets that don't use get_asset_url or get_url_mappings (such as browser assets referred to by static html files like changelog.html or static css files) can be saved to browse_rsc even when in cdn asset mode by setting legacy to TRUE on the datum returned by register_assets
    Added a system for saving assets on a cdn in a hash based namespace (folder), assets within the same namespace will always be able to refer to each other by relative names. (used to allow cdn'ing font awesome without having to make something that regenerates it's css files.).
    The simple/namespaced asset cache datum helper will handle generating a namespace composed of the combined md5 of everything in the same datum, as well as registering them properly.
    Moved external resource from a snowflake loaded file to a config entry, added it to resources.txt
    To ensure the system breaks in local testing in any situation that wouldn't work in cdn mode, the simple transport will mutate the filenames of non-legacy and non-namespaced assets and return this with get_asset_url.
    Simple transport's passive send of all roundstart assets to all clients is now a config that defaults to off. this is to break race conditions during local testings from devs accidentally relying on this instead of using send() properly.

cl
refactor: Interface assets (js/css/images) can now be managed using an external webserver instead of byond's one at a time file transfer queue.
admin: Adds admin verb toggle-cdn that allows admins to disable the external webserver asset transport and revert to the old system. Useful if the webserver backing this goes down (thanks cloudflare).
config: New config file, resources.txt, (must be loaded by an $include statement from the main config)
server: The external_rsc_urls.txt config has been moved to the main config system.
/cl
Porting notes:

Interface webpages must refer to their assets (css/js/image/etc) by a generated url, or the asset must register itself as a legacy asset. The system is designed to break in localtest (on simple/legacy mode) in most situations that would break in cdn mode.

Requires latest tgui.

The webserver must set the proper CORS headers for font files or font awesome (and other fonts) won't load.

/tg/'s webserver config: https://gist.github.com/MrStonedOne/523388b2f161af832292d98a8aad0eae

* [Ready] CDN browser assets!

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
2020-08-12 11:32:37 +01:00
jdawg1290
62676e72a8 Force LF line endings with gitattributes and convert repo (#52266)
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2020-07-16 03:02:40 +03:00
Rohesie
e6b5870737 [s] fixes a href exploit on shuttle computer code
User can crash the admins chat, or send them evil memes.

Fixes #51654
2020-06-15 16:59:47 +12:00
81Denton
0564d6609f Moves shuttle related logs into a new log file (#48441)
* Logs shuttle computer usage

* Adds a separate shuttle log

* Adds missing logs to INDIVIDUAL_SHOW_ALL_LOG

* no message
2019-12-30 15:56:05 -05:00
Emmett Gaines
a66d42a0bd shuttle fluff change (#30752)
Shoot me if I turn this into another major rework

Adds Donk Co. branding to the shuttle consoles
2019-11-12 09:35:46 +13:00
81Denton
f5bd6a381d Merge pull request #47052 from kingofkosmos/misc_span_fixes1
Misc span fixes
2019-10-20 18:46:54 +02:00
Rob Bailey
6ce6760b02 [s] Fixes an href exploit related to shuttle docking (#47149)
* no docking

* no fun allowed
2019-10-18 07:46:10 +02:00
kingofkosmos
dba1d2eb2d Fail-messages from notice-spans to warning-span. 2019-10-12 21:24:52 +03:00
spookydonut
eb8f7a0494 Adds two shuttle states more functionality (#43005)
* Adds two shuttle states more functionality

* typo

* changes as requested to the pirate shuttle
2019-03-08 10:56:16 -05:00
Tad Hardesty
0f96875e1e Use an atom proc to link shuttles to their computers (#40311)
* Use signals to link shuttles to their computers

* Use Initialize instead of ComponentInitialize

* Use an ordinary proc instead of signals
2018-09-23 03:50:45 -04:00
Emmett Gaines
3ffd45eaf5 Allows duplicates of shuttle templates (#39219)
* Allows duplicates of shuttle templates

* Trigger shuttle linkage from template load
2018-07-26 22:46:35 +12:00
kevinz000
f300a5c155 Interaction/Attack Hand Refactor (#36405) 2018-03-23 11:20:54 +01:00
vuonojenmustaturska
6406896df1 Replaces a bunch of obj vars (and emagged on machinery/items) with obj_flags (#34078)
* It works, but is it worth it?

* bitfield helpers take 1

* Would this work?

* remove dangling debug code

* rebase & fixes

* vv bitfield stuff, reading

* DNM oceans of shitcode DNM

* honk

* honk2

* plonk

* rebase & fix
2018-01-22 20:19:46 +01:00
Emmett Gaines
c206c0cc68 lets check_dock be silent (#34614) 2018-01-21 19:34:17 +01:00
kevinz000
05be346f8a Component Forensics, Blood Decals, and Cleaning 2017-12-24 18:19:43 -08:00
AnturK
cd1c4f9df9 Pirate Event 2017-11-04 17:33:45 +01:00
Emmett Gaines
825ab4def4 [512] The great \ref purge (#31824)
* The great \ref purge

* cleanup
2017-10-28 17:20:04 -04:00
bawhoppen
3e4d747b77 Adds desc to things lacking them. (#31086)
* Desc change

* Update girders.dm

* Update valve.dm

* Update machine_stacking.dm

* Update shuttle_engines.dm

* Update pipe_dispenser.dm

* Update lib_items.dm
2017-10-02 09:07:10 +13:00
pubby
283da7778c Fix monastery shuttle + Pods (#30375) 2017-09-04 11:00:07 -03:00
YPOQ
a485073f12 Fixes emag_act for several machines (#30371) 2017-09-04 14:10:41 +02:00
Jordan Brown
af4d9a85c9 Repaths /obj/item/weapon to /obj/item (#29929) 2017-08-16 10:38:51 -03:00
Lzimann
58d0f12c5c Removes a great amount of machinery copypasta with circuitboards.
Also changes New -> Initialize in most of them.
renamed: `code/game/machinery/computer/computer.dm` -> `code/game/machinery/computer/_computer.dm`
renamed: `code/game/machinery/machinery.dm` -> `code/game/machinery/_machinery.dm`
Moved all circuitboards to a new folder at `code/game/objects/items/weapons/circuitboards`
2017-08-09 11:10:48 -03:00
ShizCalev
db10f35703 Cleaned up some emag_acts (#29238)
* cleaned up some emag_acts

* Randomized spark sounds

* Made sparky looking things sound sparky too

* early return
2017-07-15 11:27:50 -04:00
ShizCalev
59ef81245b Changes some 1s and 0s to TRUE and FALSE (#29144) 2017-07-10 10:31:34 -04:00
shizcalev
d83f85184a lowercased computer names 2017-07-05 19:18:00 -04:00
Joan Lung
db9d86a39e New() goes in the trash, we've gotta Initialize() 2017-04-19 18:22:26 -04:00
Lzimann
5a618297ce Replaces the default output with the to_chat wrapper. 2017-03-10 01:32:05 -03:00
Joan Lung
228d35d4ab Adds light colors for a few more computers 2017-03-06 21:18:38 -05:00
bgobandit
86e7808596 Shuttles will now give an audible warning when departing. (#23466) 2017-02-03 19:48:16 -06:00
Jack Edge
3c022aa0d1 Wheeee 2016-06-30 13:24:05 +01:00
Core0verload
a66c2f4418 Machine/computer boards and frames refactor (#17300)
* Map Changes

* Machine/console boards and frames refactor

* More board changes
2016-05-08 12:11:18 +02:00
Bjorn Neergaard
9783f47514 Centralize shuttle computers 2016-02-05 17:06:04 -06:00