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.”

  • MJBrune@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months 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.