Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant connect online #28

Open
mrongoz opened this issue Aug 18, 2020 · 7 comments
Open

cant connect online #28

mrongoz opened this issue Aug 18, 2020 · 7 comments

Comments

@mrongoz
Copy link

mrongoz commented Aug 18, 2020

Bro im using litnetlibmanager, after my build start on ubuntu, and im click online, is blank on play mode, and description in linux

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in :0
at CharacterEntity.Update () [0x00110] in :0

(Filename: Line: 0)

@insthync
Copy link
Member

insthync commented Aug 18, 2020

I guess that the GameplayManager singleton is null while character entity updating, so it may load wrong scene at server.

Oh I just saw that my document is outdate so I will update it. You can use -gameOnlineScene following with scene name to load scene which you want to dedicate like following example

./Build.x86_64 -gameServerStart -gameServerPort 7700 -gameMaxConnections 50 -gameRule IONetworkGameRule -gameBotCount 10 -gameOnlineScene "Battle"

@mrongoz
Copy link
Author

mrongoz commented Aug 19, 2020

Oke bro work thank,,

how do I make a master server, I saw a tutorial on youtube for setting up a master server, but there is no home schene for the master server.

sorry I am new to unity, so I really need your help. Thanks

@marchenterprise
Copy link

I am also suffering from the following error on the Digital Ocean server in online mode. Please support us.


root@test-stbattle:~# ./Build.x86_64
Set current directory to /root
Found path: /root/Build.x86_64
Mono path[0] = '/root/Build_Data/Managed'
Mono config path = '/root/Build_Data/MonoBleedingEdge/etc'
Initialize engine version: 2020.2.1f1 (270dd8c3da1c)
[Subsystems] Discovering subsystems at path /root/Build_Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0
NullGfxDevice:
Version: NULL 1.0 [1.0]
Renderer: Null Device
Vendor: Unity Technologies
Begin MonoManager ReloadAssembly

  • Completed reload, in 0.125 seconds
    ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Legacy Shaders/Particles/Additive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader GUI/Text Shader shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Mobile/Unlit (Supports Lightmap) shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Legacy Shaders/Particles/Alpha Blended shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Mobile/Particles/Additive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    UnloadTime: 1.830738 ms
    Cannot initialize advertisement, Unity Ads is not enabled or not supported platforms.

Cannot initialize purchasing, Unity Purchasing is not enabled or not supported platforms.

Running as server in batch mode

Fallback handler could not load library /root/Build_Data/Mono/libKernel32
Fallback handler could not load library /root/Build_Data/Mono/libKernel32.so
Fallback handler could not load library /root/Build_Data/Mono/Kernel32
Fallback handler could not load library /root/Build_Data/Mono/libKernel32
Fallback handler could not load library /root/Build_Data/Mono/libKernel32.so
Fallback handler could not load library /root/Build_Data/Mono/libKernel32
[PlayerPrefsMonetizationSave] Loading Items From Json: {}

[PlayerPrefsMonetizationSave] Loading Items From Json: {}

[PlayerPrefsMonetizationSave] Loading Items From Json: {}

ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)

<<<< Client App Start [ONLINE] >>>>

ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at GameNetworkManager.NewCharacter (LiteNetLib.Utils.NetDataReader reader) [0x0005b] in <5d643d255e3d4f448f2247d74fb818d6>:0
at BaseNetworkGameManager.DeserializeClientReadyExtra (LiteNetLibManager.LiteNetLibIdentity playerIdentity, System.Int64 connectionId, LiteNetLib.Utils.NetDataReader reader) [0x00009] in <5d643d255e3d4f448f2247d74fb818d6>:0
at LiteNetLibManager.LiteNetLibGameManager.SetPlayerReady (System.Int64 connectionId, LiteNetLib.Utils.NetDataReader reader) [0x0002e] in <1632effb6ca545c2be31aed7cf97a953>:0
at LiteNetLibManager.LiteNetLibGameManager.HandleClientReady (LiteNetLibManager.LiteNetLibMessageHandler messageHandler) [0x0000d] in <1632effb6ca545c2be31aed7cf97a953>:0
at BaseNetworkGameManager.HandleClientReady (LiteNetLibManager.LiteNetLibMessageHandler messageHandler) [0x000b9] in <5d643d255e3d4f448f2247d74fb818d6>:0
at LiteNetLibManager.TransportHandler.ReadPacket (System.Int64 connectionId, LiteNetLib.Utils.NetDataReader reader) [0x00021] in <1632effb6ca545c2be31aed7cf97a953>:0
at LiteNetLibManager.LiteNetLibServer.OnServerReceive (LiteNetLibManager.TransportEventData eventData) [0x0006f] in <1632effb6ca545c2be31aed7cf97a953>:0
at LiteNetLibManager.LiteNetLibServer.Update () [0x00011] in <1632effb6ca545c2be31aed7cf97a953>:0
at LiteNetLibManager.LiteNetLibManager.LateUpdate () [0x0000e] in <1632effb6ca545c2be31aed7cf97a953>:0
at LiteNetLibManager.LiteNetLibGameManager.LateUpdate () [0x000a6] in <1632effb6ca545c2be31aed7cf97a953>:0

Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.get_TotalHp () [0x00005] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00110] in <5d643d255e3d4f448f2247d74fb818d6>:0


I use -gameOnlineScene following with scene name to load scene which you want to dedicate like following example

root@test-stbattle:~# ./Build.x86_64 -gameServerStart -gameServerPort 7700 -gameMaxConnections 50 -gameRule IONetworkGameRule -gameBotCount 10 -gameOnlineScene "Battle"
Set current directory to /root
Found path: /root/Build.x86_64
Mono path[0] = '/root/Build_Data/Managed'
Mono config path = '/root/Build_Data/MonoBleedingEdge/etc'
Initialize engine version: 2020.2.1f1 (270dd8c3da1c)
[Subsystems] Discovering subsystems at path /root/Build_Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0
NullGfxDevice:
Version: NULL 1.0 [1.0]
Renderer: Null Device
Vendor: Unity Technologies
Begin MonoManager ReloadAssembly

  • Completed reload, in 0.112 seconds
    ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Legacy Shaders/Particles/Additive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader GUI/Text Shader shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Mobile/Unlit (Supports Lightmap) shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Legacy Shaders/Particles/Alpha Blended shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    ERROR: Shader Mobile/Particles/Additive shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
    UnloadTime: 1.790514 ms
    Cannot initialize advertisement, Unity Ads is not enabled or not supported platforms.

Cannot initialize purchasing, Unity Purchasing is not enabled or not supported platforms.

Running as server in batch mode

Fallback handler could not load library /root/Build_Data/Mono/libKernel32
Fallback handler could not load library /root/Build_Data/Mono/libKernel32.so
Fallback handler could not load library /root/Build_Data/Mono/Kernel32
Fallback handler could not load library /root/Build_Data/Mono/libKernel32
Fallback handler could not load library /root/Build_Data/Mono/libKernel32.so
Fallback handler could not load library /root/Build_Data/Mono/libKernel32
[PlayerPrefsMonetizationSave] Loading Items From Json: {}

[PlayerPrefsMonetizationSave] Loading Items From Json: {}

[PlayerPrefsMonetizationSave] Loading Items From Json: {}

ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Legacy Shaders/VertexLit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Standard (Specular setup) shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Standard (Specular setup)' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
WARNING: Shader Unsupported: 'Standard' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Standard shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Standard' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 12.224118 ms

Unloading 122 unused Assets to reduce memory usage. Loaded Objects now: 3964.
Total: 5.355352 ms (FindLiveObjects: 0.357777 ms CreateObjectMapping: 0.166959 ms MarkObjects: 4.626378 ms DeleteObjects: 0.199544 ms)

Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0

NullReferenceException: Object reference not set to an instance of an object
at CharacterEntity.UpdateInput () [0x00249] in <5d643d255e3d4f448f2247d74fb818d6>:0
at CharacterEntity.Update () [0x00195] in <5d643d255e3d4f448f2247d74fb818d6>:0


How can fix it?

@insthync
Copy link
Member

I will upload the fixed package today, please wait.

@insthync
Copy link
Member

You can download latest version which fixes a lot of bugs here https://www.suriyun.com/battle_io/

@marchenterprise
Copy link

Many Thanks! I’ll try it tomorrow.

@insthync
Copy link
Member

If you still can't connect you may have to open port, for example if you are going to run the server with ./Build.x86_64 -gameServerStart -gameServerPort 7700 -gameMaxConnections 50 -gameRule IONetworkGameRule -gameBotCount 10 -gameOnlineScene "Battle"

You have to open udp port 7700.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants