when I run my app it says "config.lua:1: ‘<eof>’ expected near ‘elseif’ how can I fix this?
please help, thank you
P.S I am pretty new to corona sdk, but I do have programming experience.
when I run my app it says "config.lua:1: ‘<eof>’ expected near ‘elseif’ how can I fix this?
please help, thank you
P.S I am pretty new to corona sdk, but I do have programming experience.
Show us your config.lua.
elseif ( display.pixelHeight / display.pixelWidth > 1.72 ) then
application =
{
content =
{
width = 320,
height = 570,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}
else
application =
{
content =
{
width = 320,
height = 512,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}
end
Is this is the whole thing?
it dosent actually look like that its a lot more spaced out
yes
I now have another problem on every device its zoomed in on the images and it was working just fine then corona closed
Ok, you are missing a chunk of it then, I guess it got deleted or something? Where did you get it from?
Consider using this, its very good: http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/
that’s were I got it from I just used the android part 'cause that’s all I needed
OK then just have the first line start with if instead of elseif. Elseif only works if there is a previous if.
It was working great then again corona freaked out on me, then it stopped working for me
Hmm you can never start with elseif, something must have changed!
Ive tried that too and I tried it again but for what ever reason it makes it worse
Need more details. What is worse? Errors? Code examples…
it gets even more zoomed in and the BG comes off and starts showing black
Can’t help you much with this limited info. Sounds a bit like you have problem with filling in the screen. Take a look at http://developer.coronalabs.com/code/calculating-actual-boundaries-your-application-and-device-screen-size
I would suggest using the whole config.lua from that post even if you don’t care about the other devices since it will be correct and you won’t have to fight with it.
Show us your config.lua.
elseif ( display.pixelHeight / display.pixelWidth > 1.72 ) then
application =
{
content =
{
width = 320,
height = 570,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}
else
application =
{
content =
{
width = 320,
height = 512,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}
end
Is this is the whole thing?