QPong / QPong-Unity

QPong rewritten in Unity
26 stars 6 forks source link

QPong-Unity-Version files corrupted? #65

Open WongCKB opened 4 years ago

WongCKB commented 4 years ago

hi, wonder if anyone here facing the same issue?

When opening the file package using Unity 2019.2.2f1 (64-bit), 61 errors are observed (screenshot attached).

errors

Regards,

boland25 commented 4 years ago

it looks like your missing the newton soft plugin. @HuangJunye do we still need that?

libby-h commented 4 years ago

Audio files wont play pngs wont open Unity-Console-Errors1 Unity-Console-Errors2

libby-h commented 4 years ago

Same issue I think - png and wav files wont even open locally (top two images)

HuangJunye commented 4 years ago

I figured out the issue. Unity uses Git LFS (Large File Storage). So if you just download the zip file or git clone without git-lfs installed, the downloaded large non-text files like png only stores the differences (between the version in the repo and the version on LFS server) not the actual files.. You can follow the instructions here to install git-lfs. Remember to run git lfs install after installing git-lfs.

Once you have git-lfs installed, do git lfs clone git@github.com:HuangJunye/QPong-Unity.git. It should show Receiving LFS objects:... followed by Downloading LFS ojbects:... After that you should be good to go!

I updated the Unity version to the latest 2019.4.8f1, but I don't think the version matters at all. I also merged the Arcade branch to develop and then master. I tested. It's running perfectly as expected!

Also remember to run the python flask server when you run the game. Otherwise the paddle won't show up. Instructions are in the README file.

Please let me know if you still face any issues.

WongCKB commented 4 years ago

Once you have git-lfs installed, do git lfs clone git@github.com:HuangJunye/QPong-Unity.git. It should show Receiving LFS objects:... followed by Downloading LFS ojbects:... After that you should be good to go!

Sorry, do not have access rights to this repository: git@github.com:HuangJunye/QPong-Unity.git

Error message as follows: error-message

HuangJunye commented 4 years ago

Oh sorry, I forgot that I am using SSH to clone. You can use HTTPS method instead. Can you try this line? git lfs clone https://github.com/HuangJunye/QPong-Unity.git? Please let me know if you still face issues.

WongCKB commented 4 years ago

Please let me know if you still face issues.

3 Unity compiler errors as follows: 3-console-errors

HuangJunye commented 4 years ago

I didn't see this error myself. This could be due to missing Newtonsoft.dll in the Plugins folder. Can you double check if you have the dll file? If not follow this steps to add it: https://stackoverflow.com/questions/38084186/json-net-in-unity-throwing-the-type-or-namespace-newtonsoft-could-not-be-foun

HuangJunye commented 4 years ago

If you just clone the repo, Newtonsoft.dll should be there. See here: https://github.com/HuangJunye/QPong-Unity/tree/master/QPong-Unity-Version/Assets/Plugins/Newtonsoft.Json.12.0.2