So, here's a tool designed to make it easy to manage PiPlay from a Picade (mine's a maxi).
I mean, i really don't want a keyboard using a precious usb port when i could manage with the Picade's pseudo keyboard ;) That usb port could then be used by a dongle, which could host the roms… :) And well, there are those minor annoyances, like sound, network login, going through configuration files after a fresh install… Doing this multiple times sounds super boring, should make it painless. So that's it! ;)
« Quick Start »
Login on the Piplay raspberry, open a terminal, then : - download latest version $ wget -N http://repo.lateo.net/picade-piplay-setup - install it $ sudo ./picade-piplay-setup -U - make sure the tool's version matches a tested PiPlay's one. Well, that's if you wan't to play it safe ; warriors should obviously overlook this step and hope for a failure. $ sudo picade-piplay -v - use it $ sudo picade-piplay
Note : the tool creates backups of overwritten files.
I'll write more stuff so that the following page may look like a proper user guide. Well, i'm a lazy one so it will happen when it happens. http://repo.lateo.net/ (then click the button mentionning RasPi stuff)
Note : Well, i'm french so… google translate may be your friend there :-p
Default actions are triggered by pushing a picade's button 3 times, then the «enter/start» button (front-left button). just have a look at the scripts located at /home/pi/bin/ Current actions — you obviously have to be at shell prompt : push «escape» button (left panel button) : - «ccc» to start PiPlay's GUI ; - «CCC» to start/stop Piplay's web ui - «xxx» and «XXX» will let you decide wheather you use the usb dongle as the source of your roms or not, if it should be mounted or not - «vvv» to reboot, «VVV» to halt - «WWW» to "update/rebuild" your picade-piplay config : forget any change you've done to the files provided (if any) and pick the latest stuff from the repo.
If your Picade's a Mini you may have to create symlinks of those with names containing characters that you can use using the mini's buttons. easy. No you aren't limited to 3 chars, and no you don't have to use only one letter. It's my choice and it's easy enough for the little one using the picade beside me ;)
Note : i'm interested in knowing what characters you can use, let me know so i can provide a better default "picade mini actions layout" out of the box.
Note : i'm still using Piplay 0.8.0beta1 atm, so you may encounter weird issues if you're running a different version.
Finally : i'm interested by your "ultimate" config files too, since mine are "done fast", somehow doing the job ok.
i'm quite pleased with my last "hacks" of pmutil.py & mainscene.py : - Sound volume shown on piplay's main screen top left («Volume: xx%») - One picade button for volume up, one for volume down (currently «c» is vol up and «v» is vol down).
Another minor enhencement : no more error stating that wlan0 (or eth0) doesn't exist.
Sure. Beware, the code probably looks really awfull to a pro coder ^^'
http://repo.lateo.net/picade/piplay/ then «hacks» folder. be sure to set your browser's encoding to utf8 for easy reading since i'm using some non-ascii chars here and there.
Various stuff done since first post : * let's save some ressources - web ui disabled by default * let's get rid of those errors/warnings - xboxdrv load disabled by default ("xbox pad not found") - "wlan0 not found" if you're not using wifi / "eth0 not found" in case you're using Pi model A * hostname "automagically" set to «picade» * added test : is your Pi overclocked or not? if not, you'll get an information message pointing out raspi-config tool. * volume management from PiPlay's menu (as stated in previous posts)
Changes you will notice: * «www» to start/stop Piplay's web ui from terminal (previously «CCC» : «www» sounds more logical imho). * removed usb dongle management (see below) * «xxx» to start xboxdrv from terminal * your PiPlay menu will automatically be extended (without messing with your own modifications to config.yaml) - update picade-piplay tool - stop/start web ui - start xboxdrv
So, why did i remove the usb dongle stuff? -> Yet Another Boring SD Card Corruption (while playing around with mame artwork & stuff). - My point is : let's use the usb dongle for the whole system, not only roms (you're obviously free to do so or not) to help avoid those file system corruptions. - I also realized that "non-linux" guys didn't really got the "mount over existing filetree" stuff, and that it could be a pain to create the needed filetree on the dongle. Logical decision : let's remove it. You can still get those scripts by browsing the "old" dir from my repo, if you want to.
Lastly, i'm thinking about providing (almost) fully configured Picade friendly PiPlay 0.8.0-release disk images ; don't know if my web host will be ok with it tho, since i'm already using a lot of server ressources for super cheap ^^' Would some of you be interested or not? (= is it worth arguing with my web host?)
edit: Just noticed that you can only use «w» from the picade if your configured keyboard layout is «azerty» ; if you're using the default «qwerty» layout, «w» is, in fact, «z». Will have to do something about this…
Added: - some images for extended menu items - basic key mapping for dgen & fba (and small changes to snes & mame4all so that it works ok with the default qwerty layout --- please dont change the default keyboard layout or you *will* have issues). [update : added pcsx config file] [update : all current config files updated to match mame4all default start button («1», aka "front right button") ; since it is a pain to change mame4all keys from the picade -- without a keyboard connected to the Pi-- and easy to change it for others]
Notes about key mapping config files : * my current decisions concerning buttons mapping : - for arcade machines, use the 4 top buttons - for home consoles, use the 4 buttons on the left in a similar way than it would be using the machine's pad main buttons ; the other 4 buttons may be used to map additional pad buttons such as top-left/top-right triggers.
* If you modify a config file, your changes shouldn't be overwritten by the picade-piplay tool as long as : - you don't delete the backup created by it (well, as long as there is a file with that name, eg "mame.cfg.backup") - you dont use the « -u » (repair/overwrite/overlook arything and just give me the last version of everything) option, aka « picade-piplay -u » - i do not provide a new version of the config file... so yeah, the sooner we have satisfying/stable config files, the better (feedback needed here). In the meantime, consider overwriting the backup file with your own modified config file to be safe. [done] Will soon remove the « -u » option from the added menu item.
Added some "doc" at http://repo.lateo.net/ Look for provided buttons mapping at the end of the picade page.
MAME4ALL default untouched atm, yet unsure if i should provide a custom ingame config or not. If custom, it will be for picade maxi only (unless i receive one fit for picade mini) but won't be default.
try using $ ZZZZZ script. if it's not too old a version that should mostly be it (sys upgrade + firmware upgrade + piplay-menu pulled from git) if it's an old version, try $ sudo picade-piplay -U && sudo picade-piplay -u && ZZZZZ