Parse error when loading scene

Godot Version

4.2.1

Question

Today I opened a project that I hadn’t opened for a couple of weeks (I didn’t download a new version of Godot), and it worked fine. After adding some high-poly terrain and reïmporting and reloading Godot, it still worked. But then I opened it again and I couldn’t open my main scene anymore. Later I couldn’t open the entire project anymore, but that’s fixed now.

Anyway I’m getting this error when opening the scene:

scene/resources/resource_format_text.cpp:595 - res://Scenes/Main.tscn:256 - Parse Error: Expected float in constructor

This is (line 256) in Main.tscn:

251. [sub_resource type="ArrayMesh" id="ArrayMesh_dfm62"]
252. _surfaces = [{
253. "aabb": AABB(-1.5, -0.626629, -1.5, 3, 1.05389, 3),
254. "format": 34896613377,
255. "index_count": 6291456,
256. "index_data": PackedByteArray(0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 6, blend_shape_mode = 0

I’ve been trying this all night now and I can’t really figure it out, thanks for reading and (maybe) helping :slight_smile:

What I already tried:
-Opening the Godot console version
-Scene->Save all scenes
-Changing the end of line 256 to blend_shape_mode = 0.0
-Reïmporting the project
-Creating a new project with the assets copied over

It doesn’t look like blend_shape_mode belongs at the end of that line. Isn’t it supposed to be something like this:

var _surfaces = [{
	"aabb": AABB(Vector3(-1.5, -0.626629, -1.5), Vector3(3, 1.05389, 3)),
	"format": 34896613377,
	"index_count": 6291456,
	"index_data": PackedByteArray([0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 6]),
	"blend_shape_mode": 0,
	}]

It doesn’t give me errors this way but I don’t know if it’s correct…

1 Like

Thank you so much! It did solve the error on line 256, but now I have the same thing on line 253, this is it now:

[sub_resource type="ArrayMesh" id="ArrayMesh_dfm62"]
var _surfaces = [{
"aabb": AABB(Vector3(-1.5, -0.626629, -1.5), Vector3(3, 1.05389, 3)),
"format": 34896613377,
"index_count": 6291456,
"index_data": PackedByteArray([0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 6]),
"blend_shape_mode": 0,
}]

And I once again can’t really figure it out, I’m sorry