Skip to content

Instantly share code, notes, and snippets.

View DouglasAntunes's full-sized avatar

Douglas Antunes DouglasAntunes

  • Brazil, Rio de Janeiro, RJ
View GitHub Profile
"""##############################################################################
BATCH CHANGE NAME INSIDE MODEL FILE LICENSE: MIT
#################################################################################
Folder Structure:
rootFolder/
├── batchChangeNameInsideModelFile.py
└── ... (input for models in .dff format)
WARNING: This script OVERWRITES the model.dff, changing original model name
inside the file to the current filename of the file.
"""##############################################################################
BATCH REMOVE COL3 FROM MODEL & APPEND COL1 FROM FOLDER LICENSE: MIT
#################################################################################
Folder Structure:
rootFolder/
├── colpatch/
│ ├── ... (input for .col files (on model.col or model_col.col)
├── batchRemoveCol3FromModel&AppendCol1FromFolder.py
└── ... (input for models in .dff format)
@ECHO OFF
REM ########################################################################
REM Created by DouglasAntunes
REM Find updated script on https://gist.github.com/DouglasAntunes
REM ########################################################################
REM Folder Structure:
REM original :input for .wav to append 5secs of silence on init & end of file.
REM converted :output
REM Folder Root:
REM This Batch & folders listed above
@ECHO OFF
REM Folder Structure:
REM -IN: pcModel
REM -OUT: ps2Model
REM Folder Root:
REM -This Batch & convdff.exe
FOR /R .\pcModel\ %%G IN (*.dff) DO (
convdff.exe -o ps2 -i -s --ps2saped .\pcModel\%%~nxG .\ps2Model\%%~nxG
)
@ECHO OFF
REM Folder Structure:
REM -IN: pcModel
REM -OUT: ps2Model
REM Folder Root:
REM -This Batch & convdff.exe
FOR /R .\pcModel\ %%G IN (*.dff) DO (
convdff.exe -i -o ps2 .\pcModel\%%~nxG .\ps2Model\%%~nxG
)
@DouglasAntunes
DouglasAntunes / Batch col files HeaderFix for PS2 GTASA.py
Last active February 21, 2023 20:52
This script fixes .col files to not crash on the PS2 version of GTA: SA, after conversion from col3 to col1
"""
This script fixes .col files to no crash on the PS2 version of GTA: SA, after conversion from col3 to col1.
Automating a step from this Tutorial[PT-BR] https://forum.mixmods.com.br/f49-tutoriais/t1411-gta-ps2-veiculos-beta
Fix Header of .col files located on the same folder of this script.
WARNING: This script overwrites the original files located on the script folder.
"""
@DouglasAntunes
DouglasAntunes / Batch snd and igz Header Fix.py
Last active July 22, 2019 21:14
This script fixes the header of .igz and .snd audio files from Crash Team Racing Nitro-Fueled and to be possible to extract the audio with fsb_aud_extr tool.
"""
This script fixes the header of .igz and .snd audio files from Crash Team Racing Nitro-Fueled
and to be possible to extract the audio with fsb_aud_extr tool. Tested with the files from Switch release.
Fix Header of .igz and .snd files from a "files" folder located on the same folder of this script
WARNING: This script overwrites the original files located on files folder.
Folder Structure
-headerFix.py :This Script (Can be other name too)
-files\ :Input and Output Folder
@DouglasAntunes
DouglasAntunes / Batch Convert FSB to WAV.bat
Last active August 1, 2021 17:16
Batch converts files to wav using fsb_aud_extr.exe to converted folder
@ECHO OFF
REM #################################################################################
REM BATCH CONVERT FSB TO WAV LICENSE: MIT
REM #################################################################################
REM Folder Structure:
REM rootFolder/
REM ├── original/ :input for .snd & .igz files
REM │ └── ... (input for .snd & .igz files)
REM ├── converted/
REM │ └── ... (output files)