Links
Tags
Creators
Details
1.0.4-1.21.1
Compatibility
Changes
🚂 Railway Evolution v1.0.4 — [THE TRAFFIC & MUTEX UPDATE]
This is a professional-grade AI overhaul for Create Mod trains. Version 1.0.4 introduces advanced traffic management systems, including junction mutexes and predictive collision analysis, moving beyond simple raycasting to a true "Traffic Control" architecture.
✨ Key Features of v1.0.4:
- 🔒 Junction Reservation (Mutex System): Trains must now "reserve" complex intersections (3+ connections) before entry. This prevents the classic "head-on" deadlocks at crossings. Includes 10s auto-expiry and deterministic UUID tiebreaking.
- 📏 Adaptive Track-Size Scaling: The AI dynamically adjusts its braking behavior using
bufferScalebased on track length, ensuring smooth stops on long lines and aggressive braking on short tracks. - 🗄️ Multi-Layered Registries: Real-time databases for both stationary (StoppedTrainRegistry) and active (MovingTrainRegistry) traffic with TTC (Time-To-Collision) calculation.
- 🔮 Predictive Collision Analysis: The AI calculates future positions, initiating proactive deceleration up to 5 seconds before a potential impact.
🛠 Technical Changelog (v1.0.4):
- JunctionReservationManager: New mutex logic for safe intersection passage and deadlock prevention.
- StoppedTrainRegistry: Guaranteed detection for stationary and derailed trains.
- MovingTrainRegistry: Vector-based traffic analysis and predictive TTC logic.
- Direction-aware Distance: Dot-product math for precise "Edge-to-Edge" accuracy.
- Precision Beam Overhaul: Straight (1.5), Curve (3.5), and Ultra-close (4.0) beam optimizations.
- Overlap Deadlock Breaker: Automatic reverse resolution for clipped trains after 3 seconds (60 ticks).
- Critical BFS Fix: Resolved data loss issue (fixed
return nulltoreturn graphHit). - Adaptive Scaling: Dynamic safety zones based on track segment size (20b, 50b, 100b+).
- Build Optimization: Fixed "duplicate range variable" compilation errors.
- System Orchestration:
TrainAIManagernow coordinates VBS, Registries, Junctions, and Accident Zones.
⚙️ v1.0.4 Scanning Pipeline:
- graphWalkScan() — Primary BFS search with Junction Mutex checks.
- Stopped Registry — Instant stationary obstacle lookup.
- Moving Registry — Dynamic traffic vector analysis.
- Ultra-close scan — Emergency fallback (≤16 blocks).
- Post-BFS proximity — Final distance verification.
- Fallback beam — Secondary raycast for missing graph data.
Developed by Fizzy_lovely — Making trains smarter, one line at a time.
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:eiREwRw2"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:VcPwJKGX:eiREwRw2"
}

