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

feat: Dedicated Server support #1468

Merged
merged 15 commits into from
Nov 7, 2023
Merged

feat: Dedicated Server support #1468

merged 15 commits into from
Nov 7, 2023

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Oct 13, 2023

Resolves #1467, #1462

Versions newer than 2021.3 have additional enums covering the dedicated server runtimes. These are basically just headless builts with assets stripped.

I moved the Runtime Platform check into UnityInfo that we compile with the actual game to have access to the precompile directives.

The only actual difference is on macOS where building a dedicated macOS server does not generate an .app. The Cocoa Native Bridge now does an additional lookup when trying to load the dylib.

App:

├── Frameworks
│   ├── GameAssembly.dylib
│   └── UnityPlayer.dylib
├── Info.plist
├── MacOS
│   └── unity-of-bugs
├── PlugIns
│   └── Sentry.dylib
├── Resources
│   ├── Data
│   │   └── Resources
└── _CodeSignature

Server:

├── Data
│   └── Resources
├── GameAssembly.dylib
├── PlugIns
│   └── Sentry.dylib
├── UnityPlayer.dylib
└── unity-of-bugs

and loading fails with Sentry (bridge): Couldn't load Sentry.dylib - dlopen() failed

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2023

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 9bfb872

@bitsandfoxes bitsandfoxes marked this pull request as ready for review October 19, 2023 16:10
CHANGELOG.md Outdated Show resolved Hide resolved
@bitsandfoxes bitsandfoxes merged commit dea552d into main Nov 7, 2023
121 of 122 checks passed
@bitsandfoxes bitsandfoxes deleted the feat/server-support branch November 7, 2023 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate support for Linux and Windows dedicated server build crashes
3 participants