Hi richard,
What are those appropiate folders? I do not found any documentation about that.
@vlads referenced this tree recently, but I’ve not tried it myself:
($HOME or $AppData)/Solar2DPlugins/[publisherId]/[plugin]/[build]/[platform]/data.tgz
There’s also talk of building in a plugin import tool to the simulator itself so that Solar2D can drop your downloaded files into the right directories for inclusion.
I already went to that directory, added the folders and even then it is giving an error!
13:39:46.719 Warning:
13:39:46.719 The signer’s certificate is self-signed.
13:39:46.719
13:39:46.719 The timestamp will expire on 2030-10-16.
13:39:59.848 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
13:39:59.848 ERROR: configuring ‘shared.android.support.v4’ failed!
13:39:59.848
13:39:59.848 FAILURE: Build failed with an exception.
13:39:59.848
13:39:59.848 * Where:
13:39:59.848 Build file ‘C:\Users\mathe\AppData\Local\Temp\Corona Labs\CLtmpa18040\template\app\build.gradle.kts’ line: 274
13:39:59.848
13:39:59.848 * What went wrong:
13:39:59.848 Could not open dsl remapped class cache for eai1t831g7ld85aqx4tledj29 (C:\Users\mathe.gradle\caches\5.4.1\scripts-remapped\corona_29jlwnojpjupqgawmxll5gyxq\eai1t831g7ld85aqx4tledj29\dsldcd040730888da95d185715568c9cc57).
13:39:59.848 > Could not open dsl generic class cache for script ‘C:\Users\mathe\AppData\Local\Temp\Corona Labs\CLtmpa18040\template\app\build\corona-plugins\shared.android.support.v4\corona.gradle’ (C:\Users\mathe.gradle\caches\5.4.1\scripts\eai1t831g7ld85aqx4tledj29\dsl\dsldcd040730888da95d185715568c9cc57).
13:39:59.848 > Could not compile script ‘C:\Users\mathe\AppData\Local\Temp\Corona Labs\CLtmpa18040\template\app\build\corona-plugins\shared.android.support.v4\corona.gradle’.
Other plugins work during offline assembly simply move the com.coronalabs folder from the Caches folder to the folder:
/Users/user_name/Solar2DPlugins/com.coronalabs
But unfortunately I was not able to get my plugin to work, I get an error. Here is the topic:
Just to update everyone following this thread, I was able to get the Solar2d plugins to work by upgrading from Mojave to Catalina and upgrading Xcode to 11.4.1, using simulator build 3595. At the moment, I cannot get 3rd party plugins to work from solar2dmarketplace.com. The simulator just crashes when the build starts. More info is available here
Looking into this will respond to this in the thread
Hi @Scott_Harrison I used the URL you sent me and I’m still getting this during the build process…
ERROR: Runtime error
?:0: attempt to index a nil value
stack traceback:
?: in function ‘pathJoin’
?: in function ‘?’
?: in function ‘?’
?: in function ‘?’
?: in function ‘collect’
?: in function <?:110>
Program completed in 56.87 seconds (pid: 86728).
This is mostly likely because you have not clicked the activate button. I am looking at your account an it looks like you have no plugins activated based on your account id you posted in an earlier thread
Hi @Scott_Harrison it’s activated now and the problem is still the same. FYI, the video you have on the Game Center page is broken.
I’m going to use an example project from the sampleCode folder of the Corona build 3595, and simply add the gameCenter to it
@Scott_Harrison ok, so I loaded up sampleCode/Graphics/Fishies/build.settings and I added this…and have the same error as in my project. Can you please try this on your system so we can eliminate the possibility of something happening specific to my computer? I’m running on…
macOS Catalina Version 10.15.4, MacBook Pro (13-inch 2017), 3.3 GHz Dual-Core Intel Core i5, 16GB 2133MHz LPDDR3, Graphics: INtel Iris Plus Graphics 650 1536 MB
My xCode version is: 11.4.1 (11E503a), although I never use it. The Build appears to use it.
So, here’s the only code I added to build.settings to the sample Fishies project.
plugins =
{
[“plugin.gamecenter”]={publisherId=“scotth.tech”,supportedPlatforms={iphone={url=" http://solar2dmarketplace.com/marketplacePlugins?ID=oljr9d&plugin=GameCenter_scotth-tech&type=iOS"}}},
},
ERROR: Runtime error
?:0: attempt to index a nil value
stack traceback:
?: in function ‘pathJoin’
?: in function ‘?’
?: in function ‘?’
?: in function ‘?’
?: in function ‘collect’
?: in function <?:110>
Program completed in 32.79 seconds (pid: 87691).
Hi Scott, I just DM’d you a blank template project with a 3rd party plugin. I checked and my quotes are the correct type. I made sure to copy directly from the marketplace page.
It looks like @vlads tried to address this issue in the latest build 3596, but unfortunately the problem persists.
FWIW, I think the issue is with the simulator itself since there is no evidence that your plugins get downloaded on my computer. It looks like the simulator crashes before it gets the chance to download the plugin. If the template project works for you however, then it might suggest a different problem.
Hello. There was an issue with self hosted plugins. I hopefully fixed it in latest build. If it still doesn’t work, pm me with actual build.settings file, and target and host os.
Hey, @Scott_Harrison, it seems that when I try to build project @developer0744 sent me, I get invalid plugins. They contain text Cannot install in Browser
instead of tgz archive.
I am getting error with PlayFab plugin;
ERROR: Build Failed: Unable to find plugin ‘plugin.playfab.client’ for platform ‘iphone’:
Custom URL: skipped because no table supportedPlatforms provided for plugin.playfab.client
Locally: no directory /Users/baykal/Solar2DPlugins/com.playfab/plugin.playfab.client
Locally: no file ‘/Users/baykal/Solar2DPlugins/com.playfab/plugin.playfab.client/iphone/data.tgz’
Locally: no file ‘/Users/baykal/Solar2DPlugins/com.playfab/plugin.playfab.client/data.tgz’
Solar2D Directory: plugin plugin.playfab.client was not found at Solar2D Directory
Ignore Missing checker: no plugin directory /Users/baykal/Solar2DPlugins/com.playfab/plugin.playfab.client
Unable to find plugin ‘plugin.playfab.client’ for platform ‘lua’:
Custom URL: skipped because no table supportedPlatforms provided for plugin.playfab.client
Locally: no directory /Users/baykal/Solar2DPlugins/com.playfab/plugin.playfab.client
Locally: no file ‘/Users/baykal/Solar2DPlugins/com.playfab/plugin.playfab.client/lua/data.tgz’
Locally: no file ‘/Users/baykal/Solar2DPlugins/com.playfab/plugin.playfab.client/data.tgz’
Solar2D Directory: plugin plugin.playfab.client was not found at Solar2D Directory
Ignore Missing checker: no plugin directory /Users/baykal/Solar2DPlugins/com.playfab/plugin.playfab.client
What should I do?
Hi @vlads I’m having a similar issue here with GBCDataCabinet from CandleLightGames:
22:10:03.120 FAILURE: Build failed with an exception.
22:10:03.120
22:10:03.120 * Where:
22:10:03.120 Build file 'C:\Users\Diana Zang\AppData\Local\Temp\Corona Labs\CLtmpa03060\template\app\build.gradle.kts' line: 515
22:10:03.120
22:10:03.120 * What went wrong:
22:10:03.120 Error while fetching plugins: ERROR: occured while collecting plugins for Android. Unable to find plugin 'plugin.GBCDataCabinet' for platform 'android':
22:10:03.120 Custom URL: skipped because no table supportedPlatforms provided for plugin.GBCDataCabinet
22:10:03.120 Locally: no directory C:\Users\Diana Zang\AppData\Roaming\Solar2DPlugins\com.gamesbycandlelight\plugin.GBCDataCabinet
22:10:03.120 Locally: no file 'C:\Users\Diana Zang\AppData\Roaming\Solar2DPlugins\com.gamesbycandlelight\plugin.GBCDataCabinet\android\data.tgz'
22:10:03.120 Locally: no file 'C:\Users\Diana Zang\AppData\Roaming\Solar2DPlugins\com.gamesbycandlelight\plugin.GBCDataCabinet\data.tgz'
22:10:03.120 Solar2D Directory: plugin plugin.GBCDataCabinet was not found at Solar2D Directory
22:10:03.120 Ignore Missing checker: no plugin directory C:\Users\Diana Zang\AppData\Roaming\Solar2DPlugins\com.gamesbycandlelight\plugin.GBCDataCabinet
22:10:03.120 Unable to find plugin 'plugin.GBCDataCabinet' for platform 'lua':
22:10:03.120 Custom URL: skipped because no table supportedPlatforms provided for plugin.GBCDataCabinet
22:10:03.120 Locally: no directory C:\Users\Diana Zang\AppData\Roaming\Solar2DPlugins\com.gamesbycandlelight\plugin.GBCDataCabinet
22:10:03.120 Locally: no file 'C:\Users\Diana Zang\AppData\Roaming\Solar2DPlugins\com.gamesbycandlelight\plugin.GBCDataCabinet\lua\data.tgz'
22:10:03.120 Locally: no file 'C:\Users\Diana Zang\AppData\Roaming\Solar2DPlugins\com.gamesbycandlelight\plugin.GBCDataCabinet\data.tgz'
22:10:03.120 Solar2D Directory: plugin plugin.GBCDataCabinet was not found at Solar2D Directory
22:10:03.120 Ignore Missing checker: no plugin directory C:\Users\Diana Zang\AppData\Roaming\Solar2DPlugins\com.gamesbycandlelight\plugin.GBCDataCabinet
22:10:03.120
22:10:03.120
22:10:03.120 * Try:
22:10:03.120 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
22:10:03.120
22:10:03.120 * Get more help at https://help.gradle.org
22:10:03.120
22:10:03.120 BUILD FAILED in 13s
22:10:03.425 Android build failed (1) after 17 seconds
Here’s my build.settings file, as you can see, on a scale from 1 to 10, is 1 basic
It’s a pity that this happened now, I was just about to pull the final build after 6 months of work
Any ideas?
I’m working on Windows 10 Home Edition and Solar2D version 2020.3595 (2020.5.21)
EDIT: Everything works like a charm in the simulator, it’s when it tries to build it that it crashes it.
Thank you!
build.settings (1.1 KB)