![]() |
#151 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 6494
Join Date: Nov 2012
Device: Kindle 3
|
Noob's Room
Launchpad method still not working for me, can you explain what my misunderstandings of the process are. I am thinking:
The gnuboy.ini is launched by Shift & G B (because of the gnuboy.ini script) This launches the file rungame. (well, not in my case as I just get a fail message and no log...) rungame - 1. actions a command bin/sh (which I don't understand, amongst other things of course) then gets picture from usr/bin/pictures (does the picture have to reside here? Anyway I used mv to put it there) 2. create/writes a gnuboy log (I assume if the process fails) (or is rungame also meant to be a .sh or have to be in launchpad folder? -- or am I meant to replace "rungame" with "fbgnuboy" in the text of the script?) gnuboy.sh - 1. seems to do some sort of input detection 2. opens list of roms 3. sets home as tmp (I don't understand why or how this works, but understand that it is to avoid having to mntroot rw which is how I was circumventing Gameboy's desire to write to the file) 4. writes gnuboy.log if process fails --where is gnuboy.sh supposed to be and how does it relate to the other 2 scripts? |
![]() |
![]() |
![]() |
#152 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
Well. that is really up to you. everything you typed about I ASSUME you meant /mnt/us before...
Quote:
I did highlight those important paths in the original script. Personally, I have amended the kindle system path to include the /mnt/us/usr/bin/blah stuff (as outlined http://minimodding.com/article9-Kind...ng-custom-apps) did you try PATH=$PATH:/mnt/us/usr/bin rungame You can affect the environment variables at runtime by putting it before the call. TBH It's a basic script. ignore the top bit. just the bottom few lines actually matter. check you DO have the stuff in either /mnt/us/fbgnuboy/here (I honestly don't have that but that's the default "install location" IIRC) It just a) sets up lots of logic to handle crappy screen printing. b) prints out the results of an ls command (in roms dir) (piped through sed to get rid of suffixes) b2) freezes cvm and launchpad to stop key presses effing stuff up) c) waits for you to type something d) uses eips to put piccy on screen (from wherever - it doesn't matter) e) call fbgnuboy (now we have enough info to start a game) with the typed command argument (actually back-converted into the filename) e2) unfreeze cvm etc on exit and push some HOME button clicks to key buffer to refresh screen (and hide horrid key buffer that spews out at the end) Where the stuff is really doesnt matter. as long as it is all where you SAY it should be in the script. If in doubt just shove it all in one folder (other than the rom maybe, make that a subdir) and reference the whole shebang like "dot forward slash blah" as in ./gb-splash.jpg ./this ./that ./theotherthing - ALSO adjust the cd /mnt/us/here/or/something... half way down the file. HTH TL;DR?? Shove them all together. reference locally. change to directory before execution if in doubt. etc. HTH Last edited by twobob; 11-25-2012 at 07:56 PM. Reason: those important paths |
|
![]() |
![]() |
Advert | |
|
![]() |
#153 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 6494
Join Date: Nov 2012
Device: Kindle 3
|
Trouble Chute
Quote:
From what I understand I create the .ini file in the launchpad folder, which has within it: !/mnt/us/fbgnuboy/rungame So, it points to rungame - is this just a file we create in the relevant directory, and does it need a .sh extension? There were 2 different scripts, do we need both of them called gnuboy.sh and one called rungame, or should everything be in one script (as I can't understand if there is meant to be two, how the second script is coming into play) Presumably eips -g ./gb-flash.jpg does not need a path change as it already changes dir to the correct place. What the stuff does only matters to me as I'm trying to understand where scripts should be as clearly I'm not doing it right... :-) I wondered if HOME=/tmp would alter the cd /mnt/us/fbgnuboy so that ./fbgnuboy wouldn't run? I don't understand how that command works, though I understand it is there because of Gameboy requiring to write (plus whatever reasons relate to the custom modding link you sent). Or maybe the prolem is because I'm saving the script in Notepad and not in Linux?? Anyway thanks for all the help, it's a learning curve.. edit: do I have to make the file gnuboy.log in advance? Last edited by smartgenes; 11-24-2012 at 08:48 PM. Reason: gnuboy.log |
|
![]() |
![]() |
![]() |
#154 | |||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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:
anything on FAT has "can be executed" status. That is to say it can be "Run". Unlike ext3 where you must set the executable (octal thingy) bit in permissions. so give it the extension .PoohBear and it will still try to run if you tell it to. #!/bin/sh at the start does the heavy lifting of "I do what now?" okay. so that known.... /blah/blah ./blah/blah and blah/blah are all different. (obviously) 1) root of the drive 2) relative to current directory (In the script mind, this pwd [present working directory] can change mid script and not affect the parent calling shell) 3) like 2 but implied. The pwd (which is a commnd you can type on the command line) is stored in variable $PWD [root@kindle root]# pwd Quote:
[root@kindle root]# echo $PWD Quote:
Simply stick echo $PWD in the script (pictured, mine runs in /mnt/us/usr/bin/) IN THIS CASE HOWEVER... using putei will lay it out nicely... (pictured) Heck you can put a echo $PATH too in the script if you want to be sure... So - to sum up. Get all the stuff in a known location. cd to that location. run your script. or put a call to cd to a useful location IN your script (I did this) if the stuff you are trying to reference IS NOT in the the $PWD (AND YOU ARE REFERENCING THE FILE LIKE ./MYFILE) and is not in the $PATH then it won't be found. those are the basic rules... I probably missed a bunch of details, feel free someone to fill them in. Hope you get it sorted mate. Last edited by twobob; 11-25-2012 at 09:14 AM. Reason: (AND YOU ARE REFERENCING THE FILE LIKE ./MYFILE) |
|||
![]() |
![]() |
![]() |
#155 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
This is *nix, executables are only found via the list of directories present in the $PATH variable. The current directory (".") is not normally included in the $PATH search list. The reasons for that are matters of system security. But otherwise, twobob gives good "getting started" advice above. There are approximately a zillion web sites that provide "new to Linux" information where the reader may continue their education. |
|
![]() |
![]() |
Advert | |
|
![]() |
#156 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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:
Added ![]() |
|
![]() |
![]() |
![]() |
#157 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#158 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 6494
Join Date: Nov 2012
Device: Kindle 3
|
better take the nice guy pills..
Amending the .ini to this
[Actions] ## Launch the Gameboy Emulator G B = !PATH=$PATH:/mnt/us/fbgnuboy/rungame.sh I do now get a success message. But no gnuboy yet.. Why in the /mnt/us/usr/bin ? Thought that you said everything could go in /mnt/us/fbgnuboy if I wanted.. |
![]() |
![]() |
![]() |
#159 | |
Official Lurker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
|
Quote:
|
|
![]() |
![]() |
![]() |
#160 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I.E: remove the name of the executable script file from the path list (you are probably missing a space between the new PATH assignment and the executable name above). The "/mnt/us" path prefix is forced upon us by the file system layout that Amazon uses. It is also the "root" of that part seen over the USB cable in storage device mode. The "/usr/bin" is the File System Standard place for user binaries under Linux. Using "/<application name>" rather than "/usr/bin" is the common MicroSoft usage under Windows. Either will work (presuming you set the corresponding PATH list entry). At least until you have an application that uses shared libraries. ![]() Last edited by knc1; 11-25-2012 at 10:57 AM. |
|
![]() |
![]() |
![]() |
#161 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
So far all of your questions have been Linux Basics.
They belong on a "Linux Newbie" site, such as: http://www.linuxquestions.org/questions/linux-newbie-8/ or any of the many other such sites and forums. |
![]() |
![]() |
![]() |
#162 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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:
In fact I have gone to great lengths to outline this fact. WHERE you put something is between you and your god. HOW you refer to it is the only thing that matters. : ) in your case: ## Launch the Gameboy Emulator G B = !PATH=$PATH:/mnt/us/fbgnuboy/ rungame.sh would probably do the job (note the space) This does two things a) sets the path (to include the directory) and then b) runs the script. Your call simply asks it to add (junk) to the path (unless you have a directory named rungame.sh, which obviously you don't) And - might I add. This is a bit superfluous. simply changing the call to G B = !/mnt/us/fbgnuboy/rungame.sh and changing all the calls to be (./something) and cd'ing in the script (this is already done) would be plenty. TBH I am struggling to remember the actual requirements of gnuboy. none IIRC. I will go read the script. IIRC the executable just needs to be "run" with the right arguments. very basic. no "LD_LIBRABRY_PATH" complications or anything. OR: to test: (if you have myts installed, or ssh access) simply cd to the fbgnuboy directory and run the script from there (with all the references changed to ./ and ./roms) when THIS works, then worry about launching it via launchpad. : ) Hope that helps. @knc1 Yeah this is pretty much scripting 101. ![]() gotta start somewhere : D Last edited by twobob; 11-25-2012 at 11:42 AM. |
|
![]() |
![]() |
![]() |
#163 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 6494
Join Date: Nov 2012
Device: Kindle 3
|
If I didn't know /mnt/us was the Kindle system layout then I wouldn't even be here. Admittedly I am learning scripts- as it stands the script doesn't work for us newbies (at least in Launchpad), and I'm trying to understand what it is that I don't know.
Understand it was a non-standard set up, but mine is bog standard, and I wasn't sure if this was where my erroneous thinking was. twobob: you said try the call with the superfluous bit in earlier post, so I tried it.. As far as I can see I checked all the paths, and checked all the Linux basics I might be wrong about, but still getting zip... Anyways, I appreciate the scripting 101, hopefully it will help someone else too, and at least I can still run it in Kindle Terminal. I tried the script in SSH and it works despite this message: eips: paint_char> character "!" not available ..at least up to the point of selecting a rom. |
![]() |
![]() |
![]() |
#164 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
Hi. Hope I didn't come across as preachy of vitriolic. I hadn't been awake all that long
![]() Simply trying to be clear. It's all to easy to come across or be read negatively. That message seems an odd one. Might I ask that you post the exact script you are using please? And an idea of the exact content of the relevant bits of your file system would make supporting you a shedload easier too : ) so: rungame script. A copy of your current one please. screenie of /mnt/us/fbgnuboy/ directory content (see if there are any surprises in there...? compare it to script...) a copy of your launchpad.ini thing you are triggering (the one for the gameboy, check it for whitespace or other usual suspects) I think that is it? Cheers : ) |
![]() |
![]() |
![]() |
#165 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 6494
Join Date: Nov 2012
Device: Kindle 3
|
gnuboy.ini in launchpad folder:
[Actions] ## Launch the Gameboy Emulator G B = !/mnt/us/fbgnuboy/ rungame.sh script: Spoiler:
Could there be a compatibility problem between Kindle 3 and eips? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle VNC viewer (native app, GPLv2) | hawhill | Kindle Developer's Corner | 531 | 12-11-2020 02:55 PM |
Gameboy emulator on PE | bunodosoma | enTourage eDGe | 2 | 11-16-2011 08:19 PM |
Gameboy screen | bookmeal | General Discussions | 7 | 10-03-2011 02:40 PM |
software suggestion: virtualboy(gameboy emulator) | arfarf624 | Kindle Developer's Corner | 3 | 07-27-2011 05:06 AM |
Free (GPLv2) Translation Dictionaries | Elleo | Amazon Kindle | 3 | 01-11-2011 10:57 PM |