718 Commits

Author SHA1 Message Date
orwell96
8f4c90c5a5 Add debug prints, modify LZB to fix problems with look_ahead 2021-02-10 16:39:46 +01:00
orwell96
3c42d87dc0 Stoprail: Set LZB checkpoint speed back to 2
Caused problems when approaching stoprail in manual control
also better for compatibility
2021-02-10 16:39:46 +01:00
orwell96
080b8fb273 Add IGNORE_WORLD mode to test using only the advtrains save data 2021-02-10 16:39:45 +01:00
orwell96
9a775eff5b Add sign to make shunt moves proceed as main and improve doc of signals 2021-02-10 16:37:21 +01:00
orwell96
838cf61eac Make cab signalling work with renamed lzb fields 2021-02-10 16:37:21 +01:00
orwell96
114b915518 Fix new green signals bug caused by old trav_lzbdata, and callback loop in signalling formspec 2021-02-10 16:36:24 +01:00
orwell96
61329c11a2 Start using path_invalidate_ahead() 2021-02-10 16:36:24 +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
a3247dea28 Fix HUD position and Remote Routesetting button 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
aee7f0d419 Fix things, rework signal aspect select dialog, transform old aspects on-the-fly 2021-02-10 16:36:24 +01:00
orwell96
119a09b784 Simplify Signal Aspect Table (H#132) [breaks compatibility with signal API] 2021-02-10 16:36:24 +01:00
orwell96
573d6b06b2 Always do zero-barrier check and prevent LZB 0 overruns in movement logic 2021-02-10 16:36:24 +01:00
orwell96
8660794ef8 Fix lots of things around new LZB 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
b59b0d587d Implement a LZB speed lookup table for the path and rewrite velocity controls 2021-02-10 16:35:45 +01:00
orwell96
a78ff65b31 Fix inconsistency between node enter callback and lzb approach callbacks
(this caused the lzb approach to be called on nodes that have just received an enter event, which is not intended)
2021-02-10 16:35:45 +01:00
orwell96
816245588d Disable ARS train flag and surrounding uses 2021-02-10 16:35:45 +01:00
orwell96
74a219937d Add approach callback mechanism to LuaATC 2021-02-10 16:34:34 +01:00
orwell96
e935136d58 Make is_node_loaded() checks also for mesecon interactions and digiline_send(), move on_updated_from_nodedb to advtrains table 2021-02-04 12:35:24 +01:00
orwell96
8ae405f00f Discard get_node_or_nil() for area-loaded check and use either a distance-based approach or minetest.is_block_active() if available
See also https://github.com/minetest/minetest/pull/10897
2021-02-03 09:30:44 +01:00
Gabriel Pérez-Cerezo
d8d1d27ccb add unit tests for serialize_lib 2021-01-31 11:53:31 +01:00
ywang
ef21e70479 Use graphical indication for more elements; improve 7-segment display 2021-01-20 17:12:25 +01:00
ywang
371b5ac503 Use absolute positioning from the bottom of the screen 2021-01-19 16:38:20 +01:00
Blockhead
b4c8de8695 Fix serialisation: breach of contract, file left open
Previous commit did not fix saving, but is kept because there is a corner case for which it is required (see MT forum)
2021-01-18 15:27:50 +01:00
orwell96
7fa1a402bf Fix atomic saving on windows when save file does not exist 2021-01-17 10:27:16 +01:00
orwell96
6202c1cb00 Fix removing stale TCB nodes 2021-01-12 14:40:24 +01:00
orwell96
0ba5874b4f Some more serializer fixes (backported from new_lzb):
- Move DUMP_DEBUG_SAVE block before the actual saving so it can be used to trace serializer errors
- Don't crash on functions in data, ignore them silently
- Increase the save interval
2021-01-12 13:31:03 +01:00
orwell96
9d12c72499 serialize_lib: Allow empty strings in key 2021-01-12 13:27:27 +01:00
orwell96
ce4631dbee Backport ndb format from cellworld to also store the cids in the ndb file; integrate ndb in serialize_lib atomic system 2021-01-12 13:27:00 +01:00
orwell96
e42fbf9dcc Make advtrains use serialize_lib (save version 4)
Old save format will be gracefully migrated
2021-01-12 13:27:00 +01:00
orwell96
d0bd4ac30e Serialize_lib: finish up and add atomic api 2021-01-12 13:27:00 +01:00
orwell96
e6b656e937 Implement basic serialization and file opening 2021-01-12 13:27:00 +01:00
orwell96
bdc49b919d DUMP_DEBUG_SAVE also dumps interlocking data 2021-01-12 13:27:00 +01:00
Gabriel Pérez-Cerezo
0df208af53 fix mis-patched 90+60r crossing conns
Thanks, Maverick2797
2021-01-10 15:42:47 +01:00
Gabriel Pérez-Cerezo
eccfe8d195 Add K command to station rail
Move the UI of station rails to use checkboxes rather then dropdowns
for the reverse command.
2021-01-08 17:32:57 +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
8655eebc5f Change color of max speed indication 2021-01-07 21:05:05 +01:00
ywang
6575b3dac7 Remove advtrains_hud_blank.png 2021-01-05 15:10:58 +01:00
ywang
741ed7b4a7 Revert to black background; use "blocks" for the (physical) maximum speed 2021-01-05 00:03:16 +01:00
ywang
501911f94c HUD improvements 2021-01-04 23:48:12 +01:00
ywang
f4d193c6d1 Minor optimizations 2020-12-30 02:13:57 +01:00
ywang
846e688200 Add demo 2020-12-27 15:24:52 +01:00
ywang
b74fc92f81 Minor improvements for speed indicator 2020-12-23 21:20:31 +01:00
ywang
5a0a6fa96d Minor improvements 2020-12-23 11:29:07 +01:00
ywang
f4e2277f32 Improve speed indication 2020-12-23 11:14:18 +01:00
ywang
749edd62d1 Improved HUD textures 2020-12-23 10:35:16 +01:00
ywang
0395e81b79 HUD improvements 2020-12-22 23:15:04 +01:00
ywang
4405bbc57a Improved background for speed indicator 2020-12-19 20:38:01 +01:00