]> git.deb.at Git - rhonda/impostor.git/log
rhonda/impostor.git
17 months agoAdd stub for Find Lobby endpoint
miniduikboot [Wed, 26 Mar 2025 20:18:50 +0000 (21:18 +0100)]
Add stub for Find Lobby endpoint

Co-Authored-By: Niko233 <139348239+NikoCat233@users.noreply.github.com>
17 months agoStop hardcoding the GameOptions in GameListingV2
miniduikboot [Wed, 26 Mar 2025 19:52:17 +0000 (20:52 +0100)]
Stop hardcoding the GameOptions in GameListingV2

To prevent needing to pull in Impostor.Hazel, use an extension method
instead.

Thanks Niko for researching this part

Co-Authored-By: Niko233 <139348239+NikoCat233@users.noreply.github.com>
17 months agoBump minor version
miniduikboot [Wed, 26 Mar 2025 19:01:50 +0000 (20:01 +0100)]
Bump minor version

At this point it doesn't seem necessary to drop support for old
Amoguses, so just bump the minor version for support purposes

17 months agoForbid crossplay between 2024.10.29 and 16.0
miniduikboot [Wed, 26 Mar 2025 18:58:32 +0000 (19:58 +0100)]
Forbid crossplay between 2024.10.29 and 16.0

Innersloth also forbids it, and it's likely not possible due to the new
GameOption version

17 months agoAdd endpoint to find games by code
miniduikboot [Tue, 25 Mar 2025 23:50:24 +0000 (00:50 +0100)]
Add endpoint to find games by code

This is used in the new "Enter Code" flow

3 extra fields are added to GameListing, including a Base 64
serialization method for game options

17 months agoUpdate Game Options
miniduikboot [Tue, 25 Mar 2025 18:48:54 +0000 (19:48 +0100)]
Update Game Options

Creating a game is now possible

17 months agoAdd new network version
miniduikboot [Tue, 25 Mar 2025 18:35:53 +0000 (19:35 +0100)]
Add new network version

19 months agoAdd diagnostic http message (#663)
miniduikboot [Sun, 26 Jan 2025 17:00:03 +0000 (18:00 +0100)]
Add diagnostic http message (#663)

* Add diagnostic message to test HTTP server

This makes it possible to diagnose if the reverse proxy setup is working
correctly or if the game configuration is wrong

* Print console log as well

Only print it once to prevent console spam

* Update src/Impostor.Server/Http/HelloController.cs

Co-authored-by: js6pak <me@6pak.dev>
---------

Co-authored-by: js6pak <me@6pak.dev>
19 months agoAdd missing cosmetic methods to IInnerPlayerControl
Chipmunk [Mon, 20 Jan 2025 02:30:40 +0000 (21:30 -0500)]
Add missing cosmetic methods to IInnerPlayerControl

19 months agoPush down AC checks in PlayerPhysics as well
miniduikboot [Sat, 4 Jan 2025 12:54:21 +0000 (13:54 +0100)]
Push down AC checks in PlayerPhysics as well

I've checked Impostor for issues that are similar to #664, and found
this one: if mods add a custom rpc on PlayerPhysics, Impostor will check
ownership of it, which isn't intentional.

19 months agoMove down target AC check in InnerShipStatus
miniduikboot [Sat, 4 Jan 2025 12:46:29 +0000 (13:46 +0100)]
Move down target AC check in InnerShipStatus

Mods may send RPC's on a ShipStatus that aren't broadcasts. Previously
Impostor would forbid that, which doesn't make sense to me. By moving
down the check it'll allow mods to broadcast RPC's on ShipStatus.

Reported-By: xtracube
20 months agoBump version to 1.10.2 v1.10.2
miniduikboot [Sun, 22 Dec 2024 15:59:02 +0000 (16:59 +0100)]
Bump version to 1.10.2

20 months agoCheck for disconnection between handling messages
miniduikboot [Tue, 17 Dec 2024 21:09:19 +0000 (22:09 +0100)]
Check for disconnection between handling messages

Without this, it is possible for clients to get the remainder of their
messages handled in a packet.

Co-Authored-By: js6pak <me@6pak.dev>
20 months agoClean up abandoned games on disconnect
miniduikboot [Tue, 17 Dec 2024 21:08:23 +0000 (22:08 +0100)]
Clean up abandoned games on disconnect

When a client disconnects without ever having joined a game, it leaves
behind an empty game on the server. Remove these when a player
disconnects.

Co-Authored-By: js6pak <me@6pak.dev>
20 months agoPrevent clients from creating a second game
miniduikboot [Tue, 17 Dec 2024 21:05:27 +0000 (22:05 +0100)]
Prevent clients from creating a second game

Legitimate clients will never create a second game using the same
connection.

Co-Authored-By: js6pak <me@6pak.dev>
22 months agoBump to Among Us 2024.10.29 (#656) v1.10.1
miniduikboot [Thu, 24 Oct 2024 17:47:01 +0000 (19:47 +0200)]
Bump to Among Us 2024.10.29 (#656)

Inspected mono, no networking changes found.

Ran dumpostor as well

Bumped Impostor version

23 months agoBugfix/fix outfit RPCs (#653)
danbudworthmead [Sat, 5 Oct 2024 10:44:08 +0000 (11:44 +0100)]
Bugfix/fix outfit RPCs (#653)

* implemented the sequence ID

* implemented the sequence ID for the player outfits

the sequence ID in the set call must be greater than that stored on the client otherwise the client disregards the set call.

* make sequence IDs internal

* added space after closing brace

* make the sequence ID addition +5

23 months agoRemove unused HandleSetInfected
Niko233 [Sun, 29 Sep 2024 01:19:26 +0000 (09:19 +0800)]
Remove unused HandleSetInfected

23 months agoupdated the api call to use the setnamerpc serialise
danbudworthmead [Sat, 28 Sep 2024 15:37:43 +0000 (16:37 +0100)]
updated the api call to use the setnamerpc serialise

the client now expects a byte which is the netid otherwise the setname call wont work

23 months agoFix vanilla venting as Phantom cause a ban v1.10.0
Niko233 [Sat, 7 Sep 2024 03:08:56 +0000 (11:08 +0800)]
Fix vanilla venting as Phantom cause a ban

2 years agoAdd support for 2024.9.4
js6pak [Wed, 4 Sep 2024 22:26:43 +0000 (00:26 +0200)]
Add support for 2024.9.4

2 years agoFix RemovePlayer reason on internal disconnects
js6pak [Fri, 23 Aug 2024 18:57:05 +0000 (20:57 +0200)]
Fix RemovePlayer reason on internal disconnects

2 years agoSend DisconnectReason.Hacking to other players when disconnecting for cheating
js6pak [Fri, 23 Aug 2024 18:28:56 +0000 (20:28 +0200)]
Send DisconnectReason.Hacking to other players when disconnecting for cheating

Base game doesn't have a specific message for it so it results in a generic "left the game due to error" but it's still better than the default "left the game".
This also allows client side mods to fix the message.

2 years agoFix cheating disconnect message
js6pak [Thu, 22 Aug 2024 21:37:51 +0000 (23:37 +0200)]
Fix cheating disconnect message

DisconnectReason.Hacking has been broken in base game for a long time so replace it with a custom message.
Also add a random support code for easier debugging in case of false positives.

2 years agoRefactor SetColor anticheat
miniduikboot [Sun, 7 Jul 2024 21:33:02 +0000 (23:33 +0200)]
Refactor SetColor anticheat

One issue with the ColorLimits checks is that it didn't account for mods
that add extra colors, this is fixed by checking if the route followed
is plausible instead of mimicking client logic and only accepting a
single answer that it expected. A false negative is possible where the
host decides to wrap back to the front but there are still custom colors
available at the end of the list. This is acceptable because Impostor
doesn't currently know the amount of colors available and this issue
isn't major enough to ask all mod authors to declare their custom color
amount to the server.

As extra colors should now be handled by this code, it makes sense to
change the category of the unknown colors check to ProtocolExtensions.
For these mods an exemption of the ColorLimits category is no longer
necessary.

Note that mods that allow duplicate colors that do not use a custom rpc
to set colors can only be supported by disabling the ColorLimits
category, this was already the case and I don't think it can be unified
with the existing check.

2 years ago更新 Game.State.cs
Niko233 [Thu, 22 Aug 2024 03:35:18 +0000 (11:35 +0800)]
更新 Game.State.cs

2 years agoMerge pull request #609 from Impostor/feature/2024.6.18-prepare
miniduikboot [Tue, 20 Aug 2024 19:50:45 +0000 (21:50 +0200)]
Merge pull request #609 from Impostor/feature/2024.6.18-prepare

Prepare for 2024.6.18 update

2 years agoAdd handler for phantom rpcs
Niko233 [Mon, 24 Jun 2024 10:00:09 +0000 (18:00 +0800)]
Add handler for phantom rpcs

2 years agoAdd Phantom Rpcs support
Niko233 [Mon, 24 Jun 2024 08:54:33 +0000 (16:54 +0800)]
Add Phantom Rpcs support

2 years agoAdd Phantom to the list of Impostor roles
miniduikboot [Sun, 21 Jul 2024 21:13:25 +0000 (23:13 +0200)]
Add Phantom to the list of Impostor roles

2 years agoClean up owned playerinfo's when disconnecting
miniduikboot [Thu, 20 Jun 2024 20:26:16 +0000 (22:26 +0200)]
Clean up owned playerinfo's when disconnecting

This commit does what official servers do:
- despawn the PlayerInfo if someone disconnects while in the lobby
- despawn all PlayerInfos at the end of a game when the EndGame screen
is shown. At this point a lot of other netobjects are destroyed as well,
with the PlayerInfos generally done first.

2 years agoSet PlayerLevel in PlayerInfo on RPC SetLevel
miniduikboot [Fri, 2 Aug 2024 09:25:52 +0000 (11:25 +0200)]
Set PlayerLevel in PlayerInfo on RPC SetLevel

Previously this used to be done by the host, but this is now the
server's responsibility.

2 years agoAdd Message24EndGameHostMigration serialization
miniduikboot [Sun, 30 Jun 2024 21:29:53 +0000 (23:29 +0200)]
Add Message24EndGameHostMigration serialization

Looks like Innersloth added this but hasn't actually used this. Weird..

When sent it makes the new host perform a full rejoin, which gums up
Impostor's spawning logic. Fixing that causes the client to gum itself
up. Sigh.

After some testing it seems like host migration still works fine, so
this investigation wasn't needed. Committing for posterity.

Co-Authored-By: js6pak <me@6pak.dev>
2 years agoSwitch PlayerName writes to Outfit
miniduikboot [Sun, 18 Aug 2024 09:16:44 +0000 (11:16 +0200)]
Switch PlayerName writes to Outfit

In 2024.6.18 Innersloth changed the storage location of the PlayerName
from PlayerInfo to PlayerOutfit. If we don't set the PlayerName, we'll
send an incomplete PlayerInfo to new players, so new players are unable
to stay connected as they will not receive complete PlayerInfo objects
before a timeout in the client activates.

Because we publish PlayerName in the API, we can't completely remove
the PlayerName field from PlayerInfo. We also use it internally in a few
places, so I don't this is worth removing.

2 years agoSync over tasks
miniduikboot [Fri, 21 Jun 2024 21:05:07 +0000 (23:05 +0200)]
Sync over tasks

As tasks used to be part of the GameData, 2024.6.18 has moved them to
the PlayerInfo. Because they are now called on the PlayerInfo of the
correct player, the playerId field in the RPC is no longer necessary.

2 years agoBump to 2024.8.13
miniduikboot [Tue, 13 Aug 2024 18:46:02 +0000 (20:46 +0200)]
Bump to 2024.8.13

Network side seems unchanged and officials allow crossplay

2 years agoSpawn PlayerInfo's if host is not authoritive
miniduikboot [Thu, 20 Jun 2024 16:14:02 +0000 (18:14 +0200)]
Spawn PlayerInfo's if host is not authoritive

This PlayerInfo also needs to be synced over if it is server owned

2 years agoAdd NetId to SetName and SetColor
miniduikboot [Thu, 20 Jun 2024 16:37:10 +0000 (18:37 +0200)]
Add NetId to SetName and SetColor

2024.6.18 adds a NetId field *in front* of the existing fields to help link back to the PlayerInfo. We don't actually need this NetId and assume it's called on the correct PlayerControl, so we ignore it.

2 years agoSet RoleWhenAlive when set to a Ghost role
miniduikboot [Sun, 21 Jul 2024 21:16:16 +0000 (23:16 +0200)]
Set RoleWhenAlive when set to a Ghost role

2 years agoSerialize Color -1 as 0 in PlayerOutfit
miniduikboot [Sun, 28 Jul 2024 11:38:03 +0000 (13:38 +0200)]
Serialize Color -1 as 0 in PlayerOutfit

Official servers send 0 instead of -1 when the outfit is still
incomplete to prevent some client issues.

2 years agoDemote InnerGameData, promote InnerPlayerInfo
miniduikboot [Wed, 19 Jun 2024 18:42:18 +0000 (20:42 +0200)]
Demote InnerGameData, promote InnerPlayerInfo

In 2024.6.18 Innersloth promoted PlayerInfo to its own network object, and gave it to the server. InnerGameData is now a container that holds these players. This commit implements the changes necessary to handle these separate PlayerInfo network objects.

2 years agoAdd dirty tracking to PlayerOutfit
miniduikboot [Sun, 21 Jul 2024 20:31:41 +0000 (22:31 +0200)]
Add dirty tracking to PlayerOutfit

To prevent excessive modifications in the codebase, which is prone to
issues if a callsite is missed, automatically do this using properties.

Keep the access modifiers intact for now.

2 years agoAdd sequence id's to playeroutfit
miniduikboot [Wed, 19 Jun 2024 18:33:53 +0000 (20:33 +0200)]
Add sequence id's to playeroutfit

2 years agoAdd canOverrideRole param to SetRole
miniduikboot [Sat, 22 Jun 2024 10:53:02 +0000 (12:53 +0200)]
Add canOverrideRole param to SetRole

This is currently unused by Innersloth

2 years agoImplement GameOptions V8
miniduikboot [Tue, 18 Jun 2024 17:45:17 +0000 (19:45 +0200)]
Implement GameOptions V8

This adds a field for RulesPresets and SpecialGameModes, as well as
RoleOptions for the new roles.

2 years agoVoteBanSystem now contains itself as a component
miniduikboot [Tue, 23 Jul 2024 19:34:28 +0000 (21:34 +0200)]
VoteBanSystem now contains itself as a component

This makes it consistent with the other spawnables.

2 years agoUpdate Dumpostor to v1.0.1 and run for 6.18
miniduikboot [Tue, 18 Jun 2024 16:07:02 +0000 (18:07 +0200)]
Update Dumpostor to v1.0.1 and run for 6.18

Add the RulesPresets and SpecialGamemodes enums

2 years agoPrepare for 2024.6.18 update
miniduikboot [Tue, 18 Jun 2024 15:30:16 +0000 (17:30 +0200)]
Prepare for 2024.6.18 update

Major changes are incoming, this doesn't yet work.

2 years agoAdd scene param to forbidden scene log statement
miniduikboot [Thu, 8 Aug 2024 19:31:07 +0000 (21:31 +0200)]
Add scene param to forbidden scene log statement

I'm seeing multiple warnings in my server log about forbidden scene
changes. Unfortunately this warning does not include the actual scene
that was triggering the issue, which makes diagnosis/remediation difficult.

Additionally change this logging call to use names suitable for
structured logging.

2 years agoChange default ListenIp to match with config
miniduikboot [Sat, 10 Aug 2024 16:24:21 +0000 (18:24 +0200)]
Change default ListenIp to match with config

The default ListenIp for the base game server has been set to 0.0.0.0 in
config.json for as long as I remember, and a different value is only
sporadically used. I remember a case where someone was fancy with Split
DNS. 0 is better as a default than localhost, so change the code
accordingly to aligh with config.json

2 years agoModify config.json GameRecorderEnabled Default Value
Bilibili_MengChu [Sat, 10 Aug 2024 09:01:06 +0000 (17:01 +0800)]
Modify config.json GameRecorderEnabled Default Value

2 years agoUpdate docs/Server-configuration.md File Description
Bilibili_MengChu [Fri, 9 Aug 2024 08:50:12 +0000 (16:50 +0800)]
Update docs/Server-configuration.md File Description

2 years agoDelete full-config-example.json and merge it into config.json
Bilibili_MengChu [Fri, 9 Aug 2024 07:28:44 +0000 (15:28 +0800)]
Delete full-config-example.json and merge it into config.json

2 years agoBump System.Text.Json to 8.0.4
miniduikboot [Sun, 28 Jul 2024 20:30:55 +0000 (22:30 +0200)]
Bump System.Text.Json to 8.0.4

Fixes CVE-2024-30105 (High 7.5/10)
https://github.com/advisories/GHSA-hh2w-p6rv-4g7w

Impostor doesn't use the affected
JsonSerializer.DeserializeAsyncEnumerable method as it doesn't accept
JSON formatted payloads, but the NU1903 warning is shown on all builds,
leading to warning fatigue.

2 years agoLet hosts handle exiles
miniduikboot [Wed, 3 Jul 2024 21:01:51 +0000 (23:01 +0200)]
Let hosts handle exiles

Previously Impostor liked to kill exiled players server side to raise an
event. This is quite early, as the host will SetRole them to a ghost
role later.

However as PlayerInfo is server-owned by default in 2024.6.18, it starts
killing players client side. This caused meetings to immediately
conclude if the final impostor was voted out, ruining the cutscene.

So this commit makes Impostor wait for hosts to actually kill the player
using SetRole. Do set the LastDeathReason property though for players
using the API.

2 years agoMake Start/Finish GameData API public
miniduikboot [Thu, 25 Jul 2024 17:08:34 +0000 (19:08 +0200)]
Make Start/Finish GameData API public

2 years agoRefactor Start/FinishRpc to add GameData methods
miniduikboot [Sun, 30 Jun 2024 12:21:54 +0000 (14:21 +0200)]
Refactor Start/FinishRpc to add GameData methods

Rpc's are a specific sort of GameData packets, so it makes sense to
split and extract a method for sending GameData packets from these functions.

2 years agoDon't DC the client if they send an unknown flag
miniduikboot [Wed, 19 Jun 2024 20:45:47 +0000 (22:45 +0200)]
Don't DC the client if they send an unknown flag

This item is only used in a LogTrace call, so it seems excessive to kick
a player on servers just for a log statement

Co-Authored-By: js6pak <me@6pak.dev>
2 years agoAdd compatibility option to allow host authority
miniduikboot [Tue, 9 Jul 2024 20:41:27 +0000 (22:41 +0200)]
Add compatibility option to allow host authority

There are various bugs in the 2024.6.18 implementation of host-authoritive
multiplayer such that I can't recommend players to use it. Fixing these
issues on the server side is impossible, and I can't smell remotely if
clients have applied the necessary fixes. The currently known bugs
include at least:

- Unable to join more than 8 players in a room
- Unable for new players to join if host switched from host authoritive
  to server authoritive
- Host is unable to kill if it is in a host authoritive game while it
  thinks it is in server authoritive mode

If Innersloth fixes this mode in future game patches, this option may be
reconsidered.

2 years agoAdd new option to full config example
miniduikboot [Tue, 9 Jul 2024 20:50:02 +0000 (22:50 +0200)]
Add new option to full config example

Some people were confused by config-full.json, thinking that this file
should be edited too. This is not the case and the values in this file
don't apply as it was only meant as an example, so rename the file to
make that more clear.

Also update this file to add the options from the Modular Anticheat

2 years agoMerge pull request #599 from miniduikboot/fix/compatman-no-invalid-clients
miniduikboot [Fri, 19 Jul 2024 18:11:44 +0000 (20:11 +0200)]
Merge pull request #599 from miniduikboot/fix/compatman-no-invalid-clients

Improve CompatMgr behaviour for unknown versions

2 years agoImprove CompatMgr behaviour for unknown versions
miniduikboot [Fri, 14 Jun 2024 19:49:12 +0000 (21:49 +0200)]
Improve CompatMgr behaviour for unknown versions

Currently, Impostor will show an "Client is in an invalid state."
message if a player tries to join a match where the host or the joining
player is using a version unknown to Impostor.

This message confused a *lot* of people, so this PR changes the API such
that if the version is not registered, the version itself is put in a
compatibility group and compared, assuming no other game versions are
compatible with it. This works fine in most cases, as Among Us network
versions generally increase over time.

Failure on 2222.2.2 (which is ancient at this point, so likely no longer
used) and future cases where Innersloth messes up (which is unlikely) is
an acceptable consequence to me.

2 years agoMerge pull request #598 from miniduikboot/fix/custom-rpc-gamelogic
miniduikboot [Fri, 14 Jun 2024 05:13:20 +0000 (07:13 +0200)]
Merge pull request #598 from miniduikboot/fix/custom-rpc-gamelogic

Accept RPC's called on GameManager

2 years agoAccept RPC's called on GameManager
miniduikboot [Thu, 13 Jun 2024 18:52:25 +0000 (20:52 +0200)]
Accept RPC's called on GameManager

Previously Impostor would just throw when a method was called on a
GameManager, but this caused issues with client mods that did just this,
even through vanilla never calls an RPC on GameManager.

This commit changes that throw statement to pass the exception to the
custom message handler/anticheat instead, which is also how it works for
the other NetObjects

2 years agoMerge pull request #597 from Impostor/feature/2024.6.4 v1.9.3
miniduikboot [Wed, 5 Jun 2024 17:43:03 +0000 (19:43 +0200)]
Merge pull request #597 from Impostor/feature/2024.6.4

Add 2024.6.4 game version

2 years agoBump Impostor version
miniduikboot [Wed, 5 Jun 2024 17:16:59 +0000 (19:16 +0200)]
Bump Impostor version

2 years agoAdd 2024.6.4 game version
miniduikboot [Tue, 4 Jun 2024 18:42:18 +0000 (20:42 +0200)]
Add 2024.6.4 game version

Officials allow crossplay and after inspecting the Mono I don't see any
major changes, so I'm following officials here

2 years agoPrepare release 1.9.2 v1.9.2
miniduikboot [Sat, 1 Jun 2024 14:12:10 +0000 (16:12 +0200)]
Prepare release 1.9.2

2 years agoMerge pull request #596 from miniduikboot/fix/cleanup-disposed-clients
miniduikboot [Thu, 30 May 2024 19:47:31 +0000 (21:47 +0200)]
Merge pull request #596 from miniduikboot/fix/cleanup-disposed-clients

Clean up clients that refuse to quit properly

2 years agoClean up clients that refuse to quit properly
miniduikboot [Sun, 26 May 2024 20:05:21 +0000 (22:05 +0200)]
Clean up clients that refuse to quit properly

When a player is kicked or banned from a game, the client is expected to
disconnect in response. When they decide not to *or* the disconnect
packet is lost, Impostor just silently disposes of the connection.
This does not remove them from ClientManager, which is how I tracked
this bug down.

By sending them a proper disconnect message, clients should have
received *a* disconnection message before dropping their connection.

Future work should split this entire method in removing players from a
game and processing kick/bans because the latter feature is not relevant
for other callers of this method.

2 years agoMerge pull request #594 from miniduikboot/feature/refine-modular-ac
miniduikboot [Sat, 11 May 2024 11:54:49 +0000 (13:54 +0200)]
Merge pull request #594 from miniduikboot/feature/refine-modular-ac

Change some anticheat checks categories

2 years agoAdd similar AC check to HandleSetName
miniduikboot [Sun, 28 Apr 2024 16:01:59 +0000 (18:01 +0200)]
Add similar AC check to HandleSetName

2 years agoMove Name checks to NameLimits
miniduikboot [Sun, 28 Apr 2024 15:45:23 +0000 (17:45 +0200)]
Move Name checks to NameLimits

2 years agoMove remaining Color checks to ColorLimits
miniduikboot [Sun, 28 Apr 2024 15:00:30 +0000 (17:00 +0200)]
Move remaining Color checks to ColorLimits

Some mods add custom colors and still use the standard vanilla SetColor
RPC, which leads to issues with this check.

2 years agoMerge pull request #593 from Pietrodjaowjao/master
miniduikboot [Sun, 28 Apr 2024 18:44:40 +0000 (20:44 +0200)]
Merge pull request #593 from Pietrodjaowjao/master

Patch game-breaking exploits

2 years agoDocumentation: Update .NET 7 to .NET 8
miniduikboot [Sun, 28 Apr 2024 16:31:34 +0000 (18:31 +0200)]
Documentation: Update .NET 7 to .NET 8

2 years agoForgot to actually return
Pietrodjaowjao [Sun, 28 Apr 2024 08:12:29 +0000 (05:12 -0300)]
Forgot to actually return

2 years agogamedata
Pietrodjaowjao [Sun, 28 Apr 2024 07:28:09 +0000 (04:28 -0300)]
gamedata

2 years agoMerge pull request #591 from NikoCat233/add-broadcast-check-to-most-of-calls
miniduikboot [Sun, 28 Apr 2024 06:22:55 +0000 (08:22 +0200)]
Merge pull request #591 from NikoCat233/add-broadcast-check-to-most-of-calls

[AntiCheat] Add ValidateBroadCast check to most of the rpc calls

2 years agoFix embarrassing bugs
miniduikboot [Sat, 27 Apr 2024 15:01:01 +0000 (17:01 +0200)]
Fix embarrassing bugs

2 years agoRemove use of SetInfected RPC
miniduikboot [Sat, 27 Apr 2024 14:55:50 +0000 (16:55 +0200)]
Remove use of SetInfected RPC

Client no longer sends the RPC nor does anything with it when receiving it

2 years agoRefactor if statements to be more vertically dense
miniduikboot [Sat, 27 Apr 2024 14:45:15 +0000 (16:45 +0200)]
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

2 years agoAdd Broadcast checks to remaining RPC's
miniduikboot [Sat, 27 Apr 2024 14:43:50 +0000 (16:43 +0200)]
Add Broadcast checks to remaining RPC's

2 years agoMerge pull request #589 from miniduikboot/feature/game-created-event-add-host
miniduikboot [Sun, 21 Apr 2024 19:44:24 +0000 (21:44 +0200)]
Merge pull request #589 from miniduikboot/feature/game-created-event-add-host

Add Host property to IGameCreatedEvent

2 years agoAdd broadcast
Niko233 [Sun, 21 Apr 2024 06:48:54 +0000 (14:48 +0800)]
Add broadcast

2 years agoAdd Host property to IGameCreatedEvent
miniduikboot [Fri, 12 Apr 2024 20:42:27 +0000 (22:42 +0200)]
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.

2 years agoMerge pull request #571 from Impostor/bugfix/misc-ac
miniduikboot [Thu, 4 Apr 2024 18:17:44 +0000 (20:17 +0200)]
Merge pull request #571 from Impostor/bugfix/misc-ac

Miscellaneous Anticheat fixes

2 years agoRework Color calculation loop to always terminate
miniduikboot [Wed, 3 Apr 2024 19:18:08 +0000 (21:18 +0200)]
Rework Color calculation loop to always terminate

2 years agoDon't dequeue a color when none are available
miniduikboot [Sat, 16 Mar 2024 19:31:17 +0000 (20:31 +0100)]
Don't dequeue a color when none are available

2 years agoCheck AC config in SetName/Color checks
miniduikboot [Wed, 13 Mar 2024 18:23:56 +0000 (19:23 +0100)]
Check AC config in SetName/Color checks

Previously this was not done causing these checks to be unconditionally enabled

2 years agoAllow host-only mods to desync kill timeouts
miniduikboot [Sat, 9 Mar 2024 11:51:57 +0000 (12:51 +0100)]
Allow host-only mods to desync kill timeouts

2 years agoAllow host-only mods to desync murder roles
miniduikboot [Sat, 9 Mar 2024 11:19:49 +0000 (12:19 +0100)]
Allow host-only mods to desync murder roles

2 years agoMake Impostor's AC modular (#559)
miniduikboot [Thu, 4 Apr 2024 18:09:59 +0000 (20:09 +0200)]
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

2 years agoPrepare release 1.9.1 v1.9.1
miniduikboot [Wed, 3 Apr 2024 17:59:30 +0000 (19:59 +0200)]
Prepare release 1.9.1

2 years agoMerge pull request #573 from ykundesu/fix/AprilFools2024
miniduikboot [Mon, 1 Apr 2024 11:30:35 +0000 (13:30 +0200)]
Merge pull request #573 from ykundesu/fix/AprilFools2024

fixed AprilFools2024 Deserialize error

2 years agoFix compile warning
miniduikboot [Mon, 1 Apr 2024 11:23:18 +0000 (13:23 +0200)]
Fix compile warning

2 years agofixed AprilFools2024 Deserialize error
ykundesu [Mon, 1 Apr 2024 08:33:38 +0000 (17:33 +0900)]
fixed AprilFools2024 Deserialize error

2 years agoMerge pull request #569 from Impostor/feature/2024.3.5
miniduikboot [Sat, 30 Mar 2024 15:25:41 +0000 (16:25 +0100)]
Merge pull request #569 from Impostor/feature/2024.3.5

Feature/2024.3.5

2 years agoRun Dumpostor on 2024.3.5
miniduikboot [Wed, 6 Mar 2024 20:07:09 +0000 (21:07 +0100)]
Run Dumpostor on 2024.3.5

2 years agoAdd new game version for 2024.3.5
miniduikboot [Wed, 6 Mar 2024 20:06:16 +0000 (21:06 +0100)]
Add new game version for 2024.3.5

Officials don't allow crosplay either, so neither should we