Linux Play Flash (SWF) Games w/Gnash?
#1
I'd like to know if it's possible to launch Gnash to play Adobe/Macromedia SWF (game) files. I thought I could use Advanced Launcher for this, but I've been unsuccessful in creating a launcher that works. I think it's mainly because I don't know what "argument" I'm supposed to use. None of the tutorials I've run across deal with SWF files and I didn't know what game system I am supposed to be trying to emulate anyway (I have zero experience with game system emulation on KODI).

I have had great success running SWF game files using the Chrome Launcher addon and making [shortcut-like].link files that point to an HTML file, but this opens each SWF in a webpage. I can certainly keep doing it this way if there is no other option. I was just hoping I could use a stand-alone Flash player such as Gnash as I have several hundred SWF files and am trying to get out of making a separate webpage for each one.
Reply
#2
Play Flash (SWF) Games locally with Chrome Launcher

Logout of KODI and into Lubuntu

Install Leafpad [sudo apt-get install leafpad] or some other text editor.

Make a folder called Flash-Games (spaces are not allowed in HTML, so use dashes or underscores). Make a folder inside of that called The-Game. Inside that folder add The-Game.swf and a small "thumbnail" picture of it (PNG or JPG or GIF). Then right-click an empty space in The-Game folder and choose Create New... Empty File. Name it The-Game.html

Below is a template. To use with a different SWF; change the name (Another Game), the file name (another-game.swf) and the size (650x450 or whatnot) of the SWF when played.

Copy and paste the following in the file you created called The-Game.html and Save:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>The Game</title>
</head>
<body>
<center>
<h1>The Game</h1>
<object classid="clsidBig Grin27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="600" height="400">
<param name="movie" value="The-Game.swf">
<param name="quality" value="high">
<embed src="The-Game.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="600" height="400">
</object>
</center>
</body>
</html>

Notes:
1. The SWF files can't have spaces in them; rename any SWF file utilizing dashes or underscores.
2. You need the width and height of the Flash Game while open/playing. Either measure with a screen ruler while open, or install Gnash [sudo apt-get install gnash], open the SWF in Gnash and then go to File > Properties. The resolution is the Real dimensions and/or Rendered dimensions (should be the same set of numbers).
3. The <param name= and <embed src= is the name of The-Game.swf repeated

View > Show Hidden (or Ctrl+H) in home and go to .kodi/userdata/addon_data/plugin.program.chrome.launcher-sites

Open one of the existing [shortcut-like].link files in Leafpad and Save As... (spaces *are* allowed for this) The Game.link

Below is a template. The only text that needs to change is the folder name (Another-Game), the html file name (another-game.html) and the thumbnail (Another-Game.png).

Change the text of this file to reflect The Game and Save.

title=The Game
url=file:///home/yourusername/Flash-Games/The-Game/The-Game.html
thumb=/home/yourusername/Flash-Games/The-Game/The-Game.png
stopPlayback=no
kiosk=yes

Notes:
1. The url line points to a local web page instead of one on the Internet, hence the file:///
2. The stopPlayback and kiosk choices are up to you

Logout of Lubuntu and into KODI

The shortcut to The Game will appear under Chrome Launcher.
Reply

Logout Mark Read Team Forum Stats Members Help
Play Flash (SWF) Games w/Gnash?0