Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2011, 11:27 AM   #166
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by hcripe View Post
I made one other change to Sudoku for the touch devices. When the game ends, the "Congratulations" screen has a background that prevents the menus from being seen. The only way I could find to exit the program was to click around where the menus should be to try to bring up the Exit menu. I changed the code in Sudoku.js to:

if (hasNumericButtons)
target.bckGround.show(true);

This causes the background to not display for touch devices so that the menus are still visible.

If this is ok, I have attached the changed Sudoku package.

Howard
Well done, Howard! And thanks for posting a complete package. I had completely lost track of which version I had in my prsplus folders, and my most recent compile had menus that were clickable but had weird graphics all over them!

A couple of notes:

1. Save / Load doesn't seem to work on my 600. Does it work on yours? I am guessing the save / load location may need to be changed. I had to do this for Fiveballs. I used

Code:
var datPath = '/Data/fiveballs.dat';
and the save file appears in the "Reader" root directory.

2. The clock in the right lower corner which is built into the game overlaps with the PRS+ clock which I have set up to display in menus. The easy way around this is to hide the built-in clock. (But then it doesn't update as you are playing which I am assuming the built-in clock does!)

3. The play time is not updated. At least it didn't seem to. (I was only playing for a few seconds. Does it only update every minute?)

Now some of this is PRS+ specific and also model-specific, so it may not be exactly easy to solve. Kartu, do you have any thoughts?

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 02-21-2011, 03:22 AM   #167
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 853
Karma: 314486
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Hi, there!

Back online again

Some remarks to Bens post above:
  1. So Save-Game isn't working within the Apps-path
    I would suggest to stop here, as I remember that kartu was talking about using the PRS+ "Save-Settings"-method with the Apps. So lets have him finish 2.x beta (advised also for models 505/300 ) and then use a unified approach.
  2. clock
  3. playtime updates every minute, but commented code for displaying seconds is in the *.js file
Howard:
I think it's fine to remove the background completely even with the 505/300.
My approach to the port was simply to retain as much original look and feel as possible.
Thanks for posting the updated package, too!

Last edited by Mark Nord; 02-21-2011 at 04:28 AM. Reason: typos
Mark Nord is offline   Reply With Quote
Advert
Old 02-28-2011, 04:23 AM   #168
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Hi everyone,

I have made a small update to the Chess attachment in post #145. It only affects the non-touch version. Since the 300 does not have PREV and NEXT buttons, I changed it so that numeric buttons 9 and 0 are used instead. For "new game" and "quit", buttons 9 and 0 now need to be held down.

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 02-28-2011, 05:00 AM   #169
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Guys,

On 300 calling games/apps one after another randomly leads to (non-fatal, i.e. connecting to USB still recovers) freeze.
It could be either some not yet understood async process, or some sort of out of memory/resources.

I'll optimize images (size of most could be reduces 2 or more times) and see if it helps (optimizing javascript during the build process could also help, currently I run it using Beta hook), in the future versions please use images from the PRS+ repository.
kartu is offline   Reply With Quote
Old 02-28-2011, 07:13 AM   #170
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
UPDATE: It seems to be resource issue. In particular Chess / Mahjong seem to be the biggest consumers, they get along with each other, but adding any other game/app into the mix leads to the soft freeze. This could only mean that resources loaded by autorun aren't freed (at least) on 300 ... =/
kartu is offline   Reply With Quote
Advert
Old 03-01-2011, 03:33 AM   #171
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Another UPDATE: all games / calc work on both 650, 300. (Calc had a typo in launcher code, Calc...getSoValue instead of Core...). 300 still has "out of resources" issue. Checking it on 600 now.
kartu is offline   Reply With Quote
Old 03-01-2011, 04:05 AM   #172
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 853
Karma: 314486
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Great News!

Have you checked Save/Load Game in Sudoku respectively Save-HighScore in Fiveballs?
This may work with Beta-code executed from SD-card, but fails (at least with custom-build PRS600 installer) installed versions sitting in /opt/.../dict/
See post #166/167
Mark Nord is offline   Reply With Quote
Old 03-01-2011, 04:23 AM   #173
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
No, didn't get that far in tests and some unified way of saving data is needed. =/
Anyway, even without save / load functionality those games are good to have.

PS
Mark, could you check if the attached calc is up to date? It works, but "hand" is shown on 650.
Attached Files
File Type: zip Calc.zip (38.9 KB, 171 views)
kartu is offline   Reply With Quote
Old 03-01-2011, 04:51 AM   #174
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 853
Karma: 314486
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by kartu View Post
Mark, could you check if the attached calc is up to date? It works, but "hand" is shown on 650.
There is a later version in the x.04 release of the SimEnviro (including Icon, translated title, gridcursor hidden if !hasnumericbuttons and fix for the screen-coordinate-offset)
Unfortunately I havn't use your reformated code from the repository to start with.
So I will merge them in the evening and post a new package.
Mark
Mark Nord is offline   Reply With Quote
Old 03-01-2011, 09:53 AM   #175
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Nah, I'll overwrite it with your version from 2010-12-05. (hopefully this one is the last one), unless it doesn't work (in which case I'll write about it here )

(With all the rebooting / renaming / trying this and that I've overwritten it with older version)

PS
Is simBackground.jpg really needed?

Last edited by kartu; 03-01-2011 at 09:57 AM.
kartu is offline   Reply With Quote
Old 03-01-2011, 11:07 AM   #176
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 853
Karma: 314486
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by kartu View Post
Nah, I'll overwrite it with your version from 2010-12-05. (hopefully this one is the last one)
This is the last one.

Quote:
Is simBackground.jpg really needed?
If we remove the about-dialog, which isn't important at all, we can skip all resources except "CalcMainSkin.png"

Which is done in the xml in the attachment
+ I've set gridcursor visibility initally to "false" as my JS set show(true) for 505/300. (Instead of using
Code:
this.gridCursor.show ( kbook.autoRunRoot.hasNumericButtons )
Attached Files
File Type: xml calculator.xml (17.5 KB, 422 views)

Last edited by Mark Nord; 03-01-2011 at 02:08 PM. Reason: typo
Mark Nord is offline   Reply With Quote
Old 03-01-2011, 02:07 PM   #177
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 853
Karma: 314486
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Update:
there might be a problem in the JS-code. Again with getSoValue.
I use in my code _Core.system.getSoValue in the SimEnviro but should use plain getSoValue
Mark
Mark Nord is offline   Reply With Quote
Old 03-02-2011, 07:32 AM   #178
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Thanks Mark, with suggested changes works fine on 300/600/650 (should also work on 350/950)

I'll push changes to the repository soon.
kartu is offline   Reply With Quote
Old 03-03-2011, 03:48 PM   #179
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Might be that it's not resource issue after all, got the same "effect" on 950 which should have plenty of memory. The following sequence lead to soft freeze:

Open Calc, calculate simple sum, exit
Chess, do a couple of moves, exit
Five in a row, a dozen of moves, exit
Mahjong => freeze

PS
Yep, repeatable.
PPS
But works fine on 600, gee...

Last edited by kartu; 03-03-2011 at 04:48 PM.
kartu is offline   Reply With Quote
Old 03-04-2011, 03:11 PM   #180
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 853
Karma: 314486
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
There are also no problems with PRS+ 1.x on my PRS-505
Just to let you know.

PS: PRS+ v2.x for 505 will be based on 1.1.00.18040 ?
Mark Nord is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fsk error, code = -13 Brian Charles Sony Reader 4 04-23-2010 04:21 PM
Fsk error code= -43 shrktank Sony Reader 1 12-24-2009 09:32 AM
Just a silly tweak: AUTORUN.INF for Windows Rootman Kindle Developer's Corner 3 12-04-2009 10:17 AM
Request for test in Windows XP kovidgoyal Calibre 5 08-26-2009 01:14 PM
Windows Develpment Environment issue itimpi Calibre 20 01-17-2009 07:15 PM


All times are GMT -4. The time now is 06:32 AM.


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