15 Commits
Author SHA1 Message Date
Timothy TeakettleandGitHub 0e3eef37c8 several bugfixes (#7577) 2026-05-15 19:31:46 +02:00
siliconsandGitHub ab50522b15 fixes some bugs (#7492) 2026-02-11 18:34:47 +01:00
Letter NandGitHub 7101ec6bf6 rename multiz helper funcs (#7473)
yeah
2026-01-11 15:31:55 -05:00
4ab234f10c maploader / overmaps update - struct system, overmaps location bindings, misc backend improvements (#6403)
tl;dr level collections that can easily be logically restructured/moved
as necessary

will eventually be used for radio and overmaps location resolution.

this is the last part of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP/pull/4841
that has not yet been integrated.
this will be a draft for a while.

---------

Co-authored-by: LetterN <24603524+LetterN@users.noreply.github.com>
2025-11-06 17:49:23 -08:00
SorrowfulwindsandGitHub b7eba313be Fix offmap map errors, change WARNING() to CRASH() for remaining mapping issues. (#7186)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
Fixes map errors on Gaia, Triumph, Tether, and Sky Planet.
Changes the warnings for Stairs, Catwalks, and SMES's to call CRASH()
with audit_loc() to match the standard used by paint helpers and window
spawners.
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

## Why It's Good For The Game
Maps being able to load is good.
Vague warnings are now changed to verbose hard crashes to make it much
easier to fix as a mapper (and ideally prevent these issues from
embedding themselves into the codebase without notice).
<!-- Argue for the merits of your changes and how they benefit the game,
especially if they are controversial and/or far reaching. If you can't
actually explain WHY what you are doing will improve the game, then it
probably isn't good for the game in the first place. -->

## Changelog
-Fixes Gaia map errors
-Fixes Tether map errors
-Fixes Sky Planet map errors
-Fixes Triumph map errors
-Changes map Warning()s to CRASH()s
<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

🆑
fix: fixed gaia, triumph, tether, skyplanet map errors.
code: changed stairs, catwalks, SMES warnings to verbose CRASHs.
/🆑

<!-- Both 🆑's are required for the changelog to work! You can put
your name to the right of the first 🆑 if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
2025-05-29 18:32:05 -09:00
siliconsandGitHub 656a8cbc0a atmos touchups: thermodynamics enforcement week (#6790) 2024-10-21 18:13:24 +02:00
siliconsandGitHub ac3e0a73a9 attack_self refactor (#6754)
Changes proc header
2024-09-16 13:09:37 -06:00
siliconsandGitHub 0c8dd521c2 refactors attack hand proc header (#6720)
needed for #5677 

this is to make that PR slightly easier to review.
2024-09-06 13:36:10 -06:00
siliconsandGitHub 912e379ffb vehicle mechs - preliminary (#6606) 2024-07-22 19:59:56 -04:00
98436ee381 Fix hovering fire alarms, refactor DMM rotation code (#6589)
## About The Pull Request

Previously:

- A lot of unnecessary code to thread and repeatedly add
orientation-related variables to the preloader.
- dmm_parsed previously modified its own args, then used arglist(args)
This is bad energy -- as far as I can tell, this was was relying on the
fact that _load_impl didn't use the modified values.
- Fire alarms were hardcoded to deal with east/west incorrectly

Now:

- These variables now live in the dmm_context.
- _load_impl takes fewer unnecessary args, and all its args are explicit
- A few variables have been removed or had their scope limited.
- Fire alarms aren't hardcoded to do that anymore.

Bugs I didn't fix:

- When a map is rotated EAST or WEST, signs spawn in an overlapping
fashion that's really ugly.

## Why It's Good For The Game

### Correctness

Fire alarms were spawning sideways when rotated EAST or WEST and
probably shouldn't be. I've fixed this behavior now.

### Style

Threading a lot of variables in DM is pretty rough -- DM doesn't
actually warn if you do this wrong. Silicons specifically flagged this
as a rough spot for code quality, which is why I attacked it.

These variables never change during the load process, so threading them
as arguments creates the false implication that they can be different
per map object.

### Performance

My goal wasn't to make performance better, just to make the code more
readable without making it worse. Brief profiling implies it might be
faster, but the difference is marginal and possibly explained by bad
test conditions:

- map loading took 24.0, 24.3, 24.6 seconds before the change
- map loading took 23.0, 23.6, 23.8 seconds after this change

All tests were done with rotated Triumph. (I haven't profiled
non-rotated yet.)

Back of the envelope calculation implies the number of
variable-on-object lookups in the hot loop phase of the map load should
be pretty close to the original number -- maybe a little lower, since
I've turned some into locals.

The one lookup that looks new (where we get the context from the
preloader in preloader_load) was actually one that happened
unconditionally at the end of the procedure in the previous code.

## Images

Sign bug: I didn't fix this or introduce this.


![image](https://github.com/user-attachments/assets/47debb5e-00e4-4bf7-a404-94d315f07607)

Fire alarm bug living its best life. I fixed this:


![image](https://github.com/user-attachments/assets/f1db22d4-921c-4a1d-827f-cb49c76a2cb9)

Fire alarm is Tethered. (Post-fix):


![image](https://github.com/user-attachments/assets/b939842f-8dfc-45c3-bfcb-e6faf3a90ee8)

## Changelog

🆑 Pyrex
refactor: DMM rotation code is a little tidier
fix: fire alarms have a 0% chance of hovering
/🆑

---------

Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
2024-07-14 18:55:53 -07:00
siliconsandGitHub 83bc9a7ebf Underfloor refactor + Mild codebase cleanup (#6518)
refactors deprecated and old level / hide system to a more orchestrated
and slightly more efficient one
2024-06-20 17:09:48 -06:00
siliconsandGitHub 6037dd194c shuttles/storytellers - maploader injections and context (#6464)
i decided to atomize my prs a little

- map obfuscation module upgraded
- obfuscation now happens via mangling id, inspired by nebula. atoms loaded with the same mangling id will generate the same obfuscated ids from a given and matching input id
- /datum/map_injection added; it's a composition-based system for modifying maps during spawn
- /datum/map_injection/starting_gear; inspired by barotrauma, pretty much just injects starting gear as necessary with a given configuration. multiple of these can be stacked in a given maploading.
- /obj/map_helper/gear_marker; markers for where starting_gear should populate things.
2024-06-04 20:47:18 +02:00
39bc14bb4a reworks game preferences (characters v2 staging) (#6310)
Co-authored-by: silicons <no@you.cat>
Co-authored-by: LordME <58342752+TheLordME@users.noreply.github.com>
2024-04-08 12:44:30 +02:00
383308a1d1 storage rewrite (#6284)
Co-authored-by: silicons <no@you.cat>
2024-02-17 10:08:35 +01:00
e2dae42dc4 runtime maploading 2/3: multiz update (#6145)
3/3 is world structs and the fun that comes with that

this pr has:

- transitions
- new multiz system
- lookup optimizations
- misc updates

---------

Co-authored-by: silicons <no@you.cat>
2023-11-26 18:55:55 -08:00