Experimental v78f now up! [MONKEY NEWS]

Monkey Forums/Monkey Programming/Experimental v78f now up! [MONKEY NEWS]

marksibly(Posted 2014) [#1]
Hi,

I'm just uploading v78d - should be up by the time you read this.

This is mainly a bugfix release. In particular, it should take care of a few nasty threading bugs that could potentially affect the async loading functions.


Fixed Strdup issue in socket.monkey

Fixed Strdup issue in thread.monkey

Fixed ios accelerometer bug.

Fixed async image loading/threading bugs.

Removed limitations on supported text files types for PSM target.

Fixed #CPP_DOUBLE_PRECISION_FLOATS=True messing up mouse events on desktop target.




Desperado(Posted 2014) [#2]
I get this error when trying to build any HTML5 app:

/MonkeyXPro78d/modules/brl/thread.monkey<53> : Error : Syntax error - expecting class member declaration.


It looks like the Strdup method in Thread isn't implemented and is missing an End statement:


I changed it to this to get it running for now:



marksibly(Posted 2014) [#3]
D'oh!

Fixed in v78e...


Nobuyuki(Posted 2014) [#4]
Hi, great news about the async fixes. I'm downloading the update now, and will report back on whether or not it fixed my async atlas loader.


Soap(Posted 2014) [#5]
Thank you for update and fixes. It appears like async working right makes loading noticeably faster.


bruZard(Posted 2014) [#6]
Admob doesn't work anymore.
E/GooglePlayServicesUtil(17885): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.



marksibly(Posted 2014) [#7]
Just uploaded 78f with another Strdup fix for sockets.

> Admob doesn't work anymore.

What are you trying to build?

The admob sample in the docs works fine here.


bruZard(Posted 2014) [#8]
The quoted error is from the sample in the docs ;)

--------- beginning of /dev/log/system

E/libEGL ( 321): eglMakeCurrent:671 error 3009 (EGL_BAD_MATCH)

E/ (17404): netstack: LIB_MGR - Error loading lib spl_proc_plugin.so

E/ (17404): netstack: STAT_HUB - Failed to load plugin: spl_proc_plugin.so

E/ (17404): netstack: STAT_HUB - App com.monkeycoder.monkeygame isn't supported

E/Parcel ( 416): Reading a NULL string not supported here.

E/Parcel ( 416): Reading a NULL string not supported here.

E/QCNEA (17404): |CAC| readCallback: end of stream

E/Parcel ( 416): Reading a NULL string not supported here.

E/Parcel ( 416): Reading a NULL string not supported here.





bruZard(Posted 2014) [#9]
all clear ... it was my fail.


Fred(Posted 2014) [#10]
Thanks Mark,
PSM fix works fine.


dopeyrulz(Posted 2014) [#11]
As pointed out by LinderBoss there is a bug in WinRT projects. See here:
http://monkeycoder.co.nz/Community/posts.php?topic=8058&post=84065


golomp(Posted 2014) [#12]
Thank you Mark !


dragon(Posted 2014) [#13]
Mark, is it possible to add new function?

HaveTouch()

It should return true, if player have touch screen.

Background: Here are devices with and without touch screen, and today i can not detect it and i do not know should i display touch elements or not...

Targets: Android (TV) + Windows 8 (Tablet-Laptop-Hybrids)
(Flash and HTML ?)


dragon(Posted 2014) [#14]
Mark,

XNA do not work for me:


Program.cs(11400,13): error CS0029: Eine implizite Konvertierung vom Typ 'gxtkSurface' in 'bool' ist nicht m�glich. [C:\Projekte\xxxx\source\prog.buildv78f\xna\MonkeyGame\MonkeyGame\MonkeyGame.csproj]
12 Warnung(en)
1 Fehler
Verstrichene Zeit 00:00:00.64
TRANS FAILED: Error executing 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:MonkeyGame /p:Configuration=Release MonkeyGame.sln', return code=1
Done.


gxtkSurface can not converted to bool

Bug report:
http://www.monkeycoder.co.nz/Community/topics.php?forum=201


Xaron(Posted 2014) [#15]
Dragon what's wrong with the existing touch functions? They work with a mouse as well.


dragon(Posted 2014) [#16]
Think about "Android TV" (Amazon Box).
You have no touch, but controller.
So why should you display "Touch buttons"?

just a idea


marksibly(Posted 2014) [#17]
> HaveTouch()

Yes, I think this is a good idea. Ditto for HasMouse, HasRealKeyboard (?) etc.