This script renames all files in models
directory with their JOAAT hash as the new file name.
i was tired of renaming 700+ Vehicle Models by hand so i made this script to do it for me
You kann convert to:
uint32
int32
hex
- Node.js v18.x or higher
- Clone this repository
- Run
npm install
in the repository directory - Copy the files that you want to rename from your directory to the
models
directory - Run
node rename.js
in the repository directory - Copy the files from the
models
directory to your directory
you can caange what you want to convert to in line 63
in rename.js
const newFilename = `${uint32}${extname}`;
const newFilename = `${int32}${extname}`;
const newFilename = `${hex}${extname}`;
├── models
│ ├── adder.png
│ ├── airbus.png
│ ├── airtug.png
├── ...
├── models
│ ├── 0xB779A091.png
│ ├── 0x4C80EB0E.png
│ ├── 0x5D0AAC8F.png
├── ...
Support Discord-Server