I have a simple GUI app I made in 4.0.3 and I have tried upgrading it to 4.1 but there always seems to be a scene that it says is corrupted. I have tried the upgrade a couple times and there’s always one scene that doesn’t work but the others will sometimes work and sometimes not.

Fixes I’ve tried:

  • Deleting .godot directory before upgrading/re-importing
  • Manually removing references to external resources that caused errors (textures) in the scene file
  • Re-importing textures

Any other ideas would be appreciated. It’s not detrimental but I’d really like to make use of the exported Arrays of custom types.

  • laenurd@lemmy.lemist.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Back when 4.0 was still in development, I regularly compiled the latest version to test new features etc. on a rather large project. There were many more breaking changes back then than there are from 4.0 to 4.1.

    What nearly always helped with import or scene corruption errors was deleting the “.godot” folder in the project, which makes it re-import everything.

    You should back up everything before though.

  • Ste@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I didn’t have issues upgrading from 4.0 to 4.1. the only small problem was the one related to the textures that I then find out I just needed to delete the .godot folder to fix it

  • KapiteinPoffertje@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I had some issues with scenes complaining about being corrupted, reloading the project fixed it for me. I am on 4.1 but I did move files so it could definitely have had something to do with that.

  • max1mum_d3ath@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I ended up resolving this by manually editing the scene files and removing references to PackedScenes in certain scripts. I had seen mention of 4.x having issues with cyclically referenced scenes, so that’s likely the issue.

  • NocturnalMorning@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I stopped using Godot 4 bcz they weren’t taking feedback seriously about how cavalier they are with API changes constantly occuring.

  • Arello@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Hmm, not sure if a bug or a bug fix but this slightly broke one system of mine. I had layers of sprites and when I scaled them the offset used to be synced with changes, but not anymore.

  • simple@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I had no issues upgrading to 4.1, not sure why it doesn’t work for you. Try upgrading to 4.1 on another device if you have one and upload to git, otherwise wait for the next hotfix and hope they fixed it.

    Also would be great if you can create an issue on github in case this isn’t a known issue