Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Topic on Talk:Cyberpunk 2077

Changing 'cvar' options without editing EXE

11
Infogram1 (talkcontribs)

Found a way to change the cvar-like options without needing to patch the EXE file, seems it's handled through the INI files inside engine\config\platform\pc & engine\config\base dirs, any INI files inside there should be read by the game AFAIK (at least, debug.ini seemed to work).

(EDIT: I'd advise creating a new INI inside "engine\config\platform\pc" instead of editing any existing INI, otherwise the changes could be overwritten by future updates, or possibly break the updater used by GOG - using the platform\pc dir should let the settings override any other setting too)

INI section is the section name of the setting, then you can add the settings themselves like normal INI entries.

eg. for disabling antialiasing, you can add the following:

[Developer/FeatureToggles]

Antialiasing=0

Would be nice if someone can confirm this works for them too.

(AFAIK people have already started work on tools that can patch these settings in the EXE, but those are just for the boolean on/off settings, hopefully through the INI files we should be able to change the integer/string ones too)

Infogram1 (talkcontribs)

I've also dumped a mostly complete list of the settings that can be changed thru INI files, not fully complete though since I couldn't figure how to dump string settings values yet... those probably aren't that interesting anyway. (EDIT: figured out how to dump strings too, updated link below)

List can be found here: pastebin.com/mg5Mh3sV

E: Also made a list of some of the EXE parameters I've found, could be worth mentioning some of these in the article? pastebin.com/jmGpVNWe

Renderingfiend (talkcontribs)

I can confirm that this does work, great find! I've changed a variety of ini settings with your info, and the command line parameters work as well.

Since the new patch introduced some new bugs, I'm wondering if you know what patch 1.03 exe ini values were set to. We might be able to fix some new patch issues ourselves temporarily if we know if some are caused by ini changes.

  • Edit*

Downloading old 1.03 patch now. Can you explain how you dumped these settings? Without knowing how to do that it's not possible to see what was changed.

Infogram1 (talkcontribs)

Glad to hear, and it wasn't too hard to dump luckily, but isn't really that trivial neither, had to patch in a hook into the EXE so it'd capture the setting names/values when they were inited by the game (even then I'm not 100% sure it's dumping every setting that's available, could be other ways they get inited that the dumper isn't handling)

Would probably work on 1.03 too but I'd have to get a copy of the 1.03 EXE to get the right function offsets for the hook, might need the 1.03 data files as well to make sure the values are correct..

I only have 1.04 here atm though, maybe I'll try clearing some space and look into it soon, or if anyone already has the full 1.03 game available I could probably post a DLL that can dump the settings, once I get hold of 1.03 EXE to update the offsets anyway.

Renderingfiend (talkcontribs)

I'd uploaded the bin folder, but pcgamingwiki thinks I'm a bot, so I don't know how to post the link without it flagging it.

If you'd rather acquire the old patch yourself, I followed the tutorial here in order to revert to 1.03: (Look in the comments section): https://steamcommunity.com/sharedfiles/filedetails/?id=1086279994

If you don't feel like finding the offsets, no problem, I realize you'd be the one doing all the work.

By clicking "Reply", you agree to the terms of use for this wiki.
Infogram1 (talkcontribs)

Figured a way to dump the string settings too, here's a more complete list of them: pastebin.com/mg5Mh3sV

Some neat settings to note there:

[Debug/Singleplayer]

DefaultGameDefinition = "base\quest\demos\e3_2018\definitions\q003_end_night.gamedef"

FallbackGameDefinition = "base\quest\demos\e3_2018\e3_2018.gamedef"

SelectedGameDefinition = ""

Think I can probably dump 1.03 settings using just the EXE too, I'll look into it some more later.

--

E: figured out a way to dump the settings at runtime (in this case, dumped after loading into a save), instead of when they're first added by the EXE, so should have more accurate default values now: pastebin.com/mg5Mh3sV

181.169.150.42 (talkcontribs)

Is there a way to disable enemy health bar with some of these settings?

87.214.13.180 (talkcontribs)

Hi, quick question;

When you say "create a new INI file...INI section is the section name of the setting" Do you mean that I should just create an .ini file with a random name...include the section...change the value? And will it than take the value from that ini file? How does the game distinguish what ini file to reference?

Sorry, might be quite the nooby question, but I want to start fiddling around with it but don'tr want to break my game :)

Thanks in advance for the elaboration! Great find!

Volkert

77.131.82.199 (talkcontribs)

Hi,

What's this part do ?

77.131.82.199 (talkcontribs)

Especialy the first part [AI] CodeTweakActionsEnabled = true EnableLowFPSDetection = true LOD0BucketSize = 0 LOD0TickRate = 1 LOD1BucketSize = 16 LOD1TickRate = 4 LOD2BucketSize = 16 LOD2TickRate = 8 LOD3TickRate = 16 LODUpdatePeriod = 1.000000 LowFPSThresholdMax = 29 LowFPSThresholdMin = 24 VariableTickRateEnabled = true

I try to change the LOD for avoid popping

Infogram1 (talkcontribs)

When you say "create a new INI file...INI section is the section name of the setting" Do you mean that I should just create an .ini file with a random name...include the section...change the value? And will it than take the value from that ini file? How does the game distinguish what ini file to reference?

Yep, any filename is fine, the game seems to read from any filename as long as it ends in .ini and is in the right folder.

I don't know about what order the game reads them in though, I'd guess alphabetical, but I know that INIs inside "engine\config\platform\pc" override any settings from "engine\config\base".

I'm not sure about the LOD stuff, maybe one of the streaming settings can help with that, but that might be handled through some other config file (AFAIK the .archive files contain some configs inside, don't think we can modify them yet though)