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 03-30-2011, 01:19 AM   #271
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 surquizu View Post
the last version of draughts does not work in my 505. It starts with the attached screen and it does not do any more. The previous version works well.
I am guessing that your problem is with the startup script Draughts.js. This is what it looks like in the repository:

Code:
/* Name: Draughts game
   Original code (c) Ben Chenoweth
   Initial version: March 2011
*/

tmp = function() {
        var Draughts = {
                name: "Draughts",
                title: "Draughts",
                description: "Board game",
                icon: "GAME",
                activate: function () {
                        kbook.autoRunRoot.sandbox._icon = Core.config.compat.NodeKinds.getIcon("GAME",0);
                        kbook.autoRunRoot.sandbox._title = Draughts.title;              
                        kbook.autoRunRoot.sandbox.getSoValue = Core.system.getSoValue;
                        kbook.autoRunRoot.sandbox.hasNumericButtons = Core.config.compat.hasNumericButtons;
                        kbook.autoRunRoot.path = Core.config.addonsPath + "Draughts/draughts.xml";
                        kbook.autoRunRoot.enterIf(kbook.model);
                },
                actions: [{
                        name: "Draughts",
                        group: "Games",
                        icon: "GAME",
                        action: function () {
                                Draughts.activate();
                        }
                }]
        };
        
        Core.addAddon(Draughts);
};
try {
        tmp();
} catch (e) {
        // Core's log
        log.error("in Draughts.js", e);
}
Hopefully your file is different! Change it to the one above, and everything should be fine.

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 03-30-2011, 03:22 AM   #272
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
BenChen
Please make/adapt minisweeper , if possible
Attached Files
File Type: zip jsminedemo.zip (63.3 KB, 174 views)
TJ27 is offline   Reply With Quote
Old 03-30-2011, 04:10 AM   #273
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 TJ27 View Post
BenChen
Please make/adapt minisweeper , if possible
I guess it would be possible, but it would be difficult since the original game uses left and right clicking. I'll think about it, but don't hold your breath!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 03-30-2011, 04:21 AM   #274
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
BenChen
And for not needs modify kBookIcon.png and xxx_config.js after add new games/applications place game/app icon to game/app directory
TJ27 is offline   Reply With Quote
Old 03-30-2011, 05:00 AM   #275
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 TJ27 View Post
BenChen
And for not needs modify kBookIcon.png and xxx_config.js after add new games/applications place game/app icon to game/app directory
That would only work if we just wanted the icon in the top-left corner of the game. Instead, we want the icon to be available in PRS+ menus as well. So it has to be included in kBookIcon.png and config files.

However, Mark has an idea that would mean the GAME icon would be used if the game-specific icon is not available.

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 03-30-2011, 02:33 PM   #276
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
Post

Quote:
Originally Posted by BenChen View Post
I guess it would be possible, but it would be difficult since the original game uses left and right clicking. I'll think about it, but don't hold your breath!

Sincerely,
Ben.
About the left and right clicking: could be bound to previous and next button.
previous for mark, flag, free
next for check surrounding and
size (center for 300/505) for step on
But isn't there a tap on and clear all surroundings, too?
If so, could be hold-size/center.

So that taping the square will only highlight it.

On the other hand I am thinking of enhanced "tap-control".
Tap-and-hold should be easy to dedect if
PSEUDOCODE:
Code:
onMouseDown 
  {    downtick = now}
onMouseUp
   { if (now - downtick > 1000 mS) { call hold-func}
    else { call click func} }
With a reliable timer-function it should be possible to realize double-tap, too.
Again PSEUDOCODE:
Code:
else { if( timer == undefined) {
      CPUcanSleep(false);
      start timer(500, timercallback);}
   clickcount++ }
     
timercallback {
  kill timer;
  delete timer;
  CPUcanSleep(true);
  if (clickcount==1 ) {call click func}
  else { if (clickcount>1) { call doubleclick func}}
  clickcount=0;
}
Something like that is defined in x50 xsb/xso code for double-tap.

So tap could be used for mark, flag, free
tap-and-hold = check surrounding
double-tap = step on
no idea for step on an clear surrounding.

Comments anybody?

Maybe I can work on this next weekend, but (as Ben says) don't hold your breath.

PS:
Additionaly core-functionality/code in Sim dosn't use /compat/ and /lang/ scripts.
This should be enabled, too.

Last edited by Mark Nord; 03-30-2011 at 02:45 PM.
Mark Nord is offline   Reply With Quote
Old 03-30-2011, 03:45 PM   #277
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 BenChen View Post
I am guessing that your problem is with the startup script Draughts.js. This is what it looks like in the repository:



Hopefully your file is different! Change it to the one above, and everything should be fine.

Sincerely,
Ben.
Perfect. I forgot to copy the folder AppAssets

Last edited by surquizu; 03-30-2011 at 05:05 PM.
surquizu is offline   Reply With Quote
Old 03-30-2011, 04:25 PM   #278
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
Ben, to incluide the new modifications of the games on the reader (for example PRS 505) is it necesary to copy the script appassets too?

thanks
VICTORSJG is offline   Reply With Quote
Old 03-30-2011, 05:06 PM   #279
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 VICTORSJG View Post
Ben, to incluide the new modifications of the games on the reader (for example PRS 505) is it necesary to copy the script appassets too?

thanks
Yes Victor
surquizu is offline   Reply With Quote
Old 03-31-2011, 02:05 AM   #280
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
@VICTORSJG, yes as surquizu says, you must copy the AppAssets folder as well. All the games now use these common files. This saves space and actually makes it easier to maintain.
BenChen is offline   Reply With Quote
Old 04-01-2011, 11:40 AM   #281
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
New game: XO-Cubed

Hi everyone,

You'll find a new game in the FSK repository now. It's "XO-Cubed", otherwise known as "3-d Four In A Row" or "3-d Tic-Tac-Toe".

Note that this is an alpha release. It has NOT yet been tested on a Sony Reader, but it appears to work fine in the Sim. Also, currently only 2-player mode works. But I will be starting on AI when I get the chance, so stay tuned!

Enjoy!

Sincerely,
Ben.
Attached Thumbnails
Click image for larger version

Name:	2011-04-01_193513.png
Views:	245
Size:	37.5 KB
ID:	69332  
BenChen is offline   Reply With Quote
Old 04-01-2011, 01:25 PM   #282
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 BenChen View Post
Note that this is an alpha release. It has NOT yet been tested on a Sony Reader, but it appears to work fine in the Sim. Also, currently only 2-player mode works. But I will be starting on AI when I get the chance, so stay tuned!
I've made a start on the AI. Stage one implemented (and pushed to the repository), with reasonable AI. I will continue to tinker with it, so expect further updates.

And I've tested it on my Reader. All good!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 04-01-2011, 02:16 PM   #283
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
Ben, i've downloaded the all repository with mercurial with the new modifications, and when i push key number three to run oxcubed nothing occure.

Last edited by VICTORSJG; 04-01-2011 at 02:20 PM.
VICTORSJG is offline   Reply With Quote
Old 04-01-2011, 02:23 PM   #284
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 VICTORSJG View Post
Ben, i've downloaded the all repository with mercurial with the new modifications, and when i push key number three to run oxcubed nothing occure.
What screen resolution are you using? I thought I modified the sim menu files correctly, but I only tested one resolution.
BenChen is offline   Reply With Quote
Old 04-01-2011, 02:32 PM   #285
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
The 800 pixel, with yours new modification for 800 pixel and prs 950. works fine.

Thanks

Last edited by VICTORSJG; 04-01-2011 at 02:39 PM.
VICTORSJG 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 01:45 AM.


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