Author Topic: Megazine v2 beta  (Read 1774 times)

karl

  • Newbie
  • *
  • Posts: 12
Megazine v2 beta
« on: September 02, 2009, 06:26:16 PM »
Hello,
Page loading with beta 2 seems improved, sure much better then in 1.38 however still some blank pages in the book. Maybe timeout related ?
Book fits very nice in the browser now however Scaling doesn't work. http://www.chaos.000space.com/mag/m2.beta/
No plugins enabled, I don't have a clue how to enable/disable things in this version.

Here are some errors i get once and a while ...
** [18:34:15] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:15] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:16] [      Img      ] Warning: Error loading file: http://ww...egazine/src/ph-fcover-2.jpg in page 0
** [18:34:16] [      Img      ] Warning: Error loading file: http://ww.../megazine/src/my-0001-l.jpg in page 1
** [18:34:16] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:16] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:16] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:16] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:16] [      Img      ] Warning: Error loading file: http://ww.../megazine/src/my-0001-r.jpg in page 2
** [18:34:16] [      Img      ] Warning: Error loading file: http://ww.../megazine/src/my-0002-l.jpg in page 3
** [18:34:17] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:17] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:17] [      Img      ] Warning: Error loading file: http://ww.../megazine/src/my-0003-l.jpg in page 5
** [18:34:17] [      Img      ] Warning: Error loading file: http://ww.../megazine/src/my-0002-r.jpg in page 4
** [18:34:17] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:17] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:17] [      Img      ] Warning: Error loading file: http://ww.../megazine/src/my-0003-r.jpg in page 6
** [18:34:17] [      Img      ] Warning: Error loading file: http://ww.../megazine/src/my-0004-l.jpg in page 7
** [18:34:18] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:18] [ CachingLoader ] Warning: Failed loading graphic: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
** [18:34:18] [      Img      ] Warning: Error loading file: http://ww.../megazine/src/my-0004-r.jpg in page 8
** [18:34:18] [      Img      ] Warning: Error loading file: http://ww...m2.beta/megazine/src/p2.jpg in page 9

Regards, Karl

hnuecke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 402
  • MegaZine3 Sales Manager
Re: Megazine v2 beta
« Reply #1 on: September 02, 2009, 06:58:32 PM »
Regarding enabling plugins I can help:
You have to define what plugins should be included in the <book> element; somthing like this:
Code: [Select]
<book plugins=
    "anchors, navigationbar, backgroundsound, batchpages, gallery, keyboardnavigation, links, titles, swfaddress"
     bgcolor="0xbba978" pageheight="610" pagewidth="460" lang="de,en" reflection="false" zoominit="0">

Simply list those plugins you intend to use.
The pluigins can be found in the megazine/plugins/ folder.
All the names of the .swf files are plugins. Take the same names when listing it in the book  under plugins=...

Regarding the errors: are you sure thos files exist under that names in the right directory?
I had a similar mistake when after copying some lines I forgot to correct the numbers or had typed by mistake an additional character.





karl

  • Newbie
  • *
  • Posts: 12
Re: Megazine v2 beta
« Reply #2 on: September 03, 2009, 09:29:47 AM »
Hi,
Thanks for your help regarding the plugins.
How ever i can't find how to put the navigation on the top.
Analyzing the asul file, i can't find anything related to top or bottom position.
Regarding the errors (blank pages and broken images);
Yes i'm sure the files exist in the correct directory and the xml is ok.
It's not that allways the same images are missing, it's kinda random fenomen, if you browse the book a few times you notice that pages you see before correctly, suddenly are blank or the image is only partially displayed. I don't have this problem on a local server, that's why i think it's kind of timeout related problem in the page loader.

btw have you any idea why the scaling doesn't work ?

Taking a closer look at the new v2 structure i have a few remarks about it;
Suppose i have say 15 books all with different layout, each book has more or less buttons / positions or different image buttons in the navigation etc,
how can this be done without having 15 asul files ?

Thanks, regards Karl

hnuecke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 402
  • MegaZine3 Sales Manager
Re: Megazine v2 beta
« Reply #3 on: September 03, 2009, 09:40:23 AM »
Sorry, I cannot answer right now. Started to work with 2.0 on Sunday, and still learning day by day a little bit ;-)
I am working on that (with Florian's help ;-)
Hopefully tonight we can give some hints...

hnuecke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 402
  • MegaZine3 Sales Manager
Re: Megazine v2 beta
« Reply #4 on: September 03, 2009, 08:02:29 PM »
OK, I could get hold of Florian; briefly ;-)

Here a summary:

Scaling is not supported yet in V2.0; this will follow in one of the next versions (BTW, this is stated in the FAQ in the wiki).
There Florian recommends to use 1.38 for the moment, if you need scaling.

Positioning of the navigation bar: you looked into the right file.
It is the navigationbar.asul you have to modify.
There you find this line:

Code: [Select]
- <box height="24" anchors="(pw)/2-pagew,(ph+pageh)/2+25,(pw)/2+pagew" clipchildren="false">

You have to modify the position of the anchor. Leave the first (xpos) and last parameter (width) unchanged and adjust the 2nd one (ypos).
Something like (ph-pageh)/2 - 25 could work.
ph: parent hight
pageh: page height
pw: parent width
pagew: page width


Regarding your pictures missing on pages sometimes (BTW very nice pictures!):
this looks like a problem with your pearl script (we guess); or the cooperation of megazine with that script.
The problem is only during caching. Once all pages are loaded (I have a big RAM and loading all is not a problem) they are presented.
Try to create a static megazine.mz3. Instead of dynamically creating one with your script. Just to prove this assumption.
Hopefully then our hint will help you to find a solution/work around.

Your  point about the need to support  different asul files is valid and Florian already planned to add a parameter to dynamically select the appropriate GUI folder (so you do not have to keep copies of all binaries also).

« Last Edit: September 03, 2009, 08:06:44 PM by hnuecke »

giuvax

  • Newbie
  • *
  • Posts: 14
Re: Megazine v2 beta
« Reply #5 on: September 04, 2009, 11:05:59 AM »
Positioning of the navigation bar: you looked into the right file.
It is the navigationbar.asul you have to modify.
There you find this line:
[cut]

Oh! Thank you!
I was going crazy searching a place where to insert top, bottom or whatever.


Giulia

karl

  • Newbie
  • *
  • Posts: 12
Re: Megazine v2 beta
« Reply #6 on: September 04, 2009, 04:07:38 PM »
Hello,
Thanks again for the info.
Regarding the missing pages and partially displayed images;
Since the page loader seems indentical for 1.38 and 2.0 i did some intensive tests on v1.38.
First let me state this:
1 - the page images are in the right spot on the server.
2 - i tested static and dynamic xml file, with correct image and path references.
3 - the xml is loaded before any page caching starts by the megazine.swf.
4 - when blank pages are displayed, those images can not be found in the cache.
4 - when disrupted images are displayed, checking in cache also reveals a disrupted image.

The problems clearly appear only on the slower server http://www.chaos.000space.com/mag/m2/
I did some tests on http://bronze.phpwebhosting.com/~fredsweb/m2/
this server is faster,  no problems occur here, same as on my local server.

I traced the servers response and indeed i noticed frequently slow response times on that first server.
All this make makes me thinkthat when the server's response is not fast enough the pageloader stops and continues to the next page leaving the current one or broken or not loaded at all.

Maybe for a future request, it would be very nice if when the page is loaded, fade the image in over the blank page.

Again thanks for your help.
Regards Karl

Alia17

  • Newbie
  • *
  • Posts: 12
Re: Megazine v2 beta
« Reply #7 on: September 15, 2009, 11:28:41 AM »
Got the same problem with blank pages. What server response did you get from your last fast server in milliseconds?