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
Lightguns Arcade1Up Try the site in https mode Site News

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

  

Author Topic: Want to use ListGen to create a batch file to move roms  (Read 1883 times)

0 Members and 1 Guest are viewing this topic.

edge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 370
  • Last login:May 08, 2025, 09:08:47 am
  • AttractMode and GroovyArcade rock!
Want to use ListGen to create a batch file to move roms
« on: August 13, 2006, 08:36:39 pm »
I am working on a dedicated trackball cabinet.  I am trying to use ListGen (thanks Budda!) to extract the rom names of the trackball games only -- and create a batch file that could move those roms from one directory to another.

When I run ListGen (with moviebatch, mamewah, etc as frontend variable), I get the proper list of trackball roms, but I cannot modify the output file.  Is there a way to manipulate the output format without modifying the source code?  I tried modifying the templates, but the readme said that those are obsolete.


filter.sql
Code: [Select]
select * from gamedata where control= 'trackball';

listgen.ini
Code: [Select]
rompath ..\mame_roms\roms
mamepath ..\mame
frontend moviebatch
verbose 0
silent 0
audit_roms 0
use_clones 1
unique 0
us_version_priority 0
world_version_priority 0
strip_description 0
japan_version_priority -1
reuse_mame_data 0
output makemovies.bat
force_uppercase_romnames 0
skip_final_step 1
boundary_path .
boundary_file ssf.txt

Thanks!
« Last Edit: August 15, 2006, 11:11:03 am by edge »

edge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 370
  • Last login:May 08, 2025, 09:08:47 am
  • AttractMode and GroovyArcade rock!
Re: Want to use ListGen to create a batch file to move roms
« Reply #1 on: August 15, 2006, 11:11:46 am »
I hate to bump but...

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Want to use ListGen to create a batch file to move roms
« Reply #2 on: August 15, 2006, 01:37:08 pm »
Can't exactly help you with ListGen, but I can point you to another utility that might be able to help:

http://forum.arcadecontrols.com/index.php?topic=55636.0

This uses MAME's xml file output that you can parse through and keep isolating games that you're interested in, then a final pass with a -r on the command line will dump out only the rom names.  You should be able to batch file that final output fairly easily.

as the author of the above util, I am also available for tech support. 

-jeff!

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: Want to use ListGen to create a batch file to move roms
« Reply #3 on: August 15, 2006, 04:11:33 pm »
I'm sorry I didn't see your post earlier.

You can change the text from within your filter.sql:

Code: [Select]
.separator ' '
select '@call batch1',romname from gamedata where control='trackball';

Then in batch1.bat you move the rom from folder to folder: (foo to bar in this case)

Code: [Select]
move foo\%1.zip bar\%1.zip

Please PM me if you have further questions.



I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

edge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 370
  • Last login:May 08, 2025, 09:08:47 am
  • AttractMode and GroovyArcade rock!
Re: Want to use ListGen to create a batch file to move roms
« Reply #4 on: August 15, 2006, 06:14:18 pm »
Thanks, Budda and NOP.  I will try both out tonight.

edge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 370
  • Last login:May 08, 2025, 09:08:47 am
  • AttractMode and GroovyArcade rock!
Re: Want to use ListGen to create a batch file to move roms
« Reply #5 on: August 19, 2006, 12:12:18 pm »
Budda / NOP,
I finally had some time to play around with your utilities.  Thank you both!

I was able to run both successfully, extracting the trackball games out into a textfile.

Comparing the 2 output results, I noticed a difference:
ListGen extracted 169 roms.
RL extracted 190 roms.

The 21 roms that differ are:
borntofi
cabalbl
combasc
combascb
dcheese
gtg
gtg2j
kick
kicka
peggle
pegglet
rampartj
ramprt2p
tehkanwc
trackflc
trackfld
trog
trog3
trogp
trogpa6
wc90t

From that list, can you tell why those extra 21 roms were pulled by RL? 


Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: Want to use ListGen to create a batch file to move roms
« Reply #6 on: August 19, 2006, 10:11:26 pm »
Budda / NOP,
I finally had some time to play around with your utilities.  Thank you both!

I was able to run both successfully, extracting the trackball games out into a textfile.

Comparing the 2 output results, I noticed a difference:
ListGen extracted 169 roms.
RL extracted 190 roms.

The 21 roms that differ are:
borntofi
cabalbl
combasc
combascb
dcheese
gtg
gtg2j
kick
kicka
peggle
pegglet
rampartj
ramprt2p
tehkanwc
trackflc
trackfld
trog
trog3
trogp
trogpa6
wc90t

From that list, can you tell why those extra 21 roms were pulled by RL? 



It looks like ListGen will only pick games where the first control is "trackball". ListGen was written when there was only one possible value for control. Now, of course, that doesn't apply, so ListGen needs a revision.

borntofi - trackball=second control
cabalbl - not a trackball game according to v0.107 listxml
combasc - not a trackball game
combascb - not a trackball game
dcheese - trackball = first control, this should have made the list (?)
gtg - not a trackball game according to listxml - someone should submit a code change
gtg2j - not a trackball game
kick - not a trackball game
kicka - not a trackball game
peggle - not a trackball game
pegglet - not a trackball game according to listxml
rampartj - not a trackball game
pamprt2p - not a trackball game
tehkanwc - trackball = second control
trackflc - not a trackball game
trackfld - not a trackball game
trog - not a trackball game
trog3 - not a trackball game
trogp - not a trackball game
trogpa6 - not a trackball game
wc90t - not a trackball game

This example illustrates the importance of the controls.dat project.

HTH,
Buddabing
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

Tilzs

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:February 16, 2011, 10:41:56 am
  • Neat
    • Cocktail Arcade
Re: Want to use ListGen to create a batch file to move roms
« Reply #7 on: August 19, 2006, 10:22:07 pm »
I wrote a perl script to move roms out that I don't have controls for. Trackball was one of them
According to listxml this is the list of them

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Want to use ListGen to create a batch file to move roms
« Reply #8 on: August 23, 2006, 04:37:41 pm »
yep, this is certainly a case of garbage in:garbage out


Quote
pegglet - not a trackball game according to listxml

Here's the XML (again, this is my working copy from mame103)

   <game name="pegglet" cloneof="peggle" romof="peggle">
      <description>Peggle (Trackball, v1.0)</description>
      <year>1991</year>
      <manufacturer>Strata/Incredible Technologies</manufacturer>
      <rom name="trakball.u5" size="65536" crc="d2694868" sha1="9945a308550c9d89a647d80257e3ab14f793ac6f" region="cpu1" offset="4000"/>
.
.
.
      <video screen="raster" orientation="vertical" width="240" height="350" aspectx="3" aspecty="4" refresh="60.000000"/>
      <sound channels="1"/>
      <input players="1" control="dial" coins="3" service="yes"/>
      <driver status="good" color="good" sound="good" palettesize="256"/>
   </game>


RL will find anything between <game> and </game> and trackball obviously shows up there, even though it doesn't really seem like it should.

You could change the search criteria to  "control=dial"  (RL ignores quotes) to clean up some of the false positives.


Quote
rampartj - not a trackball game
pamprt2p - not a trackball game
trackflc - not a trackball game
trackfld - not a trackball game
trog - not a trackball game
trog3 - not a trackball game
trogp - not a trackball game
trogpa6 - not a trackball game

These didn't show up when I ran a search for "trackball" 
Again, I'm using an older 103 xml file, which may explain it, but it seems weird that the data would get worse as the revision incremented.