Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

View Poll Results: Should dosbox be added to the Kindle ports TODO list
Yes, it would make a great addition to the kindles 8 57.14%
No, it does not make sense or personally I don´t see the value 5 35.71%
Other. (Please add a post to the thread explaining your Other option) 1 7.14%
Voters: 14. You may not vote on this poll

Reply
 
Thread Tools Search this Thread
Old 03-12-2013, 11:54 PM   #16
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
DOSBox and SDL are the first things I got running in my debian loop mount on my K3, but DOSBox had a problem with white letters on a black background, where it would end up with black on black (barely readable under bright light). After some messing around, I gave up on it. So basicaly, we both had it working (mostly) but problems with the display updates...

I tried rebuilding SDL again later after I understood the framebuffer updates better, but I did not put in enough effort to get it actually working...

Last edited by geekmaster; 03-13-2013 at 12:00 AM.
geekmaster is offline   Reply With Quote
Old 03-13-2013, 12:58 PM   #17
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by geekmaster View Post
DOSBox and SDL are the first things I got running in my debian loop mount on my K3, but DOSBox had a problem with white letters on a black background, where it would end up with black on black (barely readable under bright light). After some messing around, I gave up on it. So basicaly, we both had it working (mostly) but problems with the display updates...

I tried rebuilding SDL again later after I understood the framebuffer updates better, but I did not put in enough effort to get it actually working...


Yeah... I have attached the supporting libs... and the unpatched but runnable binary.

THIS BINARY WON'T DO WHAT YOU EXPECT - OF THAT I AM CERTAIN!!!

For the next brave soul to save some pain..

The main bin needs patching to have the right title (I use my go-game wangle to show this on a k5 without patching) and to ACTUALLY show up the text. (black on black here)

But it runs natively with this lot at least.

Enjoy. the next poor soul....

Perhaps I WILL bother to repatch it all at some point.

Don't say I never give you nothing.

Code:
[root@kindle bin]# LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./dosbox
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
Failed to create secure directory: Permission denied
CONFIG:Loading primary settings from config file /mnt/us/home/root/.dosbox/dosbox-0.74.conf
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA:Can't open sequencer
MIDI:Opened device:none
The errors are meaningless and can be fixed easily in .conf with a few liberal usages of none in the right places.

cheers

EDIT: Hmm this is missing libogg.so.0 I just noticed.
Why does no-one tell me these things?

Ill pack it up again later.
Attached Files
File Type: zip dosbox.zip (4.05 MB, 53 views)

Last edited by twobob; 08-21-2013 at 12:39 PM. Reason: libogg.so.0
twobob is offline   Reply With Quote
Old 03-13-2013, 01:04 PM   #18
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
meh...

and a likely conf with the none fixes

Code:
# This is the configurationfile for DOSBox 0.74. (Please use the latest version of DOSBox)
# Lines starting with a # are commentlines and are ignored by DOSBox.
# They are used to (briefly) document the effect of each option.

[sdl]
#       fullscreen: Start dosbox directly in fullscreen. (Press ALT-Enter to go back)
#       fulldouble: Use double buffering in fullscreen. It can reduce screen flickering, but it can also result in a slow DOSBox.
#   fullresolution: What resolution to use for fullscreen: original or fixed size (e.g. 1024x768).
#                     Using your monitor's native resolution with aspect=true might give the best results.
#                     If you end up with small window on a large screen, try an output different from surface.
# windowresolution: Scale the window to this size IF the output device supports hardware scaling.
#                     (output=surface does not!)
#           output: What video system to use for output.
#                   Possible values: surface, overlay, opengl, openglnb.
#         autolock: Mouse will automatically lock, if you click on the screen. (Press CTRL-F10 to unlock)
#      sensitivity: Mouse sensitivity.
#      waitonerror: Wait before closing the console if dosbox has an error.
#         priority: Priority levels for dosbox. Second entry behind the comma is for when dosbox is not focused/minimized.
#                     pause is only valid for the second entry.
#                   Possible values: lowest, lower, normal, higher, highest, pause.
#       mapperfile: File used to load/save the key/event mappings from. Resetmapper only works with the defaul value.
#     usescancodes: Avoid usage of symkeys, might not work on all operating systems.

fullscreen=false
fulldouble=false
fullresolution=600x800
windowresolution=600x800
output=surface
autolock=true
sensitivity=100
waitonerror=true
priority=higher,normal
mapperfile=mapper-0.74.map
usescancodes=true

[dosbox]
# language: Select another language file.
#  machine: The type of machine tries to emulate.
#           Possible values: hercules, cga, tandy, pcjr, ega, vgaonly, svga_s3, svga_et3000, svga_et4000, svga_paradise, vesa_nolfb, vesa_oldvbe.
# captures: Directory where things like wave, midi, screenshot get captured.
#  memsize: Amount of memory DOSBox has in megabytes.
#             This value is best left at its default to avoid problems with some games,
#             though few games might require a higher value.
#             There is generally no speed advantage when raising this value.

language=
machine=svga_s3
captures=capture
memsize=16

[render]
# frameskip: How many frames DOSBox skips before drawing one.
#    aspect: Do aspect correction, if your output method doesn't support scaling this can slow things down!.
#    scaler: Scaler used to enlarge/enhance low resolution modes.
#              If 'forced' is appended, then the scaler will be used even if the result might not be desired.
#            Possible values: none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, hq2x, hq3x, 2xsai, super2xsai, supereagle, tv2x, tv3x, rgb2x, rgb3x, scan2x, scan3x.

frameskip=0
aspect=false
scaler=normal2x

[cpu]
#      core: CPU Core used in emulation. auto will switch to dynamic if available and appropriate.
#            Possible values: auto, normal, simple.
#   cputype: CPU Type used in emulation. auto is the fastest choice.
#            Possible values: auto, 386, 386_slow, 486_slow, pentium_slow, 386_prefetch.
#    cycles: Amount of instructions DOSBox tries to emulate each millisecond.
#            Setting this value too high results in sound dropouts and lags.
#            Cycles can be set in 3 ways:
#              'auto'          tries to guess what a game needs.
#                              It usually works, but can fail for certain games.
#              'fixed #number' will set a fixed amount of cycles. This is what you usually need if 'auto' fails.
#                              (Example: fixed 4000).
#              'max'           will allocate as much cycles as your computer is able to handle.
#            
#            Possible values: auto, fixed, max.
#   cycleup: Amount of cycles to decrease/increase with keycombo.(CTRL-F11/CTRL-F12)
# cycledown: Setting it lower than 100 will be a percentage.

core=auto
cputype=auto
cycles=auto
cycleup=10
cycledown=20

[mixer]
#   nosound: Enable silent mode, sound is still emulated though.
#      rate: Mixer sample rate, setting any device's rate higher than this will probably lower their sound quality.
#            Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
# blocksize: Mixer block size, larger blocks might help sound stuttering but sound will also be more lagged.
#            Possible values: 1024, 2048, 4096, 8192, 512, 256.
# prebuffer: How many milliseconds of data to keep on top of the blocksize.

nosound=true
rate=44100
blocksize=1024
prebuffer=20

[midi]
#     mpu401: Type of MPU-401 to emulate.
#             Possible values: intelligent, uart, none.
# mididevice: Device that will receive the MIDI data from MPU-401.
#             Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.
# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.
#               See the README/Manual for more details.

mpu401=none
mididevice=none
midiconfig=

[sblaster]
#  sbtype: Type of Soundblaster to emulate. gb is Gameblaster.
#          Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none.
#  sbbase: The IO address of the soundblaster.
#          Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300.
#     irq: The IRQ number of the soundblaster.
#          Possible values: 7, 5, 3, 9, 10, 11, 12.
#     dma: The DMA number of the soundblaster.
#          Possible values: 1, 5, 0, 3, 6, 7.
#    hdma: The High DMA number of the soundblaster.
#          Possible values: 1, 5, 0, 3, 6, 7.
# sbmixer: Allow the soundblaster mixer to modify the DOSBox mixer.
# oplmode: Type of OPL emulation. On 'auto' the mode is determined by sblaster type. All OPL modes are Adlib-compatible, except for 'cms'.
#          Possible values: auto, cms, opl2, dualopl2, opl3, none.
#  oplemu: Provider for the OPL emulation. compat might provide better quality (see oplrate as well).
#          Possible values: default, compat, fast.
# oplrate: Sample rate of OPL music emulation. Use 49716 for highest quality (set the mixer rate accordingly).
#          Possible values: 44100, 49716, 48000, 32000, 22050, 16000, 11025, 8000.

sbtype=sb16
sbbase=220
irq=7
dma=1
hdma=5
sbmixer=true
oplmode=auto
oplemu=default
oplrate=44100

[gus]
#      gus: Enable the Gravis Ultrasound emulation.
#  gusrate: Sample rate of Ultrasound emulation.
#           Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
#  gusbase: The IO base address of the Gravis Ultrasound.
#           Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300.
#   gusirq: The IRQ number of the Gravis Ultrasound.
#           Possible values: 5, 3, 7, 9, 10, 11, 12.
#   gusdma: The DMA channel of the Gravis Ultrasound.
#           Possible values: 3, 0, 1, 5, 6, 7.
# ultradir: Path to Ultrasound directory. In this directory
#           there should be a MIDI directory that contains
#           the patch files for GUS playback. Patch sets used
#           with Timidity should work fine.

gus=false
gusrate=44100
gusbase=240
gusirq=5
gusdma=3
ultradir=C:\ULTRASND

[speaker]
# pcspeaker: Enable PC-Speaker emulation.
#    pcrate: Sample rate of the PC-Speaker sound generation.
#            Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
#     tandy: Enable Tandy Sound System emulation. For 'auto', emulation is present only if machine is set to 'tandy'.
#            Possible values: auto, on, off.
# tandyrate: Sample rate of the Tandy 3-Voice generation.
#            Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
#    disney: Enable Disney Sound Source emulation. (Covox Voice Master and Speech Thing compatible).

pcspeaker=true
pcrate=44100
tandy=auto
tandyrate=44100
disney=true

[joystick]
# joysticktype: Type of joystick to emulate: auto (default), none,
#               2axis (supports two joysticks),
#               4axis (supports one joystick, first joystick used),
#               4axis_2 (supports one joystick, second joystick used),
#               fcs (Thrustmaster), ch (CH Flightstick).
#               none disables joystick emulation.
#               auto chooses emulation depending on real joystick(s).
#               (Remember to reset dosbox's mapperfile if you saved it earlier)
#               Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, none.
#        timed: enable timed intervals for axis. Experiment with this option, if your joystick drifts (away).
#     autofire: continuously fires as long as you keep the button pressed.
#       swap34: swap the 3rd and the 4th axis. can be useful for certain joysticks.
#   buttonwrap: enable button wrapping at the number of emulated buttons.

joysticktype=auto
timed=true
autofire=false
swap34=false
buttonwrap=false

[serial]
# serial1: set type of device connected to com port.
#          Can be disabled, dummy, modem, nullmodem, directserial.
#          Additional parameters must be in the same line in the form of
#          parameter:value. Parameter for all types is irq (optional).
#          for directserial: realport (required), rxdelay (optional).
#                           (realport:COM1 realport:ttyS0).
#          for modem: listenport (optional).
#          for nullmodem: server, rxdelay, txdelay, telnet, usedtr,
#                         transparent, port, inhsocket (all optional).
#          Example: serial1=modem listenport:5000
#          Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial2: see serial1
#          Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial3: see serial1
#          Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial4: see serial1
#          Possible values: dummy, disabled, modem, nullmodem, directserial.

serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled

[dos]
#            xms: Enable XMS support.
#            ems: Enable EMS support.
#            umb: Enable UMB support.
# keyboardlayout: Language code of the keyboard layout (or none).

xms=true
ems=true
umb=true
keyboardlayout=auto

[ipx]
# ipx: Enable ipx over UDP/IP emulation.

ipx=false

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.



that gives us...

[root@kindle bin]# LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./dosbox
Quote:
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
Failed to create secure directory: Permission denied
CONFIG:Loading primary settings from config file /mnt/us/home/root/.dosbox/dosbox-0.74.conf
MIXER:No Sound Mode Selected.
MIDI:Opened device:none
Less errors (not that they were critical anyway)

Last edited by twobob; 03-13-2013 at 01:19 PM. Reason: 600x800
twobob is offline   Reply With Quote
Old 03-13-2013, 03:02 PM   #19
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
http://www.dosbox.com/wiki/DOSBoxFrontends

worth a look also I guess


Okay so I went with..

http://www.panayotis.com/prog/scripts/pydosbox/

and a tiny patch to it to set the title...
Code:
		self.window.set_title("L:A_N:application_ID:pydosbox")
and Python + PyGTK for Kindle Touch and Paperwhite
here

and The rc.lua reference

and http://www.pygtk.org/articles/applic..._and_Glade.htm and http://www.learningpython.com/2006/0...gtk-and-glade/ for tips
Attached Thumbnails
Click image for larger version

Name:	Selection_140.png
Views:	71
Size:	17.7 KB
ID:	102835  

Last edited by twobob; 03-13-2013 at 03:59 PM.
twobob is offline   Reply With Quote
Old 03-13-2013, 05:09 PM   #20
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Prince of persia. running.

Quote:
Execute /mnt/us/export/dosbox/bin/dosbox with arguments ['dosbox', '-fullscreen', '/mnt/us/princeofpersia/prince.exe']
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
Failed to create secure directory: Permission denied
CONFIG:Loading primary settings from config file /mnt/us/home/root/.dosbox/dosbox-0.74.conf
MIXER:No Sound Mode Selected.
MIDI:Opened device:none

screenie.

lol

might need a TINY bit of fixing..

but there... Did it.

EDIT: Removing fullscreen fixes this
Attached Thumbnails
Click image for larger version

Name:	Selection_142.png
Views:	84
Size:	2.4 KB
ID:	102842  

Last edited by twobob; 03-13-2013 at 09:24 PM.
twobob is offline   Reply With Quote
Old 03-13-2013, 05:15 PM   #21
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
And with a bit more love...

So.. Whos the daddy?

hehehehe
Attached Thumbnails
Click image for larger version

Name:	Selection_143.png
Views:	97
Size:	28.7 KB
ID:	102843   Click image for larger version

Name:	Selection_144.png
Views:	83
Size:	29.0 KB
ID:	102844   Click image for larger version

Name:	Selection_145.png
Views:	97
Size:	13.3 KB
ID:	102845   Click image for larger version

Name:	Selection_146.png
Views:	100
Size:	14.3 KB
ID:	102846   Click image for larger version

Name:	Selection_148.png
Views:	83
Size:	15.1 KB
ID:	102847   Click image for larger version

Name:	Selection_149.png
Views:	82
Size:	13.1 KB
ID:	102848   Click image for larger version

Name:	Selection_150.png
Views:	75
Size:	12.8 KB
ID:	102849   Click image for larger version

Name:	Selection_152.png
Views:	79
Size:	7.1 KB
ID:	102850   Click image for larger version

Name:	Selection_153.png
Views:	87
Size:	8.1 KB
ID:	102851   Click image for larger version

Name:	Selection_154.png
Views:	76
Size:	7.3 KB
ID:	102852  

Last edited by twobob; 03-13-2013 at 05:30 PM.
twobob is offline   Reply With Quote
Old 03-13-2013, 05:40 PM   #22
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by eureka View Post
Prince of Persia pics or it didn't happen.
*looks up* yeah... LASH.
twobob is offline   Reply With Quote
Old 03-13-2013, 05:41 PM   #23
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by ixtab View Post
Well, I'm gonna jump in once Prince of Persia runs on the Kindle.

(That's the only thing I ever used dosbox for, but it was definitely worth the hassle. Oh... guess I'm growing old )
anyone want to help me with with https://github.com/twobob/dithyr

please?

I can bring doom to the party with this concept too...

just saying..
twobob is offline   Reply With Quote
Old 03-13-2013, 05:47 PM   #24
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
and about 4000 other games

Is THAT incentive enough?
twobob is offline   Reply With Quote
Old 03-13-2013, 05:51 PM   #25
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 2314258
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by twobob View Post
And with a bit more love...

So.. Whos the daddy?

hehehehe
Nah, I like Warrior Within more than original

OK, that's nice in fact.
eureka is offline   Reply With Quote
Old 03-13-2013, 05:51 PM   #26
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Final configuration:

Patched pydosbox

Code:
#!/usr/bin/env python

# Author: Panayotis Katsaloulis
# email:  panayotis@panayotis.com
# 
# Frontend of DOSBox emulator, written in python and pygtk

# Copyright (C) 2003 Panayotis Katsaloulis
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
# or check http://www.gnu.org


import gtk,gobject,os

class Base:
	def __init__(self):

		self.opt_fullscreen = ""
		self.opt_exit = ""
		self.gamelist = []
		self.dosboxpath = "/mnt/us/export/dosbox/bin/dosbox"
		#Create main window
		self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
		self.window.set_title("L:A_N:application_ID:pydosbox")
		
		# Create executable chooser
		self.exec_hbox = gtk.HBox()
		self.browse = gtk.Button("Browse")
		self.executable = gtk.Entry(0)
		self.execlabel = gtk.Label("Executable")
		self.exec_hbox.pack_start(self.execlabel, gtk.FALSE, gtk.FALSE)
		self.exec_hbox.pack_start(self.executable, gtk.TRUE, gtk.TRUE)
		self.exec_hbox.pack_start(self.browse, gtk.FALSE, gtk.FALSE)
		
		self.profbox = gtk.HBox()
		self.store_b = gtk.Button ("Store")
		self.delete_b = gtk.Button ("Delete")
		self.profbox.pack_start(self.store_b)
		self.profbox.pack_start(self.delete_b)

		# Browser creation
		self.filesel = gtk.FileSelection ("Please provide with the Executable filename")

		# DOSBOX options
		self.optbox = gtk.VBox()
		self.fullscreen = gtk.CheckButton ("Full screen mode")
		self.exitb = gtk.CheckButton ("Exit DOS mode after program fiishes")
		self.execb = gtk.Button ("Execute Game")
		self.name_label = gtk.Label ("Name of the game")
		self.gname = gtk.Entry(0)
		self.separator = gtk.HSeparator()
		self.optbox.pack_start(self.name_label, gtk.FALSE, gtk.FALSE)
		self.optbox.pack_start(self.gname, gtk.FALSE, gtk.FALSE)
		self.optbox.pack_start(self.separator, gtk.FALSE, gtk.FALSE, 5)
		self.optbox.pack_start(self.exec_hbox, gtk.FALSE, gtk.FALSE)
		self.optbox.pack_start(self.fullscreen, gtk.FALSE, gtk.FALSE)
		self.optbox.pack_start(self.exitb, gtk.FALSE, gtk.FALSE)
		self.optbox.pack_start(self.execb, gtk.FALSE, gtk.FALSE)
		self.optbox.pack_start(gtk.Label(" "), gtk.TRUE, gtk.TRUE)
		self.optbox.pack_end(self.profbox, gtk.FALSE, gtk.FALSE)
		
		# Games list
		self.scr_window = gtk.ScrolledWindow()
		self.scr_window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
		self.model = gtk.ListStore(gobject.TYPE_STRING)
		self.tree = gtk.TreeView(self.model)
		self.selection = self.tree.get_selection()
		cell = gtk.CellRendererText()
		self.tree.show()
		self.scr_window.add_with_viewport (self.tree)
		self.scr_window.show()
		column = gtk.TreeViewColumn("Game Presets", cell, text=0)
		self.tree.append_column(column)
		self.scr_window.set_size_request(200, 400)
		

		# Pack *all* remaining components
		self.hpane = gtk.HPaned()
		self.hpane.add1(self.scr_window)
		self.hpane.add2(self.optbox)
		self.window.add(self.hpane)
		self.window.set_size_request(620, 400)

		# Make all objects visible
		self.exec_hbox.show()
		self.browse.show()
		self.executable.show()
		self.execlabel.show()
		self.store_b.show()
		self.delete_b.show()
		self.name_label.show()
		self.gname.show()
		self.separator.show()
		self.profbox.show()
		self.optbox.show()
		self.fullscreen.show()
		self.exitb.show()
		self.execb.show()
		self.hpane.show()
		self.window.show()

		# Handle GUI events
		self.window.connect("delete_event", self.delete_event)
		self.window.connect("destroy", self.destroy)
		self.execb.connect("clicked", self.exec_game)
		self.browse.connect("clicked", self.browse_filename)
		self.store_b.connect("clicked", self.add_profile)
		self.delete_b.connect("clicked", self.delete_profile)
		self.fullscreen.connect("toggled", self.full_toggle)
		self.exitb.connect("toggled", self.dos_toggle)
		self.filesel.ok_button.connect("clicked", self.browse_ok)
		self.filesel.cancel_button.connect("clicked", self.browse_cancel, "cancel")
		self.filesel.connect("delete_event", self.browse_ignore)
		self.selection.connect("changed", self.profile_select)
	
		self.restore_profiles()

		gtk.main()

		
	def delete_event(self, widget, event, data=None):
		return gtk.FALSE
		
	def destroy(self, widget, data=None):
		self.store_profiles()
		gtk.main_quit()

	def exec_game(self, widget, data=None):
		cmd=["dosbox"]
		if ( self.opt_fullscreen != "" ):
			cmd.append(self.opt_fullscreen)
		if ( self.executable.get_text() != "" ):
			cmd.append(self.executable.get_text())
		if ( self.opt_exit != "" ):
			cmd.append(self.opt_exit)
		print "Execute", "/mnt/us/export/dosbox/bin/dosbox", "with arguments", cmd
		self.pid=os.spawnv( os.P_NOWAIT, "/mnt/us/export/dosbox/bin/dosbox", cmd)
	
	def full_toggle(self, widget, data=None):
		self.opt_fullscreen = ("", "-fullscreen")[widget.get_active()]
	
	def dos_toggle(self, widget, data=None):
		self.opt_exit = ("", "-exit")[widget.get_active()]


	def browse_filename(self, widget, data=None):
		self.filesel.show()

	def browse_ok(self, widget, data=None):
		self.executable.set_text(self.filesel.get_filename())
		self.filesel.hide()

	def browse_cancel(self, widget, data=None):
		self.filesel.hide()

	def browse_ignore (self, widget, data=None):
		self.filesel.hide()
		return gtk.TRUE
	
	def add_profile (self, widget, data=None):
		self.add_to_list( self.gname.get_text(), self.executable.get_text(), self.fullscreen.get_active(), self.exitb.get_active())

	def delete_profile (self, widget, data=None):
		iterat = self.selection.get_selected()
		path = self.model.get_path(iterat[1])
		if ( path[0] > 0 ):
			self.model.remove(iterat[1])
			self.gamelist.pop(path[0])
			self.store_profiles()

	def add_to_list ( self, name_s, path_s, full_s, dos_s ):
		if (name_s == ""):
			name_s = "Unnamed"
		self.gamelist.append( (name_s, path_s, full_s, dos_s) )
		iter = self.model.append()
		self.model.set(iter, 0, name_s)
		self.store_profiles()
	
	def profile_select (self, widget, data=None):
		iterat = self.selection.get_selected()
		path = self.model.get_path(iterat[1])
		data = self.gamelist[path[0]]
		self.gname.set_text(data[0])
		self.executable.set_text(data[1])
		self.fullscreen.set_active(data[2])
		self.exitb.set_active(data[3])

	def store_profiles (self):
		filename = self.get_prefs_filename()
		outfile = file(filename,'w')
		outfile.write("self.dosboxpath = \"")
		outfile.write(self.dosboxpath)
		outfile.write("\"\nself.profiles = [")
		lprefix = ""
		for dat in self.gamelist:
			outfile.write(lprefix)
			outfile.write("\n(\"")
			outfile.write(dat[0])
			outfile.write("\", \"")
			outfile.write(dat[1])
			outfile.write("\", ")
			outfile.write(("False", "True")[dat[2]])
			outfile.write(", ")
			outfile.write(("False", "True")[dat[3]])
			outfile.write(")")
			lprefix=", "
		outfile.write("]\n")
		outfile.close()

	def restore_profiles (self):
		filename=self.get_prefs_filename()
		try:
			outfile = file(filename,'r')
			execfile(filename)
			outfile.close()
			for dat in self.profiles:
				self.add_to_list(dat[0], dat[1], dat[2], dat[3])
		except IOError:
			print "Filename",filename,"not found. Creating with default parameters."
			self.add_to_list ('Default', '', False, False)
			
	
	def get_prefs_filename (self):
		home = os.environ.get('HOME')
		return home+'/'+'.pydosbox'

prog=Base()
run like:

DISPLAY=:1 LD_LIBRARY_PATH=/mnt/us/export/dosbox/lib:$LD_LIBRARY_PATH pydosbox

into Xephyr

using my extracted dosbox (ABOVE)

and dumped the princeofpersia files into /mnt/us/princeofpersia

HINT: DONT try to run it FULLSCREEN - it won't work

Cheers
Attached Thumbnails
Click image for larger version

Name:	Selection_155.png
Views:	54
Size:	10.9 KB
ID:	102854  

Last edited by twobob; 03-13-2013 at 08:40 PM.
twobob is offline   Reply With Quote
Old 03-13-2013, 06:52 PM   #27
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
okay...

I just checked..

works without Xephyr too.. would mean a dosbox level patch to get it to top level of course though
Attached Thumbnails
Click image for larger version

Name:	Selection_159.png
Views:	56
Size:	26.4 KB
ID:	102855   Click image for larger version

Name:	Selection_158.png
Views:	54
Size:	26.0 KB
ID:	102856   Click image for larger version

Name:	Selection_156.png
Views:	55
Size:	6.7 KB
ID:	102857   Click image for larger version

Name:	Selection_160.png
Views:	50
Size:	12.6 KB
ID:	102858   Click image for larger version

Name:	Selection_157.png
Views:	50
Size:	7.1 KB
ID:	102859  
twobob is offline   Reply With Quote
Old 03-13-2013, 07:33 PM   #28
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I was wondering about developing a "general purpose gtk wrapper" to elevate these type of non-title supporting applications to the top level in awesome.

I believe baf already did something similar with embedding in his kterm application with matchbox-keyboard. Thoughts on that anyone?
twobob is offline   Reply With Quote
Old 03-13-2013, 07:44 PM   #29
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
seems like you can just

[root@kindle bin]# nano /mnt/us/home/root/.pydosbox

to set up the games.


lipc-set-prop com.lab126.pillow disableEnablePillow disable is obviously helpful too (thanks Eureka)

I'll see if the colours work best on Awesome or Xephyr... or if there is no difference at some point
Attached Thumbnails
Click image for larger version

Name:	Selection_162.png
Views:	71
Size:	36.5 KB
ID:	102861   Click image for larger version

Name:	Selection_161.png
Views:	63
Size:	25.9 KB
ID:	102862  

Last edited by twobob; 03-13-2013 at 07:49 PM.
twobob is offline   Reply With Quote
Old 03-14-2013, 12:49 AM   #30
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Wow. 7 whole votes. split 50% on those that had a strong opinion.

Guess the interest is just not there.

I'll bin it then, another one for my "personal stash" it seems.
twobob is offline   Reply With Quote
Reply

Tags
dosbox, poll, port

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DOSBox on eDGe Android - Ever Solved?? Andreus enTourage eDGe 5 09-18-2011 04:35 AM
Android dosbox for android? dcubed2 enTourage Archive 9 06-18-2010 01:55 PM
Porting or new Funtionality fabiocbr75 iRex 18 09-21-2009 11:24 AM
Help porting for beginners Gogolo iRex 2 09-03-2009 10:33 AM
iLiad Books about porting? Luka Trifunovic iRex Developer's Corner 0 03-20-2008 01:22 AM


All times are GMT -4. The time now is 11:50 AM.


MobileRead.com is a privately owned, operated and funded community.