Commit Graph

390 Commits

Author SHA1 Message Date
metalgearsloth
d9bcc7f6dd Make nukies usable (#8257)
* Make nukies usable

- Spawn points that work
- Radar default range bumped up
- Used the infiltrator instead
- Spawning works
I playtested it and it was working so anything new pops up then I'm gonna screm.

* a
2022-05-19 07:48:00 +10:00
Paul Ritter
b3456c8376 Funny red spacemen (nukeops) (#8073)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2022-05-18 12:48:35 +10:00
Leon Friedrich
9255cc97a9 Revert "Revert "Make mapping use consistent Entity Uids (#7625)" (#7650)" (#8186)
This reverts commit 0957606792.
2022-05-15 13:29:01 +10:00
wrexbe
bc68ac96dd Cleanup the namespaces (#8132) 2022-05-13 17:59:03 +10:00
wrexbe
61d147aea9 Fixing warnings (#8131) 2022-05-13 15:35:13 +10:00
metalgearsloth
798af00ad2 Round end audio (#8048) 2022-05-13 10:13:07 +10:00
wrexbe
3467a83d97 Suicide2 (#8117)
* Fix toilet suicide

* Fix ghost ghosting

* Clean suicide system
2022-05-13 09:09:15 +10:00
Moony
36181334b5 StationSystem/jobs/partial spawning refactor (#7580)
* Partial work on StationSystem refactor.

* WIP station jobs API.

* forgor to fire off grid events.

* Partial implementation of StationSpawningSystem

* whoops infinite loop.

* Spawners should work now.

* it compiles.

* tfw

* Vestigial code cleanup.

* fix station deletion.

* attempt to make tests go brr

* add latejoin spawnpoints to test maps.

* make sure the station still exists while destructing spawners.

* forgot an exists check.

* destruction order check.

* hopefully fix final test.

* fail-safe radstorm.

* Deep-clean job code further. This is bugged!!!!!

* Fix job bug. (init order moment)

* whooo cleanup

* New job selection algorithm that tries to distribute fairly across stations.

* small nitpicks

* Give the heads their weights to replace the head field.

* make overflow assign take a station list.

* moment

* Fixes and test #1 of many.

* please fix nullspace

* AssignJobs should no longer even consider showing up on a trace.

* add comment.

* Introduce station configs, praying i didn't miss something.

* in one small change stations are now fully serializable.

* Further doc comments.

* whoops.

* Solve bug where assignjobs didn't account for roundstart.

* Fix spawning, improve the API.
Caught an oversight in stationsystem that should've broke everything but didn't, whoops.

* Goodbye JobController.

* minor fix..

* fix test fail, remove debug logs.

* quick serialization fixes.

* fixes..

* sus

* partialing

* Update Content.Server/Station/Systems/StationJobsSystem.Roundstart.cs

Co-authored-by: Kara <lunarautomaton6@gmail.com>

* Use dirtying to avoid rebuilding the list 2,100 times.

* add a bajillion more lines of docs (mostly in AssignJobs so i don't ever forget how it works)

* Update Content.IntegrationTests/Tests/Station/StationJobsTest.cs

Co-authored-by: Kara <lunarautomaton6@gmail.com>

* Add the Mysteriously Missing Captain Check.

* Put maprender back the way it belongs.

* I love addressing reviews.

* Update Content.Server/Station/Systems/StationJobsSystem.cs

Co-authored-by: Kara <lunarautomaton6@gmail.com>

* doc cleanup.

* Fix bureaucratic error, add job slot tests.

* zero cost abstractions when

* cri

* saner error.

* Fix spawning failing certain tests due to gameticker not handling falliability correctly.
Can't fix this until I refactor the rest of spawning code.

* submodule gaming

* Packedenger.

* Documentation consistency.

Co-authored-by: Kara <lunarautomaton6@gmail.com>
2022-05-10 13:43:30 -05:00
metalgearsloth
681e59bb76 Round start audio announcement (#8047) 2022-05-09 17:44:38 -07:00
20kdc
5299cbbb6e Stop mapping command from unsetting it's own settings if used repeatedly (#7875) 2022-05-03 20:19:15 -07:00
Vera Aguilera Puerto
3ee1f1f810 Suspicion rework (#7723)
* Deprecate suspicion spawn markers.

* Add suspicion loot table.

* Add suspicion item tag component.

* Suspicion rule now spawns items randomly around the station on start.
Also cleans them up when it ends.

* Fix build
huh, that API changed quickly--
2022-04-27 00:57:24 +10:00
Vera Aguilera Puerto
2c289810ad Add commands to add/end GameRules. (#7718) 2022-04-25 19:07:14 +02:00
Leon Friedrich
0957606792 Revert "Make mapping use consistent Entity Uids (#7625)" (#7650)
This reverts commit b99b14b143.
2022-04-20 02:36:26 +10:00
Leon Friedrich
b99b14b143 Make mapping use consistent Entity Uids (#7625) 2022-04-18 15:46:32 -07:00
Moony
88549da309 moop (#7594) 2022-04-16 17:23:22 -05:00
Moony
4d70395d11 Fix maploading once and for all. (#7501) 2022-04-15 14:35:58 -07:00
Pieter-Jan Briers
b3e7c7af1f Remove usage of CreateNetMessage. (#7563) 2022-04-15 11:55:49 -07:00
Radosvik
353a7aa210 Refresh Lobby Info Box (#7521) 2022-04-15 11:55:38 -07:00
Moony
148bde13c2 Fixes lobby backgrounds. (#7557) 2022-04-14 21:00:59 -07:00
ShadowCommander
a57e0ca199 Add round id to lobby and round end summary (#7547) 2022-04-14 13:40:26 -05:00
Radosvik
cef0c67511 Add current player count to lobby (#7402) 2022-04-04 15:39:42 +10:00
Paul Ritter
2ff40d5a1f Serv3 rework content changes (#7145) 2022-04-03 02:01:22 +02:00
Moony
3721b3303b Adds support for a map rotation system. (#7162)
* Adds support for a map rotation system.
It is now the default way of selecting a map, map votes have been disabled.

* whoops

* Randomize the map it starts off with, too.
(it'd pick bagel every time otherwise)

* Address review

* remove knight from rotation due to it being an unmaintained map.

* minor cleanup
2022-03-17 13:59:53 -05:00
Leon Friedrich
bfd95c493b hands ECS (#7081) 2022-03-17 18:13:31 +11:00
Jesse Rougeau
8418098dd8 Lobby Refactor (#7077) 2022-03-13 19:33:19 -07:00
Julian Giebel
414d226ec5 Server names and admin log full-text search (#6327)
Co-authored-by: Julian Giebel <j.giebel@netrocks.info>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2022-03-13 18:36:48 +01:00
Vera Aguilera Puerto
cd1902cdf2 Fix EndRound exception when a mind doesn't have a character name nor valid entity. 2022-03-05 12:42:24 +01:00
Vera Aguilera Puerto
e4029bc968 Exception tolerance for GameTicker.ResettingCleanup. 2022-03-05 11:01:51 +01:00
Vera Aguilera Puerto
8f0fb24914 Move MapManager restart after deleting every entity with a for loop. 2022-03-05 01:30:03 +01:00
Pieter-Jan Briers
2c721226d6 Revert "Revert "Load Maps on Round Start, not Round Restart v3 (#6989)" (#6990)"
This reverts commit 4aa65b6708.

Fixed the deadlock bug on postgres.
2022-03-04 23:53:44 +01:00
Moony
4aa65b6708 Revert "Load Maps on Round Start, not Round Restart v3 (#6989)" (#6990)
This reverts commit 9ab3bb5811.
2022-03-04 11:42:55 -06:00
Vera Aguilera Puerto
9ab3bb5811 Load Maps on Round Start, not Round Restart v3 (#6989)
* Load Maps on Round Start, not Round Restart

* Fix admin log test.
It assumed maps/grids existed during pre-round, wihch is not a valid assumption anymore after this PR.

* Shutdown server if round fails to start 5 times.

* Fix bugs with round starting flag.

* Make StartRound not async, synchronously get new round ID from DB.

* Handle StationId.Invalid in PickBestAvailableJob
Instead of crashing, return null.
SpawnPlayer will handle this by making the player an observer or returning them to the lobby.
2022-03-04 11:32:33 -06:00
Vera Aguilera Puerto
4eb778ad43 Add missing return statement to GameTicker.GamePreset 2022-03-04 16:19:48 +01:00
Moony
255865b7b7 Revert "Load Maps on Round Start, not Round Restart. Shut down server if Round fails to Start 5 times. (#6977)" (#6980)
This reverts commit 4098f7fd9b.
2022-03-03 13:34:16 -06:00
Vera Aguilera Puerto
4098f7fd9b Load Maps on Round Start, not Round Restart. Shut down server if Round fails to Start 5 times. (#6977) 2022-03-03 12:15:15 -07:00
Leon Friedrich
36fcca8337 Mapping Actions (#6877) 2022-03-02 10:12:34 +11:00
metalgearsloth
85736bfd6b Adjust mapping command order (#6929) 2022-03-01 21:11:22 +11:00
Moony
76e6cacce6 Revert "Load Maps on Round Start, not Round Restart (#6930)" (#6945)
This reverts commit 650b8b6600.
2022-02-28 20:49:50 -06:00
Vera Aguilera Puerto
650b8b6600 Load Maps on Round Start, not Round Restart (#6930)
* Load Maps on Round Start, not Round Restart

* Fix admin log test.
It assumed maps/grids existed during pre-round, wihch is not a valid assumption anymore after this PR.
2022-02-28 20:20:21 -06:00
moonheart08
e320ae80ee oops. 2022-02-28 10:46:47 -06:00
moonheart08
a3bc28476d Quick fix join bug. 2022-02-28 10:38:36 -06:00
metalgearsloth
eaee0a8a4c Don't mapinit when mapping creates a blank map (#6928) 2022-02-28 16:38:33 +11:00
Leon Friedrich
9a54ea67c4 update mapping command (#6925) 2022-02-28 12:21:15 +11:00
metalgearsloth
bee627ac6a Turn SandboxManager into a system (#6867) 2022-02-23 17:00:30 -07:00
ShadowCommander
8ccdff4416 Prevent players from late joining as role banned jobs (#6853) 2022-02-21 19:45:59 -08:00
ShadowCommander
4825142210 Role bans (#6703) 2022-02-21 23:11:39 +01:00
metalgearsloth
b87806f7ed Fix some build warnings (#6832)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
2022-02-21 14:41:50 +11:00
mirrorcult
ec4d4688c7 Seal/abstract/virtual everything (#6739) 2022-02-16 18:23:23 +11:00
mirrorcult
3abc7a443e Separate game rule enabling and game rule starting (#6168) 2022-02-15 20:06:28 -07:00
moonheart08
93a553bfc2 Fuck. 2022-02-04 17:14:50 -06:00