![]() |
#226 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Hi everyone,
After fixing the status bar of Sudoku, I decided that I could use the same status bar graphic in my games. While this is a very minor update, the end result looks good! So Chess, Draughts, FiveRow and FreeCell have been updated. See post #193 for zip files. Sincerely, Ben. |
![]() |
![]() |
![]() |
#227 | |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
No, I had not seen them. They are brilliant, especially the 3-d ones! Is there a plan to incorporate both sets into PRS+ officially? Sincerely, Ben. |
|
![]() |
![]() |
Advert | |
|
![]() |
#228 |
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
Ben,
if possible, move common stuff to the ../../common (or something) please, so that addons could reuse common background. (most *main images) The copyright text could be put there as a label. Big part of chessLabels, draughtLabels etc is again mostly the same images with a lot of white space. Texts in the image background make game hard to localize, on top of consuming more memory. Would be nice if you found time to change that as well. |
![]() |
![]() |
![]() |
#229 | |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
Certainly, I will start with the main images. It might take a lot longer to do the labels images. Sincerely, Ben. |
|
![]() |
![]() |
![]() |
#230 |
Enthusiast
![]() ![]() Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
|
I can not normally run freecell last
version (with the text help) in the prs + 2.10 kartu. In fsk simulator everything is fine. I do not understand what to edit in js, or xml files. Runs as a version for the 505 (although I have 350) and the help page blank. |
![]() |
![]() |
Advert | |
|
![]() |
#231 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
Most of the main-images could be resized dramaticaly. Especially if we put the copyright-sign into a lable (not sure if it can be orientated verticaly). It's also possible to reduce the freecellMain further, if we use sprites for foundations, instead of background-grafic. Regards Mark |
|
![]() |
![]() |
![]() |
#232 | |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Quote:
I will wait to see what you have done. (I was a little uncertain where to place the common items and then how to refer to them in the xml files!) Copyright messages don't have to be vertical. I will simply locate them horizontally elsewhere (perhaps where they appear in Chess and Draughts.) And yes, we can use sprites for the foundations, meaning that freecellMain can be replaced by a standard main. By the way, I did one already, so I've attached it. Sincerely, Ben. |
|
![]() |
![]() |
![]() |
#233 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
(Note: if the error occurs before Code:
kbook.autoRunRoot.sandbox.hasNumericButtons = Core.config.compat.hasNumericButtons; Furthermore getFileContent - function isn't handed over, and so the help-text isn't loaded.) The starter-files like "FreeCell.js" in the addons-folder aren't used by the Sim, and can contain erroneous code. JS-execution is stopped immediately at the first error, if not trapped by a try/catch statement. Try to use this simplified starter-code: Spoiler:
HTH Mark |
|
![]() |
![]() |
![]() |
#234 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
First preview of common AppAssets
As advised, here is a first preview of common AppAssets.
Done quick 'n dirty, but it should illustrate the idea for Calc and FreeCell. I've decided to use "freecellLabels.png" as base for AppLabels.png, [EDIT] and added the chess and fiverow grafics. [/EDIT] Common assets are defined in AppAssets.xml. [EDIT] Chess and FiveRow cutouts need to be defined in AppAssets.xml [/EDIT] Both files are located in AppAssets-folder under addons. Common AppAssets are imported this way into the app-main.xml: Code:
<assets> <import href="../AppAssets/AppAssets.xml"/> ... Feel free to ask for further informations if this is not clear enough. Regards Mark PS: of course should "AppLabels.png" be reworked, with labels packed closer. Texture-names should be reviewed (gCursor -> pointingHand, a.s.o) and some more, and better named standard-text styles should be defined in "AppAssets.xml" Last edited by Mark Nord; 03-24-2011 at 03:39 PM. Reason: more complete AppLabels.png added |
![]() |
![]() |
![]() |
#235 |
Enthusiast
![]() ![]() Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
|
Mark Nord
Thank you? i insert in addons.js (prs+ 2.10a) to section "activate" freecell game kbook.autoRunRoot.sandbox._icon = a.icon; kbook.autoRunRoot.sandbox._title = a.title; kbook.autoRunRoot.sandbox.getFileContent = Core.io.getFileContent; and freecell work fine. |
![]() |
![]() |
![]() |
#236 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
AppAssets (cont.)
Hi Mark,
Nice work! Now, I made a start on Chess, and I think I have it working fully. However, when I turned to Five in a Row, I ran into a problem. I cannot get it to work in the Sim at all. There is clearly an error in fiverow.xml (since the screen doesn't even appear) but I cannot find it. Could you take a look? Something might leap out at you that I am just not seeing. I've attached my updated files for AppAssets, FreeCell (I added the copyright text), Chess and FiveRow. Everyone else, these are works in progress and are not intended for you! (Not yet...) Sincerely, Ben. Last edited by BenChen; 03-26-2011 at 03:27 AM. Reason: Attachment removed |
![]() |
![]() |
![]() |
#237 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
So you are doing this manually. Another way should be, to run the modified scripts through the ant-build-script, to generate a new, custom installer. (See Wiki at the project-page: BuildingPRSPlus) |
|
![]() |
![]() |
![]() |
#238 | |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Thanks a lot!
Quote:
Code:
<group id="AUTORUN_GROUP" left="0" right="0" top="0" bottom="0" visible="false"> <panel skin="AppMainSkin" left="0" right="0" top="0" bottom="0"/> |
|
![]() |
![]() |
![]() |
#239 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
Hi Mark,
Brilliant! I was hoping it would be something obvious that I was just looking right passed! Thanks so much. Sincerely, Ben. |
![]() |
![]() |
![]() |
#240 |
EPUB Metadata ******
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
|
AppAssets (cont.)
Hi Mark,
One last issue remaining with Draughts. I moved the "Keep jumping, or click piece to end your turn." into a label, but I need to place some temporary graphics underneath. So I tried to make a "popup". I added the appropriate graphic to AppAssets.png and then in AppAssests.xml I made a skin called "popup" (using popup-l, popup-c and popup-r cutouts) and then in draughts.xml I call it as a sprite with id='jumpTextBox'. But it doesn't work. The sprite appears basically as it appears in AppAssests.png, but doesn't expand to the intended size of the sprite. Can you take a look and see what I am doing wrong? Again, everyone else, please wait until we have this conversion sorted out! Sincerely, Ben. Last edited by BenChen; 03-26-2011 at 03:33 AM. Reason: Attachment removed |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |