aboutsummaryrefslogtreecommitdiff
path: root/advtrains
Commit message (Collapse)AuthorAge
* Always do zero-barrier check and prevent LZB 0 overruns in movement logicorwell962021-02-10
|
* Fix lots of things around new LZBorwell962021-02-10
|
* Remove pcall wrappers completely, add command to disable advtrains mainlooporwell962021-02-10
|
* Implement a LZB speed lookup table for the path and rewrite velocity controlsorwell962021-02-10
|
* Fix inconsistency between node enter callback and lzb approach callbacksorwell962021-02-10
| | | | (this caused the lzb approach to be called on nodes that have just received an enter event, which is not intended)
* Disable ARS train flag and surrounding usesorwell962021-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
* Use graphical indication for more elements; improve 7-segment displayrelease-2.2.1ywang2021-01-20
|
* Use absolute positioning from the bottom of the screenywang2021-01-19
|
* Some more serializer fixes (backported from new_lzb):orwell962021-01-12
| | | | | | - 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
* Backport ndb format from cellworld to also store the cids in the ndb file; ↵orwell962021-01-12
| | | | integrate ndb in serialize_lib atomic system
* Make advtrains use serialize_lib (save version 4)orwell962021-01-12
| | | | Old save format will be gracefully migrated
* DUMP_DEBUG_SAVE also dumps interlocking dataorwell962021-01-12
|
* fix mis-patched 90+60r crossing connsGabriel Pérez-Cerezo2021-01-10
| | | | Thanks, Maverick2797
* Add ATC "K" commandGabriel Pérez-Cerezo2021-01-07
| | | | | | | 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.
* Change color of max speed indicationywang2021-01-07
|
* Remove advtrains_hud_blank.pngywang2021-01-05
|
* Revert to black background; use "blocks" for the (physical) maximum speedywang2021-01-05
|
* HUD improvementsywang2021-01-04
|
* Minor optimizationsywang2020-12-30
|
* Add demoywang2020-12-27
|
* Minor improvements for speed indicatorywang2020-12-23
|
* Minor improvementsywang2020-12-23
|
* Improve speed indicationywang2020-12-23
|
* Improved HUD texturesywang2020-12-23
|
* HUD improvementsywang2020-12-22
|
* Improved background for speed indicatorywang2020-12-19
|
* Improved speed indicationywang2020-12-19
| | | | | | | | The speed indicator is now shown on 4 lines: Line 1: ATC target speed (blue arrow pointing down) Line 2: Train velocity (black line) Line 3: Speed limit (if any) (red line) Line 4: Next speed limit (red arrow pointing up)
* Use PNG textures for the indication of reverser, lever, control mode, shunt ↵ywang2020-12-19
| | | | mode, and doors
* Redesign train HUDywang2020-12-19
| | | | Some train HUD elements _might_ be replaced in the future.
* Fix 60/90 degree crossing connectionBlockhead2020-12-03
|
* Fix mesecon switch override grouporwell962020-11-23
| | | | Fixes issues with using mesecon switches as route locks
* Workaround to destroy looping soundsBlockhead2020-11-02
| | | | Needed for linetrack boat sound bug
* Add missing recipe: 45_low platformsrelease-2.1.4Blockhead2020-10-19
|
* Remove couple entities when out of range from playersGabriel Pérez-Cerezo2020-10-12
| | | | | Work around the entity flood bug caused by improper engine handling of static_save=false
* Remove last files with CR-LF line endings.Gabriel Pérez-Cerezo2020-10-11
|
* Fix 3-way conns table so traverser doesn't complainBlockhead2020-10-11
| | | | | The remaining patch to make advtrains master stable: we can't have any conns entries without a 'c' member, so make all ["3"] entries into just ["c"] entries.
* Forbid track modification when train, IP or TCB is on it, better handle ↵orwell962020-10-07
| | | | removing of TCBs (H#149)
* Don't allow wagons with non-empty inventories to be destroyed (H#164)orwell962020-10-07
|
* 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.
* Fix manual switching on regular track switches.Gabriel Pérez-Cerezo2020-09-14
|
* Fix issues introduced by changes to switchingBlockhead2020-09-14
| | | | | | | The code I wrote worked only for my y-turnout and 3-way variants because it assumed the variant name == the switching state, which is obviously wrong for the default sw(l|r)(st|cr) variants. I have added a 'switchprefix' property to address this.
* Enable three-way turnouts with proper conns support on all sidesBlockhead2020-09-11
| | | | | | | I chose to make three-way turnouts have 5 conns (last one is not used) so that they can be distinguished from crossings easily without refactoring the code. Three-ways should have their last entry with {["3"]=0} instead as a sort of internal mark.
* Add 3-way turnouts and y-turnouts (both diverging)Blockhead2020-09-11
|
* localize split function to prevent conflicts with the builtin oneGabriel Pérez-Cerezo2020-09-04
|
* Escape fields in wagon properties (H#158)orwell962020-09-04
|
* Fix seating_from_key_helper: use pname instead of player:get_player_name()Relatio2020-08-27
|
* 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.
* Add two new sets of diamond crossing typesBlockhead2020-08-21
| | | | | | | | | | | | | | | | | | | | | | | | Add two new sets of diamond crossings in addition to the current set of perpendicular crossings. Also cleans up the inside edges on the perpendicular set models. All of these varieties have their mirror images, which was previously a problem with the 45/90 crossing. The naming convention for all of these rail types is this: when facing east and param2=0, the angle and direction of the two crossing rails is indicated. So 30l45r means 30 degrees left and 45 degrees right. The mirror image of that would be 30r45l. There is a recipe for each set of crossing types and the trackworker can change geometry within types with left cick, and rotate between two 90 degree rotations with right-click. When left-clicking, the angles move in an intuitive fashion like rotating rails. * The perpendicular set (already existing) has rails that cross at 90 degrees. * The 90+x set has 90 degree (straight, node aligned) rails plus a rail intersecting that at 30, 45 or 60 degrees. * The diagonal set has both rails not axis-aligned, for example 30r-45l, 60l60r. The latter is quite useful for scissors crossovers.