Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create_host() (error 20) or join_host() (error 25) on macOS #9

Open
cortrano opened this issue Dec 18, 2023 · 6 comments
Open
Labels
bug Something isn't working

Comments

@cortrano
Copy link

Tested both on macOS and windows. On Widows everything works well with same code
image

@143mailliw
Copy link

Can confirm - this error happens on my Mac too (macOS 14 on M1 Pro)

@scriptsengineer
Copy link
Member

These error combinations confirm that steam sockets is null. I don't use Mac, but perhaps I should confirm that Steam is initializing correctly before calling these functions. I'll check if we have a similar problem on godotsteam.

@143mailliw
Copy link

These error combinations confirm that steam sockets is null. I don't use Mac, but perhaps I should confirm that Steam is initializing correctly before calling these functions. I'll check if we have a similar problem on godotsteam.

FWIW GodotSteam picks up user personas and lobbies perfectly fine.

@scriptsengineer scriptsengineer added the bug Something isn't working label Jan 28, 2024
@ntngamedev
Copy link

The bug happens in Macbook M2 Pro also.

This was referenced Jun 30, 2024
@dev-bre
Copy link

dev-bre commented Aug 15, 2024

This is still happening. Is there any way to fix the MacOS build?

@brogan89
Copy link

brogan89 commented Aug 15, 2024

This is still happening. Is there any way to fix the MacOS build?

Currently, no. It seems to be an issue with ENet and not this repo. If you just using only using gdscript, then you out of luck for now I'm afraid.

In C# there are more options:
Even the vanilla Enet in C# doesn't work on macOS. The only way I got my networking working on windows, macOS, and Linux is using LiteNetLib. Raknet will probably work as well, I haven't tested that yet because LiteNetLib unblocked me. You just need to roll out your own networking stack and not use any Godot networking features.

Even Steamworks.Net doesn't work on macOS, its a damn shame, but it is what it is. I don't have enough C++ knowledge to try fix it :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

6 participants