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

Reply
 
Thread Tools Search this Thread
Old 12-07-2012, 11:10 PM   #196
jackhulk
Enthusiast
jackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 49
Karma: 23642
Join Date: Oct 2011
Device: K3 3G
Yeah I have tetris rom in folder, but even if that folder was empty it shouldn't matter as the program (kindlet, app - what IS the correct term please?) would still run as it gives the user a choice of which rom they would like to load.

Haven't installed USBnet net, but I plan too. Only jailbroke few days ago so still just working my through all the goodies that come with it. I NEVER expected to find a gba emulator running on kindle! Great stuff!

Last edited by jackhulk; 12-07-2012 at 11:12 PM.
jackhulk is offline   Reply With Quote
Old 12-07-2012, 11:13 PM   #197
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
app in this context.

kindlets are things that use a java wrapper.
Perhaps a bit of time on the Wiki would be helpful?

I will read up and have a quick look what the issue is.

EDIT: Okay...

Could you post the contents of... fbgnuboy/rungame

(as in the script)

and you could try invoking the gnuboy thingy yourself via myts.

I HIGHLY recommend getting used to doing this.

Logging in via SSH, running the app on the shell. you can see the errors!!!

YAY! Juicy errors!!

"Failure" can mean so many things... (bad path, bad permissions, file in MSDOS format, other stuff)

HTH.

Last edited by twobob; 12-07-2012 at 11:17 PM.
twobob is offline   Reply With Quote
 
Advertisement
Old 12-07-2012, 11:24 PM   #198
jackhulk
Enthusiast
jackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 49
Karma: 23642
Join Date: Oct 2011
Device: K3 3G
Quote:
#!/bin/sh
#================================================= ==
# getkb - get translated ascii keys from K3 keyboard
# v1.2 by geekmaster
# STDOUT: pressed keys, until Enter key pressed.
#---------------------------------------------------
getkb() {
eips -z 2 38 # scroll
XP=0
YP=39
DN=/dev/null
KN="1234567890____qwertyuiop____asdfghjkl_____zxc v bnm_."
KS="1234567890____QWERTYUIOP____ASDFGHJKL_____ZXC V BNM_,"
KP="1234567890____~@#$%^&*()____<>[]{}?/\_____;:'|-+=_?"
KM=$KN
ST=""
while :;do
eips $XP $YP "$ST""_ "
L="_"
set $(waitforkey); K=$1 D=$2
[[ $D -eq 0 ]]&& continue
# [[ $K -eq 28 ]]&& break # enter
[[ $K -eq 190 ]]&& break # use Aa for enter
[[ $K -eq 14 ]]&& ST="$(echo ${ST%?})" && continue # del
[[ $K -eq 42 ]]&& KM=$KS && continue # shift
[[ $K -eq 126 ]]&& KM=$KP && continue # Sym
[[ $K -eq 57 ]]&& L=" " # space
[[ $K -le 52 ]]&& L="$(echo \"$KM\"|cut -b$K-$K)"
# [[ "$L" == "_" ]]&& L="($K)"
[[ "$L" == "_" ]]&& continue
# echo -n "$L"
ST="$ST$L"
KM=$KN
done
echo "$ST"
}

putei() {
st=$1
ii=${#st}
while [ $ii -ge 0 ]
do
eips -z 2 38 # scroll
eips 0 39 "$(echo $st | cut -b-50)" # write to the bottom
st="$(echo $st | cut -b51-)"
ii=$(( ii - 50 ))
done
}


killall -stop cvm launchpad 2> /dev/null
cd /mnt/us/fbgnuboy
eips -c;
putei "fbgnuboy - Games Boy Advanced Emulator"
putei ""
putei "Available ROMS -"
putei "$(ls ./roms | sed -e 's/\.[a-zA-Z]*$//')"
putei ""
putei "Execute Which ROM?"
game="$(getkb)"
#draw picture frame
eips -g ./gb-flash.jpg
sleep 1
HOME=/tmp ./fbgnuboy ./roms/"$game".g* 2> /mnt/us/gnuboy.log
killall -cont cvm launchpad 2> /dev/null
Launchpad .ini and rungame created in notepad++

Haven't set up USBnet so unable to SSH (I always tend to do things the hard way!). I've got the wiki page bookmarked, lots to learn, just whizzing around everywhere at the moment seeing what's possible. I will of course sort out SSH access as my next task.
jackhulk is offline   Reply With Quote
Old 12-07-2012, 11:26 PM   #199
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,048
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
did you set notepad++ to use unix line endings? that could be your problem...
qlob is offline   Reply With Quote
Old 12-07-2012, 11:46 PM   #200
jackhulk
Enthusiast
jackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 49
Karma: 23642
Join Date: Oct 2011
Device: K3 3G
You've hit the nail on the head qlob!! Silly boy Jackhulk! The .ini was fine, but hadn't use correct line endings for rungame!

Although to be fair I'm not too familiar with line endings! Even though I use linux files with my AZ BOX (satellite receiver), it's always existing files I'm editing, and so the line endings are already correct. The .ini file I got lucky with because I opened an existing one and saved as, where as with rungame, I created a new file.

I'm playing original GB tetris now on my kindle! This is awesome, thanks guys! Off to bed now though and will have a further tinker tomorrow. Has anybody a list of games which run well so far? Twobob, what are the chances of sound one day? It's always more more more with us isn't it! But we do like more!

Last edited by jackhulk; 12-08-2012 at 12:00 AM.
jackhulk is offline   Reply With Quote
Old 12-08-2012, 12:04 AM   #201
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
Yeah I looked at sound.

I had an issue getting an alsa lib but I had an idea that I could just grab one off of the kindle so maybe I could get it to compile.

Much of the code is already there. (Hawhill maybe?) I did have a play. perhaps if I get my TC tamed one day I can revist.

Glad you liked the emulator. Hawhill does ace work
twobob is offline   Reply With Quote
Old 12-08-2012, 09:11 PM   #202
jackhulk
Enthusiast
jackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 49
Karma: 23642
Join Date: Oct 2011
Device: K3 3G
I've found a small problem when it asked 'Execute Which ROM?'. Problem being three keyboard keys are mapped incorrectly.

Pressing the followings gives these results...

m = n
n = b
b = space.

Had a quick peak in rungame to see what I could see, and changed lines 12 & 13 from this...

Quote:
KN="1234567890____qwertyuiop____asdfghjkl_____zxc v bnm_."
KS="1234567890____QWERTYUIOP____ASDFGHJKL_____ZXC V BNM_,"
to this...

Quote:
KN="1234567890____qwertyuiop____asdfghjkl_____zxcv bnm_."
KS="1234567890____QWERTYUIOP____ASDFGHJKL_____ZXCV BNM_,"
...and to my surprise it corrected the error.

Clearly then my understand has come on leaps and bounds (since yesterday), and so now I'll be attempting to create an emulator for the Xbox 360 to run on Kindle if anyone is interested.

EDIT: That's strange. You can notice the space between v and b. In my post, as I look at it now, in my corrected lines, I've deleted the space between v and b, but submit the post, and a space is created?! So problem of the space between the v and the b is created by the forum. Looking at post #145 where I copied script from, I now see the space is there too.

Last edited by jackhulk; 12-09-2012 at 07:45 PM.
jackhulk is offline   Reply With Quote
Old 12-08-2012, 11:18 PM   #203
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
yeah I had noticed that. nice fix
twobob is offline   Reply With Quote
Old 12-08-2012, 11:42 PM   #204
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: *.*
Quote:
Originally Posted by twobob View Post
yeah I had noticed that. nice fix
Code gets messed up in quote blocks. MUCH better to put it in code blocks. The script that those lines of code were borrowed from worked correctly in their original format.
geekmaster is offline   Reply With Quote
Old 12-09-2012, 08:49 AM   #205
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,000
Karma: 6327868
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by geekmaster View Post
Code gets messed up in quote blocks. MUCH better to put it in code blocks. The script that those lines of code were borrowed from worked correctly in their original format.
The "Quote" formatter generates blank spaces at a maximum line length.
The "Code" formatter generates a horizontal scroll bar.
knc1 is offline   Reply With Quote
Old 12-09-2012, 09:50 AM   #206
jackhulk
Enthusiast
jackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 49
Karma: 23642
Join Date: Oct 2011
Device: K3 3G
I thought the quotes could have something to do with it, so I posted as normal text but the space was still introduced.

KN="1234567890____qwertyuiop____asdfghjkl_____zxcv bnm_."
KS="1234567890____QWERTYUIOP____ASDFGHJKL_____ZXCV BNM_,"

As I posted the above, there are no spaces.

EDIT: Now the forum has introduced the space between v and b.

Either way, I just wanted to point out to others in case they come across this problem when running the emulator and wondering what is wrong.

Last edited by jackhulk; 12-09-2012 at 09:52 AM.
jackhulk is offline   Reply With Quote
Old 12-09-2012, 12:41 PM   #207
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: *.*
As I said previously, you need to wrap code in code blocks like this:
Code:
KN="1234567890____qwertyuiop____asdfghjkl_____zxcvbnm_."
KS="1234567890____QWERTYUIOP____ASDFGHJKL_____ZXCVBNM_,"
Or as can be seen in many of my posts, I prefer to wrap my code in php blocks:
PHP Code:
KN="1234567890____qwertyuiop____asdfghjkl_____zxcvbnm_."
KS="1234567890____QWERTYUIOP____ASDFGHJKL_____ZXCVBNM_," 
I like colorful code syntax highlighting.

Last edited by geekmaster; 12-09-2012 at 12:45 PM.
geekmaster is offline   Reply With Quote
Old 12-09-2012, 12:49 PM   #208
jackhulk
Enthusiast
jackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 49
Karma: 23642
Join Date: Oct 2011
Device: K3 3G
Gotcha, but the original script (#145) was in code blocks and a space was still added, although it was within spoiler also.

Colours are fun
jackhulk is offline   Reply With Quote
Old 12-09-2012, 01:01 PM   #209
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: *.*
Quote:
Originally Posted by jackhulk View Post
Gotcha, but the original script (#145) was in code blocks and a space was still added, although it was within spoiler also.

Colours are fun
I have never seen code blocks or php blocks inserting spaces. Perhaps it was an artifact of how you edited it.
geekmaster is offline   Reply With Quote
Old 12-09-2012, 01:12 PM   #210
jackhulk
Enthusiast
jackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austenjackhulk has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 49
Karma: 23642
Join Date: Oct 2011
Device: K3 3G
I didn't edit it, copied straight from the original.

As said the space is present in the original post, post #145 by twobob on page 10, which is in code blocks BUT also within spoilers, which may have resulted in the space being added, as is the case when used with quote blocks.

But it's really no big deal. I was just pointing out in case another newbie such as me uses the script and wonders what is going on with the funky keys.
jackhulk is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle VNC viewer (native app, GPLv2) hawhill Kindle Developer's Corner 499 12-16-2014 04:31 AM
Gameboy emulator on PE bunodosoma enTourage eDGe 2 11-16-2011 09:19 PM
Gameboy screen bookmeal General Discussions 7 10-03-2011 03:40 PM
software suggestion: virtualboy(gameboy emulator) arfarf624 Kindle Developer's Corner 3 07-27-2011 06:06 AM
Free (GPLv2) Translation Dictionaries Elleo Amazon Kindle 3 01-11-2011 11:57 PM


All times are GMT -4. The time now is 12:50 PM.


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