# Load custom cheat console variable from ini file

**URL:** <https://forums.unrealengine.com/t/load-custom-cheat-console-variable-from-ini-file/418054>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 22, 2018, 2:07pm UTC](https://forums.unrealengine.com/t/load-custom-cheat-console-variable-from-ini-file/418054 "2018-02-22T14:07:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2df21e76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2df21e76](https://forums.unrealengine.com/u/anonymous_user_2df21e76)\
**Post date:** [February 22, 2018, 2:07pm UTC](https://forums.unrealengine.com/t/load-custom-cheat-console-variable-from-ini-file/418054/1 "2018-02-22T14:07:49Z")

</div>

Hello,

I have a fairly simple question. I know console variables can be set in ini file, for example in the following form in DefaultEngine.ini

```
[ConsoleVariables]
my.custom.var=666

```

However this will not work for variables flagged ECVF\_Cheat, even if the build is in debug mode.

The code that prevents this even mentions this in the comments in FConsoleManager::AddConsoleObject line 1300.

Any solution for having useful cheat variables for developpers settable in ini files ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b5b115c41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b5b115c41](https://forums.unrealengine.com/u/anonymous_user_b5b115c41)\
**Post date:** [June 22, 2018, 6:12pm UTC](https://forums.unrealengine.com/t/load-custom-cheat-console-variable-from-ini-file/418054/2 "2018-06-22T18:12:21Z")

</div>

I’m running into this problem too. It really defeats the usefulness of that ini file for me. I **only** want it for setting cheats in editor.

The comment in the function literally says

> // TODO: This is not ideal as it also prevents consolevariables.ini to set the value where we allow that. We could fix that.

So please do fix this, Epic!
