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 06-08-2011, 11:22 AM   #391
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 am happy to announce that I found a bug in Chess, in the checking for checkmate routine. This has now been fixed. I will do some more testing, but I thought it was worth pushing the changes to the repository.

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 06-09-2011, 02:08 AM   #392
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
Mark Nord
Latest version from repo work fine from ny prs-350 (PRS+2.12) - battery not drain!
Thank's
TJ27 is offline   Reply With Quote
Old 06-09-2011, 11:43 AM   #393
VICTORSJG
Addict
VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.
 
Posts: 318
Karma: 1846
Join Date: Dec 2009
Device: PRS-505
Mark, when have i tried to create an installer appears theses errors of the all aplications and games? If i eliminate this scripts the installer is created with any problem, do you know what's reason, becuase i read the before post on prs 350 works fine.

thanks

Now it's correct, I made a mistake, when i've copied the files.

sorry
Attached Files
File Type: rar errors.rar (611.7 KB, 140 views)

Last edited by VICTORSJG; 06-09-2011 at 01:19 PM.
VICTORSJG is offline   Reply With Quote
Old 06-10-2011, 01:55 AM   #394
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
The calculator can not enter хyz0, and in general the number at the end of the 0
TJ27 is offline   Reply With Quote
Old 06-10-2011, 02:00 AM   #395
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: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by TJ27 View Post
The calculator can not enter хyz0, and in general the number at the end of the 0
Version from default or apps repository?
Default refused to accept 0.0, fixed this but will check again.

EDIT: Confirmed and fix pushed to apps repository!

Last edited by Mark Nord; 06-10-2011 at 02:44 AM.
Mark Nord is offline   Reply With Quote
Old 06-11-2011, 04:12 AM   #396
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
Puzzles added to Chess!

Hi everyone,

I have just pushed a significant upgrade to Chess to the apps repository. As per a request, I have added Chess Puzzles! It hasn't been tested on an actual reader yet, but it is working in the Sim in both touch and non-touch modes.

On touch, you will see a new button near the top-left. On non-touch, you have to hold 1. A panel will appear (thanks, Mark, for your MineSweeper code!). In touch, you can click the "-" and "+" buttons to change the puzzle numbers. Click the option buttons to choose which type of puzzle will be loaded, then click the load button. In non-touch, up and down shifts the focus, left and right changes the currently selected number. Pressing the center button will change which puzzle type is selected and also push buttons if they are currently in focus.

When the puzzle appears, you can see the name of the puzzle (basically just the names of the players, the location and date) and the web page source. I have NOT implemented any solutions. And I cannot promise that the AI will move the same way as a chess grandmaster, so YOUR MILAGE MAY VARY! However, if you get stuck, you can go to the webpage indicated, find the puzzle, and get the solution.

Finally, the currently selected puzzle numbers (for all three types) are saved to a file, so you don't have to remember which one you are up to!

I imagine there will still be some bugs. So if you find anything, just let me know here.

Sincerely,
Ben.
Attached Thumbnails
Click image for larger version

Name:	2011-06-11_120735.jpg
Views:	228
Size:	79.7 KB
ID:	72619  
BenChen is offline   Reply With Quote
Old 06-12-2011, 04:17 AM   #397
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: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Very well done!!

I took the freedom and removed the reference to panel.png.
Only the cutout/skin null32h is needed, and is now taken from chessPieces.png

Regards
Mark
Mark Nord is offline   Reply With Quote
Old 06-12-2011, 07:43 AM   #398
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 Mark Nord View Post
Very well done!!

I took the freedom and removed the reference to panel.png.
Only the cutout/skin null32h is needed, and is now taken from chessPieces.png

Regards
Mark
Hi Mark,

I don't mind, as long as it works! (I thought the pop-up panel needed more than just the null32h, but it's your code, so you know best! At one stage, I was directly referencing the MineSweeper graphic file, but I thought it better to NOT require that MineSweeper be installed to make Chess work!)

By the way, I have already found one error in the puzzle data. If I find others I will definitely push changes to the repository, but I won't announce it on this list. I am finding most of the puzzles really challenging!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 06-19-2011, 11:04 AM   #399
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: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by BenChen View Post
Hi Kartu,

I noticed that the latest version of PRS+ did not have any game updates in it. I think most of them are ready, as far as I can tell. They all work beautifully on my 600! All the games have been neatened up, and made to look as much as possible like each other, although the older games (Sudoku, 5 Balls and especially Mahjong) still look unique, which is appropriate given their differing source!

The only one that could do with some improvement would be that Sudoku would be better with the bigger menus that Mark has put into MineSweeper.

So do you want Mark and I to upload the changes (and the new games Draughts, MineSweeper and XOCubed) to the main repository? Or do you want to handle that?

Just wanting to keep the conversation/development going!

Sincerely,
Ben.
Hi Ben,

please have a look on this thread in the PRS+Support-Group

We will have to implement kartus suggestions regarding gamesave-path,
and append model_config.js and kbookIcon.png (there is a version for x50 by Shura1oplot over at the-ebook.org) but then, if I read this right, all apps should be pushed to default-repository.

BTW: you posted your modifications some days before, but isn't there kbookAssets.xml missing?

Regards
Mark
Mark Nord is offline   Reply With Quote
Old 06-19-2011, 11:33 AM   #400
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 Mark Nord View Post
Hi Ben,

please have a look on this thread in the PRS+Support-Group

We will have to implement kartus suggestions regarding gamesave-path,
and append model_config.js and kbookIcon.png (there is a version for x50 by Shura1oplot over at the-ebook.org) but then, if I read this right, all apps should be pushed to default-repository.

BTW: you posted your modifications some days before, but isn't there kbookAssets.xml missing?

Regards
Mark
Hi Mark,

I am all for getting the apps into the main repository! I am also happy to follow Kartu's gamesave location. (As long as I can move my current game saves!) So do you want to start work on the modifications? I am not sure how much time I will have - since I used most of my weekend trying to work out the cover-on-standby code!


And here's the file you mentioned. I must have forgotten I had changed it!

Sincerely,
Ben.
Attached Files
File Type: xml kbookAssets.xml (79.1 KB, 291 views)
BenChen is offline   Reply With Quote
Old 06-19-2011, 02:44 PM   #401
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: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Hi Ben,

I followed your "cover-on-standby" efforts on the project-page.

Again im stunned how easy and naturally the code looks like, if figured out and done correctly!
Maybe there should be intruduced some kind of settings, so that the use can decide to have the book-cover, or a random image as standby-picture?

I can go for the modifications, but with a holiday on next Thursday it will be next weekend to have it all done and tested.
I think I will start with the mentioned path-var in sim-config and then start with "my" apps (Sudoku and Minesweeper).

Regards
Mark
Mark Nord is offline   Reply With Quote
Old 06-20-2011, 01:36 AM   #402
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 Mark Nord View Post
Hi Ben,

I followed your "cover-on-standby" efforts on the project-page.

Again im stunned how easy and naturally the code looks like, if figured out and done correctly!
Maybe there should be intruduced some kind of settings, so that the use can decide to have the book-cover, or a random image as standby-picture?

I can go for the modifications, but with a holiday on next Thursday it will be next weekend to have it all done and tested.
I think I will start with the mentioned path-var in sim-config and then start with "my" apps (Sudoku and Minesweeper).

Regards
Mark
Hi Mark,

I quite agree about the easy and natural code - once you know what is available! I spent ages going through the DeFsk output, trying various things on my reader. It was so slow! One thing I started doing very early on was to get my reader to output a text file containing printouts of variable contents, etc. Then I discovered code to enumerate all the property and function names of an object. That was a break-through, since I could then work out what code was returning objects, what those objects were, and what could be done with them.

I quickly found the path to the current book - it was already in the PRS+ code, I think. One of my earlier attempts at getting the cover, was to get the thumbnail from the current book node. But that only gave a small image, and this was only generated if the reader was in "thumbnail" mode (I usually use "list" mode). Then the code for making it appear as the stand-by image only worked once after a cold start!

At some point I stumbled over BookUtil.thumbnail.createFileThumbnail. I was surprised when my output file said it had returned an object. I then tried to enumerate it, hoping to see width, height and jpeg properties, and was surprised to see only a dither function. But I had gone over the existing stand-by code enough to recognise this function and therefore what the object was. So I incorporated it into the code and out popped the cover as stand-by image! Needless to say, I was extremely pleased!

I totally agree that this should be incorporated into PRS+ with a setting. I think there are actually four options:

1. Default (blank screen)
2. Current book cover
3. Random image from user folder
4. Current reader display

That fourth one was requested by someone on the PRS+ request thread who was reading a scientific book very slowly and was finding the reader going into standby before they had a chance to turn the page! The only problem with option 4 is that you might think your reader had frozen, since the touchscreen does not respond and buttons don't work. But then if the user had selected that particular option for standby, then they will presumably know what is going on.

And that 4th option is not hard to do. In fact, I had that happen to me a few times over the weekend, when the "try" code failed, and the "catch" code did nothing.

@kartu, is this something you are interested in doing?

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 06-20-2011, 01:37 AM   #403
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 Mark Nord View Post
I can go for the modifications, but with a holiday on next Thursday it will be next weekend to have it all done and tested.
I think I will start with the mentioned path-var in sim-config and then start with "my" apps (Sudoku and Minesweeper).
Hi Mark,

Once you have done "your" apps, I can use your code to do "my" apps!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 06-20-2011, 02:54 AM   #404
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: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by BenChen View Post
.. Then I discovered code to enumerate all the property and function names of an object. That was a break-through, since I could then work out what code was returning objects, what those objects were, and what could be done with them....
I have to double that, Core.debug.dumpToString is a invaluable tool!

Though, if executed in a "sandboxed" context, it will only show the "scriptable" methodes/properties.
If defsk gives some additional methodes/props or inherited ones, then they can be accessed thru getSoValue and a full-qualified name.

Regards
Mark

PS: boroda puts a link to his version of defsk over at the-ebook.org. There is "While" implemented and the script will not fail with certain *.so's.
Mark Nord is offline   Reply With Quote
Old 06-26-2011, 10:32 AM   #405
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 Mark & kartu,

I have successfully updated my 600 to use the new game save location (without losing my personal customisations - Games & Utilities node and current book cover on standby). Everything appears to work really well. Game save folders appear where they are supposed to if they don't already exist. I then went in and moved my current game save files into the new location, creating a couple of the folders as necessary. Then when I tried those games out, they worked fine too.

Well done, Mark, on converting all the games! I would say they are definitely ready for the mainstream!

Sincerely,
Ben.
BenChen 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 04:09 AM.


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