Vice City Paths IO Script v. 2.7f [MAXScript]




























-
1 January 2025vice-city-paths-io-script-v-2-7f_1735740078_213789.zip
Vice City Paths IO Script v.2.7e
Script for working with paths.ipl (and more).
Requires: 3dsMax 2008 and higher.
Features:
- Import GTA VC, GTA3, GTA SA paths (including support for Fastman92 format paths, FLA4 format only);
- Export GTA VC paths (export all line types supported by the game (from 3 to 12 points inclusive));
- Importing GTA SA paths in Vice City/3 format (see below);
- Ability to assign path type (peds, cars, boats) to each line. If the path type is not assigned, the script will automatically assign the type based on the Default Path Type value;
- Ability to create and export intersections (T-shaped and cross-shaped). See "Creating intersections.docx" or .avi files for details;
- Ability to change the parameters of each line/point. To change the parameters, just select the line. All changes will be automatically saved;
No 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;
- Buttons to select paths by their type (select all traffic/ped/boat paths);
- Ability to convert VC Paths.ipl to GTA 3 path format;
- Conversion of 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 to change the direction of path movement;
- Function to assign the direction of path movement (one-way/two-way);
- Function to split lines with more than 12 points (for selected lines);
- Function to reset line parameters (for selected lines);
- Function to enable/disable car traffic.
- Function to automatically configure intersections based on the lines adjacent to them (the function is not yet properly written).
- Function to delete "incorrect" lines with less than 2 points.
Changes in version 2.7f (updated 12/31/2024)
- Added a function to convert GTA3 paths to Vice City format. To do this, you need to select the folder where GTA3 is installed, then specify where Paths.ipl will be saved, and then click the Convert button.
- Fixed a bug that caused a .COL file weighing 0 bytes to be created when converting paths to GTA3 format on newer versions of 3dsmax (older than 2012).
- Added an auxiliary progress bar to inform about the process of converting paths to GTA3 format and also for converting paths to GTA Vice City format.
- For faster loading of GTA3 paths, the information about the found paths in MaxScript Listener has been removed — this slowed down the process of loading path data.
Supported line type Splines — Line. Initial Type — Corner. Drag Type — Bezier.
Do not apply modifiers to lines! This may make it impossible to properly export paths and create intersections.
For more convenient path writing, use constraints 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 is imported incorrectly (for example, intersections), I recommend fixing it manually.
It is not recommended to use this script to edit the standard path map, because when importing the standard path map, more lines are created compared to the original paths.ipl, thereby violating the original structure of the paths and the Paths.ipl file; after exporting, the paths file weighs more than the original and this leads to the absence of traffic or pedestrians in some areas.
It is advisable to use the script to create new paths.
The script supports importing GTA3 paths — import only, for export it is necessary to export the paths in Vice City format, and then convert them to GTA3 format.
The script supports the ability to convert paths.ipl to GTA 3 path format.
To do this, you need to specify the starting path ID, the prefix for path models, the name for IPL IDE COL, the coordinate multiplier of the paths with which paths.ipl was exported (for the standard .exe 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 when the conversion process is complete. IPL IDE COL files are fully ready to be added to the game.
It is not recommended to use this function to edit standard paths!
It is advisable to use the function to create paths for a new map or add new paths to the original paths.
Please note that when adding paths in GTA 3, if there are original ones, it is necessary to increase the limit with the adjuster Dynamic Limits: Buildings, PtrNodes, EntryInfoNodes, Treadables; [Pool Limits]: Objects Models; limit by DFF files [ID LIMITS].
To do this, use Limit Adjuster by Vitlgt. You should also set the parameter "Enable path limits patch=1" and increase 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.
Then click the Convert button.
It should be noted that the resulting path file size is larger than the original, thereby, for the paths to work, Maxorator's Path Hack (vcpathlimit.flt) will be required.
The script supports importing GTA SA paths, including importing Fastman92 format paths.
To import, you need to click the Import GTASA Paths button and specify the folder where the 64 path files NodesXX.dat are located.
The path import process can take from a few tens of seconds to 10 minutes.
Paths are imported as splines that can be edited or configured using SA Path Tool by Deniska.
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 traffic light settings!
It is possible to load 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 Vice City format will be fully functional! If incorrect path splines and intersections are found, it is recommended to rebuild the incorrect path(s) manually!
The script by default processes GTASA paths during the import process, namely, it removes identical segments and welds points in order to further edit the path lines for GTASA or for GTAVC/GTA3.
You can disable these functions in the GTASA Import Settings graph, but in this case, the path lines are completely unsuitable for editing for GTASA or for GTAVC/GTA3. This may be useful if you need to visually familiarize yourself with the path map (importing the standard path map without processing takes about 2 minutes).
It is described in detail in "Importing GTA SA paths.docx".
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 internal 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 movement.
To display line parameters in the viewport, use the Display helper tab. The following are available for display — point numbers, number of lanes, flags, path width, point coordinates.
To reset the default parameters for the selected 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" apply the Split Lines to VC Format function.
This function divides the line into n-number of lines if the number of its points is strictly greater than 12 or breaks the line down to three points if the desired line has two of them (Vice City does not support lines with two points).
To export traffic, it is enough to select the lines and click the Export Paths button. Ready-made 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, you need to select one point in vertex editing mode
— Select the lines and click the Create Crossroad button
2) — Click the Create Dummys at line end button
— Select the dummys 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 car traffic to the line.
Select all Car Paths — select all car paths.
Set Boat- assign boat traffic to the 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 Fastman92 format paths.
Delete Double Segments — delete identical segments when importing GTASA paths. This check box must be checked for the paths to be editable!
ViceCity/III format (beta) — convert GTASA paths to GTAVC/GTAIII format. You must check this box if the paths will only be configured for GTAVC/GTAIII in the future!
Weld paths knots and split paths — weld path points and split lines when importing GTASA paths. This check box must be checked for the paths to be editable!
Create CrossRoad — create an intersection (based on auxiliary dummys or based on selected spline points)
Set CrossroadPath name — Mark the path as an intersection. If the intersection is set up incorrectly, the script will ignore this line.
Create dummy at line ends — create dummys at the ends of the lines. Useful for creating intersections.
Delete all dummy — delete all auxiliary dummys.
Display vertex number — display path point numbers in the viewport (provided that the number of points in the line is in the range from 2 to 12 inclusive).
Display Lanes — display the number of line lanes in the viewport.
Display width — display the path width in the viewport.
Display flags — display path flags in the viewport.
Display XYZ coordinate — display the point coordinates in the viewport.
Import .dat — import .dat path file flightX.dat/tracksX.dat/spathX.dat.
Export .dat — export .dat path file.
Split lines — convert the selected lines to GTAVC/III path format.
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 incorrect 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 traffic.
Assign Line Parameter for Crossroad by lines — configure the number of lanes at intersections based on the lines adjacent to them. Does not work in the case of intersections adjacent to each other!
Select Directory — select the directory for exporting 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 where GTA3 is 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 offer to select a file to save.
Acknowledgments: Shagg_E; Starenat — for support in writing the script.
Special thanks to: Ilufir — for help with the GTASA path structure, ZZPuma — for information about GTASA path traffic lights.
Uses the SA Path Tool script code 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
Recommended files

GTA Vice City Criminal Russia Original Edition

San Andreas in Vice City - The Final Beta 0.1

Vice City IOS Complete Save

Grand Theft Auto: Vice City Re-Texd v1.0

Vice City - TrueStories Life (Pack II)

Grand Theft Auto: Vice City 10th Anniversary (Cinematic) Edition

GTA Vice City - Mamaia Vice Mod 1.5

Ukrainian GTA: Vice City

GTA Vice City Patch by Cherbet

Vice City Life Mod 0.1 beta RC2-8

Vice City New Icon

Mod Stoned from Vice City version 0.1

GTA Vice City Lviv

Visual Car Spawner v1.0 for GTA Vice City
