Making a separate .ini file for saving server settings

I am asking this question because I would like to know how to save setting in another ini file other than the gameusersettings file or at least make a section in the gameusersettings ini. For Example

214835-towerexample.png

214837-towerexample2.png

Worked this out myself by making my own Gamesession class and changing the ini file it uses to save or change data.

Hi, if you are still out there, could you please explain this in more detail? I am having a hard time where to look for to give the server owners the opportunity to change the name of their server . I looked into Shooter game but I dont understand how its done there. I looked into SShooterServerList.cpp too look how the serverrow gets the name of the server and found “NewServerEntry->ServerName = Result.Session.OwningUserName;”
So does this mean that the name of the server is the ID of the playercontroller which you pass when CreateSession()? And where can this be later changed. Im interested in the dedicated server part.
Hope that makes sense. :slight_smile:

Hi, my information might be wrong cause I haven’t used unreal engine in a while but from my knowledge you have to have the full engine source code and change in the engine’s game session class code because by default it will just use the players user name. The reason wanted to change the ini for game session is to change max players and some other stuff but I quickly reverted back to the gamemode way of doing it(which I think to change the server name I had the full source code and changed a line in the base gamesession class). There is also a launch command they added for steam games but its not the best solution I can’t remember it though(its only for dedicated servers). It is possible there is now a better way considering all my code I have written in Unreal is now 2 years old and the fact I am looking through my code right now and it doesn’t seem I used the engine source.

Sorry if this was not of much help.

thank you very much for the reply but I dont think that things like this have to be done in the engine code. I read a bit more and I think the way its done is that you have to declare variable which might be changed by the user with “config” and also the class where the variables live in. Then after packaging I think you can change the variables in the game.ini but I didnt test yet. :slight_smile: