Open Emojigit opened 4 months ago
... so much fun. the performance of occ-cached
is even worse than occ
.
In terms of long train compatibility, attempt-occ
> attempt-occ-cached
> master
.
master
)attempt-occ
)attempt-occ-cached
)Should probably wait for Advtra__ to implement door API
Current solution
Find train entities around the platform door; Problems:
Advtrains Occupation System (
attempt-occ
)Get the train occupying the track behind the door; Problems:
Let the trains handle the doors (I don't know if it is possible)
Hook a callback into the train's door state change code, find all platform doors next to the occupied tracks, and change their state according to the train's state. An ABM with increased interval and decreased chance will still exist (using the OCC method) to fix malfunction doors with lower time cost.