Applying "buff" values to a stat Array

UPDATE:
I just wanted to update this problem… I put in a print function and determined that the values are actually being pulled from the INI file correctly. That is not my problem. The problem I have is applying the values from the INI file to the stat in the Array.

I’m trying to retrieve a value from the GameUserSettings.ini file and apply it in an array, but when I test it, it doesn’t seem to be pulling the value… Not sure what I’m missing or doing wrong. I’m very new to this. Originally I was defining the values manually but I have since removed the default elements because I want the default value specified in the script instead.

I also wanted to add that I have checked the settings:

lTPCQvZ.png

In my GameUserSettings, I have this added at the bottom of the file:

[Fervids Mod]
SniperAmmoTorporAmount=100000

First you need to flag your variables as config, you can see that flag when you pull out the advance options, click the arrow thing bottom below CPF stuff. Config system is very limited in blueprint all you can do is mark varbale as config and it will load and save on preset location which you can not change, toi get that location hover over Config checkbox and tooltip should explain it to you. Config will be loaded on object creation and i think it saves it on modification, i nver used config in blueprints so im not sure.

If you want more control you will need to dive in to C++, don’t worry it’s easy as in bueprint, you flag properties as config in UPROPERTY and set ini file name on UCLASS specifier and thel all you need to do is just call LoadConfig() and SaveConfig() on object, so it is already more what blueprint gives. It will also automatically load on object creation same as in blueprint.

In GConfig global object you got full control over INI files

I recently discovered GConfig actully work same as TMap alowing to read and write config like varbales