Metroidvania-System icon indicating copy to clipboard operation
Metroidvania-System copied to clipboard

When working with a team, rooms are reset.

Open sumuraxxx opened this issue 1 year ago • 1 comments

For some reason, someone from the team, for example, adds a new room and sends a commit, and others switch to this commit, then the entire map is reset, that is, in the map editor itself, everything seems to work, but when launching the project, the scenes are reset. and when you try to edit the scene in the presence of RoomInstance, RoomInstance is not shown in the editor itself, that is, there is RoomInstance in the node tree, but it is not in the scene editor

sumuraxxx avatar May 12 '24 14:05 sumuraxxx

When you pick external changes while editor is open, you need to use Reload nad Cleanup Map Data from Manage tab. I'll see if it can be done automatically.

KoBeWi avatar May 12 '24 14:05 KoBeWi

Hello, is there an automatic solution to this problem? or a method that worked 100 percent, during development, even pressing a special button nothing happens and only by miracle, sometimes after a lot of time everything falls into place, but this is very difficult

sumuraxxx avatar Jul 17 '24 13:07 sumuraxxx

The Reload Map Data button should reload the map without fail. Are you saying it doesn't work sometimes? Do you know how to reliably reproduce this bug?

KoBeWi avatar Jul 18 '24 13:07 KoBeWi

Sometimes this is too mild to say, in fact it doesn’t work at all :/ It generally comes like this: We launch the game, the map does not work, we don’t press anything on the button, we launch the game again and there is no use But as I recently realized, for some reason the button works for me, although not always, it works, but for my colleagues it doesn’t work at all Below are the errors that senders sometimes get: IMG_20240718_202128_212

sumuraxxx avatar Jul 18 '24 16:07 sumuraxxx

How does the map change when it happens (i.e. what changes are you pulling from git)? Is it when you add new rooms? Modify assigned scenes?

KoBeWi avatar Jul 18 '24 18:07 KoBeWi

In 93b6a045f947d6a843af8063d9ea035aa8c8e5cb I added auto-reload function:

https://github.com/user-attachments/assets/e3642697-3606-430e-8ef6-486c010f26cd

See if it resolves your problem.

KoBeWi avatar Jul 19 '24 20:07 KoBeWi

Now everything works flawlessly, thank you :))

sumuraxxx avatar Jul 20 '24 14:07 sumuraxxx