@ingemar_corona unfortunately adding that comma didnt not resolve my issue. I still am getting this error when I try to launch the simulator : http://puu.sh/qpWen/ba6afdcb61.png
Very strange.
If I understand the problem correctly you get the “plugin not found” error right at the beginning when opening the Corona Simulator with this project. You don’t even get a chance to perform a device build, right? If so, the Windows stub for the plugin isn’t being downloaded to your computer for some reason…
@ingemar_corona,
Yes that is correct. What I have heard in the past was to include the plugin within the build settings, dont reference it in the code, launch the simulator and kick off a build. This is supposedly suppose to download the back end stuff and then when I re-add in the reference in the code it should work out, but that didnt help in this situation.
Any suggestions?
Run a command shell (cmd.exe) and type in:
cd %HOMEPATH%\AppData\Roaming\Corona Labs\Corona Simulator\Plugins
remove any plugin_pollfish.* file you find and retry your app.
Rob
Ive had some issues with plugins too
try adding this:
settings = { plugins = { ["plugin.advertisingId"] = { publisherId = "com.coronalabs" }, } }
make sure your connected to internet
worked for me. good luck
@Rob, I didnt see a plugin_pollfish.* file. Here is a screenshot: http://puu.sh/qr2Ui/0f59ddd071.png
To me that makes sense because that’s what the error is reporting that it cant find the plugin. Maybe its somehow not getting downloaded correctly?
@robertsthomasd Not sure what plugin this is or what you are trying to say here. I attempted to add in this to the project without the pollfish require refence in the main code and it runs in the simulator fine. Its once I add in the require for the pollfish plugin is where I am running into the error that the plugin cant be found. Internet shouldnt be an issue since I can access this webpage and such.
Humor me and remove everything in that folder and try again.
Rob
Removing the files: http://puu.sh/qr3Cy/e18eca36c8.png
Running project again: http://puu.sh/qr3I6/d69f8cef75.png
Directory after running project: http://puu.sh/qr3Km/14df882037.png
Quite strange :unsure:
-Adam
Edit: This is for the simple Hello World project.
Is there a way for you to copy/paste the error and any console log messages before it from the Corona console log window and paste it here as text. I’d like to take this to engineering but its really difficult with screen shots.
Rob
Looks like the error is captured in the log here:
Windows simulator build date: Oct 5 2015 @ 17:13:45 Copyright (C) 2009-2015 C o r o n a L a b s I n c . Version: 3.0.0 Build: 2015.2731 Platform: SM-G900S / x64 / 6.2 / GeForce GT 650M/PCIe/SSE2 / 4.5.0 NVIDIA 347.09 / 2015.2731 Loading project from: C:\Users\acorb\_000\Documents\Corona Projects\helloWorld Project sandbox folder: C:\Users\acorb\_000\AppData\Local\Corona Labs\Corona Simulator\Sandbox\helloworld-EDBDDE8E9A05833C200841E047096C4E\Documents PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.fuse/2014.2393/win32-sim/plugin.fuse.zip Work Runtime error module 'plugin\_pollfish' not found: no field package.preload['plugin\_pollfish'] no file 'C:\Users\acorb\_000\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin\_pollfish.lua' no file 'C:\Users\acorb\_000\Documents\Corona Projects\helloWorld\plugin\_pollfish.lua' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\Resources\plugin\_pollfish.lua' no file '.\plugin\_pollfish.lua' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\lua\plugin\_pollfish.lua' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\lua\plugin\_pollfish\init.lua' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\plugin\_pollfish.lua' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\plugin\_pollfish\init.lua' no file 'C:\Users\acorb\_000\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin\_pollfish.dll' no file '.\plugin\_pollfish.dll' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\Resources\plugin\_pollfish.dll' no file '.\plugin\_pollfish.dll' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\plugin\_pollfish.dll' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\loadall.dll' no file 'C:\Users\acorb\_000\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin\_pollfish.dll' no file '.\plugin\_pollfish.dll' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\Resources\plugin\_pollfish.dll' no file '.\plugin\_pollfish.dll' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\plugin\_pollfish.dll' no file 'C:\Program Files (x86)\Corona Labs\Corona SDK\loadall.dll' stack traceback: [C]: in function 'require' ?: in function 'require' C:\Users\acorb\_000\Documents\Corona Projects\helloWorld\main.lua:9: in main chunk
Thank you. I can’t believe I missed this… You’re running a really old build 2015.2731. You need to update to the latest public build 2015.2906 or a later daily build to use Pollfish.
Rob
Well look at that it works! Haha yeah I should probably update that more often. Been using this SDK probably since last Dec and didnt realize I needed to update.
Thank you very much Rob!
-Adam
[quote=“robertsthomasd,post:25,topic:340516”]
Ive had some issues with plugins too
try adding this:
settings = { plugins = { ["plugin.advertisingId"] = { publisherId = "com.coronalabs" }, } }
make sure your connected to internet
worked for me. good luck [/quote]
You don’t put advertising Id, you put the name of the plugin
Have you subscribed to the plugin in the Corona store?
From what I can tell its pre-activated
Can you post your complete build.settings?
I have the following:
settings = { orientation = { default ="landscapeRight", content = "landscapeRight", supported = { "landscapeRight" }, }, plugins = { -- key is the name passed to Lua's 'require()' -- ["plugin.googleAnalytics"] = -- { -- publisherId = "com.coronalabs" -- }, ["plugin.parse"] = { -- required publisherId = "com.develephant", }, ["plugin.notifications"] = { publisherId = "com.coronalabs" }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, }, ["facebook"] = { publisherId = "com.coronalabs" }, ["plugin.pollfish"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION" }, }, }
Try this:
settings = { orientation = { default ="landscapeRight", content = "landscapeRight", supported = { "landscapeRight" }, }, plugins = { -- key is the name passed to Lua's 'require()' -- ["plugin.googleAnalytics"] = -- { -- publisherId = "com.coronalabs" -- }, ["plugin.parse"] = { -- required publisherId = "com.develephant", }, ["plugin.notifications"] = { publisherId = "com.coronalabs" }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, }, ["facebook"] = { publisherId = "com.coronalabs" }, ["plugin.pollfish"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.ACCESS\_NETWORK\_STATE" "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", }, }, }
I am not at my computer to try but I only see a style difference. I pulled this from my github latest version and added the pollfish plugin which I messed up the pasting which messed up the formatting. So I believe I have the same formatting at home but I cant guarantee that for sure. I havent seen any other post on Pollfish plugin so I am not sure if anyone has even tried it yet? Did you try and add it in a sample project to see if it works(I havent tried this but I might once I get home)?
Thanks,
Adam
The build setting had a bunch of color tags [color=“ababab”] in them. This will cause errors. I cleaned the color codes out of the build.settings and posted clear text back.