2025-02-05

ehowton: (cyberpunk)

For reasons I haven't yet delved, Cyberpunk 2077 within Crossover (on Steam) looks for its mods in a different location than on my Windows box despite the directory structure being identical. When the game patches, the mods are updated, and as Crossover does not support Vortex, I copy the entire directory structure over the network. This then requires a shuffling of locations in order for the mods to be picked up and work. To facilitate this, I wrote a script to copy the mods from their installed location to one where the game would pick them up on macOS. I wrote it to run from 'drive_c' so it wouldn't get lost in the more densely packed directories:


ehowton@m3max drive_c % cat fix_crossover_mods.sh 
#!/bin/zsh

find Program\ Files\ \(x86\)/Steam/steamapps/common/Cyberpunk\ 2077/mods -name "*.xl" >> lom
find Program\ Files\ \(x86\)/Steam/steamapps/common/Cyberpunk\ 2077/mods -name "*.archive" >> lom
sed 's/\(.*\)/"\1"/g' lom > lom2
sed 's/(/\\(/g ; s/)/\\)/g' < lom > lom2
sed 's/\ /\\ /g' lom2 > lom3
while read line; do cp "$line" "Program Files (x86)/Steam/steamapps/common/Cyberpunk 2077/archive/pc/mod/"; done < lom3
rm lom*




◾ Tags:

July 2025

S M T W T F S
   1234 5
6 7 8 910 1112
13 14 15 1617 1819
20 21 222324 2526
2728293031  

Page Summary

Most Popular Tags

Expand Cut Tags

No cut tags