I was referring to deleting them individually. When I’m finishing a product I always you remove the Saved folder and the intermediate folder. They’re not needed for the final product and would be removed upon submission to Unreal Marketplace usually as well. To be safe, when you delete them don’t permanently delete them. They should be inside your recycle bin where you can restore them if needed. (Or just copy and paste them from your project folder to your desktop and put them back if needed)
Hey!!
After some discussion with chatgpt, i am guessing we have to create custom .ini file and retrieve data from that .ini. After packaging, this custom .ini file is untouched and will remain in config folder of build and so if you change values in this, it should work.
Will have to try. Come to think of it, I did start with custom .ini files - but that was before I learned the variables cannot be on the pawn… I think I first moved the data to EngineDefault.ini and THEN changed from pawn to custom BP.
@Ram07 ChatGPT likes to either hallucinate answers, or make them so generic, they don’t really help. Still I tried making random ini files - it would just ignore them, unless I adhered to the naming convention below:
I also constructed a quick new project that has nothing else in it but a simple screen widget displaying two variables (marked as “Config Variables”)
While in Editor, but using the Standalone Game preview button, the project reads any of these ini files perfectly. I run the preview, it reads current values. Close preview, change ini file, run another preview - new values are in.
The moment I Package the Project, the values from the ini file (at that time) get baked into the project.
Packaged project does not have any folders with ini files in them (they are inside a PAK) and displays whatever values it read at the moment of packaging.
For a while I was hoping that placing the ini outside of the project folder (My Documents\Unreal Engine\Engine\Config\UserEngine.ini) would help, but the same situation persists. Once packaged, the project becomes deaf to any ini files - either ones that existed while packaging, or new ones.
@FrostyJas Deleting directories inside the project (both pre-packaging and after-packaging) does not yield any results.
In essence - it looks like the engine reads the ini only at the time of packaging the project.
There must be some way to fix this - Unreal Docs, if I am not vastly misunderstanding, claim it is possible.
let me try once for you, so in short, you want to change values in .ini (whether its custom or defaultengine) and they should reflect in package game without packaging again right?
so as you can see, via code, i can retrieve string field of Test and set to whatever variable i want and btw, i called this load config json function in begin play of third person character and function is also created in TPC
This is awesome @Ram07 though I was looking for a solution without the need to learn how to do C++… I am a 100% BP person. I really don’t think I have the bandwidth on my side to now learn how to use VS, create classes etc…
Not that I don’t appreciate your help, but I guess I will just buy a plugin from marketplace. There seem to be a ton of ones to do this. Had my eye on one called ConfigBP
@FrostyJas Just to be precise, @Ram07 did not find a way to read the .ini files in BP, but instead came up with another solution, featuring a plugin, C++ code and storing variables in a JSON file.