Skip to content

MirageNet/SteamyFaceNG

Repository files navigation

FacepunchSteam Socket

Documentation Discord release openupm GitHub issues GitHub last commit MIT Licensed

Build

This package provides Steam socket for Mirage using Facepunch Steamworks.

Dependencies

  • Mirage 99.0.2+
  • Facepunch Steamworks (included)
  • .NET 4.x

Installation

The preferred installation method is Unity Package Manager.

Unity 2019.3+

  1. Open your project in Unity
  2. Install Mirage by following the provided instructions (adding the registry etc.)
  3. Click on Windows -> Package Manager
  4. Select My Registry from the dropdown and install the SteamyFaceNG package.

Unity 2019.2 or older

  1. Open your project in Unity
  2. Install Mirage
  3. Click on Windows -> Package Manager
  4. Click on the plus sign on the left and click on "Add package from git URL..."
  5. Enter https://github.com/MirageNet/SteamyFaceNG.git?path=/Assets/Mirage/Runtime/Sockets/FacepunchSteam

Adding the socket

  1. Open your network object (which contains the NetworkServer, NetworkClient etc.) and add SteamSocketFactory component.
  2. Setup your AppID and other settings as needed.
  3. Assign this component as a reference to the Socket Factory fields of NetworkServer and NetworkClient.

Note: The default 480 (Spacewar) AppID is a very grey area, technically, it's not allowed but they don't really do anything about it. When you have your own AppID from Steam then replace the 480 with your own game AppID. If you know a better way around this, please make an Issue ticket.

Using the socket

Host

To be able to have your game working you need to make sure you have Steam running in the background.

Client

Clients need the SteamID64 of the host to be able to connect - it's used as the connection address.

Testing your game locally

You can't connect to yourself locally while using this socket since Steam doesn't allow multiple instances. If you want to test your game locally, you'll have to use UDP socket, for example, or use multiple machines.

About

Facepunch version of steam for mirrorng

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages