Pages: 1
  Print  
Author Topic: LateralGM doesn't delete *gmx files from the filesystem  (Read 1228 times)
Offline (Unknown gender) Wendigo
Posted on: December 08, 2017, 08:51:18 am
Member
Joined: Apr 2015
Posts: 42

View Profile
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
Logged
Offline (Male) hpg678
Reply #1 Posted on: December 09, 2017, 03:54:34 am

Member
Location: Barbados
Joined: Mar 2017
Posts: 283

View Profile Email
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.
Logged
[compromised account]
Offline (Unknown gender) Wendigo
Reply #2 Posted on: December 09, 2017, 06:10:46 am
Member
Joined: Apr 2015
Posts: 42

View Profile
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.
Logged
Offline (Male) faissaloo
Reply #3 Posted on: December 09, 2017, 04:27:09 pm

Contributor
Location: Britbongistan
Joined: Jan 2013
Posts: 87

View Profile WWW Email
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.
Logged
Offline (Male) Goombert
Reply #4 Posted on: December 10, 2017, 01:44:06 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) Wendigo
Reply #5 Posted on: December 11, 2017, 03:30:02 am
Member
Joined: Apr 2015
Posts: 42

View Profile
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?
Logged
Offline (Male) Goombert
Reply #6 Posted on: December 11, 2017, 11:20:44 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print