Page 1 of 1

After loading;

Posted: Sat Apr 14, 2018 4:29 pm
by thecleanuser
Cryengine loads levels after loading being completed. Is that possible to prevent starting a level after loading being completed?
Because i'd like to add "press button" function to make game start. Just like Crysis 3. Any ideas? How can i reach there through C++?

Re: After loading;

Posted: Sat Apr 14, 2018 8:34 pm
by lavizh
Cant help with programming but you can always use the PauseGame node. Then Resume after KeyPress? Think those will only work in the Game Launcher.

Re: After loading;

Posted: Sun Apr 15, 2018 8:11 am
by VonBismarck1986
You can setup a UI cover, basically I would Set up a FG with it loading the level but displaying a menu or something cover the entire screen so the player see's the screen ( just like when you pause the game ) as the level is being loaded or is loaded already the once Button is pressed, get rid of screen and spawn player

Re: After loading;

Posted: Sun Apr 15, 2018 9:14 am
by thecleanuser
The only logical way is pausing game for me for now. Because, time'll be running if you don't pause the game.

Re: After loading;

Posted: Sun Apr 15, 2018 11:38 am
by fury22uk
Not sure if I understand you correctly.. But Cryengine DOES NOT load map automatically. It needs for example console command to be activated - map mapName.
So as long as you do not call this command, you should get black screen, with nothing loaded in there. Without map loaded you can load UI interfaces of yours, without any issues.
In other words.. Map is not required to be loaded for using UI systems in Cryengine.
So you create UI Button, and when you press it, make it call Cryengine command line - map mapName. You can either use flowgraph or c++ for it.

If you want to have level loaded though, but prevent Player from spawning on the level, just comment out the code that is responsible for spawning player in the first place, and instead of this - spawn simple camera in there, to see level if you wish. Then when you press button - execute player spawn code.

Re: After loading;

Posted: Tue Apr 17, 2018 4:24 pm
by Cry-Flare
Be aware in the default templates the command "map example" is used, this is to allow easier onboarding with the template projects.
You could either rename/delete the map, or remove this line from the template code.