| Commit message (Collapse) | Author | Age |
|
|
|
| |
digiline_send(), move on_updated_from_nodedb to advtrains table
|
|
|
|
|
|
| |
distance-based approach or minetest.is_block_active() if available
See also https://github.com/minetest/minetest/pull/10897
|
|
|
|
| |
integrate ndb in serialize_lib atomic system
|
|
|
|
| |
Note: it does not simply add os.delete() but reverts to the "old" behavior of directly overwriting the file, because this did work before.
|
|
|
|
|
|
|
| |
This is done with a task that runs once when the nodedb is loaded. A new
field of advtrains_ndb will keep a version integer to indicate migration
versions. This introduces verson 1, no version being equivalent to 0.
An LBM is also registered to replace the tracks in the world.
|
|
|
|
|
| |
The check for server priv was hidden where no one would have expected
it.
|
|
|
|
|
|
| |
- Also do atomic operations on nodedb
- no longer require Worldedit for at_sync_ndb
- "overrun LZB 0 restriction" should now show where it happened.
|
|
|
|
| |
detector rails)
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
correct read/write file binary data
|
|
|
|
| |
There's something wrong with the new paths, next time build a path validity checker to trace the issue
|
|
|
|
| |
(also fix the output of /at_sync_ndb)
|
|
|
| |
Reported by @kostett, probably the cause of buggy nodedb saving
|
|
|
|
|
| |
Caused problems on multiple detector rails in a row, because paths got cleared in-between a train step
Also optimize some code
|
|
|
|
|
|
| |
off_track
The off-track warning has moved into the info text of wagons
|
|
|
|
|
|
|
|
|
| |
...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)
|
|
|
|
|
|
|
| |
- Level crossing bell
- Horns
- Subway train driving and door sounds
...to be continued...
|
|
|
|
|
|
| |
into a library mod
advtrains will keep its own node database code for reasons of crash recovery, with the handicap that improvements to nplib need to be manually backported.
|
|
|
|
| |
Possibly fixes bug on linuxworks server.
|
|
|