[ARCHIVE] Decompile all CCT's/DCR's in a directory [thepalmtoptigerofhappiness]

paswrd

Administrator
Staff member
Apr 18, 2017
64
2
To decompile an entire directory of CCT files, including Habbo.dcr, follow these steps:
  1. Create a .sh file and add the script contents provided below.
  2. Run chmod +x SHELLSCRIPT.sh to make the script executable.
  3. Ensure that the script is placed in the same folder as projectorrays-0.1.0.exe
  4. Execute the script using the following format: ./SHELLSCRIPT.sh DCR_FOLDER DCR_FOLDER_DECOMPILED
Code:
#!/bin/bash

clear

if [ $# -lt 2 ]
    then
        echo "Usage: ./decompile.sh FOLDER OUTPUT_FOLDER"
        exit 1
fi

folder=$1
outputFolder=$2

for file in "$folder"/*.cct; do
    ./projectorrays-0.1.0.exe decompile "$file" -o $outputFolder;
    done;

./projectorrays-0.1.0.exe decompile "$folder/habbo.dcr" -o $outputFolder



For example:
./decompile.sh V9/Complete\ pack/files V9/Decompiled
This will decompile all files in the V9/Complete pack/files directory and save them in V9/Decompiled.
Note: The script cannot decompile files that do not contain scripts. These must be processed manually using recover_cct (e.g., empty.cct).


ARCHIVED FROM THE OLDSKOOLER DISCORD
Credits: @Gabrielle