![]() |
#346 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Hi Mark,
Yes, I saw that the format had changed. I wanted to keep my best times, so I used a newly created dat file (created by the Sim) and edited it to include my best times. Then I put that on my 600 in the correct place. But when MineSweeper starts, the times are not loaded. And when MineSweeper quits, it is overwriting the existing file. I then tried winning, thereby making a best time, then quitting, and then going back in. But the time was not retained. (I didn't check to see if the file had been written out correctly with the new best time. I would have needed to connect my 600 to a computer straight after having made a best time to check that. But I am assuming it was.) So it seems that the file location is working, but not the loading. I will keep experimenting tomorrow... ![]() Sincerely, Ben. |
![]() |
![]() |
![]() |
#347 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Hi Ben,
two things you may look at: 1) parseBoolean() could be replaced with values[1] == 'true' 2) minesweeper.dat in my Sim has 0D 0A / CR LF windows linebreaks can this be a problem? Regards Mark PS: there is a report of extensive battery drain afte using Sudoku with a PRS-600 on the PRS+ issues-page. Do you observe a similar behaviour? With Sudoku and/or Minesweeper? As this are the only games utilizing the FSK-Menus. |
![]() |
![]() |
Advert | |
|
![]() |
#348 | |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Hi Mark,
That got it. Here's the relevant part of my code: Code:
// This is not necessary. A simple result = (param == 'true') would do //var parseBoolean = prsp.compile("param", "return Core.system.rootObj.__xs__boolean.parse(param)"); // reads values of target.settings.xx form file target.loadSettings = function (){ var stream, inpLine; var values = []; try { if (FileSystem.getFileInfo(datPath)) { stream = new Stream.File(datPath); while (stream.bytesAvailable) { inpLine = stream.readLine(); values = inpLine.split(':'); if (values[1] == 'true') { target.settings[values[0]] = true; } else if (values[1] == 'false') { target.settings[values[0]] = false; } else { target.settings[values[0]]=values[1]; } // target.bubble('tracelog',target.settings[values[0]]); } stream.close(); } } catch (e) {} // target.bubble('tracelog',_Core.debug.dumpToString(target.settings,' ',1)); // debug } Quote:
Sincerely, Ben. |
|
![]() |
![]() |
![]() |
#349 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
strange, I will have to check with the last Core-Code, and B) remember don't mess around with sophisticated code if it can be done straight ![]() Regarding the battery drain: Leo states, that it is not lengthy use of the game. He just opens up, plays one move and closes the app. Due to the state of the code in the default repository, he had to go by the menu exit->quit as the home-button isn't assigned. So basically you should see the same problem. Maybe only when exiting via menu, as the code to break the menu-loop is suspicious. Regards Mark |
|
![]() |
![]() |
![]() |
#350 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Hi Mark,
Yes, I tend to exit using the Home button. (And I had personally modified my Sudoku a while ago so I could exit using the Home button.) So perhaps the menu-loop thing is the cause of the battery drain. Sincerely, Ben. |
![]() |
![]() |
Advert | |
|
![]() |
#351 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Hi everyone,
I just pushed an update of Mahjong to the apps repository. The changes are as follows: - The game remembers the last layout used and loads it automatically - I reordered the layouts a little (so that China comes before China2, etc...) - I removed the test layout - I added a new layout: Aztec (This was mostly just an experiment to see if I could work out the layout "code". If there is interest in more layouts I could do more.) Sincerely, Ben. |
![]() |
![]() |
![]() |
#352 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
I can call Minesweeper and it didn't lock up the reader. But if Minesweeper is called as very first app, init() seams to fail and the grid isn't filled. But exit via "0" is possible. Menus can be called too (and looks cool so far), but no options are set. So again there seams to be a fault in init. Next start Calc and exit it. Restart Minesweeper. Now everything is fine and playable ![]() Though the about dialog didn't catch the center-button to close it. Will have to digg further into this. Mark [EDIT] Startup-Issue was caused by missing _icon and _titel in startup-code. Finally figured how to set up a dialog-skin. Panels didn't react to custom code. [/EDIT] Last edited by Mark Nord; 05-29-2011 at 03:35 PM. |
|
![]() |
![]() |
![]() |
#353 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Starting the second year
and still on page one!
With all previous available apps/games ported to the touch-generation of sony-readers, and a whole bunch of new apps/games (special thanks to BenChen), I think this is not so bad. A big ![]() ![]() Sincerely, Mark |
![]() |
![]() |
![]() |
#354 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
New Game MineSweeper
Finally MineSweeper reached publice beta state!
Code is pushed to the repository apps Playable on all Sony-PRS with PRS+ 2.0.x (touch and non-touch) (Checked with PRS-505, earlier versions reported to work on 350 and 600) Nothing special, but
Have fun Mark |
![]() |
![]() |
![]() |
#355 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
|
Works great on my 505. Thanks.
|
![]() |
![]() |
![]() |
#356 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Updating games in PRS+
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. |
![]() |
![]() |
![]() |
#357 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
As menu-definitions are move to AppAssets.xml Mark Last edited by Mark Nord; 05-30-2011 at 03:12 PM. |
|
![]() |
![]() |
![]() |
#358 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
surquizu
Can you think of a nice MineSweepe- Icon? Would be much appreciated! Any skilled GFXer MineSweeper-Skin "ms_labels.png" is still an upscaled version of the original-browser-game images. Please feel free to rework them, as long as you stick with 16 shades of grey (8 are shown on PRS300/500) and the overall layout in the file. Regards Mark |
![]() |
![]() |
![]() |
#359 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#360 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
|
Quote:
My "games & utilities" display and 3Dicons with the MineSweeper icon (BOMB): |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |