Jump to content
IGNORED

Announcing "AGSP Enhance" v1.0 for the MyArcade Atari Gamestation Pro


tjrtech

Recommended Posts

2 hours ago, tjrtech said:

Hey, Handy DG, a few questions:

1. When you say that the original games.ini, when updated by AGSP Enhance, "doesn't work" when loaded up by the AGSP, what do you mean exactly?   I assume the AGSP runs, loads, but with no new games.

2. After using the file contents copy "hack" extra step does that new games.ini work from that point on when adding new games, updating games via AGSP Enhance?  (wondering if this is truly an original games.ini issue)

Thanks,

TJR

1.  Yes, the AGSP boots normally, but is essentially still in factory default mode because the games.db database will not update.  Also, please note that the "update_db" flag in games.ini is still set to "1", so it seems that the AGSP does not even recognize the file.

 

2. Yes, the games.ini will work after that point if modifications are made manually in a text editor, but it will not be recognized if any modifications are made using AGSP Enhance.

  • Like 1
Link to comment
Share on other sites

On 4/26/2024 at 1:10 PM, Handy DG said:

1.  Yes, the AGSP boots normally, but is essentially still in factory default mode because the games.db database will not update.  Also, please note that the "update_db" flag in games.ini is still set to "1", so it seems that the AGSP does not even recognize the file.

 

2. Yes, the games.ini will work after that point if modifications are made manually in a text editor, but it will not be recognized if any modifications are made using AGSP Enhance.

I understood everything you said, but have no way of figuring that out without a Windows PC to test on. 

I wonder if simply opening the version of the games.ini file that AGSP Enhance puts on the SD card with a text editor, changing one thing within (add a character, remove it, save) if that alone would make the AGSP "recognize" the file and process it?

Link to comment
Share on other sites

29 minutes ago, tjrtech said:

I wonder if simply opening the version of the games.ini file that AGSP Enhance puts on the SD card with a text editor, changing one thing within (add a character, remove it, save) if that alone would make the AGSP "recognize" the file and process it?

Unfortunately not. I have tried that several times without success.  As @Torq surmised, there seems to be some low level attribute to the original games.ini file that the AGSP recognizes. 

Link to comment
Share on other sites

3 hours ago, Handy DG said:

Unfortunately not. I have tried that several times without success.  As @Torq surmised, there seems to be some low level attribute to the original games.ini file that the AGSP recognizes. 

 

I'm fairly convinced the updates to the games.ini file are occurring on an SD card with LOTS of files on it, and are pushing the re-written copy of games.ini beyond the number of FAT entries the AGSP will read.

 

I do NOT think it is the CONTENT of the file that "AGSP Enhance" is writing that is a problem.

 

Here's a way to further test my supposition:

  1. Use AGSP to update your "native" games.ini file.
  2. Make a copy/backup of your AGSP SD Card, with the updated games.ini file included.
  3. Format ("Erase" in Disk Utility on macOS) the SD Card.
  4. Copy JUST your updated/backed-up "AGSP Enhance" games.ini file to /data/games.ini (ensuring the update flag is set).
  5. Then copy the OTHER files/folders back to the SD Care making sure to exclude games.ini.

If that works, the problem is what I think it is.  And if so, it may NOT occur in situations in which there aren't LOTS of files (don't know the precise number) on the SD card in question.

 

Link to comment
Share on other sites

I am looking for something to use with PCUAE when I add it to AGSP, has anyone tried to see if they can use the USB-C Power port in the back as a OTG USB Drive/stick yet, like on the Atari2600 Plus they both use the same specs, if you can then it might be better then using the SD card, because its stuck on exFAT.
What about the 2 USB-C ports at the front are they for power only so power the joysticks only...?

 

I looked at the main game binary yesterday and it uses `/lib/ld-linux-armhf.so.3` that all the other minis use so its a armv7 so like THEC64 Mini/Atari2600 Plus, THEC64, THEA500, THEVIC20, Atari Flashback all use the same libs, if you look at the game binary with HxD the first lib you will see is `ld-linux-armhf.so.3`all the others use it because it comes from originally THEC64 Mini that RGL copied to each machine they made.
The games GUI menu might be able to be run on another system, if you add all its dependences it needs.

Edited by Spanner
Link to comment
Share on other sites

On 4/14/2024 at 4:32 PM, tjrtech said:

AGSP Enhance is a utility that makes it easier to add games to the MyArcade Atari Gamestation Pro (AGSP) whether those games are for the Atari 2600, 5200, 7800, Arcade, Nintendo Gameboy, Sega Genesis, etc.
 

All you need to use AGSP Enhance is access to game ROMs (for the aforementioned consoles and arcade) as well as image files for things like box art, arcade cabinets, screen shots and banner titles. Yes, that all sounds daunting but it really isn't.  Some links to resources and helpful tips are included below.


Much of the curation (finding ROMs and image files) has been done for you. However, rather than load up your AGSP micro SD card with games you do not want, the final steps of curation have been left to you, and they include:
 

1. Editing a "curation list" in order to define which games you wish to import to your AGSP.

 

2. Adding need game roms and images to the appropriate Games subfolder(s) of AGSP Enhance for each game you wish to import. For more on this refer to the "How To Curate Games" section below.


3. Executing agsp_enhance to import your curated games - this is where the magic happens. See "The Magic" section below for details.


AGSP Enhance includes 600 curated ROMs that show up within the existing AGSP menus.  You will need to have added the v1.3c Community Firmware to your AGSP.

Attached is a PDF file with further instructions along with a ZIP file which is the complete v1.0 AGSP Enhance utility:

README.pdfagsp_enhance_v1.0.zip

Error when you run it at start, it still works:
 


C:\Games\agsp_enhance>py agsp_enhance.py enhance
C:\Games\agsp_enhance\agsp_enhance.py:155: SyntaxWarning: invalid escape sequence '\ '
  print("     /\   / ____|/ ____|  __ \             | |")
C:\Games\agsp_enhance\agsp_enhance.py:156: SyntaxWarning: invalid escape sequence '\ '
  print("    /  \ | |  __| (___ | |__) |   ___ _ __ | |__   __ _ _ __   ___ ___")
C:\Games\agsp_enhance\agsp_enhance.py:157: SyntaxWarning: invalid escape sequence '\ '
  print("   / /\ \| | |_ |\___ \|  ___/   / _ \ '_ \| '_ \ / _` | '_ \ / __/ _ \\")
C:\Games\agsp_enhance\agsp_enhance.py:158: SyntaxWarning: invalid escape sequence '\ '
  print("  / ____ \ |__| |____) | |      |  __/ | | | | | | (_| | | | | (_|  __/")
C:\Games\agsp_enhance\agsp_enhance.py:159: SyntaxWarning: invalid escape sequence '\_'
  print(" /_/    \_\_____|_____/|_|       \___|_| |_|_| |_|\__,_|_| |_|\___\___|\n")

 

Link to comment
Share on other sites

On 4/28/2024 at 7:18 PM, Torq said:

 

I'm fairly convinced the updates to the games.ini file are occurring on an SD card with LOTS of files on it, and are pushing the re-written copy of games.ini beyond the number of FAT entries the AGSP will read.

 

I do NOT think it is the CONTENT of the file that "AGSP Enhance" is writing that is a problem.

 

Here's a way to further test my supposition:

  1. Use AGSP to update your "native" games.ini file.
  2. Make a copy/backup of your AGSP SD Card, with the updated games.ini file included.
  3. Format ("Erase" in Disk Utility on macOS) the SD Card.
  4. Copy JUST your updated/backed-up "AGSP Enhance" games.ini file to /data/games.ini (ensuring the update flag is set).
  5. Then copy the OTHER files/folders back to the SD Care making sure to exclude games.ini.

If that works, the problem is what I think it is.  And if so, it may NOT occur in situations in which there aren't LOTS of files (don't know the precise number) on the SD card in question.

 

If it is a games.ini file size issue then that could be understandable... but then, if so, why is it working for me on MacOS?  I am using the same Curated List, with pretty much everything that can be imported imported, so about 600 additional INI entries and it all works for me.

Oh, and my SD card was original formatted as ExFAT... so there is that!

Edited by tjrtech
Link to comment
Share on other sites

59 minutes ago, Spanner said:

Error when you run it at start, it still works:
 


C:\Games\agsp_enhance>py agsp_enhance.py enhance
C:\Games\agsp_enhance\agsp_enhance.py:155: SyntaxWarning: invalid escape sequence '\ '
  print("     /\   / ____|/ ____|  __ \             | |")
C:\Games\agsp_enhance\agsp_enhance.py:156: SyntaxWarning: invalid escape sequence '\ '
  print("    /  \ | |  __| (___ | |__) |   ___ _ __ | |__   __ _ _ __   ___ ___")
C:\Games\agsp_enhance\agsp_enhance.py:157: SyntaxWarning: invalid escape sequence '\ '
  print("   / /\ \| | |_ |\___ \|  ___/   / _ \ '_ \| '_ \ / _` | '_ \ / __/ _ \\")
C:\Games\agsp_enhance\agsp_enhance.py:158: SyntaxWarning: invalid escape sequence '\ '
  print("  / ____ \ |__| |____) | |      |  __/ | | | | | | (_| | | | | (_|  __/")
C:\Games\agsp_enhance\agsp_enhance.py:159: SyntaxWarning: invalid escape sequence '\_'
  print(" /_/    \_\_____|_____/|_|       \___|_| |_|_| |_|\__,_|_| |_|\___\___|\n")

 

Others have seen that invalid escape sequence and running under Python3 seems to fix that.

Link to comment
Share on other sites

24 minutes ago, tjrtech said:

If it is a games.ini file size issue then that could be understandable... but then, if so, why is it working for me on MacOS?  I am using the same Curated List, with pretty much everything that can be imported imported, so about 600 additional INI entries and it all works for me.

Oh, and my SD card was original formatted as ExFAT... so there is that!

I'm not saying it's about the size of the games.ini file size, nor the number of entries in it.

 

It's about how the AGSP reads ExFAT (linearly, in FAT order ... literally the order files were placed on the media), and how ExFat file replacement works across different OSs (create the new FAT entry, before removing the old one, so the new file's FAT entry is later in the list).  If the AGSP has a limit to the number of files it will read, and there are that many (or more) files on the card prior to editing games.ini, the AGSP may simply NOT SEE the new games.ini file at all, as it is now past the number of files it will read.

 

Doing the writes on a different OS means a potentially different way of updating the FAT (Windows might do the create/delete, where macOS does direct-replace, and how Python uses the OS file handling routines can also differ) and can affect where in the FAT the games.ini file shows up.

 

Anyway ... it's just a theory.  I don't have a Windows machine I can test with.  I'm not running AGSPEnhance.  And if you're not familiar with the low-level workings and structures of ExFAT and FATs in general, as well as how different OSs handle them (and/or how the different Python runtimes invoke the OS to make file changes), its not going to make any sense.  

 

And, as such, that just means I'm cluttering up the thread by trying to help with something you may not even be able to address (or may be an entirely different issue) ... so ... I'll stop.  Hope you figure it out!

Link to comment
Share on other sites

It sounds like you talking about how a hard drive works, well FAT is part of it, files that are copied to the hard drive could be at the beginning or middle or the end of the hard drive, that why you can defrag the drive, well older ones so it loads programs quicker cause it moves them to the front the more important programs and one part of a program can be at the beginning and another part of the program at the end for the hard drive so split so takes longer to load it, thats why old drives are slower plus the speed they reads at... :)
Most Minis use FAT32 not exFAT, first of its kind... :) but FAT32 has a 4GB limit of the amount of data it can read in one file.

So is the game binary that reading the SD card mounting it in exFAT, I wounder if it could be hacked to mount it with FAT32, you can use HxD to look at it or ghidra, it finding the right part in the binary then try changing it.

The game binary is the GUI.

 

game

Edited by Spanner
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...