Facepunch Steamworks Plugin

I realized I never posted about the Facepunch.Steamworks plugin for the Flax Engine.

2 Likes

Recently updated to Facepunch.Steamworks version 2.5.0

3 Likes

Thanks for this. I’m just getting around to integrating Steam into my game. I got the plugin set up and working with no issues, but I’d like to know if there is a way to include the plugin for builds conditionally. I’m trying to set up my project to allow steam and non-steam builds with a simple build flag, but I can’t seem to stop it from including all the steam dependencies anyway. Is that even possible with a plugin, or do I need to set up Facepunch myself through build scripts?

I could add a custom define , maybe called “EXCLUDE_STEAMWORKS” or something that if you added it in your build settings / game cooker custom defines for a target it could exclude it from adding the dependencies. Would that help?

1 Like

That would be amazing. I am new to the flax build system. I know I can exclude adding dependencies based on conditions in the build file, but it seems that plugins will still bring in their dependencies. A flag or condition to switch off the whole facepunch/steamworks stuff would be nice.

I have added that in the latest commit. if you add EXCLUDE_STEAMWORKS as a custom define either in build settings or in the game cooker it will exclude the library and the plugin code. You will also need to exclude the dependency conditionally in your Game.Build.cs file. I added basic instructions in the readme. Let me know if you run into any issues.

1 Like

Thank you, this is great! I am traveling and not on my main build PC, but I will test it out when I get a chance.