Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
I've been having issues with the config file for my mod for a while now. Ever since I made it so that multiple classes use the same .ini, each with their own section, all white space gets removed, and all comments without the "=" symbol in them get removed. So now all of my comments begin with "#=", and I also use that for my 'blank' lines.
Then, when I made my GameInfo** class configurable, it added a whole bunch of entries to the GameInfo class's section:
Spoiler!
Code:
#=This is configurable data from FrameworkGame and GameInfo, it is NOT part of the mod!
bAlwaysAllowPerkChange=False
bWaitForNetPlayers=True
bEnableGameAnalytics=True
bRecordGameStatsFile=False
bLogScoring=False
bLogAIDefaults=False
bLogAICount=False
MinNetPlayers=1
EndOfGameDelay=15
GameModes=(FriendlyName="Survival",ClassNameAndPath="KFGameContent.KFGameInfo_Survival",bSoloPlaySupported=True,DifficultyLevels=0,Lengths=0,LocalizeID=0)
GameModes=(FriendlyName="Versus",ClassNameAndPath="KFGameContent.KFGameInfo_VersusSurvival",bSoloPlaySupported=False,DifficultyLevels=0,Lengths=0,LocalizeID=1)
ServerExpirationForKillWhenEmpty=120.000000
RequiredMobileInputConfigs=(GroupName="DebugGroup",RequireZoneNames=("DebugStickMoveZone","DebugStickLookZone","DebugLookZone"),bIsAttractModeGroup=False)
bIsStandbyCheckingEnabled=False
MaxPlayers=6
GoalScore=0
MaxLives=0
TimeLimit=0
StandbyRxCheatTime=0.000000
StandbyTxCheatTime=0.000000
BadPingThreshold=0
PercentMissingForRxStandby=0.000000
PercentMissingForTxStandby=0.000000
PercentForBadPing=0.000000
JoinInProgressStandbyWaitTime=0.000000
DefaultGameType=KFGame.KFGameInfo
DefaultMapPrefixes=(Prefix="KF",bUsesCommonPackage=False,GameType="KFGameContent.KFGameInfo_Survival",AdditionalGameTypes=,ForcedObjects=)
AnimTreePoolSize=0
These variables are configurable variables present in FrameworkGame and GameInfo.
Also, four variables keep changing the first character to lower-case, regardless of how many times I change it. The actual variable names actually do start with a capital letter in the class file. These variables used to be stored in the Mutator** class, and then assigned to other variables in the GameInfo class, but I moved them into the GameInfo class later.
Now I have started getting yet another issue. I have these entries:
These lines only just started appearing, after I added MapMaxMonstersList and MapDynamicMaxMonstersList. I had MapSpawnRateModList before and it wasn't adding these extra lines. However, at that stage, MapSpawnRateModList was in the Mutator class, and it has just been moved to the GameInfo class.
It seems to be that any variables that are moved to another class have issues in the .ini file. I think that this might be the case because I just removed my .ini file from the folder and ran the mod. A new .ini was created, and contained only the variables that have moved class (as well as the ones in the spoiler), which happens to be only variables in the GameInfo class's section.
Does anyone have an explanation for why this might be happening? I've tried to find these same issues on the internet and have found nothing. Config files seem to be something that is pretty hard to stuff up, and yet here I am.
**: When I say the Mutator and GameInfo classes, I mean the classes I'm using that extend those.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.