suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 11 forks source link

I got this error after the update for the websocket. Before wasnt showing this. #1341

Closed MosesGomez closed 1 year ago

MosesGomez commented 2 years ago

image Sorry to bother again but I get this problem in my webgl. This error appears just after I update the kit.

insthync commented 2 years ago

Screenshot_835

Screenshot_836

Try setup like this.

MosesGomez commented 2 years ago

image

Got the same error

insthync commented 2 years ago

Change to uses Unity 2021.2

MosesGomez commented 2 years ago

Change to uses Unity 2021.2

You mean to upgrade my unity to 2021.2?

insthync commented 2 years ago

Yes

MosesGomez commented 2 years ago

Yes

Got it, Ill upgrade

MosesGomez commented 2 years ago

Upgraded and shown this errors image

MosesGomez commented 2 years ago

I changed to net 2.1 framework in project settings and changed to this one. image

insthync commented 2 years ago

https://suriyun-production.github.io/mmorpg-kit-docs/#/pages/151-working-with-2021

MosesGomez commented 2 years ago

https://suriyun-production.github.io/mmorpg-kit-docs/#/pages/151-working-with-2021

Thank you so much, Should I use net 2.1?

insthync commented 2 years ago

Yes

MosesGomez commented 2 years ago

image Everything worked but now this error shown when clicking connect in the main menu

MosesGomez commented 2 years ago

image Also before loading the game I have this warning shown

MosesGomez commented 2 years ago

I turned off the server to see if server was causing the error and was the same.

insthync commented 2 years ago

Open /Assets/MultiplayerARPG/Core/LiteNetLibManager/Plugins/WebSocket/WebSocket.jslib replace Pointer_stringify to UTF8ToString

insthync commented 2 years ago

https://github.com/insthync/LiteNetLibManager/commit/2e19781b71b3649114b4050801f362e820baedd8

MosesGomez commented 2 years ago

Still getting the same error after changed that

insthync commented 2 years ago

the "Pointer_stringify is not defined" again ?, how it will still show that message if it was removed from the code file?

MosesGomez commented 2 years ago

I cant tell. image image

insthync commented 2 years ago

Scroll up, I can't see the readable messages

MosesGomez commented 2 years ago

image Sure, sorry

insthync commented 2 years ago

Try CTRL + F5 to refresh with cache clearing

MosesGomez commented 2 years ago

It works, thank you so much. I just have one question more, In this unity version I have 2 types to build server (Dedicated server and the normal one, linux) Which should I select? I have a VPS

MosesGomez commented 2 years ago

image This is what I mean. image Using the normal one this happens and when using dedicated server it keeps running forever

insthync commented 2 years ago

Should use dedicated server, what do you about "it keeps running forever?"

MosesGomez commented 2 years ago

Should use dedicated server, what do you about "it keeps running forever?"

When running the game in the vps it starts writing a lot and never ends

MosesGomez commented 2 years ago

image Keeps like this and never stops

insthync commented 2 years ago

An audio error never stop?

MosesGomez commented 2 years ago

An audio error never stop?

Repeats a lot of errors and info. and never stops. Ill take a look at some of my audio scripts

MosesGomez commented 2 years ago

image And it causes that I cant log in

MosesGomez commented 2 years ago

I still cant run the server well.

MosesGomez commented 2 years ago

image Settings and using centos 8 as VPS Whats weird is that yesterday I was able to run it just one time.,

insthync commented 2 years ago

You may try build server which uses Mono as scripting backend, .NET Framework Api compatibility

And set server config to make it runs the server with web socket transport (by just set config file)

MosesGomez commented 2 years ago

You may try build server which uses Mono as scripting backend, .NET Framework Api compatibility

And set server config to make it runs the server with web socket transport (by just set config file)

You mean uploading the config file into the server? Not using the objects inside the unity project?

MosesGomez commented 2 years ago

./Game.x86_64 -startMapSpawnServer -spawnExePath "Path of your execution file such as /Game/Game.x86_64" -startCentralServer -startDatabaseServer -machineAddress "192.168.1.102"

This command to start server is updated?

insthync commented 2 years ago

You may try build server which uses Mono as scripting backend, .NET Framework Api compatibility And set server config to make it runs the server with web socket transport (by just set config file)

You mean uploading the config file into the server? Not using the objects inside the unity project?

Yes

./Game.x86_64 -startMapSpawnServer -spawnExePath "Path of your execution file such as /Game/Game.x86_64" -startCentralServer -startDatabaseServer -machineAddress "192.168.1.102"

This command to start server is updated?

Just has no -startChatServer anymore.

MosesGomez commented 2 years ago

Really sorry but still the same error :(

Config priority from high to low is Command Line -> Config files -> Component data (I should change something based on this)

MosesGomez commented 2 years ago

It seems that in server something is looping or that it restarts the launch everytime as I see almost the same errors

MosesGomez commented 2 years ago

https://user-images.githubusercontent.com/12781104/145449504-24c4e5e7-9442-4710-88d7-bad49c1c2854.mp4

MosesGomez commented 2 years ago

image I dont know if this is normal but seems that there is a lot of this messages in the last try to turn on server

insthync commented 2 years ago

Hmm, weird thing is map-server processes are being killed instantly

MosesGomez commented 2 years ago

Hmm, weird thing is map-server processes are being killed instantly

Cant tell why, yesterday was able to

MosesGomez commented 2 years ago

For the config files I just need to drop the folder with the json there in the server right?

insthync commented 2 years ago

Yes

MosesGomez commented 2 years ago

Mmm I think I have tried everything and isnt working. Cant really tell why

insthync commented 2 years ago

I am available at Saturday, let's make an appointment to looks how you did by using TeamViewer

MosesGomez commented 2 years ago

I am available at Saturday, let's make an appointment to looks how you did by using TeamViewer

Sure its fine. There is something that I can do? So Ill still try with that.

MosesGomez commented 2 years ago

In cluster address shoul I set the IP of the server right?

insthync commented 2 years ago

Yes, or if you runs all servers in 1 device, you can set it to 127.0.0.1

MosesGomez commented 2 years ago

Yes, all if you runs all server in 1 device, you set it to 127.0.0.1

That could be the problem