Custom UGameEngine functions not being called?
I'm trying to setup a custom UGameEngine but my Init() function is not getting called?(no break points are being hit) so i started up the shooter example and much to my surprise, I'm getting the same results. I have an object that needs to be persistent throughout the entirety of the game and the entirety of the game depends on it. I need to call a function from the gamemode because I need to know if it's a server. I started with using game instance and setting the dedicated server to start on a certain map with a gamemode that handles setup and then load a map to handle lobby stuff. The issue with this is that apparently when using the PIE both the server and client start on the currently selected map. So this wont work. But if I was able to use and debug a custom UGameEngine, that would be great! But from what I can tell. it's not working.
It's literally driving me crazy that I can't do what would normally be a relatively simple thing. I guess if I can't get any help here, I'm going to have to resort to customizing the UE4 source. Which i don't want to do because it takes so long to compile. I'm also getting discouraged by the massive lack of documentation. I've spent over a week trying to do this and so far, no solution that I have been able to come up with will work because of the lack of control that I have.
Any help is much appreciated.
asked Jan 24 '15 at 07:28 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here