Zylann / godot_terrain_plugin

3D Terrain plugin for Godot Engine [NO LONGER MAINTAINED]
128 stars 24 forks source link

Terrain data fails to load #18

Closed jimj316 closed 5 years ago

jimj316 commented 5 years ago

I've been playing around with the terrain plugin a bit, but I can't get it to save the terrain I make between runs of Godot. I think (?) it's saving correctly, but on loading, I get the following error output:

Enter world
HTerrainCollider: terrain data not set yet
Enter tree
Transform changed
HTerrainCollider: terrain data not set yet
 core/io/resource_format_binary.cpp:997 - Condition ' err != OK ' is true. returned: Ref<ResourceInteractiveLoader>()
 Failed loading resource: res://Terrain/terrain_data.hterrain_data/height.res
 Could not load res://Terrain/terrain_data.hterrain_data/height.res
 core/io/image_loader.cpp:55 - Error opening file: res://Terrain/terrain_data.hterrain_data/normal.png
 No loader found for resource: res://Terrain/terrain_data.hterrain_data/normal.png
 core/io/image_loader.cpp:55 - Error opening file: res://Terrain/terrain_data.hterrain_data/splat.png
 No loader found for resource: res://Terrain/terrain_data.hterrain_data/splat.png
 core/io/image_loader.cpp:55 - Error opening file: res://Terrain/terrain_data.hterrain_data/color.png
 No loader found for resource: res://Terrain/terrain_data.hterrain_data/color.png
 core/io/image_loader.cpp:55 - Error opening file: res://Terrain/terrain_data.hterrain_data/global_albedo.png
 No loader found for resource: res://Terrain/terrain_data.hterrain_data/global_albedo.png
Updating all vertical bounds... (0x0 chunks)
 res://addons/zylann.hterrain/hterrain_data.gd:752 - Invalid get index '-1' (on base: 'Array').
Create grid for lod 0, 0x0
Creating terrain collider shape
 res://addons/zylann.hterrain/hterrain_data.gd:304 - Assertion failed.
 modules/bullet/shape_bullet.cpp:404 - Condition ' l_width <= 0 ' is true.
Resetting detail layers
Updating material params
 res://addons/zylann.hterrain/hterrain_data.gd:474 - Assertion failed.
 res://addons/zylann.hterrain/hterrain_data.gd:474 - Assertion failed.
 res://addons/zylann.hterrain/hterrain_data.gd:474 - Assertion failed.
 res://addons/zylann.hterrain/hterrain_data.gd:474 - Assertion failed.

And the terrain mesh fails to appear at all; in the inspector preview, the "data" attribute of the terrain object is a black square, and I have to clear the terrain data and create a new one in order to get the mesh to appear again.

Normally I'd try looking into this issue myself, but I'm afraid that I'm still very new to Godot (coming from Unity), so I don't really know how the system works yet. I'm on Debian Linux 9, if it helps.

jimj316 commented 5 years ago

Sorry, this is entirely the wrong plugin x.x I'll repost this on the repo of the newest version.