expressobits / steam-multiplayer-peer

Steam Sockets Multiplayer Peer for Godot 4 via GDExtension
MIT License
199 stars 13 forks source link

steam-multiplayer-peer.macos.template_debug - no such file / library not found (MacOS) #14

Closed BatteryAcid closed 3 months ago

BatteryAcid commented 5 months ago

Hello!

I've created a demo project that works perfectly using the custom pre-built MultiplayerPeer Godot Editor.
However, when I launch the project with a standard Godot editor (non-custom) and add the GodotSteam and this SteamMultiplayerPeer assets, I get the following error:

Screenshot 2024-06-07 at 2 17 14 PM

It seems to be looking for a macos.template_debug.framework file. I tried adding a Debug Export option for an MacOS build that points to the macos template file downloaded here, but that didn't work:

Any insight would be greatly appreciated! Thank you!

Godot Version v4.2.stable.official [46dc27791]

BatteryAcid commented 5 months ago

OK, so I just realized the operating system folders do not show up in the Editor, but they do show for the godotsteam addon.

Screenshot 2024-06-07 at 2 44 59 PM

Not sure if that means anything, but if I inspect the folder contents outside of Godot, I DO see the folder it's looking for in the error:

Screenshot 2024-06-07 at 2 46 39 PM
BatteryAcid commented 5 months ago

After chatting with the maintainer @scriptsengineer, it looks like the libsteam_api.dylib is also needed in the framework folder. I manually added it to the folder, seen in the screenshot below. I also didn't have to rename anything or change the .gdextension file

Screenshot 2024-06-07 at 5 13 39 PM

# Also, whatever is listed in the steam-multiplayer-peer.gdextension file for macos, that folder name must match the file name within it. Currently, I think the file name is incorrect, it's prepended with "lib" and that has to be removed. So folder listing in steam-multiplayer-peer.gdextension

rbwldrf commented 4 months ago

Had the same problem, took me an entire day to fix it.

You need to start by deleting the .gdignore's from the osx folder. Keep in mind, these are hidden, so you'll need to press Cmd+Shift+Period.

Then, you must move the contents of the steam-multiplayer-peer.macos.template_debug.framework folder into the osx folder and rename it, preferably by copying the name of the folder, deleting it, then pasting its name onto the framework contents.

scriptsengineer commented 3 months ago

Fixed on 0.0.7