ENIGMA Forums
Outsourcing saves money => Issues Help Desk => Topic started by: Wendigo on December 08, 2017, 08:51:18 am
-
Hi,
I don't know if this might be intended for backup reasons but I just found out that LateralGM doesn't delete resources (Rooms, Sprites, etc) from the file system after they were deleted via context menu from the resources tree inside LGM. They disappear in LGM but still stay on the filesystem. This creates a mess in the project folder.
If I delete a room and add a new one with the same name it gets overwritten on the file system.
Is this a bug?
LateralGM Version: 1.8.7.11
Linux Mint 17.3 / 64Bit
-
I'm not sure if its one either. It doesn't bother me so much as I can reference and use them back if I need to. If I were to speculate, it seems to a be for backup purposes. In fact the more i think on it, I believe GameMaker does the same thing but I could be wrong.
Just be careful not to delete the unwanted files from your project without also editing the ".gmx"file, as it references the resources you use in LateralGM. If you're a beginner, I wouldn't advise you to interfere with that file. You could damage your whole project and it wouldn't run. Plan your work on paper first or in a drawing Program and then import them in LateralGM.
Glad to see that you are a fellow Linux version user like me.
-
Hi hpg678 nice to meet another Linux user :)
I'm really interested to know what the developers think about this "feature".
I found this by accident when I was renaming some of my objects. Forgot to update the references in the code and somehow one of my sprites showed a different image when I ran the game even though none of the objects in the treeview had that name any more.
After updating the names in my scripts it worked again. But this might as well be another issue.
-
Hi,
I don't know if this might be intended for backup reasons but I just found out that LateralGM doesn't delete resources (Rooms, Sprites, etc) from the file system after they were deleted via context menu from the resources tree inside LGM. They disappear in LGM but still stay on the filesystem. This creates a mess in the project folder.
If I delete a room and add a new one with the same name it gets overwritten on the file system.
Is this a bug?
LateralGM Version: 1.8.7.11
Linux Mint 17.3 / 64Bit
I don't believe this is a bug, iirc Game Maker does the same with GMX files.
-
This is funny that this post is here because for various reasons I was just looking at the GMX format the other day and noticed the exact same thing in Studio, completely ignoring LGM. Yes, this is also a GameMaker feature, and I would, as the others described, rather it this way than for people to accidentally lose assets permanently. LGM could add a checkbox to "Delete this resource from the file system" as well like you have in Eclipse and other IDEs. But really to me it's not worth my effort to update anything. I personally hate checkboxes on message boxes such as "Never show this message again" because I almost always am in too much of a hurry to know if I might forget what it's telling me. Best UI design principle is to really just keep your interface simple, and that's what LGM has. It's not really going to cause any problems as the undeleted resources usually don't take up too much space. Another idea too would be to add a cleanup button to LGM that would do this, similar to the defrag ids button.
-
Thanks for clarification.
One could also add a new entry to the context menu of the assets like "restore from backup" if you accidentally deleted something.
By the way, if I wanted to retrieve an asset from the file system "backup" which files would I have to edit?
-
The main manifest, the part that has your actual "ProjectName.gmx" where the directory structure is stored. Just edit it with notepad and readd the entry for the resource. As soon as you see the file you'll see what I mean.