Compatibility with IF2

This commit is contained in:
chardub
2025-05-25 12:30:53 -04:00
parent a1c1d37ceb
commit 3698cadb83
77 changed files with 86 additions and 124 deletions

BIN
Data/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,46 +0,0 @@
#!/bin/bash
# Exit on error
set -e
echo "📂 Current working directory: $(pwd)"
echo "🔍 Listing contents of ../:"
ls -l ../
# Define input/output
INPUT_DIR="../."
OUTPUT_DIR="./unpacked"
# Create output directory if it doesn't exist
mkdir -p "$OUTPUT_DIR"
# Find Map*.rxdata files in INPUT_DIR
map_files=($(find "$INPUT_DIR" -maxdepth 1 -type f -name 'Map*.rxdata'))
# Debug: print raw file list
echo "🧪 Raw find output: ${map_files[*]}"
# Check if any map files were found
if [ ${#map_files[@]} -eq 0 ]; then
echo "❌ No Map*.rxdata files found in $INPUT_DIR"
exit 1
fi
# Print found files
echo "📄 Found the following map files:"
for file in "${map_files[@]}"; do
echo " - $file"
done
# Join files with commas
FILE_LIST=$(IFS=,; echo "${map_files[*]}")
# Run fusionpacker
echo "🚀 Running fusionpacker..."
bundle exec fusionpacker --force \
--files "$FILE_LIST" \
--project-type xp \
--action unpack \
--project "$OUTPUT_DIR"
echo "✅ Maps unpacked to: $OUTPUT_DIR"

View File

@@ -1,43 +0,0 @@
#!/bin/bash
set -e
# Get script location
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Input: where the map files are
INPUT_DIR="$SCRIPT_DIR/../"
# Output: where to unpack
OUTPUT_DIR="$SCRIPT_DIR/unpacked"
echo "📂 Script directory: $SCRIPT_DIR"
echo "🔍 Looking for .rxdata files in: $INPUT_DIR"
ls -l "$INPUT_DIR"
# Create output dir if needed
mkdir -p "$OUTPUT_DIR"
# Find map files
map_files=()
while IFS= read -r -d '' file; do
map_files+=("$file")
done < <(find "$INPUT_DIR" -maxdepth 1 -type f -name 'Map*.rxdata' -print0)
# Error if none found
if [ ${#map_files[@]} -eq 0 ]; then
echo "❌ No Map*.rxdata files found in $INPUT_DIR"
exit 1
fi
echo "📄 Found the following map files:"
for file in "${map_files[@]}"; do
echo " - $file"
done
# Pass files to fusionpacker in manageable chunks using xargs
echo "🚀 Running fusionpacker..."
# Use xargs to split the command and avoid path too long errors
printf "%s\n" "${map_files[@]}" | xargs -n 10 fusionpacker --force --project-type xp --action unpack --project "$OUTPUT_DIR"
echo "✅ Maps unpacked to: $OUTPUT_DIR"