Chykary / FizzySteamworks

A transport for Mirror using Steam / Steamworks.NET
283 stars 32 forks source link

Can you give me a little tutorial? #23

Closed IndiaGameMaker closed 2 years ago

IndiaGameMaker commented 2 years ago

I'm currently learning mirror and I'm almost done. I'm trying to link a multiplayer game to Steam, and I've been looking around, but I have no idea how to do it, can you give me a simple example? If it's not convenient to give a complete one, you can just tell me some key code, like how to link a steam socket to mirror, etc. Thanks!

IndiaGameMaker commented 2 years ago

Please!

IndiaGameMaker commented 2 years ago

Who can save me?

LukeSeers commented 2 years ago

Just read the https://github.com/Chykary/FizzySteamworks/blob/master/README.md It's pretty straight forward and it holds your hand.

rafaeldolfe commented 2 years ago

I think it is reasonable to want one elaboration though which is expanding on what is meant by

In your "NetworkManager" object replace "KCP" with "FizzySteamworks".

Can someone specify? Which NetworkManager? A script instantiated on a gameobject, or the script itself? And which KCPs? @LukeSeers

LukeSeers commented 2 years ago

Sorry I have not touched this in a long while. So, I wont be as useful. @Chykary Updated the readme from a pull request fairly recently, so they'll be the one to hopefully know more.

Chykary commented 2 years ago

Imo that's a Mirror doc thing. This transport works like any other transport. Here's the link to the Mirror doc: https://mirror-networking.gitbook.io/docs/transports

Mirror uses a NetworkManager Script which contains a reference to a used transport. There you drop in this transport (FizzySteamworks), and connect to the SteamID of a user who is hosting. That's all!

rafaeldolfe commented 2 years ago

That explanation makes sense @Chykary. I had previously followed a tutorial on Mirror but still missed the meaning behind the sentence. Perhaps changing it to

In your "NetworkManager" GameObject change the "Transport" reference from KCP to FizzySteamworks. will help people who are new to these tools.