Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Qedo

#346
Good news on html5.  :)
modifing  to "var TOTAL_MEMORY = 67108864;" in the file C:\Program Files (x86)\GLBasic_v12\Compiler\platform\JavaScript\bin\emscripten\src\settings.js,
Animation_Font.html work on last version of Opera,FF,Chrome.

see to:
http://web.tiscali.it/edoardobianchi/STUFF/HTML5/Animation_Font.html

Bad news on html5. IE11 dont work!!!!  :(

Ciao
Qedo
#347

Quoteif those *.dat files are indeed empty, wouldn't it be better to remove the dependencies from the *.html files generated?

will not always be empty.
IF DOESFILEEXIST(\MEDIA\*.*) THEN (Len_of_File of OUTPUT.DAT)>0 ELSE (Len_of_File of OUTPUT.DAT)=0

QuotePosted by: Qedo
« on: 2013-Nov-04 »

Now everything is clear.
the file "output.dat" contains the entire contents of the folder MEDIA. Therefore must not be deleted.
HTML5 works with files locally in Firefox because it is the only browser unlocked.
The others are blocked by default and thus do not perform the code locally for security reasons.
In Internet Firefox Chrome and Opera are OK. You can try it at:
#348
Gernot,
What do you think of renaming the file "output.dat" customized for each program?
For example:
bezier.html and bezier.dat
media.html and media.dat
This way you can enter all the programs in the same directory on the server and be able to work.
Hello
Qedo
#349
Now everything is clear.
the file "output.dat" contains the entire contents of the folder MEDIA. Therefore must not be deleted.
HTML5 works with files locally in Firefox because it is the only browser unlocked.
The others are blocked by default and thus do not perform the code locally for security reasons.
In Internet Firefox Chrome and Opera are OK. You can try it at:

http://web.tiscali.it/edoardobianchi/STUFF/HTML5/ETA/ETA.html

So locally for debugging, Firefox is more than enough,
Attention. At the coversion GLBasic Javascript does not like the code too long and you have to divide it into many gosub.
I hope that this information can be useful.
Great job Gernot!  :good:
Ciao
Qedo
#350
Good news on html5.
Mandelbrot1.html (attached) without reference to "output.dat" works on Firefox 25.0, Opera 17.0 and Chrome 30.0
IE11 not tested, Safari 5.1.7 only black screen.
It is important because the program  use also MEM2SPRITE and DRAWSPRITE,
#351
On my computer (Win7) there is IE10.
IE11 currently is in  Release Preview. I'll try when possible


#352
@ Ocean
Thank you for your analysis but i want to understand why the output works with Firefox and not with other browsers.
It is clear that now html5 is not perfect and therefore it is possible that in some situations does not work. By the way, full screen firefox on my computer is ok, strange.
Instead, ask all, some news about Opera and Chrome?
thanks
Ciao
Qedo
#353
In summary, bezier.html only works on firefox and not on other browsers. From the debug log of Chrome seems that the problem is "XMLHttpRequest can not load file :/ / / C :/ Users / Me / Downloads / output.data." So I modified bezier.html deleting all references to output.data and then deleting 'datafile_C: \ Users \ edo \ AppData \ Local \ Temp \ GLBasic \ output.data', 'C: \ Users \ edo \ AppData \ Local \ Temp \ GLBasic \ output.data ', and' output.data '.
I saved as Bezier1.html (attached) and now it works in Firefox, Chrome and Opera. It does not work in IE and Safari.
I do not know if it can be useful, but it might be a good way to understand the export html5.
Ciao
Qedo
#354
@kanonet
it is true, without output.dat dont work,  its loading forever
You can simply add a any 0 byte output.dat file in the same directory.
Ciao
Qedo
#355
html5 work perfectly but only with Firefox
Can you try Bezier?
Ciao
Qedo
#356
like this?
ciao
Qedo
#357
Use Char_width = Char_hight 128x128 pixel with  Blastars improved UO Dingsfont.
See the picture for setting (A picture is worth a thousand words).

I have used CHECK_COMP_SPRITE2MEM because on some computers (old) with Intel  integrated graphic card and probably others, SPRITE2MEM don't work (zero value array).

I think  you are right, there  is a USESCREEN+SPRITE2MEM  bug.

Ciao
Qedo
#358
Send the source (without comment, sorry)
Solved moving the command USESCREEN 5 from outside NEXT loop to inside.
I don't Know if it is a bug, but GLBasic 11 seems reset to  USESCREEN -1 at every cycle of the loop.

OK on Windows. On Android OK on BlueStack but don't work on my Sony  :(.
Can you try?
Thank you
Qedo

http://web.tiscali.it/edoardobianchi/STUFF/font/Animation_Font_source.zip

Code (glbasic) Select
CREATESCREEN 5, single_id_sprite, w,h
//USESCREEN 5  // work in GLBasic 10, NOT in GLBasic 11.559
FOR i=32 TO n_car
USESCREEN 5 // work in GLBasic 10 and in GLBasic 11.559
CLEARSCREEN RGB(0,0,0)
DRAWANIM self.id_sprite% , i, 0, 0 // stampa il carattere i dello sprite
ok% = SPRITE2MEM(pix[], single_id_sprite)
.....
.....
.....
NEXT
USESCREEN -1/code]
#359
sorry for the delay (source program) but in GLBasic 11.559 the program don't work. see picture.
I dont know if is a bug. I'm working.
Ciao
Qedo
#360
as soon as I finish the conversion from FUNCTION to TYPE (for better style programming) i will send you the source,
Ciao
Qedo