Commit Graph

29 Commits (ef8391a60d8221f883d54c68373607d7bb3cf4c7)

Author SHA1 Message Date
orwell96 ef8391a60d atc_reset(): Removed unused string parameter and also clear ATC autocouple flag (Cpl)
Fixes H#189 and H#190
2021-12-31 16:04:04 +01:00
orwell96 e7d0a5fac2 Train Coupling: Change behavior so that train direction of initiating train is kept, add ATC Cpl command 2021-10-25 21:04:45 +02:00
hlqkj 5f2e40a08f Use mono font to ATC rail command fields 2021-03-22 11:06:18 +01:00
orwell96 d3b2f614be Hm, forget about it for now. Might be perfectly valid when train goes farther than train length in step 2021-02-10 16:36:24 +01:00
orwell96 b5f8737095 More debug info to hopefully gain more info on the bug 2021-02-10 16:36:24 +01:00
orwell96 227a4aaeac Try to track down why ATC is broken 2021-02-10 16:36:24 +01:00
orwell96 5c2534cc35 Remove pcall wrappers completely, add command to disable advtrains mainloop 2021-02-10 16:36:24 +01:00
orwell96 816245588d Disable ARS train flag and surrounding uses 2021-02-10 16:35:45 +01:00
Gabriel Pérez-Cerezo e9c76100a1 Add ATC "K" command
This command kicks out all passengers when the train is stopped and
its doors are open. In addtion, a wagon:is_driver_stand(seat) function
was added to allow finding out easily if a seat is the driver stand of
the wagon.
2021-01-07 23:58:05 +01:00
ywang cc78b63e34 [BREAKING] Use client-side translations instead of intllib; add zh_CN translations
* Client-side translations is used instead of intllib. [Breaks MT4 compat]
* Existing locale files have been moved to advtrains/locale and named with the format advtrains.[lang].tr
* Add zh_CN locale. (requires a font that supports CJK text)
2020-07-19 16:21:08 +02:00
orwell96 8b8c5a2c1f Fix sending empty ATC commands 2019-02-05 10:51:55 +01:00
orwell96 f6f922c90c Fix last commit (and another warn2log) 2019-01-22 23:40:53 +01:00
orwell96 f2a62c2d77 Fix atc command evaluation BB command 2019-01-22 23:26:20 +01:00
orwell96 12f8e26cb4 Do not clear tarvelocity when setting new, potential no-op command 2019-01-15 15:38:17 +01:00
orwell96 93726db4e3 Handle the case that a train is not initialized (train_ensure_init returns nil/false)
Fixes H#72
2018-10-29 21:19:49 +01:00
orwell96 fe4b4a695a Fix node database ATC rail bug
After successfully registering newly-placed ATC rails in the nodedb, the rail's after_place_node() callback
(local apn_func()) immediately cleared it again by passing a "node" object that was actually a player object
and thus had no "name" or "param2" to ndb.update(), which it handled how it should not in this situation.
Since those ndb.update calls were unnecessary anyways, I removed them completely.
2018-10-17 21:05:06 +02:00
orwell96 33c839b40d Add signal safety control override, restructure control system 2018-10-10 21:49:52 +02:00
orwell96 0ec89364c0 Fix ATC rail reversing 2018-08-12 16:36:20 +02:00
orwell96 6cdb47edd2 Add routesetting callbacks.
Now, only the signal aspect setting is still missing
2018-08-12 13:23:36 +02:00
orwell96 24b0639c5f Mainly make collisions and coupling work
Missing: ATC stuff, yaw problems
2018-06-14 17:39:42 +02:00
orwell96 b420a71939 Implement a reverse path lookup for trains instead of an occupations window system 2018-06-14 17:39:42 +02:00
orwell96 30e98520e7 Occupation System, new train steps, still incomplete 2018-06-14 17:39:42 +02:00
orwell96 8a51a10a61 Fix detector lookup in ATC rails 2017-12-18 23:26:01 +01:00
orwell96 46c4447da0 Rewrite rail connection system...
...to support an arbitrary number of connections for rails, which leads to these new features:
- switches now get recognized by the trackworker correctly
- ability to add real rail crosses
During this, I also rewrote the rail registering system and the conway function (important part of path prediction)
Note, developers: the track preset format changed, you might need to rewrite them according to the presets in tracks.lua if you wrote your own
(possibly breaks advcarts)
2017-12-18 23:09:23 +01:00
Gabriel Pérez-Cerezo f228e2d30e Moved default train track to separate mod, for integration with advcarts. 2017-10-25 09:52:10 +02:00
rubenwardy d65c4916ce Remove zip release files, move mod to root, exclude assets from Makefile (#92) 2017-09-20 18:05:04 +02:00
orwell96 2d0b51b897 Restructure mod directory 2017-01-04 19:10:03 +01:00
orwell96 853a9e690e Add Automatic Train Control system 2017-01-04 12:02:00 +01:00
orwell96 f806ed9eee Turning mod into a modpack and separating the trains from the core mod 2016-12-20 14:17:39 +01:00