tddebart / Minecraft-Unity

An as exact as possible recreation of Minecraft that i can make in Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to start game local

codingwatching opened this issue · comments

Hi @tddebart
I just found this project from your youtube video, awesome video demo!
Could you please help me with how can I create or set up a server to test the game on a local computer?

You should be able to just download the release and launch it if you wanna test singleplayer. If you want to test multiplayer you just need to open the game twice and create a server and join yourself through the multiplayer menu

Hi @tddebart
Thank you so much! I have a problem maybe because I open the project on macOS (And maybe I do not have Steam open on my machine?)

Steam failed to initialize:libsteam_api assembly:<unknown assembly> type:<unknown type> member:(null)
UnityEngine.Debug:LogWarning (object)
Mirror.FizzySteam.FizzyFacepunch:Awake () (at Assets/Mirror/Runtime/Transport/FizzyFacepunch/FizzyFacepunch.cs:65)

Multiple NetworkManagers detected in the scene. Only one NetworkManager can exist at a time. The duplicate NetworkManager will be destroyed.
UnityEngine.Debug:LogWarning (object)
Mirror.NetworkManager:InitializeSingleton () (at Assets/Mirror/Runtime/NetworkManager.cs:659)
Mirror.NetworkManager:Awake () (at Assets/Mirror/Runtime/NetworkManager.cs:188)

And then:

NullReferenceException: Object reference not set to an instance of an object
Steamworks.SteamClient.get_SteamId () (at <e385b4c78c0940819c8b38e56fb84260>:0)
MinecraftNetworkManager.OnClientConnect () (at Assets/_Scripts/Networking/MinecraftNetworkManager.cs:20)
Mirror.NetworkManager.OnClientConnect (Mirror.NetworkConnection conn) (at Assets/Mirror/Runtime/NetworkManager.cs:1301)
Mirror.NetworkManager.OnClientAuthenticated () (at Assets/Mirror/Runtime/NetworkManager.cs:1189)
Mirror.NetworkManager.OnClientConnectInternal () (at Assets/Mirror/Runtime/NetworkManager.cs:1171)
Mirror.LocalConnectionToServer.Update () (at Assets/Mirror/Runtime/LocalConnectionToServer.cs:59)
Mirror.NetworkClient.NetworkLateUpdate () (at Assets/Mirror/Runtime/NetworkClient.cs:1366)
Mirror.NetworkLoop.NetworkLateUpdate () (at Assets/Mirror/Runtime/NetworkLoop.cs:205)

I really appreciate your help!

Yeah you do need to have steam open or else it won't work

@tddebart It still do not work after install and running Steam. I think maybe my Mac is M1 mac
Facepunch/Facepunch.Steamworks#591