Commit Graph

241 Commits

Author SHA1 Message Date
SkyratBot
b8d9874c27 [MIRROR] Converts all A && A.B into A?.B (#1292)
* Converts A && A.B into A?.B (#54342)

Implements the ?. operator, replacing code like A && A.B with A?.B

BYOND Ref:
When reading A?.B, it's equivalent to A && A.B except that A is only evaluated once, even if it's a complex expression like a proc call.

* Converts all A && A.B into A?.B

Co-authored-by: ZeWaka <zewakagamer@gmail.com>
2020-10-13 23:19:25 +02: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
f0070e854b [MIRROR] Emergency Shuttle Toggle (#975)
* Emergency Shuttle Toggle (#53912)

Admins now have the option to enable or disable the shuttle(located in the admin tab).
Disabling the shuttle will basically pause it where it is, regardless(unless game is over). Until the admins enable it again. It will resume exactly back to where it was and continue from there. This is great for events. You can't recall or call the shuttle while it's disabled.

Admins also now get the option when calling the shuttle to disable the recall of said shuttle unless they cancel it or select enable shuttle.

* Emergency Shuttle Toggle

Co-authored-by: Gandalf <jzo123@hotmail.com>
2020-09-25 13:59:23 +02:00
SkyratBot
28c7b0f8df [MIRROR] Make docking_port visible when debugging shuttles (#905)
* Make docking port visible when debugging shuttles (#53851)

* Make docking_port visible when debugging shuttles

Co-authored-by: Dennok <Deneles@yandex.ru>
2020-09-21 16:39:49 +02:00
SkyratBot
0796bf7cd4 [MIRROR] Random whiteship selection (#789)
* Random whiteship selection (#53603)

Breaks shit if the deprecated map pr is merged before/after without me fixing it so only merge one of those

* Random whiteship selection

Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
2020-09-13 13:19:10 +02:00
SkyratBot
6679f7b008 [MIRROR] Remove outdated shuttle import landmark (#780)
* Remove outdated shuttle import landmark (#53642)

Cleaning up after #44676

* Remove outdated shuttle import landmark

Co-authored-by: Tad Hardesty <tad@platymuus.com>
2020-09-13 04:06:13 +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
Jordan Brown
c89d7b188d Fix Docker Build (#51781)
* Change BYOND version to 513.1526

* Remove BSQL from docker image

* Add a docker publish action

* Add a docker test action

* Cleanup runtime icons

* Cleanup runtime sounds

* Correct docker workflow names

* Add Dockerfile as an appveyor cache dependency

* Fix build issues

* Copy all dlls

* No need for .dlls in docker

* Minor cleanups
2020-06-22 16:49:07 +02:00
spessman-007
ab84042f94 [READY] Improve spelling (#51134)
* Improve spelling

* Spell isn't, ain't, shouldn't, hasn't, wasn't correctly

Co-authored-by: NewSta <spessman-007@users.noreply.github.com>
2020-05-25 02:13:37 +08:00
ShizCalev
7209ac3c93 Removes unnessacary math defines 2020-02-17 23:09:09 -05:00
Timberpoes
7d95ce2aaa Fix shuttle timer not displaying leading 0 (#49366)
The shuttle timer on the status displays doesn't display leading 0s in 
the seconds counter for numbers less than 10.
2020-02-16 14:28:02 -08:00
Rob Bailey
4201bd2929 shuttle docking autodoc (#48677)
* docking port autodoc stuff

* Update shuttle.dm

* Update shuttle.dm

* Update shuttle.dm
2020-01-12 00:53:44 -05:00
MrPerson
d5b98c4d8d Unicode support Part 1 (#48304)
* Unicode support Part 1

Makes all calls to ascii2text() and text2ascii() unicode aware as well as all calls in code/__HELPERS/text.dm.

Adds defines for the footext_char() procs to maintain 512 support.

I did some cleanup on the text helpers since a lot of them were really, really bad.

reject_bad_text() and reject_bad_name() have an arg to reject non-ascii chars which defaults to TRUE.

* Give travis a more recent beta

* Ultimate compat
Added the _char procs I was missing
Test the build instead of the version because Lummox is a goddamn moron

* Suggested fixes, removes the last of the dd_ helpers

* Reading the reference is very important!

* Minor code improvements and a comment

* Typo
2020-01-07 09:25:47 +01:00
Dennok
c5e09ab0ac Keep occupied custom dock (#45407)
About The Pull Request

Shuttles no more ruin areas on fly off from moved custom
dock.
If you dock to custom dock, then move custom dock, after fly off shuttle turfs lost its areas, it replaced by space. It ok in space, but bad on lavaland.
Why It's Good For The Game

Gravityless and airless areas on lavalend is bad.
Changelog

cl
fix: Shuttles no more ruin areas on fly off from moved custom
dock.
/cl
2019-08-03 14:48:00 +12:00
vuonojenmustaturska
867aca7abf Grants the common man access to some parts of the lavaland mining base (#44769)
* will this work?

* add shuttle console to meta

* add shuttle console to box

* remove glide size from box, add shuttle console to delta

* replace airlocks in lavaland common area

* remove step

* secure the gulag a bit more, add a beer fridge

* restore unix line endings?

* Update code/game/objects/structures/crates_lockers/closets/secure/freezer.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* review
2019-06-26 14:52:19 -04:00
spookydonut
c5f7f5b063 Removes shuttle manipulator (#44655)
* Removes shuttle manipulator

* oops

* moves ui to ssshuttle

* fuck it lets just remove it.

* ooops

* Revert "fuck it lets just remove it."

This reverts commit 8a95879f21d3f4aad3d56e33fa90ebc1940c1e27.

* re-remove the old admin proc
2019-06-23 21:24:10 +02:00
Emmett Gaines
5a69dc5d21 Makes stationary docks greedy for an area_type (#44646) 2019-06-19 21:48:52 +02:00
Emmett Gaines
9083e31410 Make setting stationary dock area_type no longer required (#44511)
Like it says on the tin, mappers no longer need to set the stationary
dock area type as it will use the area type of whatever it starts on.
This is how they all worked anyway, but you can still set it yourself if
you find some very strange usecase for having a different area type.
2019-06-14 12:22:42 -07:00
Rob Bailey
7c69e1232d [READY] Better shuttle sound algorithm (#43884)
About The Pull Request

Shuttle sounds previously played PER DOOR AT MAX VOLUME
This fixes that problem by instead playing shuttle sounds from the nearest engine or door if there's no engines.
Also there's distance sounds.
Why It's Good For The Game

it's not because it's actually SOUL for the shuttle sound to horribly ear rape you when it has enough doors.
Changelog

cl
fix: Shuttle sounds should no longer ass blast your ears as they no longer play PER DOOR and instead from the nearest engine, or door if none are available.
soundadd: Distant shuttle sounds.
/cl
2019-05-27 22:22:39 +12: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
coiax
c29c029d65 Non-emagged shuttles no longer throw atoms around (#41999)
- Normal shuttles that are not emagged will no longer throw things around.
  People will still be knocked down.
- Emagged shuttles and poorly designed shuttles will also throw things
  around on tables, as well as closets.

Shuttles were not mapped with the idea that their contents would be thrown
around violently every time they moved. This means that things like wheely
chairs, potted plants get chucked about the place. To get around this, the
"magnetic_catch" component was added, to partially bypass this effect in the
first place. But this component is only used in one place, in shuttle loading,
which means if a shuttle is custom built, suddenly and unexpectedly,
everything flies everywhere.

Instead, violent shuttle throwing should be limited to crappy shuttles,
(ie. asteroid with engines) and emagged shuttles. As such, I've removed
the magnetic component from tables and racks, to make shuttle throwing
more violent when it happens.
2018-12-27 11:50:23 -08:00
kevinz000
10d846022a [READY]MultiZ stuff - tile atmos, movement backend, falling backend, etc etc - Electric boogaloo (#40428)
Basic multiZ mob movement procs (Observers can always move)
Open space, showing what things are below it, and everything that entails. No complex support for dynamic generation just yet.
Decide how openspace should look :/

    Atoms falling through open space (NO MOB SUPPORT/DAMAGE/ANYTHING YET.)

//CANCELLED FOR ANOTHER PR - [ ] Being able to see upwards? Downwards is going to be handled by open space.

MultiZ tile atmospherics - EDIT: Working demo! https://puu.sh/B7mUs/3f6274740f.mp4
Bugtest the heck out of this trainwreck.
2018-12-11 22:09:59 +13: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
Tad Hardesty
7949ed8445 Make shuttle getStatusText more useful 2018-09-03 22:35:32 -07:00
Tad Hardesty
aff11eaaa8 Give multiple copies of shuttles their own area instances (#39890) 2018-08-27 06:04:48 -04:00
Jordan Brown
19f649e05c Merge pull request #39908 2018-08-26 17:14:02 -04:00
Tad Hardesty
77d2e26172 Enhance the power of the Shuttle Manipulator (#39870)
The 50s/5s thing appears to be a mistake, given that 5s is 50ds and fast travel checks seconds against 50 and sets deciseconds to 50 on adjacent lines.

In addition to sending shuttles to docks, three extra modes are added:

    Infinite Transit puts the shuttle in transit which lasts until another destination is chosen
    Delete Shuttle does what it sounds like
    Into The Sunset marks every mind on the shuttle as 'escaped' and then deletes the shuttle
        Also puts the mobs in stasis so they won't suffocate, bleed out, etc. before roundend

It is also now possible to change the destination dock of the arrivals shuttle (example: an event where arrivals are sent to the Lavaland Wastes dock instead).
2018-08-26 12:54:24 +12:00
Tad Hardesty
ba887b39ed Refactor status displays 2018-08-25 01:34:30 -07:00
Tad Hardesty
0708d3dbaa Fix escape pod 1 not reaching the recovery ship (#39675) 2018-08-14 17:12:25 -04:00
Emmett Gaines
e248d342b8 Removes the shuttle timid var (#39445)
Now that shuttles are all loaded via template we no longer have a need for the
timid var on shuttles.

Well not all shuttles, it seems I forgot to template the backup shuttle so it
wouldn't have been working until now. This got fixed here as well.
2018-08-01 21:19:16 -07:00
ninjanomnom
a7f6e72978 Fixes cargo shuttle ids 2018-07-26 17:46:16 -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
Jordan Brown
7c84d4f464 Makes a thing use its macro (#38556) 2018-06-18 17:16:57 -07:00
Jordan Brown
16a0814601 Merge pull request #38527 from AutomaticFrenzy/patch/ripples
Fix ripples appearing too broadly and disappearing too soon
2018-06-17 12:11:33 -04:00
Tad Hardesty
75dd6d7158 Improve readability of ripple check 2018-06-17 01:24:03 -07:00
Tad Hardesty
d4415e5387 Fix ripples appearing too broadly and disappearing too soon 2018-06-16 02:58:28 -07:00
kevinz000
7996baca4c Clear transit changes 2018-06-11 19:13:38 -07:00
kevinz000
7bf86ed53f Refactors transit requests to turf_reservations. 2018-06-04 16:30:15 -07:00
Emmett Gaines
820dae6c33 Fixes jumpToNullSpace (#37442)
woops
2018-04-27 21:04:23 +03:00
Emmett Gaines
7dcd690756 Removes some unnecesary vars on shuttles (#37041)
* Removes some unnecesary vars on shuttles

* Forgot to reapply unused transit turf flag
2018-04-12 13:42:03 +03:00
kevinz000
4d41d3cf95 Shuttle garbage collection (#36871)
* Shuttle garbage collection

* istype
2018-04-07 20:51:30 -04:00
Emmett Gaines
49d1e9ee66 Shuttles have additional baseturfs, and other minor baseturf changes (#36388)
cl ninjanomnom
fix: Shuttles have proper baseturfs now.
fix: Mineral walls properly use their baseturfs when destroyed/drilled.
add: A new engineering goggle mode allows you to see the shuttle area you're standing in.
admin: Buildmode works a bit better with baseturfs now and can properly only remove the top layer of turfs when editing. Note that as a result the order you place turfs is important and a wall placed on space means when the wall is removed there will be space underneath.
/cl

This adds an area hook for turfs getting the PlaceOnTop proc called so shuttle areas are able to intercept it and add a special turf used for determining where the bottom of the shuttle is. I'm not too certain on this being the best way to handle it but the alternatives restrict the kind of turfs that are allowed to be on shuttles which I didn't want to do as it was part of the whole intent of the baseturf change to allow any turf type on shuttles.

The alternative to the area hook would require a tool which attaches turfs to a shuttle which is why there's a shuttle area viewing tool in this pr. I considered doing it this way first but decided it was too clunky.

In addition to other changes:

Tiled/Reinforced floors have proper baseturfs now.

A large amount of the remaining ChangeTurf calls were swapped over to various baseturf helpers so, for example, mining doesn't create a lavaland turf if somehow the mineral wall is on plating.

Escape pods, the aux base, and syndicate drop pod have been converted over to shuttle templates as well.

The error when the timid var is set incorrectly has been changed to a stack_trace.

The change turf file has been made all lowercase as per standard.
2018-04-05 11:13:20 +12:00
Emmett Gaines
8174eaf2e1 Improves the shuttle error to include jump links and destination (#36305) 2018-03-10 18:52:29 -05:00
coiax
8e20aa3f7b Refactors shuttles to be loaded in, rather than be on the station maps (#33766)
* Refactors shuttles to be loaded in, rather than be on the station maps

- Shuttles are now loaded in by the shuttle subsystem.

You configure what shuttles are loaded in via
`/obj/configuration/shuttle_load` objects.

* Box arrivals shuttle is now imported from template

* Moves things out of the #ifdef

* Box emergency shuttle is now imported

* Box emergency shuttle is now templated

* Box ferry and whiteship now load from template

* More shuttles on Box done

* Apart from the pods, Box is now completely templated

* Delta now has all non-awkward shuttles loaded in

And Centcom..

* Removes no ops turfs, more error messages

* Fixes slightly chopped off external wall

* Massaging more shuttles into working correctly

* Debug messages are king

* Delta cargo shuttle now docks again

* First pass of Metastation shuttles

* Omegastation first pass

* Metastation now has its own shuttle

* Did most shuttles on Pubby

* Turns out Pubby arrival shuttle is slightly smaller than Box arrival

* Whoops, missed a stationary port

* TGMified the pubby arrival shuttle

* First pass, box is working

* All stations now have roundstart_template and no configuration objects

* Removes roundstart_move

* Why do we even have these unused keys

* Remove unused coded vars

* removes some excessive safety checks

* Missed some Centcom cargo dock stuff

* Got it working again

* That thing that Cyberboss wanted

* Noop turfs the shuttle templates

* And template noop for the area

* Attempts to assuage travis

* Warning!

* Please love me, Travis

* RIP Remie
2018-01-25 15:18:15 -05:00
MoreRobustThanYou
5bc77ea0bc Shuttles will now throw you when taking off
🆑 SPACE CONDUCTOR
tweak: Shuttles will throw you around if ya don't buckle in
/🆑
2018-01-25 09:15:10 +13:00
Emmett Gaines
c206c0cc68 lets check_dock be silent (#34614) 2018-01-21 19:34:17 +01:00
Tad Hardesty
f2dbe5cf13 Replace explicit z-level checks with defines (#33829)
* Replace explicit z-level checks with defines

* Rename turf_z_is_planet for consistency

* Use TRUE/FALSE in onSyndieBase
2017-12-29 14:40:06 -05:00
Emmett Gaines
4595c46dca turns the baseturf var into a part time list (#33705) 2017-12-25 20:10:08 -05:00