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

Paswrd

Casper.fun
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
 
Ported to Batch script for Windows

Code:
@echo off
cls

if "%~2"=="" (
    echo Usage: decompile.bat FOLDER OUTPUT_FOLDER
    exit /b 1
)

set "folder=%~1"
set "outputFolder=%~2"

for %%f in ("%folder%\*.cct") do (
    projectorrays-0.2.0.exe decompile "%%f" -o "%outputFolder%"
)

projectorrays-0.2.0.exe decompile "%folder%\habbo.dcr" -o "%outputFolder%"
 
there is shockrays that should work on any os as well. goal was to make this a swiss army knife type utility for working with projector rays and/or lingo/director files but didnt build out beyond the basics
 
Back
Top