aboutsummaryrefslogtreecommitdiff
path: root/advtrains/nodedb.lua
Commit message (Collapse)AuthorAge
* Begin major rework of track registration systemorwell962023-09-04
|
* LuaATC: Add Mesecons LuaATC Controller (similar to Mesecons Luacontroller)orwell962021-11-02
|
* Serialization: strip trailing \r also in nodedb callbackrelease-2.3.1orwell962021-05-07
|
* Add save interval setting, fix accidental global variable, at_sync_ndb on ↵orwell962021-02-10
| | | | server priv not limited, timetaking for restore_all
* Add IGNORE_WORLD mode to test using only the advtrains save dataorwell962021-02-10
|
* Start using path_invalidate_ahead()orwell962021-02-10
|
* Remove pcall wrappers completely, add command to disable advtrains mainlooporwell962021-02-10
|
* Make is_node_loaded() checks also for mesecon interactions and ↵orwell962021-02-04
| | | | digiline_send(), move on_updated_from_nodedb to advtrains table
* Discard get_node_or_nil() for area-loaded check and use either a ↵orwell962021-02-03
| | | | | | distance-based approach or minetest.is_block_active() if available See also https://github.com/minetest/minetest/pull/10897
* Backport ndb format from cellworld to also store the cids in the ndb file; ↵orwell962021-01-12
| | | | integrate ndb in serialize_lib atomic system
* Add windows compatibility in nodedb saving (H#153)orwell962020-10-07
| | | | Note: it does not simply add os.delete() but reverts to the "old" behavior of directly overwriting the file, because this did work before.
* Deprecate old 4590 crossingsBlockhead2020-08-21
| | | | | | | 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.
* No longer require server priv for /at_sync_ndbGabriel Pérez-Cerezo2019-07-17
| | | | | The check for server priv was hidden where no one would have expected it.
* Various small fixesGabriel Pérez-Cerezo2019-07-16
| | | | | | - Also do atomic operations on nodedb - no longer require Worldedit for at_sync_ndb - "overrun LZB 0 restriction" should now show where it happened.
* Fix for path invalidation within update callbacks (issue was caused by ↵orwell962019-01-22
| | | | detector rails)
* Fix node database ATC rail bugorwell962018-10-17
| | | | | | | 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.
* Signal assignment and route programming procedureorwell962018-07-04
|
* Update nodedb.luaimcasper2018-06-14
| | | correct read/write file binary data
* Bugfixes part 1orwell962018-06-14
| | | | There's something wrong with the new paths, next time build a path validity checker to trace the issue
* Log certain events in a logfile in the world directoryGabriel Pérez-Cerezo2018-02-21
| | | | (also fix the output of /at_sync_ndb)
* Use directory delimter constantorwell962018-01-15
| | | Reported by @kostett, probably the cause of buggy nodedb saving
* Remove path invalidation statement.orwell962017-12-18
| | | | | Caused problems on multiple detector rails in a row, because paths got cleared in-between a train step Also optimize some code
* Do not spam the server chat with messages from /at_sync_ndb and trains going ↵orwell962017-12-18
| | | | | | off_track The off-track warning has moved into the info text of wagons
* Rewrite rail connection system...orwell962017-12-18
| | | | | | | | | ...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)
* Implement sound api and some soundsorwell962017-12-06
| | | | | | | - Level crossing bell - Horns - Subway train driving and door sounds ...to be continued...
* Change name of the node database group in order to clone node database code ↵orwell962017-10-31
| | | | | | 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.
* Prefer saved nodedb node before node loaded from maporwell962017-10-11
| | | | Possibly fixes bug on linuxworks server.
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20