Vice City Paths IO Script v. 2.7f [MAXScript]
-
vice-city-paths-io-script-v-2-7f_1735740078_213789.zipDownload (11.72 MB)Password for the archive: libertycity
Vice City Paths IO Script v.2.7e
Script for working with paths.ipl (and not only).
Requires: 3dsMax 2008 and higher.
Possibilities:
- Import of GTA VC, GTA3, GTA SA paths (including support for Fastman92 format paths, FLA4 format only);
- Export of GTA VC paths (export of all types of lines supported by the game (from 3 to 12 points inclusive));
- Importing GTA SA paths in Vice City/3 format (see below);
- Ability to assign a path type (pedas, cars, boats) to each line. If a path type is not assigned, the script will automatically assign a type based on the Default Path Type value;
- Ability to create and export intersections (T-shaped and cross-shaped). For more details, see "Creating intersections.docx" or .avi files;
- Ability to change parameters for each line/point. To change parameters, just select a line. All changes will be automatically saved;
You don’t need to enter everything yourself - if the line settings are not assigned, the script will automatically generate them;
- Ability to import/export .dat path files from the data/paths folder;
- Ability to convert VC Paths.ipl to GTA 3 path format;
- Convert GTA 3 paths to GTA VC format;
- Displaying the vertex numbers of the edited line in the viewport;
- Displaying path flags, number of lanes, coordinates and path width in the viewport;
- Function of changing the direction of movement of the track;
- Function for assigning the direction of movement of the path (one-way/two-way);
- Function of dividing lines with a number of points greater than 12 (for selected lines);
- Line parameters reset function (for selected lines);
- Function to enable/disable car traffic.
- Function for automatically setting up intersections based on adjacent lines (the function has not yet been properly developed).
- Function for removing “wrong” lines with the number of points less than 2.
Changes in version 2.7f (update 12/31/2024)
- Added function for converting GTA3 paths to Vice City format. To do this, you need to select the folder with GTA3 installed, then specify where Paths.ipl will be saved, and then click the Convert button.
- Added an auxiliary progressbar to inform about the process of converting paths to the GTA3 format, as well as to convert paths to the GTA Vice City format.
- For faster loading of GTA3 paths, information about found paths in MaxScript Listener has been removed - this slowed down the process of loading these paths.
The supported line type for Splines is Line. Initial Type - Corner. Drag Type - Bezier.
Do not apply modifiers to lines! This may result in the inability to export paths and create intersections normally.
To more conveniently register paths, use bindings in 3dsMax (see .docx files for more details).
An example of creating paths for GTAVC is described in paths_tutorial[RU].pdf
The script supports importing GTA VC paths. If something was imported incorrectly (for example, intersections), I recommend correcting it manually.
After export, the path file weighs more than the original and this leads to the fact that in some areas there is no traffic or pedestrians.
It is advisable to use a script to create new paths.
The script supports the import of GTA3 paths - import only, to export you need to export the paths to the Vice City format, and then convert to the GTA3 format.
The script supports the ability to convert paths.ipl to the GTA 3 path format.
To do this, you need to specify the starting ID of the path, the prefix for path models, the name for IPL IDE COL, the path coordinate multiplier with which paths.ipl was exported (for a standard .exe it is 16)
Then select the directory where the GTA 3 path files will be exported and the last step is to select paths.ipl.
The script will notify you that the conversion process is complete. IPL IDE COL files are completely ready to be added to the game.
It is not recommended to use this function to edit standard paths!
Please note that when adding paths to GTA 3, if there are original ones, you must increase the limit using the Dynamic Limits adjuster: Buildings, PtrNodes, EntryInfoNodes, Treadables; [Pool Limits]: Objects Models; limit on DFF files [ID LIMITS].
To do this, use Limit Adjuster by Vitlgt. It is also worth setting the "Enable path limits patch=1" parameter and increasing the maximum ID in the PATH LIMITS block.
To increase the path limit in Vice City you need to use Maxorator's Path hack.
The script supports the ability to convert GTA3 paths to Vice City format.
To do this, you need to set the GTA3 and Vice City path multipliers, then specify the GTA3 directory and the path to save Paths.ipl.
After that, click the Convert button.
Please note that the resulting path file size is larger than the original one, so for the paths to work you will need Maxorator's Path Hack (vcpathlimit.flt).
The script supports importing GTA SA paths, including importing Fastman92 format paths.
To import, click the Import GTASA Paths button and specify the folder where the 64 NodesXX.dat path files are located.
The process of importing paths can take from several tens of seconds to 10 minutes.
The author does not guarantee 100% operability of GTASA paths after their import/export.
It is strongly recommended to check the settings of all lines, including the correctness of the traffic light settings!
It is possible to download paths in GTAVC format. After importing, it is highly recommended to check and correct the path settings as well as the created path splines and intersections! The author does not guarantee that the imported paths in the Vice City format will be fully functional! If incorrect path and intersection splines are detected, it is recommended to rebuild the incorrect path(s) manually!
The default script processes GTASA paths during the import process, namely, it removes identical segments and welds points in order to further be able to edit path lines under GTASA or under GTAVC/GTA3.
You can disable these functions in the GTASA Import Settings column, but in this case the path lines are absolutely unsuitable for editing under GTASA or under GTAVC/GTA3.
Details are written in "Importing GTA SA.docx paths".
When creating a new path line, the script automatically assigns settings to it based on the parameters in the Default Parameters block!
Please note that the Lanes parameters for interior points are always 1 1! To assign the direction of movement and the number of lanes, it is enough to edit only the end (external) points.
Or use the set one-way/set two-way traffic buttons to assign one-way or two-way traffic and use the Change the direction of traffic button to change the direction of traffic.
To display line parameters in the viewport, use the Display helper tab. Available for display are point numbers, number of lanes, flags, path width, point coordinates.
To reset the default settings for leased lines, use the Reset User Properties function.
In case of the error "The script does not support splines with a number of points greater than 12 and less than 3!Please edit the spline" use the Split Lines to VC Format function.
To export traffic, just select the lines and click the Export Paths button. The finished lines for Paths.ipl will be displayed in the MAXScript Listener window (in the lower left corner of 3Ds max or press F11 to call MAXScript Listener).
The script has the ability to create intersections in two ways:
1) — For each line, select one point SEPARATELY in the vertex editing mode
— Select the lines and press the Create Crossroad button
2) — Press the button Create Dummys at line end
— Select the dummy and click the Create Crossroad button
Brief description of the buttons:
Set Ped — assign pedestrian traffic to the line.
Select all Ped Paths — select all pedestrian paths.
Set Car—assign traffic to a car line.
Select all Car Paths — select all car paths.
Set Boat - assign a boat traffic line.
Select all BoatPaths - select all boat paths.
Select All Paths - select all paths.
Import GTAVC Paths - import GTAVC paths.
Import GTA3 Paths - import GTA3 paths.
Import GTASA Paths - import GTASA paths.
Import GTASA Paths (Fastman92 FLA4 format only!) - import GTASA paths in Fastman92 format.
Delete Double Segments - Delete identical segments when importing GTASA paths. To be able to edit paths, this checkbox must be checked!
You must check this box if in the future the paths will be configured only for GTAVC/GTAIII!
Weld paths knots and split paths - weld path points and split lines when importing GTASA paths. To be able to edit paths, this checkbox must be checked!
Create CrossRoad — create a crossroad (based on auxiliary dummies or based on selected spline points)
Set CrossroadPath name — Designate the path as a crossroads. If the intersection is configured incorrectly, the script will ignore this line.
Create dummy at line ends - create dummy at the ends of lines. Useful for creating intersections.
Delete all dummy — delete all auxiliary dummy.
Display vertex number — display the numbers of way points in the viewport (provided that the number of points in the line lies in the range from 2 to 12 inclusive).
Display Lanes — display the number of line lanes in the viewport.
Display width — display the width of the path in the viewport.
Display flags — display path flags in the viewport.
Display XYZ coordinate — display the coordinates of points in the viewport.
Import .dat - import .dat path file flightX.dat/tracksX.dat/spathX.dat.
Export .dat - export .dat path file.
Reset user properties—reset all settings for the selected line.
Enable Traffic — enable traffic (sets flag 0)
Disable Traffic — disable traffic (sets flag 1)
Delete zero shapes - deletes irregular lines with less than 2 points.
Reverse knot order - changes the priority of points.
set one way traffic - make one way traffic.
set two way traffic - make two-way traffic.
Change direction traffic - change the direction of movement.
Assign Line Parameter for Crossroad by lines—set the number of lanes at intersections based on the lines adjacent to them. Does not work in the case of adjacent intersections!
Select Directory - select a directory to export GTA3 path files.
Select ViceCity paths.ipl - Select Vice City paths.ipl to convert it to GTAIII path format.
Select GTA3 Dicrectory - select the folder with GTA3 installed.
Select save path for Paths.ipl — select the path to save Paths.ipl
The script supports importing and exporting .dat files of GTA 3 or GTA Vice City paths from the data/paths folder, namely flightX.dat, tracksX.dat, spathX.dat, where X is the file number.
To export, you need to select ONE path line and click export. The script will prompt you to select a file to save.
Thanks: Shagg_E;
Special thanks to: Ilufir - for help with the structure of the GTASA tracks, ZZPuma - for information about the traffic lights of the GTASA tracks.
The script code used is SA Path Tool by Deniska.
12/31/2024
Vice City Paths IO Script v.2.7e
Скрипт для работы с paths.ipl (и не только).
Для работы требуется: 3dsMax 2008 и выше.
Возможности:
- Импорт путей GTA VC, GTA3, GTA SA (в том числе поддержка путей формата Fastman92, только FLA4 формат);
- Экспорт путей GTA VC (экспорт всех типов линий, поддерживаемых игрой (от 3-х до 12 точек включительно));
- Импортирование путей GTA SA в формате Vice City/3 (см.ниже);
- Возможность назначать тип пути (педы, тачки, лодки) каждой линии. Если не назначен тип пути, скрипт автоматически назначит тип, исходя из значения Default Path Type;
- Возможность создавать и экспортировать перекрестки (Т-образные и крестообразные). Подробнее смотрите в "Создание перекрестков.docx" или .avi файлы;
- Возможность менять параметры у каждой линии/точки. Для изменения параметров достаточно выбрать линию. Все изменения будут автоматически сохранены;
Не нужно самому всё вбивать — если настройки линии не назначены, скрипт автоматически их сгенерирует;
- Возможность импорта/экспорта .dat файлов путей из папки data/paths;
- Кнопки выбора путей по их типу (выбор всех путей трафика/педов/лодок);
- Возможность конвертации VC Paths.ipl в формат путей GTA 3;
- Конвертация путей GTA 3 в формат GTA VC;
- Отображение номеров вертексов редактируемой линии во вьюпорте;
- Отображение флагов пути, числа полос, координат и ширины пути во вьюпорте;
- Функция смены направления движения пути;
- Функция назначения направления движения пути (одностороннее/двустороннее);
- Функция разбивки линий с числом точек, больше 12 (для выбранных линий);
- Функция сброса параметров линий (для выбранных линий);
- Функция включения/отключения автомобильного трафика.
- Функция автоматической настройки перекрестков на основе примыкающих к ним линий (функция еще не дописана должным образом).
- Функция удаления "неправильных" линий с числом точек меньше 2.
Изменения в версии 2.7f (обновление 31.12.2024)
- Добавлена функция конвертации путей GTA3 в формат Vice City. Для этого необходимо выбрать папку с установленной GTA3, далее указать, куда будет сохраняться Paths.ipl, после чего нажать кнопку Convert.
- Исправлена ошибка, из-за которой при конвертации путей в формат GTA3 на более свежих версиях 3dsmax (младше 2012) создавался .COL файл весом 0 байт.
- Добавлен вспомогательный прогрессбар для информирования о процессе конвертации путей в формат GTA3 а также для конвертации путей в формат GTA Vice City.
- Для более быстрой загрузки путей GTA3 удалено информирование о найденных путях в MaxScript Listener — это тормозило процесс загрузки данных путей.
Поддерживаемый тип линий Splines — Line. Initial Type — Corner. Drag Type — Bezier.
Не применяйте модификаторы к линиям! Это может привести к невозможности нормально экспортировать пути и создавать перекрестки.
Для более удобного прописывания путей используйте привязки в 3dsMax (см. подробнее .docx файлы).
Пример создания путей для GTAVC описан в paths_tutorial[RU].pdf
Скрипт поддерживает импорт путей GTA VC. Если что-то некорректно импортировалось (например, перекрестки) рекомендую исправить это вручную.
Не рекомендуется использовать данный скрипт для редактирования стандартной карты путей, ввиду того, что при импорте стандартной карты путей создается больше линий по сравнению с оригинальным paths.ipl, тем самым нарушается оригинальная структура путей и файла Paths.ipl; после экспорта файл путей весит больше, чем оригинальный и это приводит к тому, что в некоторых районах отсутствует трафик или пешеходы.
Желательно использовать скрипт для создания новых путей.
Скрипт поддерживает импорт путей GTA3 — только импорт, для экспорта необходимо экспортировать пути в формат Vice City, и далее отконвертировать в формат GTA3.
Скрипт поддерживает возможность конверта paths.ipl в формат путей GTA 3.
Для этого необходимо указать стартовый ID пути, префикс для моделей путей, имя для IPL IDE COL, множитель координат путей, с которым экспортировался paths.ipl (для стандартного .exe равен 16)
После чего выбрать директорию, куда будут экспортироваться файлы путей GTA 3 и последним шагом выбирается paths.ipl.
Скрипт уведомит о завершении процесса конвертации. Файлы IPL IDE COL полностью готовы для добавления в игру.
Не рекомендуется использовать эту функцию для редактирования стандартных путей!
Желательно использовать функцию для создания путей новой карты или добавления новых путей к оригинальным путям.
Обратите внимание, что при добавлении путей в GTA 3 при наличии оригинальных необходимо повышать лимит аджастером Dynamic Limits: Buildings, PtrNodes, EntryInfoNodes, Treadables; [Pool Limits]: Objects Models; лимит по DFF файлам [ID LIMITS].
Для этого используйте Limit Adjuster by Vitlgt. Также стоит установить параметр "Enable path limits patch=1" и повысить максимальный ID в блоке PATH LIMITS.
Для повышения лимита путей в Vice City необходимо использовать Maxorator's Path hack.
Скрипт поддерживает возможность конвертации путей GTA3 в формат Vice City.
Для этого необходимо выставить множители путей GTA3 и Vice City, после этого указать директорию GTA3 и путь для сохранения Paths.ipl.
После этого нажать кнопку Convert.
Следует обратить внимание на то, что получаемый размер файла путей больше оригинального, тем самым для работоспособности путей потребуется Maxorator's Path Hack (vcpathlimit.flt).
Скрипт поддерживает импорт путей GTA SA, в том числе импорт путей формата Fastman92.
Для импорта надо нажать кнопку Import GTASA Paths и указать папку, где лежат 64 файла путей NodesXX.dat.
Процесс импорта путей может занимать от нескольких десятков секунд до 10 минут.
Пути импортируются в виде сплайнов, которые можно отредактировать или настроить с помощью SA Path Tool by Deniska.
Автор не гарантирует 100% работосопособность путей GTASA после их импорта/экспорта.
Настоятельно рекомендуется проверять настройки всех линий, в том числе и правильность настроек светофоров!
Есть возможность загрузить пути в формате GTAVC. После импортирования настоятельно рекомендуется проверить и исправить настройки путей а также созданные сплайны путей и перекрестки! Автор не дает гарантий, что импортированные пути в формате Vice City будут полностью работоспособны! В случае обнаружения некорректных сплайнов путей и перекрестков рекомендуется перестроить неправильный путь (пути) вручную!
Скрипт по умолчанию обрабатывает пути GTASA в процессе импортирования, а именно удаляет одинаковые сегменты и сваривает точки в целях дальнейшей возможности редактирования линий путей под GTASA или под GTAVC/GTA3.
Можно отключить эти функции в графе GTASA Import Settings, но в этом случае линии путей абсолютно непригодны для редактирования под GTASA или под GTAVC/GTA3. Это может быть полезно, если необходимо визуально ознакомиться с картой путей (импорт стандартной карты путей без обработки занимает примерно 2 минуты).
Подробно написано в "Импорт путей GTA SA.docx".
При создании новой линии пути скрипт автоматически назначает ей настройки, исходя из параметров в блоке Default Parameters!
Обратите внимание, что параметры Lanes для внутренних точек всегда равны 1 1! Для назначения направления движения и количества полос достаточно редактировать только конечные (внешние) точки.
Или используйте кнопки set one-way/set two-way traffic для назначения одностороннего или двустороннего движения и используйте кнопку Change the direction of traffic для смены направления движения.
Для отображения параметров линий во вьюпорте используйте вкладку Display helper. Для отображения доступны — номера точек, число полос, флаги, ширина пути, координаты точек.
Для сброса параметров по умолчанию у выделенных линий используйте функцию Reset User Properties.
В случае ошибки "The script does not support splines with a number of points greater than 12 and less than 3!Please edit the spline" примените функцию Split Lines to VC Format.
Эта функция разделяет линию на n-ное количество линий, если число ее точек строго больше 12 или разбивает линию до трёх точек, если у искомой линии их две (Vice City не поддерживает линии с двумя точками).
Для экспорта трафика достаточно выбрать линии и нажать кнопку Export Paths. Готовые строки для Paths.ipl будут выведены в окне MAXScript Listener (в левом нижнем углу 3Ds max или нажмите F11 для вызова MAXScript Listener).
Скрипт имеет возможность создавать перекрестки двумя способами:
1) — У каждой линии ОТДЕЛЬНО выбрать по одной точке в режиме редактирования вершин
— Выделить линии и нажать кнопку Create Crossroad
2) — Нажать кнопку Create Dummys at line end
— Выделить дамми и нажать кнопку Create Crossroad
Краткое описание кнопок:
Set Ped — назначить линии трафик пешеходов.
Select all Ped Paths — выбрать все пути пешеходов.
Set Car — назначить линии трафик авто.
Select all Car Paths — выбрать все пути авто.
Set Boat- назначить линии трафик лодок.
Select all BoatPaths — выбрать все пути лодок.
Select All Paths — выбрать все пути.
Import GTAVC Paths — импортировать пути GTAVC.
Import GTA3 Paths — импортировать пути GTA3.
Import GTASA Paths — импортировать пути GTASA.
Import GTASA Paths (Fastman92 FLA4 format only!) — импортировать пути GTASA формата Fastman92.
Delete Double Segments — удалять одинаковые сегменты при импорте путей GTASA. Для возможности редактирования путей эта галочка должна стоять!
ViceCity/III format (beta) — преобразовывать пути GTASA в формат GTAVC/GTAIII. Необходимо ставить эту галочку, если в дальнейшем пути будут настраиваться только под GTAVC/GTAIII!
Weld paths knots and split paths — сваривать точки путей и разделять линии при импорте путей GTASA. Для возможности редактирования путей эта галочка должна стоять!
Create CrossRoad — создать перекресток (на основе вспомогательных дамми или на основе выделенных точек сплайнов)
Set CrossroadPath name — Обозначить путь как перекресток. При неправильной настройке перекрестка скрипт проигнорирует эту линию.
Create dummy at line ends — создать дамми на концах линий. Полезно для создания перекрестков.
Delete all dummy — удалить все вспомогательные дамми.
Display vertex number — отображать во вьюпорте номера точек путей (при условии что число точек в линии лежит в интервале от 2 до 12 включительно).
Display Lanes — отображать во вьюпорте число полос линии.
Display width — отображать во вьюпорте ширину пути.
Display flags — отображать во вьюпорте флаги путей.
Display XYZ coordinate — отображать во вьюпорте координаты точек.
Import .dat — импортировать .dat файл путей flightX.dat/tracksX.dat/spathX.dat.
Export .dat — экспортировать .dat файл путей.
Split lines — преобразовать выбранные линии в формат путей GTAVC/III.
Reset user properties — сбросить все настройки у выбранной линии.
Enable Traffic — включить трафик (выставляет флаг 0)
Disable Traffic — выключить трафик (выставляет флаг 1)
Delete zero shapes — удаляет неправильные линии с числом точек меньше 2.
Reverse knot order — изменяет приоритет точек.
set one way traffic — сделать одностороннее движение.
set two way traffic — сделать двухстороннее движение.
Change direction traffic — изменить направление движения.
Assign Line Parameter for Crossroad by lines — настроить число полос у перекрестков на основе примыкающих к ним линий. Не работает в случае примыкающих друг к другу перекрестков!
Select Directory — выбрать директорию для экспорта файлов путей GTA3.
Select ViceCity paths.ipl — выбрать Vice City paths.ipl для его преобразования в формат путей GTAIII.
Select GTA3 Dicrectory — выбрать папку с установленной GTA3.
Select save path for Paths.ipl — выбрать путь для сохранения Paths.ipl
Скрипт поддерживает импорт и экспорт .dat файлов путей GTA 3 или GTA Vice City из папки data/paths, а именно flightX.dat, tracksX.dat, spathX.dat, где X — номер файла.
Для экспорта необходимо выбрать ОДНУ линию пути и нажать экспорт. Скрипт предложит выбрать файл для сохранения.
Благодарности: Shagg_E; Starenat — за поддержку при написании скрипта.
Отдельное спасибо: Ilufir — за помощь со структурой путей GTASA, ZZPuma — за информацию о светофорах путей GTASA.
Используется код скрипта SA Path Tool авторства Deniska.
31/12/2024