please help i keep receiving this error, do i have to download something or not? 10:20:45.163 Copyright © 2009-2018 C o r o n a L a b s I n c . 10:20:45.163 Version: 3.0.0 10:20:45.163 Build: 2018.3326 10:20:45.498 Platform: iPhone / x64 / 10.0 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4358 / 2018.3326 / en_US | US | en_US | en 10:20:45.498 Loading project from: C:\Users\student\Documents\Corona Projects\project PONTIFF 10:20:45.498 Project sandbox folder: C:\Users\student\AppData\Local\Corona Labs\Corona Simulator\Sandbox\project pontiff-3A22618FACDAC75348B0C5FB5BAFCC4F\Documents 10:20:46.572 inMobi.init() WARNING: The InMobi plugin is only supported on Android & iOS devices. Please build for device 10:20:46.572 inMobi.setUserDetails() WARNING: The InMobi plugin is only supported on Android & iOS devices. Please build for device 10:20:46.572 inMobi.isLoaded() WARNING: The InMobi plugin is only supported on Android & iOS devices. Please build for device 10:20:46.572 inMobi.isLoaded() WARNING: The InMobi plugin is only supported on Android & iOS devices. Please build for device 10:20:46.572 nil 10:20:46.572 inMobi.hide() WARNING: The InMobi plugin is only supported on Android & iOS devices. Please build for device 10:20:46.615 ERROR: Runtime error 10:20:46.615 module ‘plugins.inMobi’ not found: 10:20:46.615 no field package.preload[‘plugins.inMobi’] 10:20:46.615 no file ‘C:\Users\student\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugins\inMobi.lua’ 10:20:46.615 no file ‘C:\Users\student\Documents\Corona Projects\project PONTIFF\plugins\inMobi.lua’ 10:20:46.615 no file ‘C:\HAPPY\Corona\Resources\plugins\inMobi.lua’ 10:20:46.615 no file ‘.\plugins\inMobi.lua’ 10:20:46.615 no file ‘C:\HAPPY\Corona\lua\plugins\inMobi.lua’ 10:20:46.615 no file ‘C:\HAPPY\Corona\lua\plugins\inMobi\init.lua’ 10:20:46.615 no file ‘C:\HAPPY\Corona\plugins\inMobi.lua’ 10:20:46.615 no file ‘C:\HAPPY\Corona\plugins\inMobi\init.lua’ 10:20:46.615 no file ‘C:\Users\student\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugins\inMobi.dll’ 10:20:46.615 no file ‘.\plugins\inMobi.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\Resources\plugins\inMobi.dll’ 10:20:46.615 no file ‘.\plugins\inMobi.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\plugins\inMobi.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\loadall.dll’ 10:20:46.615 no file ‘C:\Users\student\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugins.dll’ 10:20:46.615 no file ‘.\plugins.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\Resources\plugins.dll’ 10:20:46.615 no file ‘.\plugins.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\plugins.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\loadall.dll’ 10:20:46.615 no file ‘C:\Users\student\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugins.inMobi.dll’ 10:20:46.615 no file ‘.\plugins.inMobi.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\Resources\plugins.inMobi.dll’ 10:20:46.615 no file ‘.\plugins.inMobi.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\plugins.inMobi.dll’ 10:20:46.615 no file ‘C:\HAPPY\Corona\loadall.dll’ 10:20:46.615 stack traceback: 10:20:46.615 [C]: in function ‘error’ 10:20:46.615 ?: in function ‘gotoScene’ 10:20:46.615 C:\Users\student\Documents\Corona Projects\project PONTIFF\main.lua:56: in main chunk
Can you repost this, using code formatting (the blue <> button) pasting the console log into the popup window? What you have is impossible to read.
Next are you doing this in the simulator?
Are you building for a device and getting this from the device run?
What version of Corona are you using?
Please share your build.settings with us (using code formatting).
Rob
my build settings
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRightsettings = {
orientation = {
default = “portrait”,
supported = {“portrait”},
},
iphone = {
plist = {
UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
}
},
plugins = {[“plugin.inMobi”] = {
publisherId = “com.coronalabs”
},[“plugin.google.play.services”] = {
publisherId = “com.coronalabs”
},
},
}
my main lua file
–
– main.lua
local composer = require( “composer” )
local widget = require( “widget” )
local inMobi = require(“plugins.inMobi”)–predeclare a placement id
local placementID = “1550065274048”local function adListener( event )
if ( event.phase == “init” ) then --successful initialize
– load a banner ad
inMobi.load( “banner”, 1550065274048 )elseif ( event.phase == “loaded” ) then --the ad was loaded
print( event.type )
print( event.placementId )elseif ( event.phase == “failed” ) then --the ad failed to load
print( event.type )
print( event. placementId )
print( event.isError )
print( event.response )
end
end–initialize the inmobi plugin
inMobi.init( adListener, { accountId=“340a9a96b4f9eaff3f3c”, logLevel=“debug”, hasUserConsent=true } )–sometime later check if the ad is loaded
if ( inMobi.isLoaded( 1550065274048 ) ) then
--show the ad
inMobi.show ( 1550065274048, { yAlign=“bottom” } )
end–sometime later check if the ad is loaded
local isAdLoaded = inMobi.isLoaded( 1550065274048 )
print( isAdLoaded )inMobi.hide( 1550065274048 )
– Hide status bar
display.setStatusBar( display.HiddenStatusBar )– Seed the random number generator
math.randomseed( os.time() )– Reserve channel 1 for background music
audio.reserveChannels(1 )
– Reduce the overall volume of the channel
audio.setVolume( 0.5, { channel=1 } )– Reserve channel 2 for highscores music
audio.reserveChannels(2 )
– Reduce the overall volume of the channel
audio.setVolume( 0.5, { channel=2 } )– Reserve channel 3 for menu music
audio.reserveChannels(3 )
– Reduce the overall volume of the channel
audio.setVolume( 0.5, { channel=3 } )– Go to the menu screen
composer.gotoScene( “menu” )require( “com.ponywolf.joykey” ).start()
the first errors file is from the first time it occurred and the second one from today
and yes im doing it in the simulator am just about to try it on a real android device
Can you repost this, using code formatting (the blue <> button) pasting the console log into the popup window? What you have is impossible to read.
Next are you doing this in the simulator?
Are you building for a device and getting this from the device run?
What version of Corona are you using?
Please share your build.settings with us (using code formatting).
Rob
my build settings
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRightsettings = {
orientation = {
default = “portrait”,
supported = {“portrait”},
},
iphone = {
plist = {
UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
}
},
plugins = {[“plugin.inMobi”] = {
publisherId = “com.coronalabs”
},[“plugin.google.play.services”] = {
publisherId = “com.coronalabs”
},
},
}
my main lua file
–
– main.lua
local composer = require( “composer” )
local widget = require( “widget” )
local inMobi = require(“plugins.inMobi”)–predeclare a placement id
local placementID = “1550065274048”local function adListener( event )
if ( event.phase == “init” ) then --successful initialize
– load a banner ad
inMobi.load( “banner”, 1550065274048 )elseif ( event.phase == “loaded” ) then --the ad was loaded
print( event.type )
print( event.placementId )elseif ( event.phase == “failed” ) then --the ad failed to load
print( event.type )
print( event. placementId )
print( event.isError )
print( event.response )
end
end–initialize the inmobi plugin
inMobi.init( adListener, { accountId=“340a9a96b4f9eaff3f3c”, logLevel=“debug”, hasUserConsent=true } )–sometime later check if the ad is loaded
if ( inMobi.isLoaded( 1550065274048 ) ) then
--show the ad
inMobi.show ( 1550065274048, { yAlign=“bottom” } )
end–sometime later check if the ad is loaded
local isAdLoaded = inMobi.isLoaded( 1550065274048 )
print( isAdLoaded )inMobi.hide( 1550065274048 )
– Hide status bar
display.setStatusBar( display.HiddenStatusBar )– Seed the random number generator
math.randomseed( os.time() )– Reserve channel 1 for background music
audio.reserveChannels(1 )
– Reduce the overall volume of the channel
audio.setVolume( 0.5, { channel=1 } )– Reserve channel 2 for highscores music
audio.reserveChannels(2 )
– Reduce the overall volume of the channel
audio.setVolume( 0.5, { channel=2 } )– Reserve channel 3 for menu music
audio.reserveChannels(3 )
– Reduce the overall volume of the channel
audio.setVolume( 0.5, { channel=3 } )– Go to the menu screen
composer.gotoScene( “menu” )require( “com.ponywolf.joykey” ).start()
the first errors file is from the first time it occurred and the second one from today
and yes im doing it in the simulator am just about to try it on a real android device