Pieter-Jan Briersandslarticodefast b7f297f612 Fix usages of TryIndex() (#39124)
* Fix usages of TryIndex()

Most usages of TryIndex() were using it incorrectly. Checking whether prototype IDs specified in prototypes actually existed before using them. This is not appropriate as it's just hiding bugs that should be getting caught by the YAML linter and other tools. (#39115)

This then resulted in TryIndex() getting modified to log errors (https://github.com/space-wizards/RobustToolbox/commit/94f98073b07bd3fa3133ae6799b34d90f46f467e), which is incorrect as it causes false-positive errors in proper uses of the API: external data validation. (#39098)

This commit goes through and checks every call site of TryIndex() to see whether they were correct. Most call sites were replaced with the new Resolve(), which is suitable for these "defensive programming" use cases.

Fixes #39115

Breaking change: while doing this I noticed IdCardComponent and related systems were erroneously using ProtoId<AccessLevelPrototype> for job prototypes. This has been corrected.

* fix tests

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-12-29 11:39:03 -06:00
2025-11-23 15:22:32 -06:00
2025-01-28 04:31:26 +00:00
2024-05-03 00:04:44 +02:00
2023-03-04 23:56:55 +00:00
2025-01-28 04:31:26 +00:00
2025-01-12 08:17:24 +00:00
2025-01-12 08:14:12 +00:00
2025-08-14 21:52:56 +01:00
2024-09-20 13:32:25 +00:00
2024-09-20 13:32:25 +00:00
2024-09-20 13:32:25 +00:00
2024-09-20 13:32:25 +00:00
2025-08-05 16:50:33 +02:00
2024-09-20 13:32:25 +00:00
2024-07-25 00:34:48 +02:00
2023-03-09 16:01:40 -06:00
2025-04-09 20:20:46 +00:00

Delta-V Logo

Delta-V is a fork of Space Station 14, embracing a mixture of classic SS13 chaos and experimentation only possible with the new engine.

Space Station 14 is a remake of SS13 that runs on Robust Toolbox, a homegrown engine written in C#.

Delta-V is a continuation of the Nyanotrasen fork. Any work done in a non-base namespace may contain incorrect attributes due to rewrites and recommitting.

DeltaV

Space Station 14

Documentation/Wiki

The docs site has documentation on SS14s content, engine, game design and more. Additionally, see these resources for license and attribution information:

Contributing

We are happy to accept contributions from anybody. Get in Discord if you want to help. We've got a list of issues that need to be done and anybody can pick them up. Don't be afraid to ask for help either!

Make sure to read CONTRIBUTING.md if you are new to Delta-V!

Building

  1. Clone this repo:
git clone https://github.com/DeltaV-Station/Delta-v.git
  1. Go to the project folder and run RUN_THIS.py to initialize the submodules and load the engine:
cd Delta-v
python RUN_THIS.py
  1. Compile the solution:

Build the server using dotnet build.

More detailed instructions on building the project.

License

Read LEGAL.md for legal information regarding the code licensing.

Most assets are licensed under CC-BY-SA 3.0 unless stated otherwise. Assets have their license and the copyright in the metadata file. Example.

Code taken from Project Starlight was taken in accordance with the Starlight License.

Note

Some assets are licensed under the non-commercial CC-BY-NC-SA 3.0 or similar non-commercial licenses and will need to be removed if you wish to use this project commercially.

S
Description
A fork of Space Station 14, embracing a mixture of classic SS13 chaos and experimentation only possible with the new engine
Readme
2.6 GiB
Languages
C# 91.2%
Fluent 8.3%
Python 0.3%