linmeideli
b09c40b7e1
fix
2026-09-22 20:41:01 +02:00
miniduikboot
219b72a3d1
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.
2024-08-20 21:41:38 +02:00
miniduikboot and js6pak
2129725744
Improve cross-compatibility ( #534 )
...
Co-authored-by: js6pak <me@6pak.dev >
2023-10-06 14:52:16 +02:00
yukieiji
e29552ca28
refactor:SpawnInTime to config
2023-05-23 21:39:09 +02:00
miniduikboot
dede1c5b09
Reorder GameFull and GameStarted join errors
...
If a game is in progress, a player can't join it anyway and spam-joining
to see if a spot becomes available is useless. So the GameFull error is
more important than the GameStarted error, therefore reorder them.
Closes : #518
2023-03-08 20:46:29 +01:00
js6pak
e5db56317a
Fix imports
2022-12-18 20:34:46 +01:00
miniduikboot
8aaf75e381
Make version mixing configurable
2022-08-29 20:57:16 +02:00
miniduikboot
59cb4a18e8
Prevent players joining game on different versions
...
Now that our game version compatibility list is growing longer with
every game patch, we need a way to make sure people in a game run the
same version of the game. Mismatching game version can lead to weird
issues, especially if mods are involved.
2022-08-29 20:57:16 +02:00
js6pak
ce62815dc5
Add custom message support ( #404 )
2021-05-10 11:08:26 +00:00
js6pak
7c34836d50
Remove reactor stuff
2021-04-03 00:12:15 +02:00
js6pak
0f6bfb3597
Fix warnings
2021-03-24 16:38:23 +01:00
87a062c1b3
Sync Impostor with 6pak fork ( #327 )
...
Co-authored-by: DatGuy1 <datguysteam@gmail.com >
Co-authored-by: miniduikboot <5243971+miniduikboot@users.noreply.github.com >
2021-03-03 08:53:53 +00:00
AlexejheroYTB
03b0dd4da5
Add GameOverReason ( #129 )
...
* Add GameOverReason
* Remove showAd from deserialization
* Update GameEventListener.cs
2020-11-12 04:07:20 +01:00
Saghetti0 and AeonLucid
5229bb3681
Add GameAlterEvent ( #86 )
...
* Create GameAlterEvent
* Fire GameAlterEvent from HandleAlterGame
* Rename GameAlterEvent to GameAlterEvent.cs
* Update GameAlterEvent
Co-authored-by: AeonLucid <aeonlucid@outlook.com >
2020-10-26 04:52:57 +01:00
AeonLucid
961bd90ef6
Change all events to use interfaces and move them to a better namespace
2020-10-26 04:37:42 +01:00
AeonLucid
49269c33c9
Add more events and missing SnapTo check
2020-10-25 01:07:36 +02:00
AeonLucid
58d00dc657
Remove login from Impostor.Api assembly
2020-10-24 21:56:51 +02:00
AeonLucid
8aaa4f8b3b
Fix bug
2020-10-24 01:24:52 +02:00
AeonLucid
67e302798f
Add spawn and leave timeout
2020-10-24 01:18:25 +02:00
AeonLucid
fd41caff0b
Ensure thread safety for joining a game
2020-10-23 19:18:01 +02:00
AeonLucid
e78329b9b1
Proper logging in game class
2020-10-23 00:28:29 +02:00
AeonLucid
ef4d548bda
Update Hazel namespace to Impostor.Hazel
2020-10-19 16:19:28 +02:00
AeonLucid
e630863e72
Refactor messages
2020-10-19 14:39:36 +02:00
AeonLucid
61f50c6d41
Remove Impostor.Shared
2020-10-19 12:55:26 +02:00
AeonLucid
d44224a91c
Move Api classes and remove unused imports
2020-10-19 12:15:27 +02:00
Gerard Smit and AeonLucid
852badb48e
Plugin loader ( #59 )
...
* Parse GameData headers
* Added GameData spawn
* GameData playerinfo parsing
* Added BufferMessageReader tests
* Fix InnerGameData
* Added CustomNetworkTransform and VoteBanSystem
* Revert changes
* Finish CustomNetworkTransform
* Implemented a simple plugin loader
* Replaced Reference with PackageReference
Note to myself: don't trust Rider auto-add reference
* Use classes and moved all API-related stuff to one folder
* Added PlayerJoinedGameEvent and PlayerLeftGameEvent
* Removed Impostor.Server.Hazel
* Moved more API-specific stuff
Co-authored-by: AeonLucid <aeonlucid@gmail.com >
2020-10-19 11:31:25 +02:00
AeonLucid
5f922f5f83
Added GameData spawn
2020-10-18 21:17:41 +02:00
AeonLucid
8392fe4237
Parse GameData headers
2020-10-18 21:17:41 +02:00
AeonLucid
7de9b71b92
Fix public/private when joining a game
2020-10-11 02:30:36 +02:00
AeonLucid
c856da1621
Update namespaces
2020-10-11 01:11:32 +02:00
Gerard Smit
21e7aca353
More abstractions, event manager and docs
2020-10-11 00:45:38 +02:00
Gerard Smit
47e2e3a06a
Created Impostor.Server.Api
2020-10-09 02:00:08 +02:00
AeonLucid
b884d5a669
Fixes host migration ( #5 ) and proper player count checks
2020-09-29 05:31:17 +02:00
AeonLucid
f2a23d5bbb
Added server redirection using redis
2020-09-26 05:43:37 +02:00
AeonLucid
27062c9281
Unused code
2020-09-25 22:03:04 +02:00
AeonLucid
3f3f545760
Refactor code
2020-09-25 22:02:03 +02:00