this post was submitted on 10 Jul 2023
12 points (100.0% liked)

Godot

5848 readers
34 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 1 year ago
MODERATORS
 

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.

top 11 comments
sorted by: hot top controversial new old
[–] simple@lemmy.world 2 points 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

[–] laenurd@lemmy.lemist.de 2 points 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.

[–] russmatney@programming.dev 1 points 1 year ago (1 children)

I upgraded without issues… i wonder what kind of scenes these are that aren’t working.

I’d expect manually editing the tscn files could fix it, but wouldn’t know what to change without more info. Is there any detail/errors on why they are corrupted? Sometimes i launch godot on the command line to try to see more error info from the logs/output, tho the same should show up in the editor after startup.

Worst case you might have to recreate them… maybe that’s not too much work? I had to recreate tilemaps in the 3.x -> 4.0 migration, was pretty annoying

[–] max1mum_d3ath@lemmy.world 2 points 1 year ago (1 children)

It shouldn't be too difficult to redo, especially if I use the original tscn content for reference. It's the main menu UI and the only error I saw was related to textures I'm using for the buttons. I have a sneaking suspicion that it could be the TextureAtlas I created for the UI. I hadn't thought of launching from command line, that's a good idea!

[–] russmatney@programming.dev 1 points 1 year ago

yup! you can do something like godot -e from the same directory as your project.godot to launch the editor for that project directly

[–] Arello@sopuli.xyz 1 points 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.

[–] max1mum_d3ath@lemmy.world 1 points 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.

[–] max1mum_d3ath@lemmy.world 1 points 1 year ago

For further context, I am using git and the only change that happens after the upgrade is a string changed from 4.0->4.1 in the project file.

[–] NocturnalMorning@lemmy.world 1 points 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.

[–] Stefh@programming.dev 1 points 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 1 points 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.