PlatformInfo$

Previous topic - Next topic

MrTAToad

Could you try the HTML version of the PlatformInfo$ test program at https://dl.dropboxusercontent.com/u/25216439/HTML%205/PlatformInfo/PlatformInfo.html in Firefox or Chrome

Mine looks something like that included.

Some things to note :

The DPI setting is "NO_DATA", which may cause problems if you are depending on that value.  You also get this value on Linux...
The ID string is much shorter than the one returned from Windows


kanonet

Looks exactly the same (besides clock ofc) for me. Btw shouldnt ScreenSZ be the real size of the Program window in the browser (guess thats the case?) and DesktopSZ display the real Resollution of the Desktop? What does it display here?

Are you aware of the debug output?:
Code (glbasic) Select
request: fopen("/home/emscripten/.glbasic/glbasic.deviceid", "rb") failed
wrt-request: fopen("/home/emscripten/.glbasic/glbasic.deviceid", "wb") failed

can't write to file: /home/emscripten/.glbasic/glbasic.deviceid
ID           = FA17ED
BATTERY      = 100
TIME         = 2013-06-21 04:28:51
UTCTIME      = 2013-06-21 02:28:51
LOCALE       = us
DEVICE       = DESKTOP
VERSION      = 000.001
HOSTID       = 3448cf5a
DPI          = NO_DATA
WRITEFILE    = FALSE
SCREENSZ     = 800 x 600
DESKTOPSZ    = 320 x 200
DIR          = /
             = LINUX
COMPILED     = Jun 21 2013-00:28:31
DOCUMENTS    = /home/emscripten
APPDATA      = /home/emscripten/.glbasic
TEMP         = /tmp
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

MrTAToad

ScreenZ (Screen size) is the size of the graphics window/screen resolution, as set by the project.  The desktop size value is, of course, incorrect in HTML 5 - I'm certainly not running on a desktop size of 320 x 200

kanonet

So ScreenSZ is correct, but DesktopSZ isn't. Btw locale is wrong too, it displays us for me, but all settings on my system+browser are German.
What does writefile output mean?
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

MrTAToad

Yes, locale is wrong for me too (I've made a bug report for it).

The inability to write is, I believe a "feature" of HTML 5...

Kitty Hello

In HTML5 I did not specify any platforminfo, yet.
I'm wirking on getting it running on you iPad now.