Commit Graph

142 Commits

Author SHA1 Message Date
Stephan Richter
f0d3ad094f bugfix: implemented delayed loading of contact data in TriggerdContact 2021-06-29 12:54:18 +02:00
Stephan Richter
80f31e2628 altered Action "DisableEnableBlock":
this action now is able to disable/enable any tile
2021-06-24 17:42:42 +02:00
Stephan Richter
1454a81803 bugfix 2021-06-24 17:40:51 +02:00
Stephan Richter
252a8a65cb fixed actions boken by function mapping implementation 2021-06-18 11:53:16 +02:00
Stephan Richter
bf3d6859c5 removed unused "cause" parameter in actions 2021-06-18 11:51:15 +02:00
Stephan Richter
178d8f1622 started refactoring 2021-06-17 20:55:07 +02:00
Stephan Richter
dafcf651c3 re-implemented functions of locomotives 2021-06-17 14:21:41 +02:00
Stephan Richter
e1f50d0d6e added Paras class, refactored respective code 2021-06-17 10:40:33 +02:00
Stephan Richter
19b1b3ed01 implemented highlighting of tiles on action edit 2021-05-28 13:18:23 +02:00
Stephan Richter
029222ffa2 * verbesserte Geschwindigkeitsregelung
* erweiterung der Aktion „Zug in Block bestimmen“
* verbesserungen beim Rangieren
2021-05-15 00:34:38 +02:00
Stephan Richter
2aa40913bb bugfixes 2021-04-16 03:36:09 +02:00
Stephan Richter
77d82c71be minor bugfix 2021-04-09 19:10:03 +02:00
Stephan Richter
77166acf91 - added else branch to conditional actions
- implemented history for any object extending BaseClass (i.e. almost any)
- added distance() calculation method to base class
- Button "edit JSON" in Action Lists now hidden by default, can be enabled in plan properties

- fixed bugs:
    - updating json of DisplayText was not working properly
    - log output in Tile.isFreeFor was broken
2021-04-09 18:55:20 +02:00
Stephan Richter
db9fed1642 overhauled route search algorithm:
now using breadth-first search instead of depth-first search
2021-04-01 13:10:45 +02:00
Stephan Richter
0dde9693d1 minor bugfixes + more debug logging 2021-03-29 20:09:15 +02:00
Stephan Richter
da2ad054ed bugfixes 2021-03-21 05:42:30 +01:00
Stephan Richter
540d1be489 Another refactoring step... 2021-03-18 17:27:09 +01:00
Stephan Richter
9b9c65542c bugfixes 2021-03-18 00:57:10 +01:00
Stephan Richter
5e50259d24 Implementierung des neuen Routen-Algorithmus weitgehend abgeschlossen.
Was noch fehlt ist der Brems-Prozessor; außerdem muss der neue Code getestet werden.
2021-03-17 23:58:38 +01:00
Stephan Richter
c62f75fa02 Code zum Reservieren der nächsten Route überarbeitet.
*Könnte* jetzt funktionieren, hatte jedoch keine Zeit zum Testen.
2021-03-16 22:28:29 +01:00
Stephan Richter
030b29499f dunno what to write, this is a non-clean state... 2021-03-16 21:39:34 +01:00
Stephan Richter
fd254db358 minor bugfix. next step: implementing the preserveNextRoute action.
Must work in the following conditions:
- called from route.setupActions
- called from route.startActions
- called from route.contactActions
- called from autopilot after reaching route.endBlock
2021-03-14 20:07:36 +01:00
Stephan Richter
9c86955d8d - implemented load callback
- added waitTime field to context, wait time now determined in route.start
2021-03-14 19:12:17 +01:00
Stephan Richter
2647b4c43d Started clean re-implementation of
- reserving route
- preparing route
- locking route

New implementation now properly handles stop event from user.

Next things to implement:

- tracing train upon contact activation, taking care of:
    - causing contact
    - train's last position
    - route
    - plan.freeBehindTrain
- finish event, keeping brake processor in mind
2021-03-13 20:15:51 +01:00
Stephan Richter
9effb8d337 re-implemented basic autopilot 2021-03-12 16:55:52 +01:00
Stephan Richter
6bf7882f3b improved error messages 2021-03-12 16:04:08 +01:00
Stephan Richter
c6aa5e45da working on new autopilot code 2021-03-12 12:49:19 +01:00
Stephan Richter
830c1863ad started re-implementing route reservation 2021-03-12 12:49:19 +01:00
Stephan Richter
c549f7364d moved Thrads to separate package 2021-03-12 12:49:19 +01:00
Stephan Richter
103dd89168 improved gui 2021-02-28 13:59:54 +01:00
Stephan Richter
b951b948e5 updated thread handling:
- threads are no longer pooled (this makes naming threads difficult)
- threads are now named by their causing event, which improves logging

updated calls to thread.sleep: those are now provided by new class Delayed Execution
2021-02-28 13:03:21 +01:00
Stephan Richter
cabab80b5c added opßtion to simplify all route names in one step 2021-02-23 00:57:04 +01:00
Stephan Richter
54961c1f14 various minor improvements 2021-02-19 19:54:44 +01:00
Stephan Richter
c3242cddcb vroious improvements 2021-02-12 18:04:28 +01:00
Stephan Richter
2973bd1432 optimised brake code 2021-02-11 19:40:35 +01:00
Stephan Richter
853ae2a0c1 code optimization 2021-02-11 16:30:34 +01:00
Stephan Richter
b41ae2b314 new feature on clicking tiles: actions of tile now skipped, when shift is pressed during click 2021-02-10 18:59:31 +01:00
Stephan Richter
3cd6df931d bugfixes 2021-02-06 20:30:33 +01:00
Stephan Richter
8f52c79798 implemented manual coupling/decoupling of trains 2021-01-17 18:28:11 +01:00
Stephan Richter
e00e6f8124 added CoupleTrain action,
improved Destination functions,
fixed bug in AddRemoveTag,
improved CarOrientation functions
2021-01-16 19:33:59 +01:00
Stephan Richter
0e6069a5a1 implemented AddDestination action and evaluation of destination tags of trains. 2021-01-16 04:05:06 +01:00
Stephan Richter
bf234e19bb EngageDecoupler now using new assignment function 2021-01-16 01:24:45 +01:00
Stephan Richter
fc95444fd8 WaitForContact now using new assignment function 2021-01-16 01:20:19 +01:00
Stephan Richter
bac9892fd0 implemented splitting of trains and parking in blocks 2021-01-15 18:15:56 +01:00
Stephan Richter
22dfd0512a implemented shunting trains 2021-01-15 18:15:14 +01:00
Stephan Richter
494eeddf59 improved translations 2021-01-15 14:23:49 +01:00
Stephan Richter
14b7a69d03 added new action DisableEnableBlock 2021-01-15 13:41:32 +01:00
Stephan Richter
c825268b5f added WaitForContact action 2021-01-15 10:50:44 +01:00
Stephan Richter
703820b38f bugfixes 2021-01-15 10:50:08 +01:00
Stephan Richter
0902017bba added decouple and EngageDecoupler action 2021-01-15 10:48:32 +01:00