Is it safe to update to El Capitan?

Is anyone here using Corona SDK in a machine running El Capitan?

Hi as a test for my Macbook (quite an older unit) I have upgraded to El Capitan. Now Corona SDK does state when  first running that it has not been tested on this OS so I am wondering if this is why when I open Lua Glider v2 and choose a physics project that this project comes up with an error when trying to run through the emulator ?

The error is in menu.lua and starts with ERROR: object:setReferencePoint() is only available in graphicsCompatibility 1.0 mode . Use anchor points instead. 

** EDIT **

  I have just done a very simple one line of code which is the Hello World as such :

display.newText(“Hello World!”, 0, 0, native.systemFont, 16);

But in any of the device simulators the word Hello is off to the side of the screen and only part of the W can be seen of the word World. So to answer you question I would hang fire for now.

However I might keep this OS running along side another so if anyone wants me to me test anything (please understand that I am new corona so any “advanced” code would be beyond me as yet (unless you provide me with the code :slight_smile: ))

** EDIT 2 **

 Downloading the latest daily build (which is a higher build) to see if this works better and I will report back :slight_smile:

Update on this build  - Same issues are still there as what I mentioned above :( 

Ta

TimCS

The issues you describe makes it sound like you got an old version of some templates. When we released Graphics 2.0 a couple of years ago, we changed several things. One of them was getting rid of :setReferencePoint(). Today you set “Anchor Points”, search the blog for tutorials!  Also the old Graphics 1.0 we were very inconsistent with our API’s with regards to what a starting x, y means. Sometime API’s it was Top Left, others it was object’s center. With Graphics 2.0, every thing is centered.  So display.newText(“Hello world”, 0, 0) says to center the string at 0, 0, which means you will on see the lower right quarter of the rectangle since the rest of it is off screen.

Rob

Hi Rob

  Strange that the examples are old as I downloaded Corona SDK today, these examples however are been loaded from Lua Glider V2 which I also downloaded today. Are these links somehow out of date? If so how do I go about updating them as I have now got Yosemite installed which is doing the same and what you have said would explain this.

Ta

TimCS 

We don’t make Lua Glider and are not responsible for the samples they include.

Rob

Hi @Rob okay but what about the display command as Lua Glider is pointing at the path to the Corona SDK and this surely is where it is getting the libraries from ?

Thanks

TimCS

I don’t know where Lua glider is getting their stuff from.  If you’re using code completion, then the api call should be right regardless. X and Y are X and Y. You just have to understand the what the values mean.

Is anyone here using Corona SDK in a machine running El Capitan?

Yep. I am and everything seems to work, though I did have to reinstall Java.

Actually I should say almost everything. Is anyone else having trouble opening remote webpages in a webview on iOS post-upgrade? I’m using daily build 2015.2730 and Xcode 7.0.1. The webpage’s grey background appears but nothing loads. Local HTML files render properly.

Hi Rob I have just used TextWrangler and ran it with the display.newText(“Hello World!”, 0, 0, native.systemFont, 16); code again and this is doing the same as Lua Glider in that the worlds Hello Word are only showing as Word with the W not all on screen. From my understanding TextWrangler uses the Corona SDK libraries is this correct as when I went to choose to open an editor from Corona SDK this is what was opened

​Any thoughts on why it is doing this as I downloaded the latest public release only the other day.

This display code came from this page : http://code.tutsplus.com/tutorials/getting-started-with-lua-and-the-corona-sdk–mobile-21457

Thanks

TimCS

@corona520 - That code is setting the X and Y to 0, and I seem to remember that in Graphics 2.0, newText changed from defaulting to a left justification to centre.

So to get the text to line up with the left side of the screen, you need to do:

[lua]

local t = display.newText(“Hello World!”, 0, 0, native.systemFont, 16)

t.anchorX = 0 – this is a value from 0 to 1. 0 = left, 0.5 = centre, 1 = right.

[/lua]

All this has nothing to with the El Capitan upgrade, just out-of-date tutorial code.

@Nick

  Thank you for clearing this up and explaining this. Glad it was not down to the OS. Just a shame about Lua Glider not having up to date examples that are built into their interface.

Thanks

TimCS

I guess I wasn’t very clear in my first post.

0, 0 is the top left corner of the screen. If you center a display object there, the top half will be off screen, the bottom half will be on. The left half will be off screen the right half will be on. The net result is that only the bottom right quadrant of the object will be on screen.  Change the 0, 0 to something reasonable… or follow Nick’s suggestion and change the object’s anchor so that X and Y reference the top left of the object instead of the center.

Rob

@Rob

  No not your fault my misunderstanding still new to Corona and trying to learn so sorry for that. 

Thanks

TimCS

So is it safe to run on OSX El Capitan?

You will need to re-install Java 6, which Apple removes with each update. But beyond that I think everything else is good.

Rob

In order to create Android APK files with Corona in El Capitan, you must first upgrade your version of Java with Apple’s update located at: https://support.apple.com/kb/DL1572?locale=en_US

A shout-out to the Corona Team - nice work with iOS 9.1 support - I’m using XCode Version 7.1 (7B91b) with the latest Corona Build 2753 and so far, so good. I’ve also used Apple’s Application Loader Version 3.3 (868) to upload the IPA to iTunes Connect.

For the record: I’m running El Capitan and Corona just fine on my 2010 MacBook Pro.

Hi as a test for my Macbook (quite an older unit) I have upgraded to El Capitan. Now Corona SDK does state when  first running that it has not been tested on this OS so I am wondering if this is why when I open Lua Glider v2 and choose a physics project that this project comes up with an error when trying to run through the emulator ?

The error is in menu.lua and starts with ERROR: object:setReferencePoint() is only available in graphicsCompatibility 1.0 mode . Use anchor points instead. 

** EDIT **

  I have just done a very simple one line of code which is the Hello World as such :

display.newText(“Hello World!”, 0, 0, native.systemFont, 16);

But in any of the device simulators the word Hello is off to the side of the screen and only part of the W can be seen of the word World. So to answer you question I would hang fire for now.

However I might keep this OS running along side another so if anyone wants me to me test anything (please understand that I am new corona so any “advanced” code would be beyond me as yet (unless you provide me with the code :slight_smile: ))

** EDIT 2 **

 Downloading the latest daily build (which is a higher build) to see if this works better and I will report back :slight_smile:

Update on this build  - Same issues are still there as what I mentioned above :( 

Ta

TimCS

The issues you describe makes it sound like you got an old version of some templates. When we released Graphics 2.0 a couple of years ago, we changed several things. One of them was getting rid of :setReferencePoint(). Today you set “Anchor Points”, search the blog for tutorials!  Also the old Graphics 1.0 we were very inconsistent with our API’s with regards to what a starting x, y means. Sometime API’s it was Top Left, others it was object’s center. With Graphics 2.0, every thing is centered.  So display.newText(“Hello world”, 0, 0) says to center the string at 0, 0, which means you will on see the lower right quarter of the rectangle since the rest of it is off screen.

Rob

Hi Rob

  Strange that the examples are old as I downloaded Corona SDK today, these examples however are been loaded from Lua Glider V2 which I also downloaded today. Are these links somehow out of date? If so how do I go about updating them as I have now got Yosemite installed which is doing the same and what you have said would explain this.

Ta

TimCS