Zylann / voxelgame

Voxel world prototype made with Godot Engine
Other
513 stars 84 forks source link

smooth_terrain/main.tscn does not run properly on Godot 4.0 #94

Closed jeffb4 closed 1 year ago

jeffb4 commented 1 year ago

Deets:

Errors: The first few times I loaded the scene, the editor threw a warning about an unfound dependency on a test file. This broken dependency doesn't show up at all when I do Edit dependencies for the scene. image

More consistently, I'm getting Attempt to open script 'res://smooth_terrain/rigidbody_spawner.gd' resulted in error 'File not found'. I visually confirmed that script was indeed missing.

Running the scene looks like below image

Zireael07 commented 1 year ago

Most likely the converter renamed rigidbody to either rigidbody2d or rigidbody3d - did you check?

jeffb4 commented 1 year ago

I did, there's no file starting with the name rigidbody in the repository, and I checked the git history for the repo and couldn't find it, either. I know you don't know me so I'm desperate that this doesn't come off wrong, but did it possibly not get added and committed/pushed?

jeffb4 commented 1 year ago

I was able to set the Generator for VoxelTerrain to VoxelGeneratorNoise2D and VoxelGeneratorNoise and the scene renders. I get errors on the left mouse click voxel spawn effect, something about a missing image: image

Zylann commented 1 year ago

rigidbody_spawner.gd is a local script I forgot to cleanup, same for the graph...

Zylann commented 1 year ago

Try with 0068ffd8e67bbb628dbb95776adfa29544d2c934

jeffb4 commented 1 year ago

https://github.com/Zylann/voxelgame/commit/0068ffd8e67bbb628dbb95776adfa29544d2c934 worked perfectly - no gripe about Godot version during import, no dependency reference to missing test file, no error about missing script. Thanks!