Links
Tags
Creators
Details
1.1-1.21.1
Compatibility
Changes
🚂 Create: Railway Evolution v1.1 — [JUNCTION OCCUPANCY FIX & RNSA OPTIMIZATION]
This update resolves a critical junction collision issue where trains could fail to detect another train already stopped in the middle of an intersection, and optimizes the Rail-Native Spacetime Architecture (RNSA) for larger railway networks.
/ Это обновление устраняет критическую проблему столкновений на перекрёстках, из-за которой поезда могли не замечать другой состав, уже стоящий на середине стрелки, а также оптимизирует подсистему RNSA для крупных железнодорожных сетей.
✨ Key Fixes & Improvements / Основные исправления и улучшения
1. 🚦 Junction Physical Occupancy Check / Проверка физической занятости перекрёстка
Trains now reliably detect other trains already stopped or positioned in the middle of a junction before entering.
Previously, TrainAIController passed the junction node key (juncKey) into RailOccupancyEngine.isPhysicallyClear(), which indexes occupancy by graph edgeId. Because the node key and edge ID did not match, isPhysicallyClear() could return true even when another train was physically blocking the middle of the intersection.
What changed:
- Coordinate-Based Junction Check: Added a fallback physical occupancy check around the junction center (
jXZ) using each nearby train'sprecisePositionandtrainLength. - Collision Prevention: Approaching trains now properly detect stationary or slow-moving trains occupying the middle of a junction and yield before entering, while keeping the 18-block junction braking check distance.
/ Поезда теперь надёжно обнаруживают другие составы, уже стоящие или находящиеся на середине перекрёстка, перед въездом на него.
Раньше TrainAIController передавал ключ узла перекрёстка (juncKey) в метод RailOccupancyEngine.isPhysicallyClear(), который индексирует занятость по edgeId (ID ребра графа). Из-за несовпадения типов ключей проверка могла возвращать true, даже если другой поезд физически стоял на середине перекрёстка.
Что изменено:
- Проверка по координатам перекрёстка: Добавлена физическая проверка занятости вокруг центра перекрёстка (
jXZ) по реальной позиции (precisePosition) и длине (trainLength) других составов. - Предотвращение столкновений: Приближающиеся поезда теперь корректно видят стоящий на середине перекрёстка состав и уступают дорогу, сохраняя привычную дистанцию проверки в 18 блоков.
2. ⚡ RNSA Edge Indexing Optimization / Оптимизация индексации занятости путей (RNSA)
Improved server tick performance on worlds with many active trains.
Previously, RailOccupancyEngine iterated linearly over all active train footprints in isPhysicallyClear() and checkPhysicalOverlap().
What changed:
- O(1) Edge Lookup: Added an
edgeIndex(ConcurrentHashMap<Long, Set<UUID>>) inRailOccupancyEngineto track trains per rail edge. - Lower Tick Overhead: Occupancy checks now inspect only the trains physically present on the target edge instead of scanning every train in the world.
/ Повышена производительность серверного тика в мирах с большим количеством активных поездов.
Раньше RailOccupancyEngine выполнял линейный перебор всех активных составов в методах isPhysicallyClear() и checkPhysicalOverlap().
Что изменено:
- Быстрый поиск по ребру: В
RailOccupancyEngineдобавлен индексedgeIndex(ConcurrentHashMap<Long, Set<UUID>>). - Снижение нагрузки на тик: Проверки занятости теперь опрашивают только те составы, которые физически находятся на конкретном участке пути.
🔧 Technical Summary / Техническая сводка
- Added coordinate-based physical clearance validation around
jXZinTrainAIControllerto catch trains stopped inside junctions. - Added
edgeIndextoRailOccupancyEnginefor fast per-edge physical occupancy lookups (isPhysicallyClear,checkPhysicalOverlap). - Kept the 18-block
juncBrakeDistcap and full compatibility withSpacetimeLedger(4D slot reservation) andTrainControlStateMachine.
/ Краткий список технических изменений:
- Добавлена проверка физической занятости перекрёстка по координатам
jXZвTrainAIControllerдля обнаружения составов, стоящих на середине стрелки. - Добавлен индекс
edgeIndexвRailOccupancyEngineдля быстрого поиска занятости поedgeId. - Сохранён лимит
juncBrakeDistв 18 блоков и полная совместимость соSpacetimeLedger(4D-бронирование слотов) иTrainControlStateMachine.
Happy railroading! 🚂❤️
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:VcPwJKGX:gcAa6niN"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:VcPwJKGX:gcAa6niN"
}

