Author Topic: WinAGI - "Invalid or Missing WinAGI file"  (Read 268 times)

0 Members and 1 Guest are viewing this topic.

Offline ZvikaZ

WinAGI - "Invalid or Missing WinAGI file"
« on: April 17, 2022, 05:28:58 AM »
Hi.
I've imported SQ1. 'Edit Game Properties' dialog popped up, and I modified GameID to `sq1`, saved, and exited. So far, no error message or warning.
Then I reopened WinAGI, and got an error: "Invalid or Missing WinAGI file", saying that sq1.wag file is invalid or missing, and removed from Most Recent Files list.

It's really not critical issue, as I can still manually load the wag file, but it seems like something needs to be fixed here.
(maybe change the .wag file name if the gameid is changed? or maybe fix the Most Recent Files list?)



Offline AGKorson

Re: WinAGI - "Invalid or Missing WinAGI file"
« Reply #1 on: April 18, 2022, 02:55:58 AM »
Good catch, that's a bug.

When you change the GameID, the file name of the WAG file is not changed to match. I made a decision a while back to separate the name of the WAG file from the GameID value. That way, you can give your WAG file a long filename. If the WAG file name was linked to the GameID, you'd be limited to 6 characters for your WAG filename.

But it looks like I also forgot to make sure that when you do change the GameID, the filename in the Most Recent Files list should NOT be changed anymore.

The workaround is to use the Game|Open Game menu option. Once you do that, the game will be added to the Most Recent Files list correctly.

It's easy to fix this, so I'll add it to my TODO list.  I think I'll add a dialog box asking user if they want the filename to changed to match if they do change the GameID, in case they really want that.

I wonder if I should have added a separate parameter to the Game Property form to let users change the WAG filename separately from the GameID, but I think that might take more effort than I want to spend right now. So I'll leave that for later. You can edit the name of your WAG file in Explorer if you really want to change it.

Offline ZvikaZ

Re: WinAGI - "Invalid or Missing WinAGI file"
« Reply #2 on: April 18, 2022, 03:33:57 AM »
Quote
I wonder if I should have added a separate parameter to the Game Property form to let users change the WAG filename separately from the GameID,
I really don't think it's worth your time.
Furthermore, I think it will be more confusing for the users than helpful.



SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.104 seconds with 25 queries.