![]() |
#391 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#392 |
Enthusiast
![]() ![]() 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 ![]() |
![]() |
![]() |
![]() |
#393 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 Last edited by VICTORSJG; 06-09-2011 at 01:19 PM. |
![]() |
![]() |
![]() |
#394 |
Enthusiast
![]() ![]() 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
|
![]() |
![]() |
![]() |
#395 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#396 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#397 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#398 | |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#399 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#400 | |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#401 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#402 | |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#403 | |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
Once you have done "your" apps, I can use your code to do "my" apps! Sincerely, Ben. |
|
![]() |
![]() |
![]() |
#404 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#405 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |