Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news


  

Author Topic: [SOLVED] Layout for Other Emulators: Definables with long names  (Read 959 times)

0 Members and 1 Guest are viewing this topic.

TheElectricMonk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 28
  • I want to build my own arcade controls!
[SOLVED] Layout for Other Emulators: Definables with long names
« on: September 17, 2017, 04:11:16 am »
I've got a problem using definables in my layout.

This is not a MAME layout, but for another emulator (WinApe for Amstrad CPC), and the ROMs are links (.lnk) leading to batch files (.bat), because I had to set up each game separately.

I've already used the Snaps (the gameplay screen), Marquee (a poster for each game in the background) and CPanel fields (a graphic of a post-it note with additional info for some games) and would like to use an additional definable field (to show individual controls for some games).
The problem is that the only game info I can use for the definable is the ROM name. In other emulators where the ROM is called with an emulator exe file, that's easy: The rom is simply called "Tetris" for example, or "Super Mario Bros".

In this example however, the ROM called by MALA is a lnk file ("f:\roms\amstrad cpc\Live and Let Die.lnk") leading to "E:\emulators\Amstrad CPC\winape\!liveandletdie.bat".
So when I click on "Meta game info", the ROM name isn't "Live and Let Die", but displays as "E:\emulators\Amstrad CPC\winape\!liveandletdie.bat". Obviously, I can't use that as a file name for my definable graphics.

Now I've read somewhere that "unusable characters get converted into lowerscores". I've tried several variatons of
E__emulators_Amstrad_CPC_winape_!liveandletdie.png or
E__emulators_Amstrad CPC_winape_!liveandletdie.png or
E_emulators_Amstrad_CPC_winape_!liveandletdie.png or
E__emulators_Amstrad CPC_winape_!liveandletdie.png,
but no luck.
Am I even on the right track with this, or am I going about this completely the wrong way?

Or is it impossible to use definables if the ROM name has such long drive and directory infos in it?

Or do the png graphics need to be in the same directory as the links, i.e. in E:\emulators\Amstrad CPC\winape with the filename !liveandletdie.png ?

Thanks for your help!
« Last Edit: September 19, 2017, 05:38:03 pm by TheElectricMonk »

bmanbdaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • I want to build my own arcade controls!
Re: Layout for Other Emulators: Definables with long names
« Reply #1 on: September 18, 2017, 10:20:42 pm »
Use BAT files instead of LNK to preserve the rom name.

TheElectricMonk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 28
  • I want to build my own arcade controls!
Re: Layout for Other Emulators: Definables with long names
« Reply #2 on: September 19, 2017, 05:37:39 pm »
Argh. So simple! Thank you!  :applaud:

  
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31