module 'plugin_steamworks' not found

I haven’t tried our steam app on a windows 7 PC for a few years and just tried and am getting a plugin error. I do not see the error when running the same code on a macbook.

using solar2d 2023.3686

build.settings

plugins =
{
[“plugin.steamworks”] =
{
publisherId = “com.coronalabs”
}
},

Here is the error:

12:39:40.009 D:\a\corona\corona\subrepos\composer\composer.lua:1457: D:\a\corona\corona\platform\resources\init.lua:931: module ‘plugin_steamworks’ not found:
12:39:40.009 no field package.preload[‘plugin_steamworks’]
12:39:40.009 no file ‘C:\Users\user\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_steamworks.lua’
12:39:40.009 no file ‘C:\workspace\game\plugin_steamworks.lua’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_steamworks.lua’
12:39:40.009 no file ‘.\plugin_steamworks.lua’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\lua\plugin_steamworks.lua’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\lua\plugin_steamworks\init.lua’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_steamworks.lua’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_steamworks\init.lua’
12:39:40.009 no file ‘C:\Users\jmansfield\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_steamworks.dll’
12:39:40.009 no file ‘.\plugin_steamworks.dll’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_steamworks.dll’
12:39:40.009 no file ‘.\plugin_steamworks.dll’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_steamworks.dll’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\loadall.dll’
12:39:40.009 no file ‘C:\Users\user\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_steamworks.dll’
12:39:40.009 no file ‘.\plugin_steamworks.dll’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_steamworks.dll’
12:39:40.009 no file ‘.\plugin_steamworks.dll’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_steamworks.dll’
12:39:40.009 no file ‘C:\Program Files (x86)\Corona Labs\Corona\loadall.dll’
12:39:40.009 stack traceback:
12:39:40.009 [C]: in function ‘error’

the error happens on this line of code:

local steamworks = require( “plugin.steamworks” )

I’ve tried downloading plugin.steamworks.dll and steam_api.dll from https://github.com/coronalabs/com.coronalabs-plugin.steamworks/releases/download/v4/2020.3590-mac-sim.tgz and copied them into C:\Program Files (x86)\Corona Labs\Corona\Resources

afterwards the error changed too:

14:47:32.201 ERROR: Runtime error
14:47:32.201 D:\a\corona\corona\subrepos\composer\composer.lua:1457: C:\workspace\stretchbot-steam\lib\network\GameServices.lua:2: error loading module ‘plugin.steamworks’ from file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin.steamworks.dll’:
14:47:32.201 The specified module could not be found.

I am not completely sure of how caching of plugin works but it appears that the plugins are downloaded in a separate location and there is sometimes this lua file in an entirely different location that tells the simulator where to look for that plugin. The lua file has occasionally gone missing for me for certain plugins and usually deleting all the Solar2d/Corona folders/caches and then rebuilding seems to fix this issue.

FWIW, I just deleted my plugin cache and made a build of one of our MacOS projects that uses Steamworks and it is working fine and hooking up correctly to the Steam App. I am not currently able to test on Windows which is what you are probably using. I can try later on Windows and report back.

Thanks for the response. As mentioned it works on my macbook, its just windows that it cant get the plugin.

I just tried deleting C:\Users\user\AppData\Roaming\Solar2DPlugins\

After restarting solar2d and relaunching my game I still see the same error that it cant find the plugin.

The following directory was created again but remains empty:
C:\Users\user\AppData\Roaming\Solar2DPlugins\Caches\Solar2Directory\coronalabs\com.coronalabs\plugin.steamworks\win32-sim

A completed reinstall of corona seemed to have fixed it.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.