Commit Graph

36638 Commits

Author SHA1 Message Date
metalgearsloth f7e4c84143
Fix options menu crashing in replays (#26911)
Not having the nullable set properly is annoying but fixing that would probably be a significant amount of work.

(cherry picked from commit 4cb344cc30)
2024-04-21 21:57:19 +02:00
Pieter-Jan Briers 8e8a4cf1b6
Fix database round start date issues (#26838)
How can ONE DATABASE COLUMN have so many cursed issues I don't know, but it certainly pissed off the devil in its previous life.

The start_date column on round entities in the database was added by https://github.com/space-wizards/space-station-14/pull/21153. For some reason, this PR gave the column a nonsensical default value instead of making it nullable. This default value causes the code from #25280 to break. It actually trips an assert though that's not what the original issue report ran into.

This didn't get noticed on wizden servers because we at some point backfilled the start_date column based on the stored admin logs.

So I change the database model to make this column nullable, updated the C# code to match, and made the existing migration set the invalid values to be NULL instead. Cool.

Wait how's SQLite handle in this scenario anyways? Well actually turns out the column was *completely broken* in the first place!

The code for inserting into the round table was copy pasted between SQLite and PostgreSQL, with the only difference being that the SQLite key manually assigned the primary key instead of letting SQLite AUTOINCREMENT it. And then the code to give a start_date value was only added to the PostgreSQL version (which is actually in the base class already). So for SQLite that column's been filled up with the same invalid default the whole time.

Why was the code manually assigning a PK? I checked the SQLite docs for AUTOINCREMENT[1], and the behavior seems appropriate.

I removed the SQLite-specific code path and it just seems to work regardless. The migration just sets the old values to NULL too.

BUT WAIT, THERE'S MORE!

Turns out just doing the migration on SQLite is a pain in the ass! EF Core has to create a new table to apply the nullability change, because SQLite doesn't support proper ALTER COLUMN. This causes the generated SQL commands to be weird and the UPDATE for the migration goes BEFORE the nullability change... I ended up having to make TWO migrations for SQLite. Yay.

Fixes #26800

[1]: https://www.sqlite.org/autoinc.html

(cherry picked from commit d3ac3d06bb)
2024-04-21 21:57:13 +02:00
PJBot 1a0d9ef544
Automatic changelog update
(cherry picked from commit dbf8a036ec)
2024-04-21 21:57:12 +02:00
Terraspark4941 e7792837a0
Autism pins! (#25597)
* hee hee he ha ha

* added gold varients, forgive me for my spritework

* maints loot, copying from past PRs

* Trying to fix RSI

* speedran these sprites in break time, pictures will be later

* Fixed/Tweaked glows

* consensus

* gregregation

* dam copiryte

* oops i forgot to delete 2 fields hope this works

(cherry picked from commit d2d62b97ac)
2024-04-21 21:57:11 +02:00
metalgearsloth e71d526937
Update submodule to 218.0.0 (#26945)
(cherry picked from commit 54b3d7fe45)
2024-04-21 21:56:59 +02:00
Tayrtahn 7095f3e8a7
Add two-message overload to PopupPredicted (#26907)
Added two-message overload to PopupPredicted

(cherry picked from commit 9107d421bd)
2024-04-21 21:56:56 +02:00
PJBot ed201edabf
Automatic changelog update
(cherry picked from commit f1d1e6c6fd)
2024-04-21 21:56:51 +02:00
DrSmugleaf 0d5762c35c
Make UtensilSystem and SharpSystem not run AfterInteract if it has already been handled (#25826)
* Make UtensilSystem and SharpSystem not run AfterInteract if it has already been handled

* merge conflicts

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
(cherry picked from commit c67948407e)
2024-04-21 21:56:50 +02:00
Verm b8e216318c
You can now see paper on crates (with color!) (#26834)
* Implement changes on not-cooked branch

* Made it work

* Fix update appearance calls

* Fix extra indents, clean-up code, fix tests hopefully

* Fix hammy cagecrate

* Fix messing up the yml, add artifact crate specific labels back in

* Visual Studio hates yml, sad

* Seperate the colors for cargonia

* sorry json

* make label move with artifact door

* Apply suggestion changes

Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>

* Fix remaining crate offsets, add a few for livestock and graves (why are you labeling graves) and coffin label sprites (why are you labeling coffins??)

---------

Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
(cherry picked from commit 96ad9002f1)
2024-04-21 21:56:49 +02:00
PJBot 707836d115
Automatic changelog update
(cherry picked from commit cb4561fe96)
2024-04-21 21:56:43 +02:00
DrSmugleaf 99ab8cea68
Fix rockets and lasers looking like they have nothing loaded (#26933)
(cherry picked from commit 13cef85a6e)
2024-04-21 21:56:42 +02:00
PJBot 613b6333c4
Automatic changelog update
(cherry picked from commit bbff00cd2a)
2024-04-21 21:56:41 +02:00
GreaseMonk 5d097e8746
Add Ability to stop sound when MobState is Dead (#26905)
* Add stopsWhenEntityDead to sound components

* Convert component

* Review

* Fix dupe sub

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
(cherry picked from commit da618d791a)
2024-04-21 21:56:36 +02:00
metalgearsloth 55e1c39abb
Fix standart -> standard and dressfilled test fail (#26942)
Fix standart -> standard

(cherry picked from commit dc19964d84)
2024-04-21 21:56:25 +02:00
chromiumboy 490568b98e
Bug fix: Force cancellation of RCD constructions if the construction type is changed (#26935)
Force cancellation of RCD constructions if the construction type is changed

(cherry picked from commit 33e5e4e581)
2024-04-21 21:55:13 +02:00
PJBot b793912e15
Automatic changelog update
(cherry picked from commit ba9091ff59)
2024-04-21 21:55:11 +02:00
superjj18 42795f8ef2
Fixed Honkbot/jonkbot honking like crazy, gave honkbot/jonkbot standard idle ai. (#26939)
* Fixed Honkbot/jonkbot honking like crazy, gave honkbot/jonkbot standard idle ai.

* Update Resources/Prototypes/Entities/Mobs/NPCs/silicon.yml

---------

Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
(cherry picked from commit 8272d7a345)
2024-04-21 21:55:10 +02:00
PJBot 54de02eec5
Automatic changelog update
(cherry picked from commit d44db87bfb)
2024-04-21 21:55:05 +02:00
Tayrtahn f8f0b39692
Fix cryostorage identifying unknown characters as captain (#26927)
Fixed cryostorage getting captain's record for unknown jobs.
Also localized Unknown job string.

(cherry picked from commit 9b97a2e05d)
2024-04-21 21:55:04 +02:00
PJBot c0341d10b7
Automatic changelog update
(cherry picked from commit ed065e8a3d)
2024-04-21 21:55:01 +02:00
Boaz1111 886f6aaca0
Fix for the salvage ice labs map. (#26928)
* done

* more work

(cherry picked from commit 1bf97c94ee)
2024-04-21 21:54:58 +02:00
PJBot e22aafa14f
Automatic changelog update
(cherry picked from commit 154b8606f9)
2024-04-21 21:54:56 +02:00
TsjipTsjip b4bb1c1e2e
Replace SetDamage call with TryChangeDamage in ImmovableRodSystem.cs (#26902)
(cherry picked from commit 4833074514)
2024-04-21 21:54:55 +02:00
ShadowCommander cc1f1edaa2
Fix pulling a new entity when already pulling an entity (#26499)
Fix pulling when already pulling

The TryStopPull were failing due to wrong arguments provided.
Replacing the virtual item in hand with a different pull was failing due to the hand not being cleared.

Fix stop pulling checks that had the wrong variables provided.

VirtualItems are already queue deleted at the end of HandleEntityRemoved.

(cherry picked from commit 037a7d7d3d)
2024-04-21 21:54:45 +02:00
FungiFellow add7038fbb
Removed Salv Borg Crusher Dagger (#26865)
(cherry picked from commit eeb460fb29)
2024-04-21 21:54:44 +02:00
PJBot 10ea9e3120
Automatic changelog update
(cherry picked from commit b086779165)
2024-04-21 21:54:43 +02:00
keronshb 9c7b440e79
Fixes polymorph cooldowns (#26914)
fixes polymorph cooldowns

(cherry picked from commit d4b7bc5aa3)
2024-04-21 21:54:42 +02:00
DrSmugleaf b11f3a16d9
Fix guns that spawn without a magazine looking like they have one (#26922)
(cherry picked from commit 2d53cfeabc)
2024-04-21 21:54:36 +02:00
DrSmugleaf c253b15886
Fix incorrect "Cycled" and "Bolted" popups when (un)wielding a gun (#26924)
(cherry picked from commit b51482f51a)
2024-04-21 21:54:35 +02:00
PJBot 0a5513e156
Automatic changelog update
(cherry picked from commit 5d00305a22)
2024-04-21 21:54:34 +02:00
Vasilis f3eea4409b
Uncooked animal proteins is safe for animal stomachs only (#26906)
Uncooked animal proteins is safe for animal stomachs

(cherry picked from commit a49a576b03)
2024-04-21 21:54:33 +02:00
PJBot 3d60115fce
Automatic changelog update
(cherry picked from commit 2360376b40)
2024-04-21 21:54:29 +02:00
osjarw 6a6a1f6526
Fixed magboot activation distance (#26912)
(cherry picked from commit 0a1ce9dd43)
2024-04-21 21:54:28 +02:00
DrSmugleaf 0f618756ab
Fix the stripping menu being openable without StrippingComponent (#26908)
(cherry picked from commit 24b6456735)
2024-04-21 21:54:27 +02:00
TsjipTsjip cfe5153f5d
Health analyzer UI unit correction (#26903)
Correct Kelvin displayed on health analyzer UI, use T0C constant.

(cherry picked from commit 998bf45368)
2024-04-21 21:54:26 +02:00
PJBot 6453a2dc4a
Automatic changelog update
(cherry picked from commit c8f75d9918)
2024-04-21 21:54:18 +02:00
Ko4ergaPunk 2be19eafdd
Strobes added (#26083)
* Done

* Adds new

* empty

* attributions

* empty

* strobe admin deleted

(cherry picked from commit 279e01c3d2)
2024-04-21 21:54:14 +02:00
PJBot e68487e164
Automatic changelog update
(cherry picked from commit 2a5d23f3f1)
2024-04-21 21:54:13 +02:00
deltanedas 8f4778397b
Sterile swab dispenser instead of box (#24986)
* sterile swab dispenser

* trust

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
(cherry picked from commit 3a00e8c59c)
2024-04-21 21:54:12 +02:00
Nemanja c651727215
uplink and store freshening (#26444)
* uplink and store freshening

* more

* im gonna POOOOOOGGGGGGG

* we love it

(cherry picked from commit 9d5a3992fa)
2024-04-21 21:54:07 +02:00
Velcroboy 6b302a000a
Add drink container suffixes (#26835)
Co-authored-by: Velcroboy <velcroboy333@hotmail.com>
(cherry picked from commit 7d480acb0c)
2024-04-21 21:54:03 +02:00
PJBot 8a49c1a4fd
Automatic changelog update
(cherry picked from commit 85aef16954)
2024-04-21 21:54:01 +02:00
Token 4a2e7621c3
NoticeBoard is craftable now (#26847)
* NoticeBoard is craftable now

* Fix notice board to proper name capitalization

* Fix notice board proper name in description

* Update Resources/Prototypes/Recipes/Construction/furniture.yml

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
(cherry picked from commit e88b2467ca)
2024-04-21 21:53:57 +02:00
Brandon Hu 18cdf68882
Fix grammar in changelog (#26894)
Grammar

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
(cherry picked from commit 261e5354d3)
2024-04-21 21:53:50 +02:00
PJBot 3bb9dead28
Automatic changelog update
(cherry picked from commit 8f17bf1a3d)
2024-04-21 21:53:49 +02:00
liltenhead f3c560805c
Remove reagent slimes from ghost role pool (#26840)
reagentslimeghostrole

(cherry picked from commit e12223c355)
2024-04-21 21:53:44 +02:00
PJBot 6cda40c4c7
Automatic changelog update
(cherry picked from commit 4627c7c859)
2024-04-21 21:52:32 +02:00
Verm 657428a97d
Fix shaker sprites (#26899)
* Change basefoodshaker to parent from basefoodcondiment instead

* Make them still refillable

(cherry picked from commit b895e557d4)
2024-04-21 21:52:30 +02:00
Tayrtahn 2307d18579
Allow advertisement timers to prewarm (#26900)
Allow advertisement timers to prewarm.

(cherry picked from commit 264bf7199d)
2024-04-21 21:52:29 +02:00
Tayrtahn a8e64a0467
Fix potted plant popup/sfx spam (#26901)
Fixed potted plant hide popup/sfx spam.

(cherry picked from commit 8e9d2744f3)
2024-04-21 21:52:18 +02:00