View Single Post
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