View Single Post
Old 11-15-2012, 06:34 AM   #9
kaneorotar
Enthusiast
kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.kaneorotar for a long time would go to bed early.
 
Posts: 32
Karma: 17678
Join Date: Aug 2011
Device: Kindle 3
Works fine on K3 with both Apache httpd and "python -m SimpleHTTPServer 8080" web servers.
So I guess people using the ScreenSaverHack with python cover feature may not necessarily need to use SkipStone?

My apology. I meant to say that the games could run with the built-in browser but somehow I forgot to mention it.
However, I may have missed the point that the purpose of using SkipStone Browser is actually to make the games possible to be launched directly with GUI launcher.

So I saw this post and the attractive games and wanted to have a try. Since the only Kindle I have is a K3, I decided to play the games on it.
According to my understanding of the files, playing the games would need the following prerequisites:
1. Game html,js and resource files (Already available)
2. A browser capable of accessing local files (i.e. using file:// protocol) (Partially available)

The only browser which is available on K3 is the built-in one and it does not support the file:// protocol. So the solution is to make the local files 'global' with a web server which allows accessing the files using the IP address.
Fortunately, I have cross-compiled the Apache Http server and Python 2.7 to my K3 and both of them are able to serve this purpose.
For Apache httpd, the http.conf would need to be configured to use the folder containing game folders to be the webroot.
For Python, the web server can be run by cd to the upper directory of the game folders and typing 'python -m SimpleHTTPServer 80 &' in the terminal. This folder will then become the webroot which is available at http://127.0.0.1
So I tried these 2 methods and both worked relatively well. The only problem is that you need to enter the URL manually to run the games. As the command to access certain URL with the built-in browser is currently unavailable, the best I can do to minimized the inconvenience is by putting a index.html file, which contains links to the game folders, in the webroot .

Last edited by kaneorotar; 11-15-2012 at 08:50 AM.
kaneorotar is offline   Reply With Quote