mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Compatibility with IF2
This commit is contained in:
BIN
Data/.DS_Store
vendored
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.
Submodule Data/Scripts updated: d61dc177c6...c6bc455295
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.
@@ -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"
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user