ketoo / NoahGameFrame

A fast, scalable, distributed game server engine/framework for C++, include the actor library, network library, can be used as a real time multiplayer game engine ( MMO RPG/MOBA ), which support C#/Lua script/ Unity3d, Cocos2dx and plan to support Unreal.
https://github.com/ketoo/NoahGameFrame/wiki
Apache License 2.0
4k stars 1.1k forks source link

Unity Client not working #234

Closed giorgi-abashidze closed 4 years ago

giorgi-abashidze commented 4 years ago

hi, i tried to start unity client but login screen not showing because there is exception before that part of code

FormatException: Input string was not in a correct format. System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <437ba245d8404784b9fbab9b439ac908>:0) System.Single.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <437ba245d8404784b9fbab9b439ac908>:0) System.Single.Parse (System.String s) (at <437ba245d8404784b9fbab9b439ac908>:0) NFSDK.NFElementModule.LoadInstanceElement (NFSDK.NFIClass xLogicClass) (at Assets/NFSDK/NFConfig/NFElementModule.cs:187) NFSDK.NFElementModule.Load () (at Assets/NFSDK/NFConfig/NFElementModule.cs:55) NFSDK.NFElementModule.AfterInit () (at Assets/NFSDK/NFConfig/NFElementModule.cs:33) NFSDK.NFIPlugin.AfterInit () (at Assets/NFSDK/NFPluginModule/NFIPlugin.cs:41) NFSDK.NFPluginManager.AfterInit () (at Assets/NFSDK/NFPluginManager/NFPluginManager.cs:54) NFRoot.Start () (at Assets/NFrame/NFRoot.cs:50)

i see exception comes from NFElementModule.cs:55 but i don't know too much about this project so i can't fix this, need your help

ketoo commented 4 years ago

Hi,

Thanks for your feedback.

Is that this unity sdk now you using? https://github.com/ketoo/NFUnitySDK

If not, please use this one, this one is the latest unity SDK right now.

Thanks.

giorgi-abashidze commented 4 years ago

this sdk got errors after connecting, I recorded video and you can clearly see whats going on,

here is the video

thanks for reply.

ketoo commented 4 years ago

I knew what happens, will be fixed today.

ketoo commented 4 years ago

Fixed all and I have tested on Windows platform with the latest server and unity SDK(This issue only for Windows platform), it works well now, please pull and test again, thanks for your feedback.

giorgi-abashidze commented 4 years ago

Getting same errors, maybe im doing something wrong. I am closing this issue.

ketoo commented 4 years ago

Is that run well on unity editor?

giorgi-abashidze commented 4 years ago

No, still the same like in the video that i shared to you

giorgi-abashidze commented 4 years ago

I need to download redis directly?

giorgi-abashidze commented 4 years ago

ok, I downloaded redis and it looks like server is connecting to it, redis window logging "3 clients connected" in every 5 second.

but when i run NFRoot scene in unity nothing happens after connecting to server and plus there is an NullreferenceException in SendLags function. when i comment sendlags in lagtestModule.cs -> Execute() function there is no exception but there is still empty scene. after connecting from NFRoot to the server it must show some test scene right?

Would be nice if you will connect my pc with teamviewer, I really want to make a game in quarantine time

I See we are in different time zones, I will not turn off my pc at night and i will send TeamViewer code to email, connect to my pc if you have a time

ketoo commented 4 years ago

Sound good, please send that information to my email.

ketoo commented 4 years ago

Now it works by changing the code below:

using System.Globalization;

xValue.Set(float.Parse(xAttribute.Value, CultureInfo.InvariantCulture.NumberFormat));