noita_entangled_worlds icon indicating copy to clipboard operation
noita_entangled_worlds copied to clipboard

Bug: Error loading './mods/quant.ew/ewext.dll' within PortingKit OSX

Open Ownezx opened this issue 4 months ago • 3 comments

I'm trying to run noita on a macbook pro M3 using PortingKit, so far noita runs, noita_entangled_world was happy when I linked it to the correct location inside of the Noita.app/Contents/drive_c/GOG game/noita

The mod seem to be to be installed correctly as the file is present in /mod/quant.ew/ewext.dll.

However, when I start a game with the mod loaded, i get:

Noita (Jan 25 2025) - 20250811-210839
-------------------------------------------
GOG::OnAuthFailure() - 1
Error loading lua script - file doesn't exist: data/scripts/empty.lua
Lua error - error loading module 'ewext' from file './mods/quant.ew/ewext.dll':
    Module not found.


  Stack traceback:
      [C]: in ?
      [C]: in function 'require'
      [string "mods/quant.ew/init.lua"]:15: in main chunk
Lua (DoFile) error at 'mods/quant.ew/init.lua

I tried giving full disk access to PortingKit or Noita.app, but to no avail. I did get a disk access request as I clicked on open mod folder, and the folder opened was the correct one. So I think the executable is silently being refused disk access?

Does anyone have an idea of how to give access the mod folder to noita?

Ownezx avatar Aug 12 '25 01:08 Ownezx

After further investigation, I don't think it's disk access as I can save and load games.

Ownezx avatar Aug 12 '25 01:08 Ownezx

It turns out that the bcryptprimitives.dll was not present in the default PortingKit setup for Noita, choosing windows 11 and kegwork-battle.net (wine 10.0 revision 0) made the mod work.

Would you want a PR in the readme for the setup info?

Ownezx avatar Aug 12 '25 03:08 Ownezx

Yes, sure, a PR describing how to setup this on macos would be nice.

IntQuant avatar Aug 12 '25 17:08 IntQuant