Linux games

A nice (keyboard based) front end for Arcade / Console game emulators.

Moderator: battlecat

Linux games

Postby General_Faliure » Thu Feb 18, 2016 3:36 pm

Hello.
I seem to be unable to start linux games from wahcade.
I've had this problem before, but it got fixed, but it looks like it's back.
Recently i reinstalled my cab on an SSD, first with the 2013 mahcade and a few days ago with the lasted from github.
I placed the .desktop links to my games in a folder, they start when i click on them, so they work.
Here is the linux inii use:
Code: Select all
### new_emulator.ini (wahcade v0.12) ###

emulator_title                          Linux

### List Generation Settings ###
rom_path                                ~/emulators/linux/symlinks
rom_extension                           
dat_file                               
nms_file                               
catver_ini_file                         
list_generation_method                  rom_folder

### Execution Settings ###
emulator_executable                     
commandline_format                      "[rompath]/[name]"
alt_commandline_format_1               
alt_commandline_format_2               
game_specific_config_path               

### Artwork Locations ###
artwork_1_image_path                    ~/emulators/linux/pics
artwork_2_image_path                   
artwork_3_image_path                   
artwork_4_image_path                   
artwork_5_image_path                   
artwork_6_image_path                   
artwork_7_image_path                   
artwork_8_image_path                   
artwork_9_image_path                   
artwork_10_image_path                   
movie_preview_path                     
movie_artwork_no                        1

### Screen-Saver Settings ###
enable_music_in_screensaver             0
saver_type                              slideshow
movie_path                             
movie_fullscreen                        1
quit_delay                              30
wrapper_executable                     
wrapper_commandline_format              [name]
scr_file                               

### External Application Settings ###
ipc_file_or_path                       
app_1_executable                       
app_1_commandline_format               
app_2_executable                       
app_2_commandline_format               
app_3_executable                       
app_3_commandline_format               
auto_launch_apps                       

### Additional Settings ###
music_path                             
lcd_display_file_path                   
lcd_fe_text                             

### Settings used by MAMEWAH ###
current_list                            0


and here is the wahcade log file:
Code: Select all
[Thu Feb 18 15:21:21 2016]: //======================= NEW LOG RUN =======================//
[Thu Feb 18 15:21:21 2016]: Wah!Cade updating user config files in: /home/mame/.wahcade
[Thu Feb 18 15:21:21 2016]: No custom splash found, loading /usr/local/share/wahcade/pixmaps/wahcade-logo.png
[Thu Feb 18 15:21:21 2016]: [TWITTER] support disabled due to missing options
[Thu Feb 18 15:21:21 2016]: [TWITTER] consumer_key cannot be blank in wahcade.ini, details available at https://dev.twitter.com/
[Thu Feb 18 15:21:21 2016]: [TWITTER] consumer_secret cannot be blank in wahcade.ini, details available at https://dev.twitter.com/
[Thu Feb 18 15:21:21 2016]: [TWITTER] access_key cannot be blank in wahcade.ini, details available at https://dev.twitter.com/
[Thu Feb 18 15:21:21 2016]: [TWITTER] access_key cannot be blank in wahcade.ini, details available at https://dev.twitter.com/
[Thu Feb 18 15:21:22 2016]: Selected platform: M.A.M.E.
[Thu Feb 18 15:21:22 2016]: Created Video gstreamer objects
[Thu Feb 18 15:21:22 2016]: Selected gameslist: All Games
[Thu Feb 18 15:21:22 2016]: Error: Music Path [] does not exist
[Thu Feb 18 15:21:22 2016]: Fullscreen mode
[Thu Feb 18 15:21:54 2016]: Selected platform: Videos
[Thu Feb 18 15:21:54 2016]: Created Video gstreamer objects
[Thu Feb 18 15:21:54 2016]: Selected gameslist: All Games
[Thu Feb 18 15:21:55 2016]: Selected platform: Linux
[Thu Feb 18 15:21:55 2016]: Created Video gstreamer objects
[Thu Feb 18 15:21:55 2016]: Selected gameslist: All Games
[Thu Feb 18 15:22:01 2016]: [LAUNCH] No extension or wildcard passed trying to look up a rom extension for launch
[Thu Feb 18 15:22:01 2016]: [LAUNCH] Setting extension to: desktop
[Thu Feb 18 15:22:01 2016]: [PLUGIN] No plugin found for launcher_desktop
[Thu Feb 18 15:22:01 2016]: Error: Emulator Executable [] does not exist
[Thu Feb 18 15:22:06 2016]: Default, exit mode selected


wahcade doesn't find the emulator executable.
Am i missing something?
My Arcade cab: https://goo.gl/photos/yE1KACHryQjCaaCj7
Core 2 duo 8400 @3600, 4 gig mem, Geforce 9500. Mame, Mess, Daphne, and some more.
Mah!cade
User avatar
General_Faliure
 
Posts: 154
Joined: Sat Mar 20, 2010 12:51 pm
Location: Drunen, Netherlands

Re: Linux games

Postby Zombie » Thu Feb 18, 2016 5:50 pm

The emulator executable isn't the game your running, the emulator is a script I have called run-shortcut.sh that launches a .desktop file created for the program.
Code: Select all
#!/bin/bash -
# workdir=$(cat "$1" | awk -F'=' '/^Path=/ {print $2}')
# workdir=$(sed -n 's,^Path[^/]*,,p' < "$1")
# runapp=$(cat "$1" | awk -F'=' '/^Exec=/ {print $3}')
# runapp=$(sed -n 's,^Exec[^/]*,,p' < "$1")
# pushd $workdir
# $runapp

unset runapp workdir
while read -r line
do case $line in Exec*) runapp=${line#*=};; Path*) workdir=${line#*=};; esac

done < "$1"
# runapp=$(sed -n '/^Exec/s,^[^=]*=,,p' $1);
# workdir=$(sed -n '/^Path/s,^[^=]*=,,p' $1);
cd "$workdir";
$runapp;


Here is an example shortcut.
Code: Select all
[Desktop Entry]
Name=Neverball
Comment=Tilt the floor to roll the ball
Exec=/usr/games/neverball %U
Icon=neverball
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;


This also works for Wine games
Code: Select all
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=wine Jazz2.exe
GenericName[en_US]=Jazz JackRabbit 2
GenericName=
Icon=MameExecutor
MimeType=
Name[en_US]=Jazz Jackrabbit 2
Name=Jazz JackRabbit 2
Path=/opt/var/public/Windows/Games/Jazz2
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=


And DOS Games
Code: Select all
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=dosbox -exit /opt/var/public/DOS/GAMES/GOBMAN/GOBMAN.EXE -conf ~/.dosbox/GOBMAN.conf
GenericName[en_US]=
GenericName=
Icon=exec
MimeType=
Name[en_US]=GobMan
Name=GobMan
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Linux games

Postby General_Faliure » Fri Feb 19, 2016 1:16 pm

I 'll look into it.
In my previous setup i had just pointed wahcade to the .desktop entries, and they just worked.
My Arcade cab: https://goo.gl/photos/yE1KACHryQjCaaCj7
Core 2 duo 8400 @3600, 4 gig mem, Geforce 9500. Mame, Mess, Daphne, and some more.
Mah!cade
User avatar
General_Faliure
 
Posts: 154
Joined: Sat Mar 20, 2010 12:51 pm
Location: Drunen, Netherlands

Re: Linux games

Postby General_Faliure » Fri Feb 19, 2016 2:50 pm

I have found out (again) i had to manually copy the 'plugins' directory to my installation directory. (maybe this should be done automatically?)
Still no luck tough.
Now i get this error:
Code: Select all
Traceback (most recent call last):
  File "/usr/local/share/wahcade/win_main.py", line 711, in on_winMain_key_press
    self.launch_auto_apps_then_game()
  File "/usr/local/share/wahcade/win_main.py", line 1028, in launch_auto_apps_then_game
    self.launch_game(game_cmdline_args)
  File "/usr/local/share/wahcade/win_main.py", line 1132, in launch_game
    result = mod.read_scexec(game_opts['options'])
  File "./plugins/launcher_desktop.py", line 62, in read_scexec
    f = open(scfile.replace('\"',''))
IOError: [Errno 2] Bestand of map bestaat niet: u'/home/mame/emulators/linux/symlinks/goonies'
My Arcade cab: https://goo.gl/photos/yE1KACHryQjCaaCj7
Core 2 duo 8400 @3600, 4 gig mem, Geforce 9500. Mame, Mess, Daphne, and some more.
Mah!cade
User avatar
General_Faliure
 
Posts: 154
Joined: Sat Mar 20, 2010 12:51 pm
Location: Drunen, Netherlands

Re: Linux games

Postby Zombie » Tue Feb 23, 2016 9:19 am

Let me know what solution works
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Linux games

Postby General_Faliure » Wed Mar 02, 2016 2:11 pm

Looks like i got it:
I had to ad "[rompath]/[name].[romext]" to the "command line format".
I also had to manually copy the 'plugins' directory to my installation directory, that doesn't happen automatically when installing, but it's necessary.
Now it works 8)
My Arcade cab: https://goo.gl/photos/yE1KACHryQjCaaCj7
Core 2 duo 8400 @3600, 4 gig mem, Geforce 9500. Mame, Mess, Daphne, and some more.
Mah!cade
User avatar
General_Faliure
 
Posts: 154
Joined: Sat Mar 20, 2010 12:51 pm
Location: Drunen, Netherlands

Re: Linux games

Postby sairuk » Fri Mar 04, 2016 11:00 am

Agreed that should be automatic
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am


Return to Wah!Cade

Who is online

Users browsing this forum: No registered users and 4 guests

cron