If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!

Notes:Cyberpunk 2077

From The Cutting Room Floor
Jump to navigation Jump to search

This page contains notes for the game Cyberpunk 2077.

Leaked Source Code

A torrent named "funnytorrent" contains the source code of Cyberpunk 2077, Thronebreaker, and The Witcher 3 (including a ray-traced version), all stored encrypted using the RAR compression archive. The torrent also contains, unencrypted, a note about the encryption keys; the PS5, Switch, and Xbox SDKs; and some build logs. There is, however, an unencrypted copy of Cyberpunk 2077 source code that does exist by the name "cp_no_password".

Since the RAR format doesn't encrypt paths by default, the names of files and folders can be extracted. The files were listed using the 7zip command line, and the file structure was created using this Python script:

 import os
 
 a = open("all.txt")
 
 DEST = "fold"
 
 started = False
 for line in a.readlines():
   if not started:
     if line.startswith("------"):
       started = True
   else:
     if line.startswith("------"):
       break
     sections = []
     last_was_space = False
     current_column = ""
     nb_space = 0
     for chara in line[:-1]:
       if nb_space >= 14:
         sections.append("")
         nb_space = 0
       if len(sections) == 5:
         if current_column == "" and chara == " ":
           pass
         else:
           current_column += chara
       elif chara == " ":
         nb_space += 1
         if not last_was_space:
           sections.append(current_column)
           current_column = ""
           last_was_space = True
       else:
         nb_space = 0
         last_was_space = False
         current_column += chara
     sections.append(current_column)
 
     if sections[2][0] == "D":
       # is a directory
       os.makedirs(os.path.join(DEST, sections[-1]), exist_ok=True)
     else:
       f = open(os.path.join(DEST, sections[-1]), "w")
     
     print(sections)

The hierarchy was obtained by using the find command line tool.

The Cyberpunk portion contains 861,255 files and folders (with the generated listing being 112 MB). A list of the files can be downloaded here.