Forum Replies Created
-
AuthorPosts
-
I have the same problem, and created a github issue here : https://github.com/blitz-research/monkey2/issues/83
Same size, but wrong location!
Print r1.Left ( this should be 100 + (40-20)/2 = 110 but is 10 )
Print r1.Top ( this should be 100 + (60-30)/2 = 115 but is 15 )[EDITED]
Monkey1I think it’s right – centering a rect doesn’t change its size, just it’s location.which is why it need to return r’s size not Self.Width and Height I think
.
October 1, 2016 at 8:38 pm in reply to: [SOLVED in 1.07] Error on Mac -> Rebuild Modules – > Android -> Truetype #4212Oh yes, works on Mac too, actually keyboard works too, Thanks!
Now works in Safari, MacOS Sierra, Mac Mini lastest gen
Google Chrome says: “Exception thrown, see JavaScript console” that says:
Monkey1234567891011Uncaught abort() at Errorat jsStackTrace (http://www.playniax.com/SAF/spiral/spiral.js:1:28519)at stackTrace (http://www.playniax.com/SAF/spiral/spiral.js:1:28702)at Object.abort (http://www.playniax.com/SAF/spiral/spiral.js:36:30558)at _abort (http://www.playniax.com/SAF/spiral/spiral.js:1:221083)at Array.Ooa (http://www.playniax.com/SAF/spiral/spiral.js:17:76866)at allocate (http://www.playniax.com/SAF/spiral/spiral.js:1:19287)at Object.callMain (http://www.playniax.com/SAF/spiral/spiral.js:36:28561)at doRun (http://www.playniax.com/SAF/spiral/spiral.js:36:29524)at http://www.playniax.com/SAF/spiral/spiral.js:36:29674If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.[EDIT] : A reload of the page solved the error… ?
@playniax: Since this ( https://github.com/blitz-research/monkey2/issues/82 ) rendering bug looks somewhat similar to the one I reported on the monkey1 forum ( http://www.monkey-x.com/Community/posts.php?topic=12629&post=124043&view=all#124043 ) , I’d be happy to test spiral again, if you would like to recomplie it with MX 1.07
@Evgenly Goroshkin : As I remember it, it’s from http://alienryderflex.com/polygon/ , Nathan Mercer’s version
September 29, 2016 at 11:03 am in reply to: [SOLVED in 1.07] Error on Mac -> Rebuild Modules – > Android -> Truetype #4149Problem went away in MX2 1.05
TinyXML seems to be working well!
I’ve tried a few moderately complex XML files with it.Problems:
1) When parsing an XML document with attribute values with language specific characters, in my case Danish æøå ÆØÅ, monkey ignores them when outputting them to the treeview. It seems strings are truncated, when one of these chars are met.I’m assuming tinyXML handles them ok, and it is monkey2 that’s the reason?
2) Ted2 does not show æøå (and I assume other language specific chars). Ted2 seems to save them, as the show up in Mollusk.
@nerobot: here’s another PointInPoly() , not that it seems you need it
Monkey1234567891011121314151617181920Function IsInsidePoly:Int(polypoints:Float[],x:Float,y:Float)Local j:Int = polypoints.Length()-2Local oddNodes:IntFor Local i:Int =0 Until polypoints.Length() Step 2If (polypoints[i+1]< y And polypoints[j+1]>=y ) Or (polypoints[j+1]< y And polypoints[i+1]>=y)If (polypoints[i]<=x Or polypoints[j]<=x)If (polypoints[i]+(y-polypoints[i+1])/(polypoints[j+1]-polypoints[i+1])*(polypoints[j]-polypoints[i])<x)oddNodes = 1 ~ oddNodesEndifEndifEndifj=iNextReturn oddNodesEnd FunctionSeptember 25, 2016 at 6:44 am in reply to: Your help in my decision please. Mx2 ready to start mobile project? #4087Monkey12Have you considered having a target manager, similar to the module manager?+1 on this, great idea.
Thanks!
‘1D’ tested and working well.
“Collapsing” an N-D to might come in handy, when serializing to XML.
If there was a New(oned<T>[],nsize:Int) we could go both ways
Thanks
September 19, 2016 at 7:23 am in reply to: you can't have a field in an extend of 'external extends void' #4015Monkey1> The safest way would be to pass it as a parameter if possible.So just to be sure, is this safe?:
Monkey12345Method OnRender( canvas:Canvas ) OverrideApp.RequestRender()canvas.Clear( Color.Black )polys.Draw(canvas) 'set color and DrawPrimitives in the methodEndHi Mark, thanks for clearing it up, I don’t think I would have figured that out
I’m all for changing it to the java/monkey1/c# for consistency between languages.
Also, it seems logical, that the major dimension, that holds the elements are declared first.
-
AuthorPosts