百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

SteamNetGodot

> 编程语言
开源

为神奇的 Godot 引擎提供网络解决方案。

380 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

为神奇的 Godot 引擎提供网络解决方案。

SteamNetGodot

Is this for me?

In it's core SteamNetGodot is the combination of Facepunch.Steamworks and LiteNetLib. A performant, easy to use C# Steam Networking library for the wonderful Godot engine.

It will be regularly updated since it's currently in use on our game Taverna.

Goodies

  • Compressed Steam VoIP (3-5 KB/s)
  • Smart matchmaking through Steam Lobbies / internal logic
  • RPC system
  • Very simple C# code
  • Bunch of cool networking code as example (replication, resource management, audio, kick, mute, ban...)
  • Open Source
  • Godot 4.3
  • MIT license

Do Stuff!

Your packets

…

Subscribe RPC

csharp
NetworkManager.Instance.Client_SubscribeRPC(Client_OnVoicePacketReceived, () => this.IsValid() == false);
NetworkManager.Instance.Server_SubscribeRPC(Server_OnVoicePacketReceived, () => this.IsValid() == false);

Create and send

csharp
VoicePacket voicePacket = new VoicePacket();
voicePacket.compressedVoiceData = compressedVoiceData;
voicePacket.size = compressedVoiceData.Count;
voicePacket.internalVoiceTick = internalVoiceTick;
voicePacket.networkId = pawn.networkId;

NetworkManager.Instance.Client.Send(voicePacket, SendType.Reliable);

Instantiate networked objects

csharp
ObjectState player = gameState.Server_CreateObjectStateAndPawn((uint)steamId, ResourceId.PawnPlayer, "", steamId, true);

Friend playerSteam = new Friend(steamId);
await playerSteam.RequestInfoAsync();
player.GetPawn().SetName(playerSteam.Name);

UINotifications.Instance.PushNotification($"Instantiated Pawn for player {playerSteam.Name}");

I don't like this networking architecture

Great! And I don't like you. Jokes aside, the base code is divided from the gameplay solution. For sake of easier maintainability it was all put inside one project.

Get BaseClient, BaseServer, Processor and you are good to move to your solution.

You still need to import Facepunch.Steamworks and LiteNetLib as they are in the backbone of the library.

Performance info

Aimed to get zero garbage on receive / read . If you find some bad stuff let us know.

VOIP bandwidth is between 3-5KB/s.

Transform replication has little optimization. When moving between 15-20 KB/s 60h tick rate. I would recommend to strip it down to make it usable. I will remove this little paragr as soon as I commit the improvements.

Contact

[email protected]

Discord

Q&A

Steam doesn't connect in build?

Make sure to add steam_api64.dll to your exported build

Does it support Rigidbodies?

Yes but not no prediction. It will be added in the future.

Prediction?

No prediction.

What is a ResourceID?

A string that represent a resource. It's a convenient way to do local instantiation and replication.
We added a little addon to easily handle them in the inspector

csharp
#if TOOLS
        [ResourceIdDropdown]
#endif
        [Export]
        public string resourceId;

You still need to add them manually in ResourceId.cs

What is Rich Presence?

https://partner.steamgames.com/doc/features/enhancedrichpresence

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言