Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-n authored Jan 10, 2022
1 parent 4a1a0e4 commit c650435
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

This tool identifies identical DDS texture files in RICHARD BURNS RALLY textures.rbz archive files, removes duplicates and re-packs the RBZ file.

What are the benefits of doing all this for RBR maps?
*What are the benefits of doing all this for RBR maps?*
- Smaller map pack size in bytes (the size of track-1234_M/N/E/O_textures.rbz files is reduced when there are no duplicated files).
- Smaller map pack saves download bandwidth and diskspace in PC.
- Faster map loading because RBR doesn't re-load a texture if an identical copy is already loaded, plus RBR can read smaller textures.rbz files a bit faster (couple nano seconds faster in SSD systems, 5 nano seconds in historical HDD systems).
- Wallaby and BlenderRBRExporter doesn't identify identical files yet, so this tool fills the gap and works with all maps created with any tool (even for old maps released years ago).

How this works?
*How this works?*
- Extracts map specific textures.rbz files to a temporary folder
- Identifies duplicated copies of DDS file, removes duplicated copies and leaves just one copy of the DDS texture file.
- Creates TextureFilenameMap<MapID>.ini file with links between a removed DDS file and the one preserved copy of the identical file.
- RallySimFans (RSF) plugin uses the TextureFilenameMap<MapID>.ini file to instruct RBR to use a remapped texture instead of the delete duplicated copy.

Note! Identical file here means that the file content is one-on-one identical in a binary level (not a filename match)

```
Shows usage info:
RemapIdenticalRBRTextures.exe
Expand All @@ -25,7 +26,8 @@ Note! Identical file here means that the file content is one-on-one identical in
Identifies duplicated textures in track 972 map pack, deletes duplicates and modifies the original RBZ map pack (-DeleteDuplicates option)
RemapIdenticalRBRTextures.exe -rbrFolder "c:\games\Richard Burns Rally" -track 972 -backupFolder c:\backup\rbr -DeleteDuplicates

```

Copyright (c) 2021-2022 MIKA-N. All rights reserved. This is a free tool for all RBR map authors, but not for commercial use without a permission from the author. Use at your own risk.

RallySimFans - www.rallysimfans.hu

0 comments on commit c650435

Please sign in to comment.