
Railway Evolution
Smart traffic control and collision avoidance for Create trains. No more signals needed.
2.3K
25
Список изменений
🚂 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.
Файлы
create_railway_evolution-1.0.4.jar(5.05 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.4
Загрузчики
NeoForge
Версии игры
1.21.1
Загрузок
4
Дата публикации
2 ч. назад
