KoBeWi/Metroidvania-System

Issue with room name not in assigned scenes (sample project)

Closed this issue · 13 comments

Hey there!
I'm starting out with a fresh clone of this repo and trying to run the sample project.

Immediately upon running the program I'm getting an assertion error here https://github.com/KoBeWi/Metroidvania-System/blob/master/addons/MetroidvaniaSystem/Scripts/MapData.gd#L488

The error is that my room name :cv55nv1c2sbiq is not in assigned_scenes. The assigned_scenes dictionary is mostly human readable tscn filenames. there are a couple UIDs in that dict but none of them match the one that I have in the room_name variable.

Godot version 4.2. Windows 10.
I haven't made any changes other than cloning the repo and pressing run.

I encountered the same issue as you

I can't reproduce it. Just tried a fresh clone in Godot 4.2.2.

Maybe you have some old save file? Remove example_save_data.sav from user data directory if it exists.

I have the same problem, with also with a fresh clone

I can't reproduce it. Just tried a fresh clone in Godot 4.2.2.

Maybe you have some old save file? Remove example_save_data.sav from user data directory if it exists.

I'm sorry im kind of dumb, where would i find this?

In the top editor menu: Project -> Open User Data Folder.

i've checked the whole folder, and it doesn't look like it exists in there. If it helps any, I have the same issue on both my pc and on my laptop

I don't know then. Are you using newest Godot stable with newest version of MetSys (available from GitHub)? If the scene is not found in assigned scenes, what scenes are registered?

I'm using godot 4.2.2, and I am 99% sure im using the latest version of metsys, as I am creating a clone through using the github desktop. As for the registered scenes, I used a print statement right above the assert and this was the output

image

Can you provide stack trace for the error call? Your room name does not exist in the map data, I don't know where it came from.

I hope this is what your looking for, im still relatively new to Godot, so please let me know if it was something else you needed instead

image

Ok this is the same issue as #8
Which is weird, because I fixed it 🤔 I'll look into it again. In the meantime you can try opening MapData.txt and converting line endings manually (your code editor/IDE should have such option, if you have one).

alright, thanks

Fixed in 8224a33