xzlui

[Linux] STALKER Call of Chernobyl Database Unpacker

Aug 20th, 2025 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Place in game directory with xrunpacker or whatever unpacking tool you use.
  4. #This script is for automating the unpacking process.
  5.  
  6. # Loop through and unpack files from each directory individually
  7. for f in database/config/*.db; do
  8.     if [[ -f "$f" ]]; then  # Check if the file exists
  9.         echo "Processing $f"
  10.         wine converter.exe -unpack -xdb "$f" -dir unpacked
  11.     fi
  12. done
  13.  
  14. for f in database/maps/*.db; do
  15.     if [[ -f "$f" ]]; then  # Check if the file exists
  16.         echo "Processing $f"
  17.         wine converter.exe -unpack -xdb "$f" -dir unpacked
  18.     fi
  19. done
  20.  
  21. for f in database/patch/*.db; do
  22.     if [[ -f "$f" ]]; then  # Check if the file exists
  23.         echo "Processing $f"
  24.         wine converter.exe -unpack -xdb "$f" -dir unpacked
  25.     fi
  26. done
  27.  
  28. for f in database/resource/*.db; do
  29.     if [[ -f "$f" ]]; then  # Check if the file exists
  30.         echo "Processing $f"
  31.         wine converter.exe -unpack -xdb "$f" -dir unpacked
  32.     fi
  33. done
  34.  
  35. for f in database/sound/*.db; do
  36.     if [[ -f "$f" ]]; then  # Check if the file exists
  37.         echo "Processing $f"
  38.         wine converter.exe -unpack -xdb "$f" -dir unpacked
  39.     fi
  40. done
  41.  
Advertisement
Add Comment
Please, Sign In to add comment