Hello World does not work

I attempted to do the Hello World app as shown on the site. The simulator shows, but when I run it, I get some dots on the screen not text.

Could it be because I’m using a MacBook Pro Retina?

Please advise. [import]uid: 101577 topic_id: 30217 reply_id: 330217[/import]

Care to post the code you typed out?

Not sure if there is a problem with the Retina Macbook, however another thing to try would be to make the font size you are displaying bigger in the code. [import]uid: 62706 topic_id: 30217 reply_id: 121009[/import]

It could be the retina display. I’m pretty sure fixes for it went into a daily build and since you’re a test driver, I’m assuming you don’t have those fixes.

I’ve not messed much with the retina display but I understand there is some kind of “dumbed down” model to make it work with lower-res apps that is supposed to work with the build of Corona SDK that you have.
[import]uid: 19626 topic_id: 30217 reply_id: 121013[/import]

I tried varying the font size. Sometimes I get some longer lines. Sometimes nothing.

The code is from the really beginning tutorial:

local textObject = display.newText( “Hello World!”, 50, 50, nil, 24 )
textObject:setTextColor( 255,255,255 )
I am impressed without fast things seem to work and would like to explore using Corona more, but I can’t even write to the screen at this point. (Actually, it is obvious that I AM actually writing to the screen, but what shows up is just a few short lines.)
[import]uid: 101577 topic_id: 30217 reply_id: 121014[/import]

There shouldn’t be any problems running Corona on a Retina display as long as you are using build 840. Your example didn’t specify the font, so you might try this to see if it makes a different.

local textObject = display.newText( "Hello World!", 50, 50, native.systemFont, 24 )

[import]uid: 7559 topic_id: 30217 reply_id: 121034[/import]

Hi I’m with Retina Display and builds 882,883,890,891 display.newText not working

local textObject = display.newText( “Hello World!”, 50, 50, native.systemFont, 24 )

working in 881

[import]uid: 69841 topic_id: 30217 reply_id: 121042[/import]

A quick note to let you know that display.newText objects work perfectly fine for me in my projects – using stable release build 840, daily build 883 and 891. (Edit: I also use retina device.)

Naomi [import]uid: 67217 topic_id: 30217 reply_id: 121043[/import]

Is Strange, i’m using Mountain Lion 10.8.1 [import]uid: 69841 topic_id: 30217 reply_id: 121044[/import]

The Corona Simulator needs to run in “low resolution” mode. The setting should be automatically set for recent builds. You can verify this in Finder by right clicking on Corona Application.app and selecting Get Info. You should see “Open in low resolution” checked.

Update: @gordon1bob, this is not set in the release build, 840, so you will need to set this setting to make it work with the Retina display. [import]uid: 7559 topic_id: 30217 reply_id: 121046[/import]

@miguelsignes, ah, I see. So this is Mountain Lion related concern…

Naomi [import]uid: 67217 topic_id: 30217 reply_id: 121047[/import]

Thanks to all the responses. It’s encouraging to find and dedicated and knowledgable community.

Setting “Open in Low Res” did the trick.

I’ll go learn something new now.

Thanks again.

-Bob [import]uid: 101577 topic_id: 30217 reply_id: 121061[/import]

I have checked “low resolution” mode, and no works. Last build working 881.

I’m using Futura Font, and system.font

Retina MacBook and Mountain Lion 10.8.1 with Storyboard Scene Manager hello word from samples works. :\

EDIT: **Text work but outside screen.

[import]uid: 69841 topic_id: 30217 reply_id: 121133[/import]

@miguelsignes, you must have a different problem. If the shipping Hello World program works, than it’s some other Corona problem or a problem in your code. Do any of the other sample apps fail to work?

Can you post a short example of the code that is not working? Are you seeing any messages in the terminal when you run the code?

Edits: I just checked and there are only two changes that would affect you since build 881:

  1. Handling empty text string in display.newText
  2. Fixed native text objects sizing when dynamic scaling is not used. [import]uid: 7559 topic_id: 30217 reply_id: 121152[/import]

Thank you Tom, looking my code the difference in one empty space

This not work
local text1 = display.newText("",120,32,800,200,native.systemFont, 28)
This work
local text1 = display.newText(" ",120,32,800,200,native.systemFont, 28)

Have change all files :smiley:
[import]uid: 69841 topic_id: 30217 reply_id: 121156[/import]

Care to post the code you typed out?

Not sure if there is a problem with the Retina Macbook, however another thing to try would be to make the font size you are displaying bigger in the code. [import]uid: 62706 topic_id: 30217 reply_id: 121009[/import]

It could be the retina display. I’m pretty sure fixes for it went into a daily build and since you’re a test driver, I’m assuming you don’t have those fixes.

I’ve not messed much with the retina display but I understand there is some kind of “dumbed down” model to make it work with lower-res apps that is supposed to work with the build of Corona SDK that you have.
[import]uid: 19626 topic_id: 30217 reply_id: 121013[/import]

I tried varying the font size. Sometimes I get some longer lines. Sometimes nothing.

The code is from the really beginning tutorial:

local textObject = display.newText( “Hello World!”, 50, 50, nil, 24 )
textObject:setTextColor( 255,255,255 )
I am impressed without fast things seem to work and would like to explore using Corona more, but I can’t even write to the screen at this point. (Actually, it is obvious that I AM actually writing to the screen, but what shows up is just a few short lines.)
[import]uid: 101577 topic_id: 30217 reply_id: 121014[/import]

There shouldn’t be any problems running Corona on a Retina display as long as you are using build 840. Your example didn’t specify the font, so you might try this to see if it makes a different.

local textObject = display.newText( "Hello World!", 50, 50, native.systemFont, 24 )

[import]uid: 7559 topic_id: 30217 reply_id: 121034[/import]

Hi I’m with Retina Display and builds 882,883,890,891 display.newText not working

local textObject = display.newText( “Hello World!”, 50, 50, native.systemFont, 24 )

working in 881

[import]uid: 69841 topic_id: 30217 reply_id: 121042[/import]

A quick note to let you know that display.newText objects work perfectly fine for me in my projects – using stable release build 840, daily build 883 and 891. (Edit: I also use retina device.)

Naomi [import]uid: 67217 topic_id: 30217 reply_id: 121043[/import]