Top Right quarter of screen unresponsive throughout app.

I am new to using corona so please bare with me. After programming some of my application I have noticed that for some reason the top right corner of my screen is completely unresponsive in both the corona simulator and on an actual android phone. Everywhere else works fine except this 1/4 of the screen. Even if i change the orientation of the screen in the build.settings file its always the top right corner that’s the problem - which makes me think it a co-ordinates issue? Basically this means I cannot use the top right quarter of my screen for any event listeners (a problem since my app needs it…). I am using the 2013.12.7 version of the simulator and standard build.settings & config.lua files.

Has anyone come across this before? The problem is spread across multiple machines so I know its not an install issue, also the demos that come with the simulator work fine. Any help Appreciated.

We typically refer to Corona builds by their 4 digit number without the date  (2013.2100 would be 2100).  The 2013.12.7 provides a date of the build.  I’m guessing that’s 2100 since thats about the time we put out a public build last.  If you can confirm that would be great.

Anyway, are you using the Director library?

Can you post your config.lua and build.settings code?  Are you using code written before that 12/7/13 date?  Can you post some code that’s having the problem?

Rob

Hi Rob, thanks for the reply, Yes its the 2100 build.

And yes I am using Director library (latest stable version 1.4) https://bitbucket.org/ricardorauber/corona/downloads/director_by_ricardo_rauber_1_4.zip

Code for build.settings and config.lua posted below

This is the ‘menu.lua’ file for my project - just a menu linking to other .lua files.

I also changed the _W and _H properties to specific pixel values and the problem still occured


module (…, package.seeall)

function new()

    local _H = display.contentHeight

    local _W = display.contentWidth

    

    local menuGroup = display.newGroup()

    

    local background = display.newImage(“graphics/mainMenuBackground.png”)

    background.x = _W/2

    background.y = _H/2

    local clefs = display.newImage(“graphics/clefs.PNG”)

    clefs.x = _W/2

    clefs.y = _H/4

    clefs.scene = “clefs”

    clefs.alpha = 0.8

    

    local stave = display.newImage(“graphics/stave.PNG”)

    stave.x = _W/2

    stave.y = _H/2.5

    stave.scene = “stave”

    stave.alpha = 0.8

    

    local notes = display.newImage(“graphics/notes.PNG”)

    notes.x = _W/2

    notes.y = _H/1.8

    notes.scene = “notes”

    notes.alpha = 0.8

    

    local timeSignatures = display.newImage(“graphics/timeSignatures.PNG”)

    timeSignatures.x = _W/2

    timeSignatures.y = _H*0.7

    timeSignatures.scene = “timeSignatures”

    timeSignatures.alpha = 0.8

    

    local howToWrite = display.newImage(“graphics/howToWrite.PNG”)

    howToWrite.x = _W/2

    howToWrite.y = _H*0.85

    howToWrite.scene = “howToWrite”

    howToWrite.alpha = 0.8

    

    

    menuGroup:insert(background)

    menuGroup:insert(stave)

    menuGroup:insert(clefs)

    menuGroup:insert(notes)

    menuGroup:insert(timeSignatures)

    menuGroup:insert(howToWrite)

    

    stave:addEventListener(“touch”, changeScene)

    clefs:addEventListener(“touch”, changeScene)

    notes:addEventListener(“touch”, changeScene)

    timeSignatures:addEventListener(“touch”, changeScene)

    howToWrite:addEventListener(“touch”, changeScene)

    

    return menuGroup

    

    

end

-------------------Config.lua file------------------

if ( string.sub( system.getInfo(“model”), 1, 4 ) == “iPad” ) then

   application =

   {

      content =

      {

         width = 360,

         height = 480,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         imageSuffix =

         {

            ["@2x"] = 1.5,

            ["@4x"] = 3.0,

         },

      },

   }

elseif ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” and display.pixelHeight > 960 ) then

   application =

   {

      content =

      {

         width = 320,

         height = 568,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         imageSuffix =

         {

            ["@2x"] = 1.5,

            ["@4x"] = 3.0,

         },

      },

   }

elseif ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” ) then

   application =

   {

      content =

      {

         width = 320,

         height = 480,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         imageSuffix =

         {

            ["@2x"] = 1.5,

            ["@4x"] = 3.0,

         },

      },

   } 

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   

---------------------Build.settings file -----------------------

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

    

    orientation = {

        default = “landscapeRight”,

        supported = { “landscapeRight”,“landscapeLeft”,}

    },

    

    iphone = {

        plist = {

            UIStatusBarHidden = false,

            UIPrerenderedIcon = true, – set to false for “shine” overlay

          

        }

    },

}

Director has not been updated to work with Graphics 2.0.  Since this is a 3rd party tool, we really can’t provide you support on it.  Storyboard is the currently supported scene manager for Starter and Basic accounts.  For Pro and Enterprise, we introduced version 2 of Storyboard called Composer, which will be the official scene manager when the next public build rolls out.

I would offer you two options to help solve this.

  1. Port to Storyboard.  Composer isn’t drastically different and you will want to use it after the next public release.

  2. Search the forums for Director based posts and see what solutions other community members have found with regards to this.  It might be just as simple as putting in the graphicsCompatiblity = 1 line in your config.lua where you set the width and height (as that keeps the Graphics 1.0 compatible positioning in place) But that’s not the long term best solution.

Rob

Hi Rob, Thanks again for the reply, well I quickly tested the graphicsCompatiblity = 1 method u suggested since I have a tight time schedule (university project) and its a no-go, oh well, time to try storyboard out.  Ill probably post back here to say if it works or not (in case anybody else has the same issue)

We typically refer to Corona builds by their 4 digit number without the date  (2013.2100 would be 2100).  The 2013.12.7 provides a date of the build.  I’m guessing that’s 2100 since thats about the time we put out a public build last.  If you can confirm that would be great.

Anyway, are you using the Director library?

Can you post your config.lua and build.settings code?  Are you using code written before that 12/7/13 date?  Can you post some code that’s having the problem?

Rob

Hi Rob, thanks for the reply, Yes its the 2100 build.

And yes I am using Director library (latest stable version 1.4) https://bitbucket.org/ricardorauber/corona/downloads/director_by_ricardo_rauber_1_4.zip

Code for build.settings and config.lua posted below

This is the ‘menu.lua’ file for my project - just a menu linking to other .lua files.

I also changed the _W and _H properties to specific pixel values and the problem still occured


module (…, package.seeall)

function new()

    local _H = display.contentHeight

    local _W = display.contentWidth

    

    local menuGroup = display.newGroup()

    

    local background = display.newImage(“graphics/mainMenuBackground.png”)

    background.x = _W/2

    background.y = _H/2

    local clefs = display.newImage(“graphics/clefs.PNG”)

    clefs.x = _W/2

    clefs.y = _H/4

    clefs.scene = “clefs”

    clefs.alpha = 0.8

    

    local stave = display.newImage(“graphics/stave.PNG”)

    stave.x = _W/2

    stave.y = _H/2.5

    stave.scene = “stave”

    stave.alpha = 0.8

    

    local notes = display.newImage(“graphics/notes.PNG”)

    notes.x = _W/2

    notes.y = _H/1.8

    notes.scene = “notes”

    notes.alpha = 0.8

    

    local timeSignatures = display.newImage(“graphics/timeSignatures.PNG”)

    timeSignatures.x = _W/2

    timeSignatures.y = _H*0.7

    timeSignatures.scene = “timeSignatures”

    timeSignatures.alpha = 0.8

    

    local howToWrite = display.newImage(“graphics/howToWrite.PNG”)

    howToWrite.x = _W/2

    howToWrite.y = _H*0.85

    howToWrite.scene = “howToWrite”

    howToWrite.alpha = 0.8

    

    

    menuGroup:insert(background)

    menuGroup:insert(stave)

    menuGroup:insert(clefs)

    menuGroup:insert(notes)

    menuGroup:insert(timeSignatures)

    menuGroup:insert(howToWrite)

    

    stave:addEventListener(“touch”, changeScene)

    clefs:addEventListener(“touch”, changeScene)

    notes:addEventListener(“touch”, changeScene)

    timeSignatures:addEventListener(“touch”, changeScene)

    howToWrite:addEventListener(“touch”, changeScene)

    

    return menuGroup

    

    

end

-------------------Config.lua file------------------

if ( string.sub( system.getInfo(“model”), 1, 4 ) == “iPad” ) then

   application =

   {

      content =

      {

         width = 360,

         height = 480,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         imageSuffix =

         {

            ["@2x"] = 1.5,

            ["@4x"] = 3.0,

         },

      },

   }

elseif ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” and display.pixelHeight > 960 ) then

   application =

   {

      content =

      {

         width = 320,

         height = 568,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         imageSuffix =

         {

            ["@2x"] = 1.5,

            ["@4x"] = 3.0,

         },

      },

   }

elseif ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” ) then

   application =

   {

      content =

      {

         width = 320,

         height = 480,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         imageSuffix =

         {

            ["@2x"] = 1.5,

            ["@4x"] = 3.0,

         },

      },

   } 

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   

---------------------Build.settings file -----------------------

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

    

    orientation = {

        default = “landscapeRight”,

        supported = { “landscapeRight”,“landscapeLeft”,}

    },

    

    iphone = {

        plist = {

            UIStatusBarHidden = false,

            UIPrerenderedIcon = true, – set to false for “shine” overlay

          

        }

    },

}

Director has not been updated to work with Graphics 2.0.  Since this is a 3rd party tool, we really can’t provide you support on it.  Storyboard is the currently supported scene manager for Starter and Basic accounts.  For Pro and Enterprise, we introduced version 2 of Storyboard called Composer, which will be the official scene manager when the next public build rolls out.

I would offer you two options to help solve this.

  1. Port to Storyboard.  Composer isn’t drastically different and you will want to use it after the next public release.

  2. Search the forums for Director based posts and see what solutions other community members have found with regards to this.  It might be just as simple as putting in the graphicsCompatiblity = 1 line in your config.lua where you set the width and height (as that keeps the Graphics 1.0 compatible positioning in place) But that’s not the long term best solution.

Rob

Hi Rob, Thanks again for the reply, well I quickly tested the graphicsCompatiblity = 1 method u suggested since I have a tight time schedule (university project) and its a no-go, oh well, time to try storyboard out.  Ill probably post back here to say if it works or not (in case anybody else has the same issue)