Hello Epic and community,
so i’m working on a project, which uses custom variables inside Game.ini (D:\Unreal Projects\MThtml\Saved\Config\Windows) and runs fine on windows,
but when i package the project for html5, it crashes as soon as it tries to access those variables which aren’t accessible for the packaged project, since the modified .ini file resides in the \windows folder i suggest.
Error message on LaunchHelper:
appError called:
Assertion failed: Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:Runtime/Core/Public/Containers\Array.h] [Line: 678]
Array index out of bounds: 1 from an array of size 0
L
[2016.02.18-09.41.42:208][646]LogHAL:Error: appError called: Assertion failed: Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:Runtime/Core/Public/Containers\Array.h] [Line: 678]
Array index out of bounds: 1 from an array of size 0
Customized Game.ini:
[/Script/MThtml.MTGameMode]
StageSettings[0]=(MolHills=0, RedMoles=0, GrnMoles=0, BluMoles=0, YlwMoles=0, ToNxtStg=0)
StageSettings[1]=(MolHills=3, RedMoles=0, GrnMoles=0, BluMoles=1, YlwMoles=0, ToNxtStg=3850)
StageSettings[2]=(MolHills=3, RedMoles=0, GrnMoles=0, BluMoles=2, YlwMoles=0, ToNxtStg=7700)
In UMG a button calls StartStage(1):
void AMTGameMode::StartStage(int32 Stage) {
CurStage = Stage;
SpeedupIdx = 0;
Score = 0;
Goal = StageSettings[CurStage].ToNxtStg;
bDelayedStart = false;
}
If my suggestion is right, how do i get the config file in place and where ?
THX