MerlinVR / UdonSharp

An experimental compiler for compiling C# to Udon assembly
MIT License
669 stars 88 forks source link

Doesn't work with Build & Test #30

Closed imanishikayac closed 4 years ago

imanishikayac commented 4 years ago

Hi, Thank you for your great project!

I have v0.16.2 installed and I'm trying your example scene, but it doesn't work with Build & Test. Works fine in Editor.I'm trying out the "Spinning Cubes 1" scene and only adding the "VRCWorld" component here. Am i wrong?

thank you.

orels1 commented 4 years ago

If by VRCWorld component you mean the VRCWorld prefab from the SDK - some people reported not being able to build a scene with it. I would suggest trying to remove the VRCWorld prefab, create a new emtpy gameobject in the scene, and attach a VRC Scene Descriptor component to it manually (don't forget to specify the spawns list and pass the main camera too!).

It seems like the current prefab in the SDK might be faulty

orels1 commented 4 years ago

Did a quick test with a setup like this (just dragged the VRCWorld prefab into the scene)

image and everything seems to work.

This is on the latest SDK3, which might be a factor if you haven't updated yours in a while and hence are getting the VRCWorld prefab issue i mentioned above. Latest SDK filename is VRCSDK3-UDON-2020.05.12.10.33

If you're still getting the issue - i would suggest taking a look at the logs (AppData/LocalLow/VRChat) & posting them here to see what the issue is and if its an U# issue or something else in general.

imanishikayac commented 4 years ago

Thank you for your reply! I have tried the following but the result didn't work.

I took a look at the log, but I still haven't been able to determine what is causing it.

====

`2020.05.20 20:34:44 Log - [API] [11, 404, Get, -1] Abandoning request, because - "World not found" https://api.vrchat.cloud/api/1/worlds/local:****/metadata?apiKey=****&organization=vrchat

2020.05.20 20:34:44 Error - [RoomManager] World Metadata failed to download for world local:****

2020.05.20 20:34:44 Log - [RoomManager] Room metadata was updated, old hash 0, new hash ****

2020.05.20 20:34:48 Log - [VRCFlowManagerVRC] Destroying VRC_OBJECTS

2020.05.20 20:34:49 Log - [VRCFlowManagerVRC] Waiting for world metadata load to finish..

2020.05.20 20:34:49 Log - Loading asset bundle: SpinningCubes1

2020.05.20 20:34:50 Log - Update rate will vary between 50 and 1000 milliseconds.

2020.05.20 20:34:50 Log - Soft data rate ceiling will be 18432 bps

2020.05.20 20:34:50 Log - [UdonBehaviour] Could not load the program; the UdonBehaviour on 'SpinningCube_1' will not run.`

====

thank you.

orels1 commented 4 years ago

Hmm. I would suggest clicking on the cube object and then "Compile all programs" button, to see if that helps. They should be already compiled, but who knows. I don't really see any other reason why it would not load.

imanishikayac commented 4 years ago

ohh...

clicking on the cube object and then "Compile all programs" button

I tried this and it worked!! I am sorry to have caused trouble and Thank you so so much!

orels1 commented 4 years ago

No problem! Glad it is resolved. I think you can close the issue now :)