Commit Graph

21 Commits

Author SHA1 Message Date
Conna Wiles
2f8d00a7ed Networking: Local Instance Id (#3912)
Every time we Join via New Instance, the new instance is given an new id - that id is used locally to determine the SteamId it gives the server (from some base SteamId for bots). This means you can properly test stuff like persistent data per SteamId rather than local instances using the same SteamId as the editor host. This is safe from spoofing though, because real servers and lobbies verify the SteamId the user provides.
2026-01-27 17:28:02 +00:00
Conna Wiles
70435c6cd5 Fixed Missing Large Network Files on Local Instance (#3907) 2026-01-27 16:37:57 +00:00
Conna Wiles
9b93481d19 Use SendMessages API for Dedicated Servers (#3867) 2026-01-23 05:22:24 -08:00
Conna Wiles
e4a3941aa7 Dedicated Server Improvements 2026-01-20 13:54:17 +00:00
sboxbot
4896eece62 Restrict client object destroying option (Networking) (#3816) 2026-01-19 15:35:13 +00:00
Conna Wiles
59e26d3d6f Fixed Join via New Instance Disconnection Crash (#3799) 2026-01-15 17:01:51 +00:00
Antoine Pilote
d28a62c1f3 BinarySerializable (#3725)
Added BlobData API which will serialize as a binary file blob.
> Useful for large data structure

```csharp
class MyBinaryData : BlobData
{
    public override void Serialize( ref Writer writer )
    {
        writer.Stream.Write( 1337 );
    }

    public override void Deserialize( ref Reader reader )
    {
        int val = reader.Stream.Read<int>();
    }
}
```
2026-01-15 05:57:30 -08:00
Conna Wiles
e657d878a6 Scene Change Improvements (#3740) 2026-01-13 13:43:58 +00:00
Lorenz Junglas
236b95e0ed Disposable diagnostic (#3693)
* Enable CA2000 in editorconfig

* Remove unused CaptureStdOut class

* Add missing dispose calls in Sandbox.Tools

* Add missing dispose calls in tests

* Add missing dispose calls in launchers

* Add missing dispose calls in Topten.RichtTextKit

* Add missing dispose calls in Engine

* Add missing dispose calls in SboxBuild

* Add nullchecks to a few dispose calls

* Fix more missing disposal calls and leaks

* Disable CA2000 for Textures

* Fix disposing too early in ImageFileTextureGenerator

* Fix disposing codec, ownership is transferred to animation

* Add missing using in ByteStream benchmark
2026-01-12 21:59:15 +01:00
Conna Wiles
06222ffdc4 INetworkSnapshot Support for GameObjectSystem (#3743) 2026-01-12 16:01:53 +00:00
sboxbot
c9e0a5b7a6 Fix lobby data not being added to steam tags when starting a dedicated server. (#3656)
* Update steam tags when starting a dedicated server. Log warning if too long.

* Some tidy up

---------

Co-authored-by: Andy <10728824+andy013@users.noreply.github.com>
Co-authored-by: kurozael <kurozael@gmail.com>
2026-01-07 11:40:32 +00:00
Conna Wiles
31f2175ff0 Connection Crash Fixes (#3706) 2026-01-07 10:35:01 +00:00
Matt Stevens
8063b0e000 LargeNetworkFiles: Check RequestFile exists before reading it, fixing crash 2026-01-06 09:38:09 +00:00
Lorenz Junglas
43c09d34f1 Fix ByteStream leaks (#3686) 2026-01-05 13:17:05 +01:00
Lorenz Junglas
6808d8768e Shutdown fixes (#3553)
* Stop generating solutions via -test flag add -generatesolution

* Add TestAppSystem remove Application.InitUnitTest

Avoids some hacks and also makes sure our tests are as close to a real AppSystem as possible.

* Add shutdown unit test

shuts down an re-inits the engine

* Properly dispose native resources hold by managed during shutdown

Should fix a bunch of crashes

* Fix filesystem and networking tests

* StandaloneTest does proper Game Close

* Make sure package tests clean up properly

* Make sure menu scene and resources are released on shutdown

* Report leaked scenes on shutdown

* Ensure DestroyImmediate is not used on scenes

* Fix unmounting in unit tests not clearing native refs

* Force destroy native resource on ResourceLib Clear
2025-12-08 15:55:11 +01:00
Conna Wiles
68538b93b0 Re-add Stomped Connection Input Unit Test (#3543) 2025-12-03 11:53:34 +00:00
Conna Wiles
af0204fc15 Connection Input / User Commands (#3446) 2025-12-01 14:55:57 +00:00
sboxbot
77849db8ad Handle QueryServers cancellation without throwing (#3505)
Update QueryServers to stop throwing on cancellation and return any collected server data. Catch OperationCanceledException, letting callers treat timeouts as empty/partial results.

Co-authored-by: trende2001 <68961063+trende2001@users.noreply.github.com>
2025-11-30 18:29:15 +00:00
sboxbot
705f7ab7f5 Fix delayed heartbeat and host stats sending every frame (#3500)
Co-authored-by: Andy <10728824+andy013@users.noreply.github.com>
2025-11-30 16:29:15 +00:00
sboxbot
e34d864a1d Only delay FakeLagProcess if no packets were handled (#3455)
Co-authored-by: nixx quality <nixx@is-fantabulo.us>
2025-11-27 12:46:11 +00:00
s&box team
71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00