Hi everyone!
I'm trying to create my first custom mod for **Need for Speed: Most Wanted (2005)** using Binary, and I need some help with the installation scripts.
I have created custom DDS textures to replace the original Numbers textures in the game. I have two custom styles, **Racing Style** and **Tein Style**, and I also want to include a **Vanilla Style** option to restore the original textures.
All DDS files have the same filenames as the original textures. I have checked this carefully, and the files are organized into separate folders.
My goal is to create a Binary installer that allows the user to:
- Install Racing Style.
- Install Tein Style.
- Restore the original Vanilla Style.
### Current folder structure
```text
Numbers_Mod FrankCr-z/
├── Numbers_Mod FrankCr-z.end
└── Binary Scripts/
├── Main.end
├── Install.end
├── Uninstall.end
├── Racing Style/
│ └── DDS files
├── Tein Style/
│ └── DDS files
└── Vanilla Style/
└── DDS files
```
I used the existing **NFSMW New Number Styles** mod as a reference because its Binary installer works correctly on my game installation. Its scripts use commands such as:
```text
if collection_exists CARS\TEXTURES.BIN TPKBlocks DEFAULT
do
update_collection CARS\TEXTURES.BIN TPKBlocks DEFAULT CollectionName CARTEXTURES
else
do
end
bind_textures synchronize CARS\TEXTURES.BIN TPKBlocks CARTEXTURES "Style 1 Black"
```
I adapted the scripts to use my own style names, but I cannot get my installer to work.
Binary reports this error:
```text
Error: Collection named CARTEXTURES does not exist.
```
This happens when the script reaches the `bind_textures synchronize` command. However, I can open `CARS\TEXTURES.BIN` with Binarius, expand `TPKBlocks`, and see the `CARTEXTURES` collection and its textures. The original Numbers Styles mod also works correctly and changes the textures inside `TEXTURES.BIN`.
I suspect I'm missing something about how Binary handles texture collections or how the DDS folders are referenced by the scripts.
### My questions
1. How should I structure a Binary mod to install custom DDS textures that replace existing textures in `CARS\TEXTURES.BIN`?
2. How does Binary associate the DDS files in the style folders with the texture collection used by `bind_textures`?
3. Is there a specific command or additional configuration needed to make my custom styles available to `bind_textures synchronize`?
4. Could someone share a minimal working example of a Binary installer that offers multiple custom texture styles and a vanilla restoration option?
I'm new to creating Binary mods, so any guidance or working example would be greatly appreciated.
Thanks in advance!