n4patch: Расширение лимита трасс до 255 в NFS4 High Stakes
Track Limit Expansion: до 255 трасс в Need for Speed: High Stakes (1999)
Track Limit Expansion (track_limit.n4p) представляет собой модуль n4patch, который расширяет оригинальный лимит Need for Speed: High Stakes с 19 до 255 трасс.
Дополнительные трассы интегрируются в стандартный интерфейс игры, включая меню выбора трасс, экран информации о трассе и систему рекордов.
Помимо расширения лимита, модуль автоматически создаёт недостающие изображения и 3D-модели трасс, а также добавляет независимое хранение рекордов для различных условий гонки.
Возможности
- До 255 трасс: поддержка дополнительных трасс без замены оригинальных.
- Интеграция в интерфейс: новые трассы отображаются в стандартном меню выбора и на экране информации.
- Автоматическая генерация 3D-маршрутов: создание трёхмерной модели трассы на основе данных VRoad.
- Автоматическая генерация 2D-карт: создание изображения маршрута для экрана информации о трассе.
- Автоматическая генерация Vidwall: создание изображения предварительного просмотра трассы в стиле оригинальной игры.
- Автоматическая генерация загрузочных экранов: создание Slide с трёхмерным изображением маршрута.
- Независимые рекорды: каждая трасса хранит собственные рекорды в своей папке.
- 16 категорий рекордов: отдельные результаты для различных комбинаций времени суток, направления движения, зеркального режима и погоды.
- Поддержка Tournament и Knockout: дополнительные трассы могут использоваться в расписаниях отдельных турниров.
- Поддержка повторов: корректное отображение информации о дополнительных трассах при загрузке реплеев.
- Настройка через INI: возможность задавать количество трасс, названия, каталоги и дополнительные параметры.
Video: https://youtu.be/fQ-1FpoHtLY
Автоматическая генерация ресурсов
В оригинальной игре для отображения трассы используются отдельные ресурсы, включая 3D-модель маршрута, 2D-карту, Vidwall и загрузочный экран.
Для дополнительных трасс такие ресурсы часто отсутствуют.
Модуль n4patch способен автоматически создавать их на основе данных трассы:
| Ресурс | Генерируемый файл |
|---|---|
| 3D-маршрут | _n4route.viv |
| 2D-карта | _n4map.qfs |
| Vidwall | _n4vidwall.qfs |
| Загрузочный экран | _n4slide.qfs |
Созданные файлы сохраняются непосредственно в каталоге трассы и повторно используются при следующих запусках игры.
Генерация выполняется только при отсутствии соответствующего ресурса. Существующие оригинальные изображения и пользовательские файлы имеют приоритет и не перезаписываются.
Если необходимо обновить автоматически созданное изображение, достаточно удалить соответствующий файл _n4* и перезапустить игру.
Новая система рекордов
Модуль изменяет принцип хранения рекордов в NFS4.
Вместо общего файла SaveData\records.dat каждая трасса, включая оригинальные, использует собственный файл:
Data\Tracks\<dir>\RECORDS.N4R
Для каждой трассы предусмотрено 16 независимых категорий рекордов, учитывающих четыре параметра гонки:
- День или ночь.
- Прямое или обратное направление.
- Обычная или зеркальная трасса.
- Сухая или дождливая погода.
Например, рекорды, установленные днём и ночью на одной трассе, теперь хранятся отдельно.
Новые рекорды круга сохраняются сразу после их установления, а не только после завершения гонки. Это позволяет сохранить результат даже при последующем перезапуске заезда.
Файлы рекордов используют бинарный формат с проверкой целостности данных и безопасным обновлением.
Обратите внимание: существующие рекорды из оригинального records.dat автоматически не импортируются.
Настройка
Параметры модуля задаются в файле n4tracklimit.ini, расположенном рядом с nfs4.exe.
Пример:
[track_limit]
count=20
[track19]
dir=MYTRACK1
name=My Track 1
difficulty=Intermediate
Здесь count=20 задаёт общее количество трасс, включая 19 оригинальных, а секция [track19] описывает дополнительную трассу.
Для большинства дополнительных трасс не требуется вручную указывать базовую трассу или ресурсы интерфейса. Модуль пытается определить их автоматически.
Максимальное поддерживаемое количество составляет 255 трасс.
Установка
- Установите совместимый загрузчик n4patch.
- Поместите
track_limit.n4pв каталогn4patch/игры. - Скопируйте
n4tracklimit.iniрядом сnfs4.exe. - Настройте количество трасс и параметры дополнительных трасс.
- Запустите игру.
Для проверки загрузки модуля используйте файл n4patch.log.
Модуль требует загрузчик с поддержкой Loader Info API v1.
Оригинальный исполняемый файл игры не изменяется. Все необходимые изменения применяются загрузчиком непосредственно в памяти при запуске.
Важно
Модуль предназначен для Need for Speed: High Stakes (1999), PC и требует совместимого загрузчика n4patch.
Перед использованием рекомендуется создать резервные копии игровых профилей, сохранений и рекордов, особенно если используются другие модификации.
Дополнительная информация и обновления доступны на https://nfs4.com.
Changelog
v1.5.0 (17 октября 2026)
- Исправлена ошибка, из-за которой мог теряться прогресс разблокировки трасс, делая некоторые трассы недоступными для выбора.
- Добавлен параметр
police_baseдля выбора оригинальной трассы, определяющей набор полицейских автомобилей ИИ и их региональную окраску. - Добавлен параметр
police_carsдля настройки собственного списка полицейских автомобилей на дополнительных трассах. - Исправлено сохранение прогресса в гонках Hot Pursuit.
Подробнее об изменениях в v1.5.0
v1.6.0 (18 октября 2026)
- Исправлена ошибка, из-за которой запуск Hot Pursuit мог приводить к некорректному завершению игры или отсутствию радио-переговоров полиции.
- Добавлен параметр
traffic_baseдля выбора оригинальной трассы, определяющей набор автомобилей трафика.
Комментарии
Свернуть ветку от TouIchifu за 2026-10-16
Very nice. But tracks from race way 1 to empire city are being not selectable(grey out) with this plugin enabled in my game.
Свернуть ветку от Herms за 2026-10-16
Its possible that these tracks may need to be simply unlocked by playing career mode. On a fresh install they are normally locked (greyed out)
Actually, when I saw the greyed-out tracks during testing, I thought the same thing. I assumed the unlock progress had simply been reset.
Yes, that looks like a bug.
Thanks for reporting it! I'll fix it :)
Свернуть ветку от lnikonl за 2026-10-17
Fixed! And I've also added police support :)
Thanks again for reporting this. I completely overlooked it.
Since the first version of the patch modified
RECORDS.DATdirectly, I assumed the track unlock progress had simply been reset. So I used another patch to force-unlock all tracks and cars while testing :)That's why I missed the issue.
Thanks for the fix. am looking forward to the car limit expand!
Свернуть ветку от TouIchifu за 2026-10-17
I guess I have found some incompatibilities. The GST(ghost) files created by Cheat Engine will crash on the loading screen if the game mode in the GST file is set to [hot pursuit]. It occurs with original tracks as well.
Was this GST file created with the patch installed, or before installing it?
The problem might be related to how police cars are identified.
I've never used GST files this way before, so I'll need to do some testing.
Thanks for letting me know!
Свернуть ветку от lnikonl за 2026-10-17
Unfortunately, I don't know much about editing FST files. I tried using the table in CE, but couldn't figure out the right parameters. It would be helpful if I could get a file that causes the crash, though we'd need to figure out how to share it.
Свернуть ветку от TouIchifu за 2026-10-17
Here are some links for testing. GST Editor (Cheat Table): https://www.nfsaddons.com/downloads/nfshs/tools/7311/gst-editor-cheat-table.html Example 1 (hot pursuit): https://drive.google.com/file/d/1J5AWrqg0NA2EL_l0TqGl9VU0V_DrANWy/view?usp=drive_link Example 2 (single race) : https://drive.google.com/file/d/1XZ55ei0mDhnoBhrf9lzliEDCAUNsTse0/view?usp=drive_link
Put the gst files into [Savedata/Saves] and load them as ghosts in the game, where replays are stocked as well. Only Example 2 is working with track limit expansion on, while Example 1 will crash during the load. Hope these links would help you. Sorry for my bad English.
Свернуть ветку от lnikonl за 2026-10-17
Thanks for the files!
I tested both examples, but couldn't reproduce the issue.
Both files load successfully on my side, and the races start normally.
Could another mod or patch be causing a conflict?
Свернуть ветку от TouIchifu за 2026-10-17
Crash no longer happens after I set up police_base and police_car keys for the new tracks, which has nothing to do with GST. sorry for the confusion. But the police cars on new tracks are suffering from the [track too short] bug and keep driving backwards slowly. I wonder whether it can be solved.
Свернуть ветку от lnikonl за 2026-10-17
Glad to hear the issue is resolved! I'll still take a closer look at Hot Pursuit, though.
If you have an example of a track where this happens, I'll take a look.
Свернуть ветку от TouIchifu за 2026-10-18
I met with this bug on these two tracks which are actually longer than their conuterparts. https://www.nfsaddons.com/downloads/nfshs/tracks/3165/lake-diabolo.html https://www.nfsaddons.com/downloads/nfshs/tracks/8708/coal-harbour.html
Here is the additional lines in n4tracklimit.ini
[track19] dir=Coalharbor name=Coal Harbor difficulty=expert base=18 res=19 loc=297 police_base=empire police_cars=503,32
[track20] dir=Lake name=Lake Diabolo difficulty=begineer base=16 res=20 loc=297 police_base=aquatica police_cars=503,32
Thanks! That's great! My game crashes when starting Hot Pursuit on Coal Harbour, so this should help me track down the issue.
It looks like the problem might be related to the police voice audio.
In addition, the bug is being demonstrated in this video, but the fix is not public I guess. https://www.youtube.com/watch?v=hB18706s8dU
Sometimes a GST file becomes corrupted when it's been rewritten many times over, causing a crash. I don't know why it happens, but when it does, creating a fresh gst file from inside the game and using it to edit via the GST Editor usually eliminates those issues.
Свернуть ветку от Zalcus20 за 2026-10-17
A truly amazing work you have done here, friend. Great Job! Especially thanks for the update! I did find 2 more issues while testing your mod (without other plugins/patches installed):
On the extra installed tracks, the local cop speech is broken. There is skipping in dialogue and they never state their location. It still happens even after setting the locidx=xx command in the ini file. Is this a potential bug? I know you're not focused on Hot Pursuit mode but if you can look into this, that would be great!
All the extra tracks load the exact same model traffic car. This means a traffic table needs to be defined for each of these extra tracks. DrSpeed discovered and shared the info on these traffic tables here(see DrSpeed's first comment on this page): https://www.nfsaddons.com/forums/index.php?topic=2646.0 Maybe you can implement an option in the ini file where this info is copied from an extra track's base track similar to how you did the police_base command in the ini file.
Thanks for keeping NFSHS alive! I look forward to seeing more of your work. Hope we will be able to see a car list with 500 cars one day! :D
Thanks! I'll look into both issues.
I'll get back to the car limit expansion patch once I'm done with the tracks and textures.
Свернуть ветку от lnikonl за 2026-10-18
Thanks! Looks like I've managed to fix both issues!
Свернуть ветку от Zalcus20 за 2026-10-18
Thanks for the update! You solved the traffic issue perfectly. :)
However, I am still getting the first issue with the locidx cop speech, unfortunately. Setting locidx still seems to have no effect on which cop audio gets loaded, and the cop dialogue is still skipping/not making sense/not stating their location.
I tested to see whether the issue is something on my end, but after testing with a separate, clean install of NFSHS, this issue still persists. If you want to see if the problem is replicated on your end, load a getaway hot pursuit mode as a cop and listen to what dispatch says.
On the stock tracks, the first message dispatch usually says is something like "All units be advised, be on the lookout for a sportscar". (as you probably already know) However, with the extra tracks the bug causes dispatch to only say, "All units be advised--" not completing the rest of the sentence. There are other bugs in the dialogue when playing the Getaway mode. This is just one example.
But overall this is amazing! You have made many dreams come true with your achievements. Please keep up the excellent work! :thumbsup:
Thanks for the detailed report!
You're right, I really haven't paid enough attention to Hot Pursuit. I don't think I've even tried playing as a cop.
I did hear some police radio chatter in the regular HP modes, but since I didn't really play Hot Pursuit, it was hard to notice that some of it was missing.
Looks like it's time to test it more thoroughly! :)
Found and fixed!
Please try v1.6.2
Свернуть ветку от Zalcus20 за 2026-10-19
Yes, yes! You did it, friend! Police dialogue is indeed fixed. It is coherent and no more skipping! :D I like the creative fix you did for the opening dispatch dialogue on the extra tracks. Nice touch. :) And that is just genius having the ability to choose which speech banks are loaded for the extra tracks. ;)
The issue with cops not reporting their location still exists, but I realize this has nothing to do with the n4patch, but rather is connected to an age old problem with the game itself, infamously known as the ''track too short bug". TouIchifu touched on this earlier.
This bug happens on the Raceway tracks if you try to force hot pursuit mode to be used on them. Since no location speech banks exists for those tracks, there is:
nothing for the cop dialogue to say in regard to their location, and
as mentioned by Toulchifu, the ai cops that are driving in the opposite direction of the player do not turn around to chase the player when they initiate pursuit. They continue to pass the player and drive in that direction until visual contact is broken.
So, apparently this is what happens to the extra tracks that are introduced to the game.
I'm sorry about these long posts. I thought it would be a good idea to share these infos with you just in case one day you decide to investigate other game modes besides Career and start bumping into these issues.
TL;DR: Your update fixed the main issue, (police dialogue). The other issue (no location speech) is a result of the "track too short bug" an age old NFS High stakes problem. It is not a symptom of the n4patch. ;)
Thank you again! You have a new fan! -Zalcus20
It's good to report these issues.
Sometimes, while investigating one problem, I might come across another one and fix it along the way, even if I was working on something else at the time. :)
Yes, I know about the "player backdrive" issue (or when the player drives in the wrong direction). I'll need to investigate the AI logic in more detail to fix it. That one is still waiting its turn.
I've also heard about the "track too short bug", but I haven't looked into it yet. Maybe it'll be easier to fix than the first one.
Войдите, чтобы оставить комментарий и оценить. Войти