[MAXScript] .WDR .WFT Unlocker 1.2a Beta
-
29 July 20251.2a 29/07/2025maxscript-wdr-wft-unlocker-1-2a-beta_1753799105_726637.zip
This script removes the ZModeler lock from .wft and .wdr files.
The script eliminates the ZModeler Lock and restores geometry information, making the file suitable for import into ZModeler, as well as for export to OpenFormats using OpenIV.
Requirements for the script:
3dsmax version: 2012 and newer.
It will not work on older versions (3ds max 8, 9, 2010)!!!
How to use:
1) Extract Zlib.net.dll from the archive (located in the zlib compression library folder) to the *3dsmax directory*/Scripts/ (for example, C:\Program Files\Autodesk\3ds Max 2024\scripts)
2) Extract the .ms file to any other location; you can place the script in the /Scripts/Startup/ folder for it to run automatically when starting 3dsmax.
3) Launch 3dsmax, select Scripting->Run Script from the top panel, and choose the .ms script file.
4) Depending on the file (.wft or .wdr), select the appropriate function (Unlock .wdr file or Unlock .wft file)
5) Specify the required file (.wft or .wdr) to the script, then wait for the script to process the file; processing time can take from a few seconds to 2-3 minutes depending on the file size and computer performance.
6) The script will notify you when the unlocking process is complete. The unlocked file will have the prefix _unlocked in its name.
7) The unlocked file is suitable for import into ZModeler2; if import into ZModeler fails, the .wdr .wft file must be converted to OpenFormats and loaded into 3dsmax using OFIO or GIMS IV. The file also fully retains its functionality in the game.
The script supports batch unlocking of .wft and .wdr files.
To do this, click the Input Directory button and specify the directory containing the .wft or .wdr files.
Then click Output Directory and specify the folder where the unlocked files will be saved.
Warning! The input and output directories must not be the same! The script cannot overwrite the original files!
Next, choose the desired function — Batch Unlock .WDR (batch unlocking of .WDR) or Batch Unlock .WFT (batch unlocking of .WFT)
The script will notify you of the file unlocking process in the MaxScript Listener. You can call it using the F11 key.
In the case of batch unlocking, the script will not add the _unlocked prefix. The prefix is only added during single unlocking.
Change log:
1) 16/06/2023 — first release (1.0).
2) 24/12/2024 — fixed a bug that caused a 0-byte file to be created in newer versions of 3dsmax.
3) 26/01/2025 — version 1.1 beta:
- Added the ability to unpack and repack files using the zlib library without using RSC Manager;
- Fixed and rewritten the algorithm for restoring geometry information for .wdr files;
- Rewritten the unlocking algorithm for .wft files, geometry search is now based on offsets in the file rather than the Model section header.
4) 24/04/2025 — version 1.2 beta: added the ability for batch unlocking of .wft .wdr files.
5) 29/07/2025 — version 1.2a beta:
- Fixed a bug that caused zeros to be written at the ZModelerLock address;
- Added the ability to choose the compression level for files; 4 compression levels are available: Z_NO_COMPRESSION, Z_BEST_SPEED, Z_BEST_COMPRESSION, Z_DEFAULT_COMPRESSION. The default is Z_BEST_COMPRESSION.
Thanks:
- gtamodding.ru — for resource information
- gtafandom.com — for resource information
- https://github.com/dabinn/ — for resource information
- ComponentAce.com — for the Zlib library (zlib.net.dll)
- gtabuilder.ru — support
The script was written by: aleks926820.
Contact me:
Discord aleks926367#2994
Feel free to share the script with credit: author's nickname (aleks926820) and author's website (https://libertycity.ru/user/aleks926820/).
Do not violate the integrity of the archive!
29/07/2025
Скрипт для снятия блокировки ZModeler с .wft .wdr файлов.
Скрипт удаляет ZModeler Lock, а также восстанавливает информацию в геометрии, делая пригодным файл для импорта в ZModeler, а также делает пригодным для экспорта в OpenFormats с помощью OpenIV.
Для работы скрипта требуется:
Версия 3dsmax: 2012 и новее.
На старых версиях (3ds max 8,9,2010) скрипт работать не будет!!!
Как пользоваться:
1) Zlib.net.dll из архива (лежит в папке zlib compression library) распаковать в папку *директория 3dsmax*/Scripts/ (например C:\Program Files\Autodesk\3ds Max 2024\scripts)
2) .ms файл распаковать в любое другое место, скрипт можно закинуть в папку /Scripts/Startup/ для его автоматического запуска при запуске 3dsmax.
3) Запустить 3dsmax, на верхней панели выбрать Scripting->Run Script, выбрать .ms файл скрипта.
4) В зависимости от файла (.wft или .wdr) выбрать нужную функцию (Unlock .wdr file или unlock .wft file)
5) Указать скрипту требуемый файл (.wft или .wdr), далее необходимо подождать пока скрипт обработает файл, время обработки может занимать от нескольких секунд до 2-3х минут в зависимости от размера файла и производительности компьютера.
6) Скрипт уведомит об окончании процесса разблокировки. Разблокированный файл будет иметь в имени приставку _unlocked.
7) Разблокированный файл пригоден для импорта в ZModeler2, в случае невозможности импорта в ZModeler необходимо конвертировать файл .wdr .wft в OpenFormats и загружать его в 3dsmax, используя OFIO или GIMS IV. Файл также полностью сохраняет работоспособность в игре.
Скрипт поддерживает массовую разблокировку .wft и .wdr файлов.
Для этого нажать кнопку Input Directory и указать директорию с .wft или .wdr файлами.
Далее нажать Output Directory и указать папку, в которую будут сохраняться разблокированные файлы.
Внимание! Входная и выходная директория не должны быть одинаковыми! Скрипт не может переписать исходные файлы!
Далее выбрать нужную функцию — Batch Unlock .WDR (массовая разблокировка .WDR) или Batch Unlock .WFT (массовая разблокировка .WFT)
Скрипт будет уведомлять о процессе разблокировки файлов в MaxScript Listener. Его можно вызвать с помощью кнопки F11.
В случае массовой разблокировки скрипт не будет добавлять приставку _unlocked. Приставка добавляется только при одиночной разблокировке.
История изменений:
1) 16/06/2023 — первый релиз (1.0).
2) 24/12/2024 — исправлена ошибка, из-за которой на новых версиях 3dsmax создавался файл весом 0 байт.
3) 26/01/2025 — версия 1.1 beta:
- Добавлена возможность распаковки и запаковки файла посредством zlib библиотеки без использования RSC Manager;
- Исправлен и дописан алгоритм восстановления информации в геометрии для .wdr файла;
- Переписан алгоритм разблокировки .wft файлов, поиск геометрии ведется по офсетам в файле, а не по заголовку секции Model.
4) 24/04/2025 — версия 1.2 beta: добавлена возможность массовой разблокировки .wft .wdr файлов.
5) 29/07/2025 — версия 1.2a beta:
- Исправлена ошибка, из-за которой по адресу ZModelerLock всегда прописывались нули;
- Добавлена возможность выбора уровня компрессии файлов; для выбора доступно 4 уровня компрессии: Z_NO_COMPRESSION, Z_BEST_SPEED, Z_BEST_COMPRESSION, Z_DEFAULT_COMPRESSION. По умолчанию стоит Z_BEST_COMPRESSION.
Благодарности:
- gtamodding.ru — за информацию по ресурсам
- gtafandom.com — за информацию по ресурсам
- https://github.com/dabinn/ — за информацию по ресурсам
- ComponentAce.com — за Zlib библиотеку (zlib.net.dll)
- gtabuilder.ru — поддержка
Скрипт написал: aleks926820.
Связь со мной:
Discord aleks926367#2994
Разрешается выкладывать скрипт с указанием: никнейма автора (aleks926820), и сайта автора (https://libertycity.ru/user/aleks926820/).
Запрещается нарушать целостность архива!
29/07/2025