aboutsummaryrefslogtreecommitdiff
path: root/advtrains/nodedb.lua
Commit message (Collapse)AuthorAge
* 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
ngine.setting_getbool("enable_clouds") then engine.set_clouds(true) end end -------------------------------------------------------------------------------- function mm_texture.update_game(gamedetails) if mm_texture.gameid == gamedetails.id then return end local have_bg = false local have_overlay = mm_texture.set_game("overlay",gamedetails) if not have_overlay then have_bg = mm_texture.set_game("background",gamedetails) end mm_texture.clear("header") mm_texture.clear("footer") engine.set_clouds(false) if not have_bg and engine.setting_getbool("enable_clouds") then engine.set_clouds(true) end mm_texture.set_game("footer",gamedetails) mm_texture.set_game("header",gamedetails) mm_texture.gameid = gamedetails.id end -------------------------------------------------------------------------------- function mm_texture.clear(identifier) engine.set_background(identifier,"") end -------------------------------------------------------------------------------- function mm_texture.set_generic(identifier) --try texture pack first if mm_texture.texturepack ~= nil then local path = mm_texture.texturepack .. DIR_DELIM .."menu_" .. identifier .. ".png" if engine.set_background(identifier,path) then return true end end if mm_texture.defaulttexturedir ~= nil then local path = mm_texture.defaulttexturedir .. DIR_DELIM .."menu_" .. identifier .. ".png" if engine.set_background(identifier,path) then return true end end