Need help !!! how to generate a .ini from a .u
- debilman69
- Average
- Posts: 45
- Joined: Wed Sep 18, 2019 2:19 am
- Personal rank: yes
- Location: Canada,Montreal
- Contact:
Re: Need help !!! how to generate a .ini from a .u
Find class which use this ini and call method SaveConfig() on object from this class.
Re: Need help !!! how to generate a .ini from a .u
Maybe helpful if you give a download link or name for that u file, so others could have a look.
"If Origin not in center it be not in center." --Buggie
- debilman69
- Average
- Posts: 45
- Joined: Wed Sep 18, 2019 2:19 am
- Personal rank: yes
- Location: Canada,Montreal
- Contact:
Re: Need help !!! how to generate a .ini from a .u
call the SaveConfig () method on the object of this class. you have an example I start in the field
Re: Need help !!! how to generate a .ini from a .u
For example if I have class:
And want make RegenAmmo.ini file, I can i some other place (code of another actor) spawn RegenAmmo and call SaveConfig:
Then call this code in game and get .ini file.
Code: Select all
class RegenAmmo expands Mutator config(RegenAmmo);
var() config int MinAmmo;
var() config float AddRatio;
Code: Select all
Spawn(class'RegenAmmo').SaveConfig();
- debilman69
- Average
- Posts: 45
- Joined: Wed Sep 18, 2019 2:19 am
- Personal rank: yes
- Location: Canada,Montreal
- Contact:
Re: Need help !!! how to generate a .ini from a .u
Spawn(class'RegenAmmo').SaveConfig(); where do you mark code in ut? in the consoleBuggie wrote: ↑Wed Jan 12, 2022 6:57 am For example if I have class:And want make RegenAmmo.ini file, I can i some other place (code of another actor) spawn RegenAmmo and call SaveConfig:Code: Select all
class RegenAmmo expands Mutator config(RegenAmmo); var() config int MinAmmo; var() config float AddRatio;
Then call this code in game and get .ini file.Code: Select all
Spawn(class'RegenAmmo').SaveConfig();
Re: Need help !!! how to generate a .ini from a .u
Not in console. Inside another class which you compile.
If you not want compile code for each class, you can make general mutator, which accept classname in mutator command and work on general way.
So you call some mutate command while mutator loaded and it call SaveConfig() for produce ini file.
If you not want compile code for each class, you can make general mutator, which accept classname in mutator command and work on general way.
So you call some mutate command while mutator loaded and it call SaveConfig() for produce ini file.