SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

Server not starting at all #2934

Closed SpyGunit closed 1 year ago

SpyGunit commented 2 years ago

[2021-12-10 13:04:37] Initializing ServerTransport_SteamNetworkingSockets [2021-12-10 13:04:37] NullReferenceException: Object reference not set to an instance of an object [2021-12-10 13:04:37] Steamworks.SteamGameServerNetworkingUtils.SteamNetworkingIPAddr_ParseString (Steamworks.SteamNetworkingIPAddr& pAddr, System.String pszStr) (at <65ef6530db3941bf884ab8a886f627a3>:0) SDG.NetTransport.SteamNetworkingSockets.ServerTransport_SteamNetworkingSockets.Initialize (System.Action`1[T] connectionFailureCallback) (at :0) SDG.Unturned.Provider.openGameServer () (at :0) SDG.Unturned.Provider.host () (at :0) SDG.Unturned.Assets+d__105.MoveNext () (at :0) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)

[2021-12-10 13:04:37] NullReferenceException: Object reference not set to an instance of an object [2021-12-10 13:04:37] SDG.Unturned.Provider.listenClient () (at :0) SDG.Unturned.Provider.listen () (at :0) SDG.Unturned.Provider.Update () (at :0)

[2021-12-10 13:04:37] NullReferenceException: Object reference not set to an instance of an object [2021-12-10 13:04:37] SDG.Unturned.Provider.listenClient () (at :0) SDG.Unturned.Provider.listen () (at :0) SDG.Unturned.Provider.Update () (at :0)

[2021-12-10 13:04:37] NullReferenceException: Object reference not set to an instance of an object [2021-12-10 13:04:37] SDG.Unturned.Provider.listenClient () (at :0) SDG.Unturned.Provider.listen () (at :0) SDG.Unturned.Provider.Update () (at :0)

SDGNelson commented 2 years ago

Looks like the same issue as #2930, for the meantime if you remove the "bind" command it should work.

SpyGunit commented 2 years ago

I removed it but still has the problem

Looks like the same issue as #2930, for the meantime if you remove the "bind" command it should work.

SDGNelson commented 2 years ago

Could you attach your Server_ (id) .log file from U3DS/Logs please? Will take a look.

SpyGunit commented 2 years ago

Could you attach your Server_ (id) .log file from U3DS/Logs please? Will take a look. Server_1.log

ADXServers commented 2 years ago

@SpyGunit [2021-12-10 13:03:58] Successfully bound IP to ur.ip.v4.here! comes only when you have bind in commands.dat

SpyGunit commented 2 years ago

@SpyGunit [2021-12-10 13:03:58] Successfully bound IP to ur.ip.v4.here! comes only when you have bind in commands.dat image thats all i have in commands.dat

SDGNelson commented 2 years ago

Sorry for the multiple patches, I have now released the .2 patch which:

  1. Replaces bind address Steamworks parsing with simple IPv4 parse until the cause for the Steamworks crash is sorted out.
  2. Has a bandaid fix for querying nested workshop files - seems to be working fine now.
SpyGunit commented 2 years ago

Sorry for the multiple patches, I have now released the .2 patch which:

  1. Replaces bind address Steamworks parsing with simple IPv4 parse until the cause for the Steamworks crash is sorted out.
  2. Has a bandaid fix for querying nested workshop files - seems to be working fine now.

Redirecting Assembly-CSharp-firstpass to com.rlabrecque.steamworks.net for TebexUnturned, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [2021-12-10 12:59:23] Rocket.Unturned >> Exception in b__16_3: System.MissingMethodException: void Rocket.Unturned.Permissions.UnturnedPermissions/JoinRequested.Invoke(Steamworks.CSteamID,System.Nullable`1&) at Rocket.Unturned.Permissions.UnturnedPermissions.CheckValid (Steamworks.ValidateAuthTicketResponse_t r) [0x001ba] in :0 [2021-12-10 12:59:23] BattlEye Print: Player #0 doony03 (75.118.17.49:52436) connected [2021-12-10 12:59:23] BattlEye Print: Player #0 doony03 - BE GUID: 36fff5a6c444985461acba4e26a6c5a6 [2021-12-10 12:59:23] AviRockets.Unturned.Base >> Exception in AviRockets.Unturned.Base: System.MissingMethodException: Steamworks.CSteamID SDG.Unturned.InteractableVehicle.get_lockedOwner() at AviRockets.Unturned.Base.Events.VehicleEvents.SendVehiclePrefix (SDG.Unturned.InteractableVehicle vehicle, SDG.NetPak.NetPakWriter writer) [0x0000b] in :0 [2021-12-10 12:59:23] Plugin raised an exception from onServerConnected: [2021-12-10 12:59:23] SDG.Unturned.Player SDG.Unturned.PlayerTool.getPlayer(Steamworks.CSteamID) [2021-12-10 12:59:23] at AviRockets.Unturned.Base.Addons.PlayersAddon+<>c.b3_2 (Steamworks.CSteamID steamId) [0x00000] in :0 at (wrapper delegate-invoke) .invoke_void_CSteamID(Steamworks.CSteamID) at SDG.Unturned.Provider.accept (SDG.Unturned.SteamPlayerID playerID, System.Boolean isPro, System.Boolean isAdmin, System.Byte face, System.Byte hair, System.Byte beard, UnityEngine.Color skin, UnityEngine.Color color, UnityEngine.Color markerColor, System.Boolean hand, System.Int32 shirtItem, System.Int32 pantsItem, System.Int32 hatItem, System.Int32 backpackItem, System.Int32 vestItem, System.Int32 maskItem, System.Int32 glassesItem, System.Int32[] skinItems, System.String[] skinTags, System.String[] skinDynamicProps, SDG.Unturned.EPlayerSkillset skillset, System.String language, Steamworks.CSteamID lobbyID) [0x003b1] in <94f3db00e7d74bc0aa535f59775956e9>:0 [2021-12-10 12:59:23] Exception during onPlayerCreated: [2021-12-10 12:59:23] Steamworks.CSteamID SDG.Unturned.SteamPlayerID.get_steamID() [2021-12-10 12:59:23] at AviRockets.Unturned.Base.Addons.PlayersAddon+<>c.b2_2 (SDG.Unturned.Player player) [0x00006] in :0 at (wrapper delegate-invoke) .invoke_void_Player(SDG.Unturned.Player) at SDG.Unturned.PlayerQuests.Start () [0x00026] in <94f3db00e7d74bc0aa535f59775956e9>:0 [2021-12-10 12:59:23] Redirecting Assembly-CSharp-firstpass to com.rlabrecque.steamworks.net for VoteRewards, Version=3.0.2.0, Culture=neutral, PublicKeyToken=null [2021-12-10 13:00:12] Reflect net invokables: 44ms [2021-12-10 13:00:12] 3.21.33.2 [2021-12-10 13:00:12] Executing 5 potential game command(s) from the command-line: [2021-12-10 13:00:12] Did not match "nographics" with any commands [2021-12-10 13:00:12] Did not match "batchmode" with any commands [2021-12-10 13:00:12] Successfully bound IP to 66.23.205.195! [2021-12-10 13:00:12] Successfully set port to 27086! [2021-12-10 13:00:12] Successfully set max players to 50!

The server opened but when someone try to login it crashes and restarts. A "lost connection to host or steam" message appears.

SDGNelson commented 2 years ago

@SpyGunit if you disable your Avi plugins does it work? It appears they are having problems injecting code into some methods.

SpyGunit commented 2 years ago

@SpyGunit if you disable your Avi plugins does it work? It appears they are having problems injecting code into some methods.

Does this update affected the whitelisted plugins? Cause i have problem with many of thems.

SDGNelson commented 2 years ago

Sorry what do you mean by whitelisted plugins?