Code Monkey home page Code Monkey logo

Comments (8)

Zylann avatar Zylann commented on September 24, 2024 1

resource type was unrecognized or something like that

Yep that's Godot's heisenbug in custom resource loaders

from godot_heightmap_plugin.

Zylann avatar Zylann commented on September 24, 2024

When I set data directory it seams like HTerrainData is not saved to disk...

This alone is not enough for it getting saved. You have to save the scene too after doing that, this is what triggers it. If no data.hterrain file appears in your terrain folder after you save the scene, something wrong occurred (check the console for errors?).
Also try to unfocus and refocus Godot (or restart it) to make sure it imports the textures.

I tried doing the same basic steps as you, saved the scene, started it, and I got errors about textures not loading, but the terrain resource is present (data.hterrain). Refocusing Godot makes it import the textures so starting again the scene works fine without errros. So I just can't reproduce your issue.

See #232
This is probably the longest-standing issue precisely because I could never reproduce any of it. It's quite rare (though some people got it very frequently, and then never again for unknown reasons). And while there were some clues showing Godot might have a heisenbug in its custom resource saving system, nobody was able to isolate it.

from godot_heightmap_plugin.

pietru2004 avatar pietru2004 commented on September 24, 2024

I have downloaded 1.7.3 dev and it seamed to fix it...
Also on 1.7.2 I did save scene after that and error I was getting was that resource type was unrecognized or something like that

from godot_heightmap_plugin.

pietru2004 avatar pietru2004 commented on September 24, 2024

I guess this is bug is category of it does not work and I don't know why, it works and I don't know why...

from godot_heightmap_plugin.

Fromeyer avatar Fromeyer commented on September 24, 2024

I just downloaded this today and all was working well, except the following. Every time I save and quit, the data directory is gone and the terrain is gone. All the textures are there but the terrain is gone. When I try and fix the dependency the folder is there but there is no data in it. As soon as I re-import my heightmap it is textured just the way I left it. The second thing is the texture importer window is way too big and I can't access all the buttons on the bottom. It moves left or right but I can't make it detach or any smaller.

from godot_heightmap_plugin.

Zylann avatar Zylann commented on September 24, 2024

Please refer to #232, this issue is a duplicate. I'm sorry it keeps happening randomly but sadly I haven't the faintest idea why it happens, and have never been able to reproduce it. Even recorded several videos showing it. Everytime I give yet another try, it just doesn't happen. I believe it's a bug in Godot somehow.

the data directory is gone

The directory is gone? Did it existed before? Because deleting the directory would be a first... there is no code in the plugin that deletes directories.

Is this problem consistently happening every time you try?

The second thing is the texture importer window is way too big

That bug has surfaced in Godot 4.2 and has been fixed in the main branch, you may download it from the repo instead of the asset library.

from godot_heightmap_plugin.

A13ks4 avatar A13ks4 commented on September 24, 2024

I have the same problem on 1.7.2 version. Terrain doesn't load when i start the game, but it's not every time.
Here is the error
error

from godot_heightmap_plugin.

Zylann avatar Zylann commented on September 24, 2024

That screenshot only shows the aftermath of the issue (assuming it occurred when you loaded the scene?). Almost everyone gets that. Something wrong occurs silently earlier, and it's very likely not something the plugin can control, because it relies on Godot's saving system (which should trigger saving of all resources the scene contains when you save it). But Godot litterally isn't saving the resource when it should. i.e this script is not even called.

I'm going to close this because that remains a duplicate of #232
I explained a lot of times now why this is still not fixed... it makes me very sad but I need help from someone who can reliably reproduce this at this point, in order to step through the plugin and in particular the engine's code to find out what is really happening (though I have no idea where to start when the issue is Godot not doing something). I just can't investigate that because, as explained, I can't reproduce this, never could.

from godot_heightmap_plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.