CMDRSpirit / RollercoasterDesigner

A toolset for creating and operating realistic rollercoasters in Unity. Includes per car simulation of forces, like rolling resistance and acceleration through gravity with full integration into the Unity Editor.
MIT License
17 stars 4 forks source link

Unable to 'Play' a scene #2

Open VickyTidal opened 1 year ago

VickyTidal commented 1 year ago

Hello,

I'm using the current free version of Unity - 2021.3.24f1.

I put your 'RollercoasterDesigner-main' folder in a blank project's 'Assets' folder. I tried to open one of your 'Examples'/'Scenes'/'file.unity', but it's all pink.

Also, 2 errors are locking me:

Assets\RollercoasterDesigner-main\Libraries\NURBS\Handler\SurfaceHandler.cs(79,10): error CS0246: The type or namespace name 'BurstCompileAttribute' could not be found (are you missing a using directive or an assembly reference?)

Assets\RollercoasterDesigner-main\Libraries\NURBS\Handler\SurfaceHandler.cs(79,10): error CS0246: The type or namespace name 'BurstCompile' could not be found (are you missing a using directive or an assembly reference?)

I'm joining a screenshot to describe the situation. 2023-05-11 01_57_41-NVIDIA GeForce Overlay

CMDRSpirit commented 1 year ago

Hi, you need HDRP and CInemachine for the example scene. Regarding your error, apparently I overlooked that the NURBS library used Burst compile commands. You can easily fix them by installing the Burst package from the package manager. Hope that fixes everything for you.

NOAH-1503 commented 1 year ago

I have the same issues and also just tried this, but it doesn't solve anything. With the packages installed Unity even crashes when pressing play, which it didn't do before. It's a shame because this asset actually looks great for making coasters. On another note, if extra packages are necessary you should probably mention that in the instructions haha

CMDRSpirit commented 1 year ago

Oh, I thought that I added the Burst requirement to the readme, my bad. Do you see anything useful in the editor logs? Which version of Unity are you on? Have you tried the plugin in a new project or an existing one?

NOAH-1503 commented 1 year ago

After some more messing around I got it to work! I'm guessing the version I initially used was too old, as that's the only thing I really did different this time. I tried to import the files into an already existing project as I already noticed there wasn't any assets folder, and while I also had some issues at first converting the project to HDRP those same issues didn't happen when I created a new project with HDRP from the start.

CMDRSpirit commented 1 year ago

These are great news! I'm still interested in what version you exactly used, maybe I find the reason why it didn't work in the first place. BTW, if you don't want to use HDRP, you can just delete the example folder and go with URP or Built-In. The examples are obviously helpful when looking at the plugin for the first time.