Can I use Godot HL Networking with Steam API

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BenDev

Hi,

I’ve been using Godot HL Networking to make online multiplayer for a while now, and I must say I love it, because it’s very simple for a beginner likes me to start making multiplayer game. Now I want to make a p2p multiplayer on Steam, but I got a few problems:

  • I don’t want player to enter the IP address, port forwarding or use Radmin to play online multiplayer game, and the best way is to use the Steam Networking API, but that leads to another problem:
  • Steam Networking API is way harder than Godot HL Networking, and if I want to do so, basically I need to rewrite ALL of my networking to work with Steam, which I also don’t want to.

I’ve finished the lobby using Steam Lobby & MatchMaking, that I can connect with my friends, but is there anyway to maybe share the IP address, or makes them connect with the network without using Steam Networking (or using it as least as possible) because I still want the game can be played outside Steam.

Thank you!

:bust_in_silhouette: Reply From: Calinou

The Godot Steam module can be used for peer-to-peer multiplayer: https://gramps.github.io/GodotSteam/tutorials-lobbies-p2p.html

or makes them connect with the network without using Steam Networking (or using it as least as possible) because I still want the game can be played outside Steam.

If you use Steam networking, games hosted by Steam players will be restricted to Steam players. I don’t think there’s any way to prevent this.

Thanks so much for your help, but that’s not actually what I was asking about.

So I want to make an online multiplayer on Steam WITHOUT using the Steam Networking.
I was looking for the documentation about Steam Networking, and I’ve found this:

Does your game already have networking?
If your game is peer-to-peer then all you need to do is integrate Steam Matchmaking & Lobbies with your networking to provide a great experience for Steam users.

This is on Steamworks Documentation, and it’s here: Multiplayer (Steamworks Documentation)

So I think there’s probably a way to make this work, but I could not find a way to do so. I was successfully make a lobby using Steam Lobby & Matchmaking, but could not find a way to make them connect together using Godot HL Networking instead of using Steam Networking. So is there a way to do so?

Edit: Hi, I’m a little bit stressful at the moment, so I’m really apologize if I’m somewhat sound rude to you, but I really appreciate by your help.

BenDev | 2022-10-01 13:54