867 Commits
Author SHA1 Message Date
miniduikboot 414303b2c1 Documentation: Update .NET 7 to .NET 8 2024-04-28 18:31:34 +02:00
Pietrodjaowjao 0ba700ef68 Forgot to actually return 2024-04-28 05:12:29 -03:00
Pietrodjaowjao c2b5a3e9df gamedata 2024-04-28 04:28:09 -03:00
miniduikboot ac12bacb00 Merge pull request #591 from NikoCat233/add-broadcast-check-to-most-of-calls
[AntiCheat] Add ValidateBroadCast check to most of the rpc calls
2024-04-28 08:22:55 +02:00
miniduikboot 2f3e1a620b Fix embarrassing bugs 2024-04-27 20:20:04 +02:00
miniduikboot d391b24aad Remove use of SetInfected RPC
Client no longer sends the RPC nor does anything with it when receiving it
2024-04-27 16:55:50 +02:00
miniduikboot 5854000220 Refactor if statements to be more vertically dense
Multiple guard clauses make the file harder to navigate, so put them in
a single guard clause with one validation rule per line. Some statements
in the file were already set up like this, so this commit makes it consistent
2024-04-27 16:45:15 +02:00
miniduikboot ef022b04e4 Add Broadcast checks to remaining RPC's 2024-04-27 16:43:50 +02:00
miniduikboot 155c3e69d9 Merge pull request #589 from miniduikboot/feature/game-created-event-add-host
Add Host property to IGameCreatedEvent
2024-04-21 21:44:24 +02:00
Niko233 3c9b0c305c Add broadcast 2024-04-21 14:48:54 +08:00
miniduikboot 2c0f45c5d1 Add Host property to IGameCreatedEvent
When a game has just been created, it does not yet have any players in
them, and as a result you can't get the host or its connection id when
this event is called. This makes it annoying to link between this event
and the IGameCreationEvent that came just before it.

Having this link is useful for the usecase of a game code allocation
plugin that allocates codes from a pool, and needs to return codes to
a pool if these codes weren't picked.
2024-04-12 22:53:01 +02:00
miniduikboot 9b7b1e8b26 Merge pull request #571 from Impostor/bugfix/misc-ac
Miscellaneous Anticheat fixes
2024-04-04 20:17:44 +02:00
miniduikboot 1a11b5f43e Rework Color calculation loop to always terminate 2024-04-04 20:12:44 +02:00
miniduikboot bdd65e9e9f Don't dequeue a color when none are available 2024-04-04 20:10:23 +02:00
miniduikboot ba9eeb5bb4 Check AC config in SetName/Color checks
Previously this was not done causing these checks to be unconditionally enabled
2024-04-04 20:10:23 +02:00
miniduikboot 5dafd9fe5b Allow host-only mods to desync kill timeouts 2024-04-04 20:10:23 +02:00
miniduikboot 7f943e6b2e Allow host-only mods to desync murder roles 2024-04-04 20:10:23 +02:00
miniduikboot 28f3cb3b2e Make Impostor's AC modular (#559)
* Add extra configuration options for the anticheat

* Implement option to exempt hosts from AC checks

* Add AntiCheatConfig to InnerNetObject and friends

* Categorize calls in InnerNetObject.Anticheat

* Categorize other calls to ReportCheatAsync

* Update cosmetics AC handling

When Innersloth changed SetHat etc to SetHatStr as part of the cosmicube
update we accidentally created a few dead methods. Restore and update
the code.

* Push up cheat category to ReportCheatAsync

This makes it possible to log failed checks for diagnosis. Also much
cleaner now that we don't have to push AntiCheatConfig everywhere.
Should've done this immediately q.q

* Add back old version of ReportCheatAsync

some plugins used this method. affected plugins should rebuild after the
next impostor release

* Add documentation for modular anticheat

* Address comments

* Sort AntiCheatConfig keys

* Rework the option to allow cheating hosts

This option should actually be tristate: to not break host-only mods we
should disable the anticheat for hosts running host-only mods.

* Document CheatingHostMode

* Split Limits category in Color and Name Limits
2024-04-04 20:09:59 +02:00
miniduikboot 7a49d2d917 Prepare release 1.9.1 v1.9.1 2024-04-03 19:59:30 +02:00
miniduikboot 092504f2f1 Merge pull request #573 from ykundesu/fix/AprilFools2024
fixed AprilFools2024 Deserialize error
2024-04-01 13:30:35 +02:00
miniduikboot 453d12171e Fix compile warning 2024-04-01 13:23:18 +02:00
ykundesu b2e220a738 fixed AprilFools2024 Deserialize error 2024-04-01 17:33:38 +09:00
miniduikboot 2be1d68eeb Merge pull request #569 from Impostor/feature/2024.3.5
Feature/2024.3.5
2024-03-30 16:25:41 +01:00
miniduikboot c7ea59fed9 Run Dumpostor on 2024.3.5 2024-03-06 21:07:09 +01:00
miniduikboot 6cc2185915 Add new game version for 2024.3.5
Officials don't allow crosplay either, so neither should we
2024-03-06 21:06:16 +01:00
miniduikboot 7b23d80978 Merge pull request #563 from Impostor/feature/net8
Upgrade to net8.0
v1.9.0-rc.1 v1.9.0
2024-01-25 12:31:07 +01:00
miniduikboot 1582b2c65a Merge pull request #564 from Impostor/hotfix/docker-actions
Migrate to environment files correctly
2024-01-25 12:26:35 +01:00
miniduikboot 81753a53e0 Migrate to environment files correctly
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2024-01-25 12:21:56 +01:00
miniduikboot a9fdd82345 Merge pull request #562 from Impostor/fix/http2-warning
Don't set HTTP protocols explicitly
2024-01-25 12:15:43 +01:00
miniduikboot d06b21b066 Merge pull request #561 from miniduikboot/chore/update-gh-actions
Update Github actions
2024-01-25 12:15:26 +01:00
miniduikboot c1fb4336df Merge pull request #560 from Impostor/fix/dleks
Allow spawning in the Dleks map
2024-01-25 12:14:59 +01:00
miniduikboot 9c02a912b4 Merge pull request #557 from miniduikboot/fix/http-default-listenip
Change default ListenIp of Http server to 0.0.0.0
2024-01-25 12:14:31 +01:00
miniduikboot 3143c67eb4 Merge pull request #552 from Impostor/feature/options-changed-event
Implement event to detect game option changes
2024-01-25 12:14:02 +01:00
js6pak 9f93e0955b Update ReadFrom.Configuration call 2024-01-25 12:13:12 +01:00
js6pak d74d7fcecc Drop BinaryFormatter override in ImpostorException 2024-01-25 12:10:36 +01:00
miniduikboot 012e45c6a9 Remove unnecessary using directive 2024-01-25 12:05:09 +01:00
js6pak 2cbfe159be Upgrade to net8.0 2024-01-25 00:51:06 +01:00
js6pak e142fc7c73 Don't set HTTP protocols explicitly 2024-01-25 00:44:41 +01:00
miniduikboot 165621a8cc Update Github actions
- Update versions to the latest one
- Get rid of .gitmodules as we dumped that years ago
- Change ::set-output to output files as the former is slated for removal
2024-01-24 21:37:37 +01:00
miniduikboot 83fe5814ab Only throw warning outside of docker containers 2024-01-24 21:21:07 +01:00
miniduikboot d640f90d88 Allow spawning in the Dleks map
Now with 100% less crash cascades on spawn attempts and it even includes
working map data!
2024-01-24 20:45:21 +01:00
miniduikboot f4f10269b2 Show both warnings 2024-01-24 19:55:35 +01:00
miniduikboot 880951c5b8 Add warning message for direct configuration 2024-01-24 18:13:02 +01:00
miniduikboot 3b514f82f2 Change default ListenIp of Http server to 0.0.0.0
We see that a lot of support tickets are caused by this default setting,
as it is one of the things that blocks connections to the server with no
obvious indication that this is happening. To make it easier for first
time users to set up Impostor, it is important that this setting is
changed.

Previously we also recommended against direct exposing due to security
reasons, but I believe this fear to be unfounded: Microsoft claims that
the Kestrel server is hardened against web server vulnerabilities and
supports its use both with and without a reverse proxy.[1]

We still recommend using reverse proxies if HTTPS support is needed, so
that section of documentation still remains. Setting the ListenIp to
127.0.0.1 is still recommended when using a reverse proxy to remove the
ability for people to connect directly, so we add it there as a recommendation.

[1]: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/when-to-use-a-reverse-proxy?view=aspnetcore-8.0
2024-01-10 19:17:38 +01:00
js6pak 16d3f1c651 Merge branch 'master' into feature/options-changed-event 2023-12-17 20:23:01 +01:00
miniduikbootandjs6pak b5ea1d8864 Update docs to reflect http plugin merge (#546)
Co-authored-by: js6pak <me@6pak.dev>
2023-12-17 20:22:36 +01:00
js6pak 5325a81cb6 Merge Impostor.Http into core (#533) 2023-12-17 20:19:27 +01:00
js6pak c6121eed49 Implement MushroomMixupSabotage 2023-12-16 23:55:58 +01:00
js6pak 389b7dfc0a Drop the RpcSnapTo anticheat 2023-12-16 23:55:58 +01:00
js6pak 5b14c7b64e Implement fungle rpcs 2023-12-16 23:55:58 +01:00