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-12-2011, 11:00 AM   #151
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


So the whole thing was/is operational at least.
The lockup of the touch-interface was foreseeable.
But the big question now is which on of the changes between sudoku_cklick.zip and the actual version is preventing proper operation with touch-devices?
As the code is fully operational with my PRS-505.

At first we should have a look on:
  • the function export in the startup-code
  • and the core-workaround in init()

Last edited by Mark Nord; 02-12-2011 at 02:32 PM. Reason: typos
Mark Nord is offline   Reply With Quote
Old 02-12-2011, 06:52 PM   #152
hcripe
Junior Member
hcripe is on a distinguished road
 
Posts: 5
Karma: 55
Join Date: Feb 2010
Location: Kansas - USA
Device: Sony PRS-600
I was experimenting, and copied the sudoku.xml file from the Sudoku_Click version and the menus started working. The coordinates were off, but everything seemed to work.

I copied parts of the newer file and had it completely working, but then overwrote my working xml file and now I can't get it back working again.

I will continue to try to narrow down what was changed when I had it completely working, but the menus do work with the older xml file.

Howard
hcripe is offline   Reply With Quote
Old 02-13-2011, 03:55 AM   #153
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
Interesting news.
This now points to a wronge/missing style or skin definition in the .XML, which will be taken form the desktop-definitions within the Sim.
But why is working at a PRS-505?
[EDIT]
Just rechecked, and yes I am using the latest code at my PRS-505
Used a file-compare-utillity and couldn't figure out a obvious error.
Only candidate I can see is the panel id="cnum"
[/EDIT]

Last edited by Mark Nord; 02-13-2011 at 05:15 AM. Reason: rechecked the code
Mark Nord is offline   Reply With Quote
Old 02-13-2011, 07:56 AM   #154
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
Mark, the version of Calculator currently in repository (should be about 3 month old) is working on 600 (didn't remember about it and didn't try it on x50). But I remember neither which version it was, nor if I've changed anything in it. (silly me )
kartu is offline   Reply With Quote
Old 02-13-2011, 08:32 AM   #155
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
Kartu, we discussed it from post #42 on.
There was a problem with the offset while calculating the correct button-action and a problem with popen openp function-name missmatch.

I've implemented this in the version included in the actual Sim-package plus the following:
Quote:
Calc:

* prepared for translation and App-Icon
* button-sender to array-index is now independent of Sim/real device
* gridCursor is only shown for PRS-505/300
Regards Mark

Last edited by Mark Nord; 02-14-2011 at 02:25 PM.
Mark Nord is offline   Reply With Quote
Old 02-13-2011, 01:55 PM   #156
hcripe
Junior Member
hcripe is on a distinguished road
 
Posts: 5
Karma: 55
Join Date: Feb 2010
Location: Kansas - USA
Device: Sony PRS-600
I got Sudoku working on the PRS-600 today. It turned out to be the gridCursor lines in the Sudoku.xml file.

Using the files from the Sudoku_Fix.rar file, I added the gridCursor lines back from the Sudoku_Click files. There were three changes:

1 - <cutout id="gCursor" x="0" y="80" width="44" height="44"/>

2 - <skin id="gridCursor"
cutouts="gCursor"/>

3 - <sprite skin="gridCursor" id="gridCursor" left="81" width="44" top="195" height="44" u="0" active="false" canFocus="true"/>


This made the menus work properly. I don't have a PRS-505 to test with, so I don't know if this breaks it for the 505.

I have attached the Sudoku.xml file I am using.


Howard
Attached Files
File Type: xml sudoku.xml (28.0 KB, 431 views)

Last edited by hcripe; 02-13-2011 at 05:16 PM.
hcripe is offline   Reply With Quote
Old 02-13-2011, 05:13 PM   #157
hcripe
Junior Member
hcripe is on a distinguished road
 
Posts: 5
Karma: 55
Join Date: Feb 2010
Location: Kansas - USA
Device: Sony PRS-600
One more beginner question. I have seen references in this thread to a simulator for the PRS-505 and PRS-600. Where do I go to find the simulator for Windows and is it hard to get running? I have very little JavaScript experience (mostly assembler, C, C++ and C#), and I'm just starting to learn to program the Sony devices.

Any help would be greatly appreciated.

Thanks,
Howard
hcripe is offline   Reply With Quote
Old 02-14-2011, 02:33 AM   #158
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 Howard,

Well done on getting Sudoku working on the 600!

The simulator is in post #59. I would not have been able to program my three games without it!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 02-14-2011, 03:05 AM   #159
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 hcripe View Post
I got Sudoku working on the PRS-600 today. It turned out to be the gridCursor lines in the Sudoku.xml file.
...
3 - <sprite skin="gridCursor" id="gridCursor" left="81" width="44" top="195" height="44" u="0" active="false" canFocus="true"/>
....
Thank you Howard for finding this!

I have this lines removed, because the sprite isn't used any longer, BUT each <group> needs at least one (1) focusable sprite to process events.

Seams that for the non-touch setup there is one, while for the touch version it was missing. (I tought that one of the "gridsprites" will act accordingly)

Quote:
Where do I go to find the simulator for Windows and is it hard to get running?
As Ben stated the latest code is in Post #59. It is also linked from the very first post in this thread.

Just unpack the ZIP in any folder you like and start "FSK Starter.exe"
(A vertical screen-resolution of 1024 lines or more is recommended -
If missing DLLs are reported copy them from the original Sony Firmware Updater for PRS-505. As the Sim is based on it).

I would recommend to read at least Post #1, #6, #24 and #31 in this thread, too.

Enjoy developing for your Sony!

PS: If your C knowledge suits embeded Linuxes, there are challenges for a JS to binary gateway, as well as integrating a stardict-compatible dictonary for all Sony - PRS.

Last edited by Mark Nord; 02-14-2011 at 03:08 AM.
Mark Nord is offline   Reply With Quote
Old 02-14-2011, 09:45 AM   #160
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, in a couple of days I'll return to including these apps into x50 (and other) versions, so sharpen your knifes.
kartu is offline   Reply With Quote
Old 02-14-2011, 10:00 AM   #161
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
That's excellent news! Let me know if there is anything you need from me. Specifically, with respect to Fiveballs, Mahjong, Five In A Row, Freecell and Chess.
Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 02-14-2011, 10:23 AM   #162
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
Quote:
Originally Posted by BenChen View Post
That's excellent news! Let me know if there is anything you need from me. Specifically, with respect to Fiveballs, Mahjong, Five In A Row, Freecell and Chess.
Sincerely,
Ben.
Ben, one thing I've noticed was, on x50-s was code didn't compile until I've replaced copyright sign (not sure if it was caused by the sign itself, or because it wasn't correctly encoded). Could you replace them with ASCII (c) please?
kartu is offline   Reply With Quote
Old 02-14-2011, 10:44 AM   #163
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 kartu View Post
Guys, in a couple of days I'll return to including these apps into x50 (and other) versions, so sharpen your knifes.
Fine!
Unfortunately I will be on a business-trip and will have no internet-access from Wednesday 17th till Monday 21st.

Last edited by Mark Nord; 02-14-2011 at 02:07 PM. Reason: typos (as usual)
Mark Nord is offline   Reply With Quote
Old 02-14-2011, 12:14 PM   #164
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 kartu View Post
Ben, one thing I've noticed was, on x50-s was code didn't compile until I've replaced copyright sign (not sure if it was caused by the sign itself, or because it wasn't correctly encoded). Could you replace them with ASCII (c) please?
I think I got them all. Post #145 has been updated accordingly.

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 02-18-2011, 10:34 AM   #165
hcripe
Junior Member
hcripe is on a distinguished road
 
Posts: 5
Karma: 55
Join Date: Feb 2010
Location: Kansas - USA
Device: Sony PRS-600
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
Attached Files
File Type: rar Sudoku.rar (72.5 KB, 253 views)
hcripe 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 12:57 AM.


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