Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: BadFurDay on August 02, 2017, 07:22:19 AM
-
Hi people,
Been trying to suss this out myself but only seem to be able to do this if it matches the words exactly. Basically I have the Amiga WHDLoad collection on my pi, I'd like an AGA logo I have to pop up every time I'm on an AGA based game. I have hidden the brackets in the general menu as this makes things look tidier so this logo will help to distinguish between games that have both ECS and AGA versions. For example the filenames are "James Pond 2" for ECS then "James Pond 2 [AGA]" so if the code could be activating the logo when a romname or title containts [AGA] this would be perfect.
Any help is appreciated.
-
Try this:
http://forum.attractmode.org/index.php?topic=1740.msg12369#msg12369
Look to my post:
UPDATE:
I found an issue in the code "magic-images.nut" ...
So , you have to edit the file to something like:
local tags = fe.game_info(Info.Name, offset).tolower()
//return file_name for region
function region( offset ) {
local supported = [ "aga", "cd32" ... ]
-
Try this:
http://forum.attractmode.org/index.php?topic=1740.msg12369#msg12369
Look to my post:
UPDATE:
I found an issue in the code "magic-images.nut" ...
So , you have to edit the file to something like:
local tags = fe.game_info(Info.Name, offset).tolower()
//return file_name for region
function region( offset ) {
local supported = [ "aga", "cd32" ... ]
Thanks for you help. That has worked but it has one draw back, any games with aga anywhere in he name is making the icon appear. I tried to use "[AGA]" instead but then it stops working, any ideas how to fix this?
-
Sussed it, it doesn't like capitals. I used [aga] and renamed the .png to match and it works a treat. Thanks again.