Added real timetable support
This commit is contained in:
28
docker/patches/README.md
Normal file
28
docker/patches/README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Local JGRPP patches
|
||||
|
||||
The `docker/OpenTTD-patches/` directory is an **untracked** clone of
|
||||
[JGRennison/OpenTTD-patches](https://github.com/JGRennison/OpenTTD-patches) checked out at tag
|
||||
`jgrpp-0.71.1`. The patches in this directory are the local modifications this project needs on
|
||||
top of that tag; they are the durable source of truth (the clone itself is not committed).
|
||||
|
||||
Current patches:
|
||||
|
||||
- `0001-Add-GameScript-API-timetable-getters-to-ScriptOrder.patch` — adds read-only timetable
|
||||
getters (`GetTimetableWaitTime`, `GetTimetableTravelTime`, `IsWaitTimetabled`,
|
||||
`IsTravelTimetabled`, `IsWaitFixed`, `IsTravelFixed`, `GetLeaveType`, `GetTimetableMaxSpeed`,
|
||||
`GetTimetableLateness`, `GetTimetableStartTick`, `GetCurrentOrderTime`,
|
||||
`GetTimetableTotalDuration`) to the `GSOrder` GameScript class. Required by the AdminBridge
|
||||
GameScript's `get_timetable` command and the Python client's
|
||||
`OpenTTDAdminClient.get_timetable()`.
|
||||
|
||||
## Applying after a fresh clone
|
||||
|
||||
```bash
|
||||
git clone --branch jgrpp-0.71.1 https://github.com/JGRennison/OpenTTD-patches docker/OpenTTD-patches
|
||||
git -C docker/OpenTTD-patches am ../patches/*.patch
|
||||
```
|
||||
|
||||
Then build the image as usual (`docker-compose up -d --build` from `docker/`).
|
||||
|
||||
If the clone is updated past `jgrpp-0.71.1`, `git am` may conflict — the patches were generated
|
||||
against that tag and need rebasing in that case.
|
||||
Reference in New Issue
Block a user