itisnajim / SocketIOUnity

A Wrapper for socket.io-client-csharp to work with Unity.
MIT License
393 stars 67 forks source link

Lots of Errors appeared as soon as I installed the package #9

Closed JoyX2 closed 2 years ago

JoyX2 commented 2 years ago

image

Restarting doesn't help and this is a new project I'm using unity 2019.4.36f1

image

I've tried to do the same as you mentioned here https://share.vidyard.com/watch/F7cBZi1jG2mS4mb8AaVJBG but it got worth I got extra four errors

image

how to fix this ?

itisnajim commented 2 years ago

try this url instead to install (with the #v1.0.0 suffix) https://github.com/itisnajim/SocketIOUnity.git#v1.0.0

Gabriele2991 commented 2 years ago

@itisnajim I'm trying to run the newer version of your SocketIOUnity with unity v 2021.3.1f and have the same errors that show up in @JoyX2 screenshots.

(Library\PackageCache\com.itisnajim.socketiounity@5106ed6444\Runtime\SocketIOClient.Newtonsoft.Json\NewtonsoftJsonSerializer.cs(64,21): error CS0246: The type or namespace name 'JsonSerializerSettings' could not be found (are you missing a using directive or an assembly reference?) there are 12 and they are all the same.

BTW the previous version works really fine for me(thank you for your hard work) but i really need to make it run on the newer unity version. Do you have any tips?

feelixe commented 2 years ago

I get the same errors in Unity 2021.3.1f1

EDIT: As you suggested however, #1.0.0 works for me in 2021.3.1f1. Do you think this will be stable?

itisnajim commented 2 years ago

All needed libs now under the folder SocketIOUnity/libs/*