RL tutorial Advanced SearchingEx

From BYOAC New Wiki
Jump to navigation Jump to search

Here are some examples for advanced searches that have been done by real users!

The idea: "What I would like to do is set Romlister to allow all alternating player games and all single player games to go through to the final list."

The solution:

The player is available from controls.ini datafile, but is specified as "alternating=0" or "alternating=1". While it could be possible to come up with a search using this data, the easiest way is to use data from nplayers.ini.

First, you must make sure you have nplayers.ini data in your merged XML input file. (see tutorial on building a merged input file) Then it is a simple matter of pulling in the keywords from the nplayers data and adding it to the end of romlister's -find: window.

At the end of the -find text, add the following:

& ( '2P alt' | '1P' )

In other words, all games that we want must be "2 player alternating" or "1 player". "2P alt" and "1P" is the raw data from nplayers.ini that we are searching for.

It was then noticed that this additional search brought in a few unwanted games, because the text "1P" is occasionally used elsewhere to describe other things. (remember the shorter the search text the more hits you will have.)

So, the search was finally augmented to look like this:

& ( '<nplayers>2P alt</nplayers>' | '<nplayers>1P</nplayers>' )

That forces romlister to examine the exact text used only in the nplayers data section.

Return to ROMLister tutorials