Skip to content

Instantly share code, notes, and snippets.

@carloscm
carloscm / gist:0d3488dd88bc759f442cdfa698b0c764
Created October 15, 2023 16:04
1.10 OSM key= whitelist
"type",
"aerialway",
"aeroway",
"amenity",
"barrier",
"boundary",
"admin_level",
"craft",
"emergency",
"lifeguard",
lon lat color text font_size max_lod transparent demand population
-2.2004 53.4831 ff4411 Sportsball One 1 3 0 waw_demand_id_1 10000000
2.1229 41.3809 1144ff Sportsball Two 1 3 0 waw_demand_id_1 5000000
-43.2303 -22.9122 44ff11 Sportsball Three 1 3 0 waw_demand_id_1 8000000
-83.7487 42.2659 ffff44 Sportsball Four 1 3 0 waw_demand_id_1 7000000
[ModMeta]
schema=1
name=test pois
author=Weird and Wry
desc=test desc
version=1.0.0
[DemandCurve]
id = waw_demand_id_1
name = test demand 1

Open question: dynamic train shift assignment

I am going to try to explain my ideas for the dynamic assignment system. But to be super clear: the most important aspect of this design is that it preserves all the current order system elements as they exist in 1.13 and it is entirely opt-in. If you never flag stops as allowing schedule changes, and keep the schedule shift train sets as a single train, never repeated, you get Schedules 1.0 and your trains never dynamically change schedules.

How is a train assigned to a shift? Let's think about the easy case: a train has been just purchased, or has just been intervened. In this case the train is empty of pax and it has no location on the map, therefore it is valid to be assigned to anything. If this train is then put in the allowed set of trains of some Schedule Shift, and that shift becomes available, the sim can assign the train to the shift. Its state will then change to running a shift, the schedule system will record that particular shift as being take

autoexport=0
autosave_interval=15
autosave_slots=4
default_han_font=chi
display=-1
editor_holds_rebuild=1
gpu_probe=0
kb1_map_down=115
kb1_map_left=97
kb1_map_right=100
pub struct Hitcher extend Train {
config: i64 meta {
min: 0,
max: 8,
},
}
pub struct Driver extend Train {
hitcher_detector: ID<Signal>,
driver_detector: ID<Signal>,
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "steamrt",