Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploys on CPunk2077 break the game #2537

Open
jkbbwr opened this issue Jan 25, 2025 · 3 comments
Open

Deploys on CPunk2077 break the game #2537

jkbbwr opened this issue Jan 25, 2025 · 3 comments

Comments

@jkbbwr
Copy link

jkbbwr commented Jan 25, 2025

Bug Report

Summary

When doing a run on linux using 0.7.2.0 two important files get deleted that break the game and make it unable to launch. tweakdb.bin tweakdb_ep1.bin

Steps to reproduce

Have CPunk2077 and the Phantom Lib DLC. Install core mods like redscript XLs and corescript. Deploy and run.
Clicking Play in launcher will provide warning about corrupted install

What is the expected behaviour?

Game launches normally.

Other information

A workaround at the moment is to create a backup folder containing the tweaks.
Then after the launcher is running but before running the game, restore the files from the backup.

nexusmods.app.main.current.log

nexusmods.app.slim.current.log

@erri120
Copy link
Member

erri120 commented Jan 25, 2025

Did you update the game after managing it?

@jkbbwr
Copy link
Author

jkbbwr commented Jan 25, 2025

No.

Either its one of the mods wiping the directory, or its something to do with nexus and I can't quite narrow it down.

The only fix is either the copying backed up files, or doing a steam validation.

@bajsicki
Copy link

Steam validation fails for me, so I had to go the long way around from a clean install.

One related issue that I wasn't able to address otherwise (and please correct me if I'm wrong) is that some mods seem to write into the tweaks files when the game starts, thus causing it to crash on startup with very unclear error messages.

Workaround (starting from clean install with verified files):

  1. Open the CP2077 r6/cache folder in your terminal.
  2. Copy the tweakdb files for backup (e.g. add .bak to their name)
    2.a cp tweakdb.bin tweakdb.bin.bak
    2.bcp tweakdb_ep1.bin.bak
  3. Install all the mods you want (don't mind the changes)
  4. Remove the modified tweak files: rm tweakdb.bin tweakdb_ep1.bin
  5. Restore the backed-up files
    5.a cp tweakdb.bin.bak tweakdb.bin
    5.b cp tweakdb_ep1.bin.bak tweakdb_ep1.bin
  6. Make the clean files immutable
    6.a chattr +i tweakdb.bin
    6.b chattr +i tweakdb_ep1.bin

Note if there's an update, you will need to remove the immutability attribute before updating.

I have not tested it on the newest update yet but it worked on the previous one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

4 participants