0 votes

hello I had a problem that only occurs when I export and run my game, that is, everything is great in the editor, but when I run the exported project I get the following error:

it is just GDscript with the use of in singleton.

ERROR: decode_variant: Condition "len < 4" is true. Returned: ERR_INVALID_DATA
At: core/io/marshalls.cpp:108
ERROR: Error decoding property: .
At: core/project_settings.cpp:543

I had already put my question before but I did not receive any answer, I analyzed it and I do not know if my project has been damaged since I had it saved on the pc but I decided to transfer it to a flash memory and to transfer it to the pc again, maybe that is the reason.

my editor

Godot version 3.2.3
in Engine by (44 points)

2 Answers

0 votes
Best answer

I already managed to solve the problem, my theory is that the configuration that my project had was affected because I moved it from one place to another (I moved it from the pc to a flash memory several times) that caused the corruption of some file and when exporting it caused errors, another thing is also that I had misspelled the address of my scenes in some preloaded variables; Anyway, the solution I gave you was to create a new project, after that go to the resources folder of the project that causes problems and copy the scenes, scripts and assets, I paste all this in the new project that I create making the necessary configurations in the editor so that everything works, my recommendation is that you take into account upper and lower case when saving and referencing scenes / scripts since it is very important because otherwise it will give you problems at some point, luck for the person who reads this: 3

by (44 points)
0 votes

You should check in the project res:// that the files doesn't have hypens or spaces.

by (353 points)

including folders?, I already did that with all the files exeptuating the folders and I keep getting the same error:, c

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.