Rom2Xlobby "create your roms databases" www

Xlobby plugin development

Postby dgemily on Sat Oct 01, 2005 1:33 am

Naylia wrote:Hey, is anyone else having issues sorting their databases? I have a MAME and NES database and neither sort propperly. Doesn't matter if i do sortdisplay, sorttitle, sortname. None of them will put things in alphabetical order. Dont' really want to do a manual sort. Any ideas?


should be ok now ;)

http://france.xlobby.com/emulation/rom2xlobby.zip

( you need only the templates)
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby Naylia on Sun Oct 02, 2005 10:10 pm

sweet! thanks!
Naylia
 
Posts: 530
Joined: Tue Oct 19, 2004 7:50 pm
Location: Boston, MA

Postby rika on Wed Oct 05, 2005 8:08 am

Is there any easy way to exclude the .zip in the database for mame.
I run advancemame and it would not take the .zip in the command line
I could delete it manually in the database but i have over 3000 roms...

Rika
rika
 
Posts: 401
Joined: Fri Apr 02, 2004 5:43 am
Location: Sweden

Postby dgemily on Wed Oct 05, 2005 10:13 am

rika wrote:Is there any easy way to exclude the .zip in the database for mame.
I run advancemame and it would not take the .zip in the command line
I could delete it manually in the database but i have over 3000 roms...

Rika


Which command line (exactly) do you have to use to launch your roms with advancemame ?
Is it le path without the extension .zip ???
you can specify an other field than "<parameter>" and use a variable like :
Code: Select all
yourromspath\%mame>name%
or only
Code: Select all
%mame>name%
if you don't need the full path ( I think is the field "name" but I'm not sure, I'm not at home right now... try with "name" or "title")

anyway, you can also use a search and replace on
Code: Select all
.zip</parameter>
by
Code: Select all
</parameter>


later
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby rika on Wed Oct 05, 2005 10:49 am

Thanks for helping me out here.
If i use argument: %mame>parameter% for metalslug 3 i get "Mslug3.zip" sent as argument to advancemame. (works with ordinary mame)
If i use %mame>name% (or title) i get "Metal Slug 3" what i want is just the "Mslug3" with out .zip
Search and replace is a good tip, but then i have to do this everytime i add an new rom.
Thanks
Rika
rika
 
Posts: 401
Joined: Fri Apr 02, 2004 5:43 am
Location: Sweden

Postby Naylia on Wed Oct 05, 2005 11:00 am

I can't check my pc right now, but didn't there used to be a %mame>rom% variable or some such that has what rika's looking for?
Naylia
 
Posts: 530
Joined: Tue Oct 19, 2004 7:50 pm
Location: Boston, MA

Postby dgemily on Wed Oct 05, 2005 11:39 am

ok, so edit mametemplate.tpl and change contents by this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<database>
  <sortorder>sorttitle</sortorder>
  <sortable>
     <sort>developer</sort>
     <sort>sorttitle</sort>
     <sort>genre</sort>
     <sort>mamegenre</sort>
     <sort>platform</sort>
     <sort>year</sort>
     <sort>name</sort>
     <sort>rating</sort>
     <sort>filename</sort>
  </sortable>
  <template/>
  <paths>
     <path/>
  </paths>
  <item>
     <parameter>$$ITEM_SIZE</parameter>
     <coverart>$$ITEM_PICTUREFILENAME</coverart>
     <display>$$ITEM_TRANSLATEDTITLE</display>
     <information>
        <title>$$ITEM_TRANSLATEDTITLE</title>
        <name>$$ITEM_ORIGINALTITLE</name>
        <platform>$$ITEM_COUNTRY</platform>
        <plot>$$ITEM_DESCRIPTION</plot>
        <year>$$ITEM_YEAR</year>
        <URL>$$ITEM_URL</URL>
        <genre>$$ITEM_CATEGORY</genre>
        <driver>$$ITEM_TYPE</driver>
        <rating>$$ITEM_RATING</rating>
        <mamegenre>$$ITEM_VIDEOFORMAT</mamegenre>
        <developer>$$ITEM_DIRECTOR</developer>
        <comments>$$ITEM_COMMENTS</comments>
        <filename>$$ITEM_SOURCE</filename>
     </information>
  </item>
</database>


create a new time your database using Rom2Xlobby with the new template. and use as variable %mame>filename%
that should work but I can't confirm it....

ps: to imform you, I only add :
Code: Select all
<filename>$$ITEM_SOURCE</filename>
and
Code: Select all
<sort>filename</sort>



later
Last edited by dgemily on Wed Oct 05, 2005 11:41 am, edited 1 time in total.
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby rika on Wed Oct 05, 2005 11:40 am

Ok, search and replace works, but not as i like....
veriable %mame>parameter% for metalslug 3 dont give Mslug3 as i want it gives "C:\mame\roms\Mslug3" and thats no good as agument for advancemame (can´t find a game with the name C:\mame\roms\Mslug3)
Naylia thanks but there is no %mame>rom% variable in the mame database. :cry:
Hmm... maby one more search and replace that takes away C:\mame\roms\ can work. Yes i will try that...
Rika
rika
 
Posts: 401
Joined: Fri Apr 02, 2004 5:43 am
Location: Sweden

Postby dgemily on Wed Oct 05, 2005 11:43 am

;) look at my last post, I posted just before you :wink:

use as variable :
Code: Select all
%mame>filename%

or
Code: Select all
C:\mame\roms\%mame>filename%


later
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby rika on Wed Oct 05, 2005 12:05 pm

dgemily, your to fast for me :lol:
Ok, thanks for all the help.
I´v got it to work if i firts search and replace the zip, then replace the C:\mame\roms\ . This give me "Mslug3" as parameter.
I can´t use the whole parameter "C:\mame\roms\Mslug3.zip" just the Mslug3.
I will try to change the code, seams a little bit easyer :wink:

Thanks allot!!
Rika
rika
 
Posts: 401
Joined: Fri Apr 02, 2004 5:43 am
Location: Sweden

Postby dgemily on Wed Oct 05, 2005 12:11 pm

yep, let me know how it works...
if it's working well, I will upload it into Ron2Xlobby for everybody

later
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby rika on Wed Oct 05, 2005 12:31 pm

:D code works greate!!!! :D
with advancemame you can do sooo much more, dual mouse, ps2 lightguns and so on...

Thanks!!!!

Rika
rika
 
Posts: 401
Joined: Fri Apr 02, 2004 5:43 am
Location: Sweden

Postby dgemily on Wed Oct 05, 2005 1:00 pm

ok, I will upload the template ;)
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby Naylia on Wed Oct 05, 2005 1:29 pm

I go so excited by all this that I hit up Retrozone the other day for a original NES controller modded with USB, can wait to rip it up in SuperC. Contemplating getting an SNES controller also. Actually I really want to get two of each, and maybe N64 if I can get Goldeneye to work...have to look for that.
Naylia
 
Posts: 530
Joined: Tue Oct 19, 2004 7:50 pm
Location: Boston, MA

Postby Colby on Wed Oct 05, 2005 9:14 pm

Naylia, why get so many controllers? for nostalgia sake? I use my xbox controllers with a usb cord. There are more than enough buttons (10, 2 thumbsticks, and a D-pad) on the xbox controller to map for any previous generations of systems.
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

PreviousNext