![]() |
#316 |
Enthusiast
![]() ![]() Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
|
Touched up the archive, to fit in 600x800
I do not understand what should be in the XML file May be "short manual"? |
![]() |
![]() |
![]() |
#317 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Hi TJ,
Not a manual, but I've pushed a "empty" Spider-Solitaire project to the repository. spider.xml and spider.js just set up with very basic code. Code:
<assets> <import href="../AppAssets/AppAssets.xml"/> Code:
<behavior id="cardSprite"> <script on="mouseUp" params="event"> this.bubble("doCardClick",this); </script> </behavior> Code:
<style font="Swis721 BT"> <style id="swis24gry" size="24" style="" color="#6D6D6D"/> <style id="touchText" size="12" style="bold" color="#000000"/> </style> Code:
<texture href="spiderskins/deck.png"> <cutout id="cards" x="0" y="0" width="55" height="107" columns="55"/> // for 300/505 columns should be a multiply of 8 </texture> columns are addressed via u= use columns and lines if there is emty space between the graphics. Columns should be a multiply of 8 to avoid problems with PRS 300 and 505 Code:
<skin id="touchText" styles="touchText"/> <skin id="swis24gry" styles="swis24gry"/> <skin id="card" cutouts="cards"/> </assets> changeLayout (used in *.js) is defined like this: SPRITE.changeLayout(top,width,right,top,height,but tom); I hope this gets you started, but feel free to ask anytime. Regards Mark |
![]() |
![]() |
![]() |
#318 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
Any suggestiongs of a free code-example to port? (As you know, never write code on your own, if there is a source to copy 'n past. ![]() |
|
![]() |
![]() |
![]() |
#319 |
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Mark,
it was posted here. This site has online graphing calculator, not sure if it could be used. Wiki page on what is a graphing calculator. |
![]() |
![]() |
![]() |
#320 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Mark,
Just to let you know, I made some minor corrections to MineSweeper: a couple of spelling errors in the interface and some fixes to the help file. So do a marcurial pull at some point. By the way, the game is looking excellent! The bigger menus are much nicer. Well done, indeed! Sincerely, Ben. |
![]() |
![]() |
![]() |
#321 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Ben,
thanks for your ongoing support and encouraging ![]() BTW have you noticed that switching between clock/click-display is possible by tapping on the right(time) counter? Sincerely, Mark |
![]() |
![]() |
![]() |
#322 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#323 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Build issues with MineSweeper
Hi Mark,
I've been trying to build prs-plus with MineSweeper, but I am getting lots of syntax errors. Have you tried building it yet or have you only been testing it in the Sim? I looked at the code and I can see some stuff related to MineSweeper running in a web browser, but I tried commenting it out and it made no difference. Any thoughts? Sincerely, Ben. P.S. This is the error output from ant: Code:
BUILD FAILED E:\Source Code\Sony Reader\prs-plus\build\build.xml:84: The following error occu rred while executing this line: E:\Source Code\Sony Reader\prs-plus\build\build.xml:262: The following error occ urred while executing this line: E:\Source Code\Sony Reader\prs-plus\build\build.xml:358: org.mozilla.javascript. EvaluatorException: Compilation produced 16 syntax errors. at net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask$1.runtimeErr or(YuiCompressorTask.java:189) at org.mozilla.javascript.Parser.parse(Parser.java:410) at org.mozilla.javascript.Parser.parse(Parser.java:355) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScri ptCompressor.java:312) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScr iptCompressor.java:533) at net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask.createJavaSc riptCompressor(YuiCompressorTask.java:166) at net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask.compressFile (YuiCompressorTask.java:146) at net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask.execute(YuiC ompressorTask.java:100) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav a:398) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single CheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at net.sf.antcontrib.logic.ForEach.executeSequential(ForEach.java:178) at net.sf.antcontrib.logic.ForEach.execute(ForEach.java:254) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.Project.executeTarget(Project.java:1366) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe cutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) |
![]() |
![]() |
![]() |
#324 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
I'm testing and developing in the Sim only, and havn't tried building an installer until now. As I havn't started with code for non-touch reader. But, with respect to TJ27s posts, I was assuming that everything is working. So I tested it a moment ago and the built script, set up for model 600, succeeded. Have you, by chance, fetched ant-dependencies following step 5 of the ant installation manual? Code:
HTH Mark |
|
![]() |
![]() |
![]() |
#325 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Hi Mark,
It looks like I must have fetched ant-dependencies. I downloaded the latest ant binaries, deleted the contents of the ant folder and then unzipped. And now the build works. You don't have to answer this, but why did the build succeed every other time up until I added MineSweeper? Well, I am happy it builds, since it means I can try testing MineSweeper on my Reader. Thanks for your help, Mark. Sincerely, Ben. |
![]() |
![]() |
![]() |
#326 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Oops, I spoke too soon. I hadn't copied MineSweeper over to the prs-plus folders, and when I did, ant failed with the same errors as before.
![]() |
![]() |
![]() |
![]() |
#327 |
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
|
|
![]() |
![]() |
![]() |
#328 |
Enthusiast
![]() ![]() Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
|
get latest appAssets folder, edit xxx_config.js in core/compat folder (xxx - your model)
I use all games (draughts, minesweeper) and no problem P.S. Minesweeper - TOUCH version Last edited by TJ27; 05-08-2011 at 11:55 PM. |
![]() |
![]() |
![]() |
#329 |
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Guys, I've created new repository: apps, and disabled old 600-code. The content of the old repository was automatically cloned.
Please use "apps" from now on. (google increased max number of repositories, that's why it become possible) |
![]() |
![]() |
![]() |
#330 |
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Mark,
there is a minor glitch in calc, if you want to enter number that looks like 0.0x, if you start with dot it works fine, but if you start with 0 you can't enter 0 after dot. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |