Main > Software Forum
HTML5 FrontEnd
arximidis:
Version 2.7 and theme version 2.7.1
A new update for using command line arguments
--- Quote ---In the new version you can pass any parameter to the current loaded page (or any page of your choice, defined in settings.ini)
--- End quote ---
I have included (for the theme) two parameters: rotation and zoom
Usage: If you start the program with this command line HTMLFrontEnd rotation=270 zoom=1.4 then the program will start with a 90CCW degrees rotation and a zoom factor 1.4
If the program is already running, then the orientation and the zoom factor will change, if current loaded page is main.html
(in this case the command will not start a new instance)
ppv:
Finally got around to test it! I likes it a lot!
Three things though:
1. I would like to set the roms selected by .ini also. (I have all my faves in my custom.ini in MAME and would like to be able to choose from that)
2. Add a way to specify the path from snaps and video
3. WAAAAAAAAAAAAAAAAAAAAAAAY down the road, parental control.
I might try and import the AtomicFE layout I am working on now. This FE looks really promising! :applaud:
arximidis:
--- Quote from: ppv on September 05, 2013, 12:20:40 pm ---Finally got around to test it! I likes it a lot!
Three things though:
1. I would like to set the roms selected by .ini also. (I have all my faves in my custom.ini in MAME and would like to be able to choose from that)
2. Add a way to specify the path from snaps and video
3. WAAAAAAAAAAAAAAAAAAAAAAAY down the road, parental control.
......
--- End quote ---
Thanks for trying the software and for your nice words ppv
1. It can be done. Just send me a sample of your .ini file to see how the games are listed and I will add support in the next version (it will be faster to load too)
2. This is already there. If you watch the first video you will notice it (see bellow).
However when I was updating the html code, one small bug got through. I have corrected the problem in the new version of the html theme version 2.7.2 (I hope... ;D because I haven't tested the changes yet).
If you want to see your snaps and videos, here what you have to do. First download the version 2.7.2 of the theme.
Go to the directory HTMLtheme/default640x480/MAME and create a directory with the name snaps (if it does not exist). Copy all your .png snaps there. They must have the same name with the actual rom of the game (meaning the zip file and not the description) Example: if you have the rom 1942.zip the snap must have the name 1942.png
For the videos, go to the directory HTMLtheme/default640x480/MAME and create a directory videos (if it doesn't exist). Copy all your video previews (.avi) there. Again they must have the same name with the roms
3. I have added some sort of parental control to my homemade machine, with a key button. Without the key the machine will not start.
It's a good idea to add parental control to the software too
--- Quote from: ppv on September 05, 2013, 12:20:40 pm ---....
I might try and import the AtomicFE layout I am working on now. This FE looks really promising! :applaud:
--- End quote ---
I would love to see that!!! :)
ppv:
--- Quote from: arximidis on September 06, 2013, 05:03:03 am ---
2. This is already there. [snip
--- End quote ---
What I meant was choosing you own paths! But I know the option is there! ;)
The parental control is to block my autistic kid from playing the more violent games (i.e. MK and their ilk)
Th ini file goes in the FOLDERS folder of the mame dir... This is my custom game list and categories
arximidis:
--- Quote from: ppv on September 06, 2013, 12:11:44 pm ---
What I meant was choosing you own paths! But I know the option is there! ;)
The parental control is to block my autistic kid from playing the more violent games (i.e. MK and their ilk)
Th ini file goes in the FOLDERS folder of the mame dir... This is my custom game list and categories
--- End quote ---
It is possible to add the ability of choosing the snaps/videos directories. For pictures adding the prefix file:/// in front of the path of an image is all you need to do
For example <img src="file:///<full path of image>" /> where <full path of image> could be C:/emulators/mame/snaps/1942.png etc
I will try to add this feature in the next version
For the parental control we may be able to do something in the future
But first I want to add the support for the .ini files, because it will give the ability to create favorite lists etc
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Edit
Especially for the images issue, you can easily modify the code
Go to line 850 of main.html (version 2.7.3) and replace the line
--- Code: ---var tsrc = 'emulators/'+emuArray[iGame-1][0]+'/snaps/' + irom.substr(0, irom.lastIndexOf('.')) + '.png';
--- End code ---
with something like this
--- Code: ---var tsrc = 'file:///<path of snaps directory> + irom.substr(0, irom.lastIndexOf('.')) + '.png';
--- End code ---
where <path of snaps directory> the full path of the directory where your images are stored. E.g. C:/emulators/mame/snaps/ (Note: Don't forget the / at the end)