Main > Software Forum

Monitor Orientation Filter?

<< < (3/4) > >>

u_rebelscum:

--- Quote from: Havok on December 22, 2006, 12:52:33 pm ---
--- Quote from: NOP on December 21, 2006, 03:38:16 pm ---Interesting.
Can you give me the details on what the xml file does for non-runable games? 
I'd be happy to add a -working or something if it can be isolated down to runable/non-runable in some obvious way, funky or not.

--- End quote ---

The runnable status is not contained within the <game name="x"> </game> section for some odd reason. Near the end of the file, if references each game that is not runnable, for example:

<game runnable="no" name="cpzn1" sourcefile="zn.c">
      <description>ZN1</description>
      <year>1995</year>
      <manufacturer>Sony/Capcom</manufacturer>
      <rom name="coh-1000c.353" size="524288" crc="50033af6" sha1="486d92ff6c7f1e54f8e0ef41cd9116eca0e10e1a" region="user1" offset="0"/>
   </game>

And then continues to list other not runnable games. It does not list all the games, so it appears that if one of these entries is not present for a particular game, Mame assumes the game is runnable.

--- End quote ---

If you look at listxml's DTD, the default is runnable="yes" (and there's only two valid options, yes or no):


--- Code: ---<!ATTLIST game runnable (yes|no) "yes">
--- End code ---

So basically, xml parsers should see all games as runnable, unless it specifically states runnable="no", as in the example you posted.

edit: added dropped verb

NOP:

--- Quote from: Havok on December 22, 2006, 12:52:33 pm ---The runnable status is not contained within the <game name="x"> </game> section for some odd reason. Near the end of the file, if references each game that is not runnable, for example:

<game runnable="no" name="cpzn1" sourcefile="zn.c">
      <description>ZN1</description>
      <year>1995</year>
      <manufacturer>Sony/Capcom</manufacturer>
      <rom name="coh-1000c.353" size="524288" crc="50033af6" sha1="486d92ff6c7f1e54f8e0ef41cd9116eca0e10e1a" region="user1" offset="0"/>
   </game>

And then continues to list other not runnable games. It does not list all the games, so it appears that if one of these entries is not present for a particular game, Mame assumes the game is runnable.

While you are looking at modifying the program, could you add a switch to output the game description, instead of just the rom name?

Thanks!
 

--- End quote ---

Sorry for the delay-was out for the holidays. 

Now that I'm back I'll take a look at this and see if there's a way to get that data out-it may require 2 passes through the output xml files, but shouldn't be that big of a deal.

Adding a game description output option should be a breeze.  I likewise want to add a batch file creation feature to the -r option so that you can easily create a batch file to copy all the roms you just filtered.

-jeff!

Havok:
Thanks - this is a great little utility that helps to not only create custom game lists, but can also reduce the storage requirements. Your work is definitely appreciated!

 :applaud:

rockin_rick:
I tried -find:runnable and it didn't find any even though it is in-between the <game></game> tags.  Perhaps your program doesn't search the <game> field until it reads the name="xxxxxx" (the runnable="no" is before the name="xxxxxx")?

Upon further investigation, the games with runnable="no" are always excluded from results, even if there is matches in them or not.  I suppose that is fine and what most uses of the program would want, but for flexibility, perhaps being able to search those <game> tags would be nice...  On the other hand, this would lead to an extra 'filtering' step to remove those most of the time though, such as:

rl -in:allgames.xml -out:removenonworking.xml -find:-runnable="no"

Right now, with the current functionality of rl, it is implied.

It appears that the games marked runnable="no" at the end of the mame generated xml are not duplicated at the end of the file, rather all games that are not runnable are listed at the end.  They also have incomplete data, such as no input data.

FWIW

Rick

NOP:
yeah RL is currently only looking at the the stuff inbetween the tags:

<game name="xyz">
and
</game>

The runable stuff is labeled as
<game runable="no" name="xyz">
</game>

so RL isn't going to locate the runable stuff.  This is probably going to be the hardest change to implement into the code.  Since I didn't want to have to read the entire xml file into memory at once, and I don't keep a running list of game names that have been selected, having the runable tag at the end of the file is going to force me to come up with something creative or perhaps something band-aidy.  Not sure which way it'll come out yet.   ;D

-jeff!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version