Commit Graph

101 Commits

Author SHA1 Message Date
SomeguyManperson
df52788b81 FUCK 2019-08-02 02:07:17 -04:00
Lostlarry
522a9b2b1a return original cycle linking remanes the one to cycle_link_target 2019-06-23 15:22:36 +02:00
Lostlarry
36a68340a7 forgot to stage half the stuff 2019-06-22 21:26:30 +02:00
Lostlarry
2846fbcced add a way to setup airlock cycle links in not cardinal dirctions 2019-06-22 20:32:11 +02:00
Joe Schmoe
26946325ff Adds round-start dead bodies to the morgue 2019-06-12 23:37:42 +02:00
yogstation13-bot
9c07fdc69d [MIRROR] [s] switches preloader to world proc. (#5069)
* Switch preloader to world proc (#43516)
2019-04-07 17:41:12 -05:00
ShizCalev
cacec75e83 Move map errors to their own log file (#43376)
In interest of getting things fixed without having to constantly crawl
through game.log to find map issues, moved them to their own log file.
2019-03-30 21:54:27 +01:00
kevinz000
d1411a8eee [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 10:09:09 +01:00
nichlas0010
3e83c45341 Merge pull request #3524 from yogstation13/upstream-merge-41514
[MIRROR] Removes /abandoned type for airlocks; adds helper instead
2018-11-18 10:33:20 +01:00
ShizCalev
736bce805d Adds a dirty var viewer in TESTING mode (#41498) 2018-11-16 14:25:38 +01:00
coiax
252d84e3b3 Removes /abandoned type for airlocks; adds helper instead (#41514)
Airlocks no longer have a series of /abandoned types, and instead, to
mark an airlock as abandoned, include an abandoned airlock map helper on
the same tile, which has the icon of an exclaimation mark and cobwebs.

Why? Better visibility in map editors, less magic types.
2018-11-15 18:03:03 +01:00
Dennok
fc7f6bbfcf areas_in_z after start population fix (#41452)
Fixes areas_in_z after start population. Now it get areas spawned by templates and blueprints.
2018-11-14 18:44:00 +01:00
Tad Hardesty
e7ed7e390d Set a z-level baseturf for Lavaland (#41113)
* Set a z-level baseturf for Lavaland

* Remove nigh-useless ZTRAIT_PLANET

* Remove planet_z helper from away missions
2018-10-26 18:31:05 +01:00
AnturK
2821889d9f Fix maploader for areas (#40413)
Wasn't setting type to load into before.
Technically this still doesn't mirror inbuilt loader 1:1 because different
mapedits should create separate instances but let's leave that for now.

This was resulting in for example loaded areas with dynamic lighting to 0 to
not initialize properly.
2018-09-25 09:08:11 +01:00
AnturK
2f28fee1eb Fix baseturf helper (#40281)
Would cause issues with turfs where all their baseturfs got removed.

Also switches airless asteroid baseturf to itself.
2018-09-15 21:57:07 +01:00
Tad Hardesty
4c846aa4aa Give multiple copies of shuttles their own area instances (#39890) 2018-08-27 11:04:58 +01:00
Tad Hardesty
63ad2f58e9 Parse non-strings in lists in maps (#39786)
* Parse non-strings in lists in maps

* Fix 'listening' var
2018-08-24 10:38:53 +01:00
Tad Hardesty
05335f1c86 Validate map templates uploaded by admins (#39674)
* Move the preloader datum to its own file

* Prettify some of the map loader docs

* Use src rather than usr in map template verbs

* Cache parsed templates between upload and first use

* Validate map templates uploaded by admins before use

* Add href token to validation report links
2018-08-16 09:09:15 +01:00
zxaber
ffdb861fb8 [READY] Adds ability to give airlocks one-way unrestricted access (#39147)
* Code to doors.dm for airlocks with unrestricted sides

* Code to airlock_electronics.dm supporting airlocks with unrestricted sides

* Code to door_assembly.dm supporting airlocks with unrestricted sides

* Adding buttons to airlock electronic gui for unrestricted direction access

* Update airlock_electronics.dm

typos in comments are still typos

* Tgui support for arbitrary unrestricted access

* Cleaner way of calling unrestricted_sides()

Moved the call to unrestricted_sides() to run from allowed(), and added a recursive check for if the user is inside an object (like a mech).

* Missed a test variable

* Replaced a block of if statements with get_dir

Re: SpaceManiac

* Simplified XOR operation

Re: SpaceManiac

* Changes order from NESW to NSEW (for get_dir)

Re: SpaceManiac

* Re-built using changes to airlock_electronics.ract

* Added unres overlays, fixes overlay/power actions

Small lights that shine out to indicate open directions. They're not super pretty, but they aren't *that* horrible I think.
Because it's a light, it acts as a weak light source.

Also, all door overlays respond to power changes now, including area power loss. There was code in the overlay section for checking power states, but nothing to actually trigger it outside players opening the panel or something. This was broken before I made any changes.

* Makes overlays respond to power outages

The airlock overlay (bolt lights, etc) would not respond to the area power going out or coming back, even though it had code for it. This was broken before I added my code.

* Makes the Airlock update overlays when built

Long story short, the unres_sides variable wasn't getting set before the airlock spawned and did its first overlay update, meaning the unres indicators would be invisible until the door's state changed the first time. This makes the airlock run the update again just before the construction airlock object is removed.

* overlays.dmi -- removing to replace

I can't just edit the code of an image file, can I?

* new overlay file with the four unres indicators

* Set medical doors to use this feature

Removed medical door buttons, and set the unres variable on Meta, Box, Delta, Pubby, and Omega.

* Revert "Set medical doors to use this feature"

This reverts commit 53122ce63240ff0660226c8d2c6ed7eb814ec054.

* Updates medi-doors in maps

let's try this again...

* Did this tgui.js get overwritten?

juggling too many testing build folders is hard

* reverting momentarily

* Re-adding tgui.js changes

* pushing tgui.css too

Didn't realize this file also got changed by the script

* rebuilt the tgui.js file

* repushing the unchanged tgui.js again

I hope I'm not email-spamming people with this

* .css too

* Re-applying tgui.js changes

* added mapping helpers

little green arrows that set unres settings on airlocks and then poof

* removal of comments

unneeded code

* Adding helpers to all maps

Removed the var edit, as well

* Changed airlock.dm to use defines

Also removed an unneeded "src" from four lines.

* New .js and .css file to fix RPD issue

Boy I love tgui

* Removing define defines

Didn't know these were coded elsewhere. Neat.

* Mapmerged again, as requested

* Clean up maps
2018-08-14 21:13:16 +01:00
Ling
57c910c0cf Fix conflicts 2018-08-11 10:23:14 +02:00
Tad Hardesty
33e92f0ab7 Refactor the map loader (#39567)
* Remove duplicate initTemplateBounds method

* Move dmmRegex var to the type that actually uses it

* Keep a single, static map_loader datum

* Combine maploader into parsed_map

* Remove some redundant parameters from parsed_map/load

* Move file2text into parsed_map/New

* Narrow the scope of the map loading lock

* Remove redundant xcrdStart var

* Fix argument names in station reloader

* Move offsets from parsing to loading only

* Tidy argument handling on parsed_map/load

* Store modelCache, track nonexistent atom paths

* Use raw strings to specify the regexes

* Remove cropMap from parsed_map/New

* Don't parse maps twice when checking multi-z validity

Speeds up SSmapping init by approximately 10%.

* Bring the documentation (somewhat) up to speed

* No, I don't know why this fixes it
2018-08-10 20:34:31 +01:00
Tad Hardesty
d17e83c0e8 Replace z_is_planet with a Z trait (#39581) 2018-08-08 17:43:37 +01:00
Ashleigh Carr
f667cf39e0 FUCK 2 2018-08-06 01:32:22 +01:00
Tad Hardesty
1f41329eab Fix bad vars in maps spilling over onto unrelated types (#39530) 2018-08-04 06:25:06 +01:00
kevinz000
ffc9d1695a Third time's the charm - Photography update: 7x7 cameras, photo logging with full metadata, persistent albums and wall frames! (#38944)
* Photography Update

* Pictures logged in their own /data/picture_logs folder rather than normal logs

* Pictures logged in their own /data/picture_logs folder rather than normal logs

* Photos broke, retrying

* Persistence stuff

* I'm almost done I promise!

* Persistence mostly working, compile, etc etc

* Persistence mostly working, compile, etc etc

* Remove something really not needed from the PR

* Prevents duplication

* default to off

* removes check tick

* increase slots in albums to 21

* Allows for singular loading

* Update camera_image_capturing.dm

* Addresses review

* Anturk

* Update camera.dm

* Update misc.dm

* Update datum.dm

* Update camera.dm
2018-08-01 13:52:17 +01:00
Nich
dfbb8ccab2 forgot the //yogs 2018-07-29 18:40:13 +01:00
Ashleigh Carr
759570d92f now the pipes work too :) 2018-07-29 18:37:25 +01:00
morrowwolf
eeab4a95d4 Merge pull request #1710 from Cruix/Free_Miners
Readded Free Miners
2018-07-22 01:39:39 -06:00
Ling
09549221c4 Merge pull request #1766 from yogstation13/upstream-merge-39160
[MIRROR] Fixes loading maps in standard dmm format.
2018-07-17 11:28:16 +02:00
vuonojenmustaturska
d86a066d30 Fixes Reebe not initializing for clockcult mode, leaving the area airless and nonfunctional (#39163) 2018-07-17 07:33:15 +01:00
AnturK
716df0b5d5 Fixes loading maps in standard dmm format. (#39160)
As opposed to tgm. Also minor performance tweak for these since we don't
support jagged maps.
2018-07-17 01:02:11 +01:00
Jordan Brown
57069199b5 Seperates map reader parsing from loading (#38764)
* Seperates map reader parsing from loading

* Compile fixes

* Uhhh, ok dm

* Ugh

* Fix one error...

* FIxes model caching
2018-07-13 17:07:45 +01:00
Ian Turk
9a49824d63 Added Free Miners 2018-07-11 22:38:09 -07:00
kevinz000
c5868b545e minor turf reservation fix (#38935)
no longer reserves 1 more height+width than necessary, checks against invalid sizes
2018-07-06 17:35:35 +01:00
Nich
6c879778b6 spellchecks tg whatever 2018-06-28 21:26:38 +02:00
Jordan Brown
30f0b26ddd Merge pull request #38574 from ninjanomnom/glob-signals
Global component signals
2018-06-19 23:18:39 +01:00
Tad Hardesty
6332cabfe8 Merge pull request #38098 from kevinz000/transit_space_refactor
Transit space refactor
2018-06-16 20:41:21 +01:00
AnturK
b9f8dca74b Fixes loading zlevels with static lighting. (#38365)
* Fixes loading zlevels with static lighting.

* Actually this whole part is unnecessary now because change turf handles the change properly now.

* Correct
2018-06-10 10:55:11 +01:00
Tad Hardesty
6be53691c2 Delay smoothing atoms that have not initialized yet (#38173) 2018-06-03 20:25:49 +01:00
ShizCalev
39c247d6a9 Standardizes and cleans up some admin messages & logging (#38128)
* Improved logging

* Fixes & emitter logging

* ded
2018-05-31 05:57:29 +01:00
Jordan Brown
7abe962db0 Merge pull request #37549 from ShizCalev/bounce_away-fixes
Resolved var name conflict for bounce_away()
2018-04-30 18:54:04 +01:00
Jordan Brown
45e20b167d Merge pull request #37342 from ninjanomnom/vis-border
Makes it possible to see tiles past z transitions
2018-04-26 21:25:28 +01:00
AnturK
d197fd33c6 Mapping component helper (#37314)
* Mapping component helper

* GetAllContents so you can manipulate things in crates/onmobs/whatever

* More verbose warning.
2018-04-23 01:19:42 +01:00
Emmett Gaines
6e9bce53b1 Flatten the map transition edges (#37301) 2018-04-21 21:43:36 +01:00
Emmett Gaines
fcfbe74bca Updates baseturf helpers to the new baseturf system (#37154) 2018-04-13 13:59:56 +01:00
Emmett Gaines
d6a8500495 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 00:14:05 +01:00
AnturK
8f40dba13b Adds load away mission verb (#36568)
* Adds load away mission verb

* You seen nothing.

* Is this more readable ?
2018-03-27 03:34:18 +01:00
ShizCalev
15f0d19ce7 Adds mapping helpers to handle cyclelink & locking airlocks, updates all relevant maps (#35674)
* Adds airlock helpers

* Maps updated

* few more
2018-02-16 14:05:26 +02:00
Tad Hardesty
bbe4d12d13 Support stations with multiple z-levels (#35339)
* Remove ZLEVEL_STATION_PRIMARY

* Add Up and Down traits for use by ladders and chasms

* Give map_config creation its own proc

* Combine LoadConfig and ValidateJSON and remove transition_config

* Make space linkage a z-level trait

* Remove ZLEVEL_EMPTY_SPACE

* Update uses of GetFullMapPath

* Handle multi-Z stations and load Lavaland and Reebe at runtime

* Remove unused space maps

* Fix inappropriate z-expansion in map reader, improve logging

* Update comments relating to z-level configuration

* Add Lavaland and Reebe to ALL_MAPS
2018-02-15 10:21:25 +01:00
Jordan Brown
e94a105bca Ruins now log to world only in TESTING mode (#35421)
* Ruins now log to the game log instead of the runtime log

* Remove it entirely

* Use TESTING
2018-02-10 18:52:21 -05:00