Page 1 of 1

(Installation) What did I do right / wrong?

PostPosted: Fri Oct 10, 2014 6:01 pm
by Doofus
Long story short, wahcade was not launching games. It would simply launch mame into it's (mame's) internal menu. I suspected that the rom name wasn't being supplied to the emulator because the emulator.log file only showed:

Code: Select all
Command from Wah!Cade is:
  /usr/games/mame -nowindow -skip_gameinfo -joystick

Now, I'm no Py guy, but I managed to get my particular installation fixed by changing:

Code: Select all
#set command line
        cmd = '%s %s' % (emulator_executable, game_opts['options'])

Code: Select all
#set command line
        cmd = '%s %s %s' % (emulator_executable, game_opts['options'], rom)

in the file

So, I guess my question is... what did I do wrong in the overall installation and how can I better help the community by submitting this as a bug fix? I used the installation instructions found at ... stallation and used "bzr branch lp:wahcade"

Thanks in advance, and thank you to the development team for contributing their own private time to keeping this afloat.

Re: (Installation) What did I do right / wrong?

PostPosted: Fri Oct 10, 2014 10:52 pm
by sairuk
What does you ini file look like for mame? Did you pass the [name] item on the launch opts

my launch command line for mame (adding your opts also)
Code: Select all
### Execution Settings ###
emulator_executable                     /usr/games/mame
commandline_format                      -nowindow -skip_gameinfo -joystick [name]

I see no such issue here with commit 152 from bzr which I currently have installed, am also happy to see you were willing to dig through the code to troubleshoot the problem.

Re: (Installation) What did I do right / wrong?

PostPosted: Sat Oct 11, 2014 11:22 pm
by Doofus
Thanks for the quick reply!

Indeed, that's what happened. I followed the instructions here: , but veered off course and set the application parameters in there, but omitted the [name] field. Since we're writing this off as user configuration, which it is, perhaps you might want to add a validation check on that field, so when it is not blank, that it requires [name] ? Just a suggestion.

Thanks again for your help!

Re: (Installation) What did I do right / wrong?

PostPosted: Sun Oct 12, 2014 1:28 am
by sairuk
Thanks for the suggestion, my initial thought is that the [name] code is not guaranteed in all configs, nor is anything really. This is what gives Wah!Cade it's flexibility. Therefore there is some ownness on the users to have a base understanding of their required outcomes. Whilst effort has been made by the userbase to simplify the setup (Wah!Ki, ini thread, pre-packages inis), Wah!Cade is far from a turnkey solution (as some may want it). This of course limits the adoption somewhat of the project; but in that, for those that persevere the satisfaction is unmatched ;)

Will think on your suggestion some more whilst i get back to playing around with the code.

Re: (Installation) What did I do right / wrong?

PostPosted: Sun Oct 12, 2014 10:19 am
by Zombie
What about implementing support for RPM Style Macros for path names in name? Like:

%{_bindir} %{_exec_prefix}/bin /usr/bin %{_exec_prefix}/bin
%{_datadir} /usr/share /usr/share %{prefix}/share
%{_libdir} %{_exec_prefix}/%{_lib} /usr/lib %{_exec_prefix}/%{_lib}
%{_libexecdir} %{_exec_prefix}/libexec /usr/lib %{_exec_prefix}/libexec