EMULAB Forum
clrmamepro [English] => clrmame Discussion => Topic started by: Gom on 11 January 2010, 18:05
-
If i put this 'xxx; http://www.xxx.com/%R;' in url.ini,
the results of right click 'www open' on a rom must be
http://www.xxx.com/yyy
but it is http://www.xxxxx.com/yyyzzz
(yyy is the name of the rom selected)
(zzz is the name of the set of the rom selected)
but i want only 'http://www.xxxxx.com/yyy'
how can i do this ?
Where is my mistake ?
please.
Thank you.
-
Well, first of all, be sure what a setname and what a romname is. roms are inside sets. Like pacman(.zip) is a set with let's say bla1.bin and bla2.bin romfiles. So what do you want to open at http://www.xxxx.com then? pacman or bla1/bla2.bin?
clrmame builds the final URL for the site as follows:
prestring + setname + poststring
so 'xxx; http://www.xxx.com/%R;' matches:
xxx = site alias for menu
http://www.xxx.com/%R = pre string
and an empty poststring
the setname is the selected by the clicked entry
So yes, you will end up with http://www.xxxxx.com/bla1.binpacman for the upper example if you clicked on the rom (not the set).
If you want to access 'pacman' you need to use:
xxxx;http://www.xxxxx.com/;
If you want to access 'pacman.zip' you need to use:
xxxx;http://www.xxxxx.com/;.zip
If you want to access the selected rom in the set and assuming the set is not zipped you need to use:
xxxx;http://www.xxxxx.com/;./%R
Note, the setname is always pasted after the prestring and before the poststring.
-
Thank you to reply me.....
but it doesn't work.
the result for xxx;http://www.xxx.com/;./%R
is stil http://www.xxxxx.com/yyyzzz
in fact i must explain you that it is for Manuals Arcade 0.136.dat
like this :
<?xml version="1.0"?>
<datafile>
<header>
<name>Manuals Arcade</name>
<description>Manuals Arcade 0.136</description>
<category>Standard DatFile</category>
<version>0.136</version>
<author>dany69</author>
<date>01-01-2010</date>
<homepage>http://www.mamext.net</homepage>
<clrmamepro forcepacking="unzip"/>
</header>
<game name="arcade">
<description>arcade</description>
<rom name="005.pdf" size="1875064" crc="b53d67bb"/>
<rom name="10yard.pdf" size="3385946" crc="7bd026f1"/>
<rom name="18wheelr.pdf" size="2974867" crc="17359bb4"/>
....
<rom name="zookeep.pdf" size="4407026" crc="75bffd03"/>
<rom name="zwackery.pdf" size="3137315" crc="a098be3a"/>
</game>
</datafile>
The results for the first line is
http://www.xxx.com/005.pdfarcade
Is there a solution for download pdf file without mofify the dat file ?
If i had to modify dat, how can i do ?
-
actually for your example xxx;http://www.xxx.com/;/%R should do the job...(note the missing .)
It would open: http://www.xxx.com/arcade/005.pdf in case you right-clicked the rom-issue 005.pdf line in the set-issue line of 'arcade'.
xxx is the site alias
http://www.xxx.com/ is the prestring
'arcade' is the setname
/%R is the poststring where %R gets replaced with the rom name...
so prestring + setname + poststring results in: http://www.xxx.com/arcade/005.pdf
Don't forget to restart clrmamepro after modifying the urls ini file(s).
-
i'm embarrassed, it doesn't work...
the result is http://www.xxx.com/arcade./10yard.pdf
and i would like http://www.xxx.com/10yard.pdf.
Is it possible ?
-
you can't get http://www.xxx.com/10yard.pdf
since it's lacking the setname. Coming from your dat, the setname is 'arcade' <game name="arcade">
The setname is always pasted after the prestring and before the poststring.
I also wonder why it creates http://www.xxx.com/arcade./10yard.pdf for you.
In detail I wonder where the "." after 'arcade' comes from if you used xxx;http://www.xxx.com/;/%R
There is no "." in there (unless you used a new dat where the setname is "arcade."
-
Thank you
-
Well, your request can be done if I change the url functionality a bit to support the common variables (%r, %s etc...) so you don't have a pre/post string anymore but a simple url with placeholders....then you'd be able to not specify a setname...
I will think about it.