this post was submitted on 04 Oct 2023
16 points (100.0% liked)

Godot

6020 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 2 years ago
MODERATORS
 

I have had this happen with two scenes by now. These scenes consist of a large tilemap with multiple layers, a player and thats it. The scenes inherit from a LevelBase class I wrote, but that is so simple. that it can't be the problem. LevelBase just has a open_pause_menu() function and nothing else. Does anyone know why this might be happening?

EDIT: Forgot to translate the message. It says "scene file 'office.tscn' seems to be invalid or faulty."

you are viewing a single comment's thread
view the rest of the comments
[–] MJBrune@beehaw.org 2 points 1 year ago

I've seen this a number of times for a lot of different reasons. How I've fixed it every time is to open the tscn file in a text editor and start messing around. Look at the references in the files, ensure the file paths are accurate, ensure the formatting of the tscn looks correct, and lastly look at the things it references and inherits also aren't corrupt.

Absolute last resort, delete references and nodes out of your scene using the text editor until it works. If you remove everything and it still doesn't work then something is wrong with the parent. You can test this quicker by recreating your scene as well and simply just inheriting from the same parent and reloading your editor.

I've had this happen because of OS whitespace differences (with git, always commit as UNIX, checkout as OS specific.), general formatting issues, case sensitivity in the path (always keep every part of your path lowercase. Never use camel case for files.), or a corrupt parent.