Adding Obscurity to your game
The client SDK for Windows x64 games, packaged for Unity, Unreal Engine and plain C or C++, and the installer that puts Obscurity's service and driver on players' PCs.
What you get
| Package | For |
|---|---|
com.obscurity.sdk-0.14.1.tgz | Unity, Windows x64 player and editor. Built and run with Unity 6 (6000.6), Mono and IL2CPP; made for 2021.3 or later, older versions not tried |
Obscurity-Unreal-0.14.1.zip | Unreal Engine 5, Win64 (built and tested with 5.8) |
obscurity-sdk-0.14.1.zip | Any other engine: obscurity.h, the import library and obscurity.dll |
obscurity_setup.exe | Players' PCs: Obscurity's service and kernel driver |
Your account gets the packages for the current SDK version. The SDK holds no secret: never put a server key (obs_sk_...) in a game client.
Unity
- Window › Package Manager › + › Add package from tarball, and choose
com.obscurity.sdk-0.14.1.tgz. The native library is set up for the Windows x64 player and editor. Unity notes that the package has no signature; that is expected before release. - Import the Session starter sample, put
ObscuritySessionStarteron an object in your first scene, and fill in your game id from the console. - Subscribe to
JoinTokenReady(andRefused, to show the player its message) and send the token to your game server when the player connects. The server verifies it (Server API) before it admits the player.
StartSession, JoinToken and EndSession make network requests and can block for seconds: call them off the main thread (the sample uses Task.Run). GetState and GetProtection never block.
Unreal Engine
- Unzip
Obscurity-Unreal-0.14.1.zipinto your project'sPluginsfolder (you getPlugins/Obscurity) and enable it. - Add
"Obscurity"to your game module's dependencies in its.Build.cs. #include "ObscuritySdk.h". Call the SDK only whenObscuritySdkLoaded()is true; the plugin copiesobscurity.dllnext to your binaries when you build or package.- Start a session with
obs_createandobs_start_sessionon a background thread, thenobs_join_tokenwhen connecting; the server side checks the token inPreLoginwith the server API.
Other engines (C or C++)
Link obscurity.lib, ship obscurity.dll next to your executable, and include obscurity/obscurity.h. The header documents every call: what it does, what it sends, and what it changes on the PC.
Players' PCs
Ship obscurity_setup.exe with your game, or link to it. It needs administrator rights once.
- Run it from your own installer with
/quiet(no window; exit code 0 on success), or let players run it, in which case it asks first. - It installs to
%ProgramFiles%\Obscurityand appears in Windows' installed apps, where it can be uninstalled. Boot, firmware and security settings are never changed. - The driver loads only while a protected game runs and is unloaded afterwards. Obscurity keeps itself up to date: a newer installer signed by Obscurity is installed between games.
Without it, your game still runs and starts sessions; protection reports unavailable with the reason, and your game's tier settings decide whether that matters.