Hello everyone!
Let me explain my question.
I have a game, and I need to package it twice to have different versions of the same game, e.g., a normal version and a demo version.
Why do I want to do this?
Because the normal version of the game should have access to everything, and the demo version only has access to multiplayer. (Only a few specific maps, but it can also connect to a map it doesn’t have access to if created by a player who does have the game.)
And I find it very inconvenient to compile the game once and then have to edit blueprints to limit the content and put it in demo mode.
I’m currently facing the problem as follows:
Library Function:
with a bool IsDemoMode?
Returns True if it’s a demo.
Returns False if it’s the normal version.
Before compiling the demo version, I set this bool to true.
It works fine, but it’s very inconvenient to have to manually set it before compiling. And I’m looking for something like the GetPlatformName
node that returns what platform the game is currently running.
I was thinking of using Project Launcher, but I don’t know if it works for this task, or at least I don’t know how.
I was thinking of creating two profiles like this.
- Normal Game
- Demo Game
and using Project Launcher, package it. And using a blueprint node, get the version of the game I’m running. For example:
GetGameVersionMode:
Returns Normal or Demo depending on which build I’m running.
Does anyone know how this is done?
How are you addressing this issue with your projects?