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 05-18-2011, 03:11 PM   #346
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
have you tried to delete "minesweeper.dat" form IM?
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.
BenChen is offline   Reply With Quote
Old 05-18-2011, 03:43 PM   #347
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,

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.
Mark Nord is offline   Reply With Quote
Advert
Old 05-19-2011, 01:42 AM   #348
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
1) parseBoolean() could be replaced with values[1] == 'true'
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:
Originally Posted by Mark Nord View Post
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.
Unfortunately, since I don't like Sudoku, I have not noticed a problem since I have not used it for any length of time. Sorry! Similarly, I have not used MineSweeper for any extended length of time - mainly just testing!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 05-19-2011, 02:07 AM   #349
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
..
Unfortunately, since I don't like Sudoku, I have not noticed a problem since I have not used it for any length of time. Sorry! Similarly, I have not used MineSweeper for any extended length of time - mainly just testing!
Thank you Ben,

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
Mark Nord is offline   Reply With Quote
Old 05-20-2011, 09:00 AM   #350
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,
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.
BenChen is offline   Reply With Quote
Advert
Old 05-20-2011, 10:10 AM   #351
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 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.
BenChen is offline   Reply With Quote
Old 05-22-2011, 03:21 PM   #352
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 surquizu View Post
...
Minesweeper does not work on the reader PRS-505. Appears on the menu of "Games and utilities" but not opens. Locks the reader.
...
I've set up my PRS-505 today with a custom build of PRS+2.0.11 + apps form the app-repository.

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.
Mark Nord is offline   Reply With Quote
Old 05-24-2011, 03:52 PM   #353
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
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 to all contributors keep up the good work.

Sincerely,
Mark
Mark Nord is offline   Reply With Quote
Old 05-29-2011, 03:31 PM   #354
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
New Game MineSweeper

Quote:
Originally Posted by Mark Nord View Post
Just to avoid redundancies, I've started on 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
  • Some new code to get a popup-menu - lookalike on non-touch reader.
  • Some new code to interact with buttons on non-touch reader.
Possible enhancements: tick gameclock with hardware-timer for x50 models

Have fun
Mark
Attached Thumbnails
Click image for larger version

Name:	Image1.jpg
Views:	222
Size:	161.5 KB
ID:	72057   Click image for larger version

Name:	Image2.jpg
Views:	216
Size:	94.7 KB
ID:	72058  
Mark Nord is offline   Reply With Quote
Old 05-29-2011, 05:08 PM   #355
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
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.
Attached Thumbnails
Click image for larger version

Name:	2011-5-29_4.jpg
Views:	204
Size:	41.7 KB
ID:	72061   Click image for larger version

Name:	2011-5-29_5.jpg
Views:	204
Size:	39.2 KB
ID:	72062  
surquizu is offline   Reply With Quote
Old 05-30-2011, 11:43 AM   #356
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
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.
BenChen is offline   Reply With Quote
Old 05-30-2011, 02:51 PM   #357
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
...
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.
...
Sudoku in the apps-repository should already use the bigger menu!
As menu-definitions are move to AppAssets.xml

Mark

Last edited by Mark Nord; 05-30-2011 at 03:12 PM.
Mark Nord is offline   Reply With Quote
Old 05-30-2011, 03:12 PM   #358
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
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
Mark Nord is offline   Reply With Quote
Old 05-30-2011, 03:24 PM   #359
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
Sudoku in the apps-repository should already use the bigger menu!
Oops! That means I haven't checked it out for a while. (Or I have had a repository merge issue which I was not aware of...)

Thanks, Mark!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 05-30-2011, 05:03 PM   #360
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
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:
Originally Posted by Mark Nord View Post
surquizu

Can you think of a nice MineSweepe- Icon? Would be much appreciated!



Regards
Mark
Done.

My "games & utilities" display and 3Dicons with the MineSweeper icon (BOMB):
Attached Thumbnails
Click image for larger version

Name:	2011-5-29_6.jpg
Views:	228
Size:	47.0 KB
ID:	72105   Click image for larger version

Name:	kBookIcon.png
Views:	204
Size:	178.4 KB
ID:	72106  
Attached Files
File Type: zip 505_config.zip (2.0 KB, 3656 views)
File Type: zip kBookIcon-3D.zip (176.4 KB, 157 views)
surquizu 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 09:45 PM.


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