aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* 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.
* Add models for all diamond crossing varieties to .blendBlockhead2020-08-21
| | | | | | This was actually 34 individual commits over the course of a month but is best to leave as one commit. It is also now a compressed .blend file (an option available inside blender).
* add maximum length parameter to split_at_fc and split_off_locomotiveGabriel Pérez-Cerezo2020-08-21
|
* Add command to split off locomotiveGabriel Pérez-Cerezo2020-07-28
|
* Complete Documentation on return value of split_at_fc()Gabriel Pérez-Cerezo2020-07-28
|
* Document new luaatc commandsGabriel Pérez-Cerezo2020-07-28
|
* add train_length command to luaatcGabriel Pérez-Cerezo2020-07-27
|
* Add function to step through freight codesGabriel Pérez-Cerezo2020-07-26
|
* add split_train_at_fc luaatc commandGabriel Pérez-Cerezo2020-07-26
| | | | | | This command splits the train at the second non-empty FC it encounters, taking with it the first few freight cars that all go to the same destination.
* add Freightcodes to wagon properties formspecGabriel Pérez-Cerezo2020-07-26
|
* Do not unload wagons when a player that is logged in sits in itrelease-2.1.3orwell962020-07-26
|
* Add low 45 degree platformsBlockhead2020-07-25
| | | | | | I would like to take this opportunity to credit Och_Noe as the original author for the plans to the 45 degree platform model. I failed to credit him properly when the first lot of 45 degree platforms were added.
* subway trains: display up to two digitsHume22020-07-25
| | | | | | Additionally, as an addition by gpcf, trains having an S as the first letter of their LN get the number behind the S displayed as a line number
* Merge branch 'master' of bananach.space:advtrainsGabriel Pérez-Cerezo2020-07-24
|\
| * DISCARD ON MERGE!: Temporary compatibility fix: translate signal aspects ↵orwell962020-07-23
| | | | | | | | back to old format if they are in the new format, to allow reverting from new_lzb
* | Add client side translations by ywangGabriel Pérez-Cerezo2020-07-19
|\ \ | |/ |/|
| * [BREAKING] Use client-side translations instead of intllib; add zh_CN ↵ywang2020-07-19
| | | | | | | | | | | | | | | | translations * Client-side translations is used instead of intllib. [Breaks MT4 compat] * Existing locale files have been moved to advtrains/locale and named with the format advtrains.[lang].tr * Add zh_CN locale. (requires a font that supports CJK text)
* | Fix error in workaround causing train entities to despawn.Gabriel Pérez-Cerezo2020-07-19
| |
* | Merge branch 'master' of bananach.space:advtrainsGabriel Pérez-Cerezo2020-07-19
|\|
| * Add workaround to unload wagons that are too far away from playersorwell962020-07-12
| |
* | Move recipes to train_track and add crossing recipesBlockhead2020-07-10
| |
* | Make using the default tracks optional, even in submodsBlockhead2020-07-10
|/ | | | | | | | | | If advtrains_train_track is disabled, don't register any tracks that use its model like the LuaATC automation rail, point speed restriction rail, station/stop rail. For LuaATC, the definition for firing an event when a train runs over the rail needs to be moved into the common defs so that other mods like linetrack can use that as an interface.
* optimize path_get_index_by_offsettechniX2020-07-10
| | | | | | | Instead of calling path_get_adjacent twice (which calls path_get twice, i.e. 4 times overall), we call path_get directly only 2 times with min and max indices to generate all the path we need for calculations.
* Add "Fallback state" for freed routes, move p_mesecon_iface.lua to coreorwell962020-07-07
|
* Add perpendicular and 45/90 degree crossing railsBlockhead2020-07-06
| | | | | | | | | | | | | | Add a set of new models for crossings to make some new track arrangements possible. This commit adds perpendicular crossigns that can be rotated at any angle: 30/45/60/90 and 45/90 degree crossings in two rotations. In future, further crossing types can be added to the blender file. Add the blender file in rail_crossings.blend that is the source of these files and which refers to the texture inside advtrains_train_track. Add a set of prototypes for rail crossings to advtrains/tracks.lua and register the new crossings in advtrains_train_track.
* fix typo in luaautomationGabriel Pérez-Cerezo2020-07-02
|
* Fix access control to wagon propertiesBlockhead2020-06-29
| | | | | | | Previously, players were able to open the wagon properties of any wagon at all through the wagon properties button on the inventory formspec and through the wagon buttons on the onboard computer. Add a check for ownership before allowing players to open wagon properties.
* Add autocouple modeGabriel Pérez-Cerezo2020-06-29
| | | | | | | The shunting mode no longer makes trains couple, since it was meant for other purposes. For autocoupling, the new autocoupling mode is used. If trains are in autocouple mode, they couple when they collide with another train.
* comment out annoying debug infoGabriel Pérez-Cerezo2020-06-14
|
* Merge branch 'master' of bananach.space:advtrainsGabriel Pérez-Cerezo2020-06-14
|\
| * Workaround to handle split points (dt. aufgefahrene Weichen), fixing H#77orwell962020-06-10
| |
* | display oncoming lzb speed restrictions in HUDGabriel Pérez-Cerezo2020-06-14
|/
* Merge branch 'wagon_prop_formspec' of https://github.com/Montandalar/advtrainsGabriel Pérez-Cerezo2020-06-08
|\
| * Remove debugging print statementBlockhead2020-04-12
| |
| * Add road numbers to wagon properties, bordcomBlockhead2020-04-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A road number is used to allow users to set their own wagon numbers other than the internal IDs assigned by advtrains. A railway company would typically keep a roster of what rollingstock it has in road numbers. The road number can be set on the wagon properties formspec. It is displayed above the wagon's inventory icon in the onboard computer as a button, which will then open the wagon properties on that wagon. Road numbers might be displayable as additional text entities on the wagon like signs. Currently opening the wagon properties (and sometimes onboard computer) formspecs can be quite unreliable (at least on windows), so I hope that closing the wagon 'main menu' before opening other formspecs helps that reliability. It seems to be an upstream bug.
| * Show the wagon properties button only to the ownerBlockhead2020-03-18
| |
| * Use a standard wagon inventory formspecBlockhead2020-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This new formspec also allows access to the wagon properties. Once whitelisted in the wagon properties, other players can access its inventory. Note on 'useless use' of OO: I tried passing just the wagon ID and avoiding using the `self` object in order to bypass the need to look up the lua entitie out of the list, but it ended up retrieving nil data. The best way to solve this overhead might be to wait for some kind of better way upstream in minetest's lua API to get entities, or to keep a central record of entities. Either way, the solution is outside the scope of this commit.
* | document shunting mode, add unset_shunt to luaatcGabriel Pérez-Cerezo2020-06-08
| |
* | Fix trains flipping when autocouplingGabriel Pérez-Cerezo2020-06-08
| |
* | Fix minetest.after() loop between ↵orwell962020-06-05
|/ | | | ARS->update_route->update_signal_aspect->invalidate_path
* Merge branch 'diagonal_platforms' of https://github.com/Montandalar/advtrainsrelease-2.1.2Gabriel Pérez-Cerezo2020-03-15
|\
| * Reduce the profile of the platforms by 0.1Blockhead2020-03-15
| | | | | | | | | | | | Currently some trains clip the platform (especially E231 modpack), but they won't after the platform edge is moved back slightly.
| * Add 45 degree diagonal platforms with a meshBlockhead2020-03-15
| |
* | Get rid of the "Subway Train" item (was an ugly hack anyways, and is ↵orwell962020-03-08
| | | | | | | | obsolete now)
* | Delete train if it ends up off track, show a warningBlockhead2020-03-03
| |
* | Save clipboard on item metadataBlockhead2020-03-03
| | | | | | | | Also a minor user feedback text cleanup
* | Remove debugging print statementsBlockhead2020-03-03
| |
* | Draft copy toolBlockhead2020-03-03
|/ | | | | | | | | | | | | | | | | | | | | | | | | The copy tool copies a train to a global clipboard. It copies the Line number, Routing code, inside text and outside text. It copies the kinds of wagons in the train and whether they are flipped around. Pasting with the copy tool will conditionally flip the train such that 'your front' of the train, rather than the absolute front of the train, is what is output. The new train is oriented to travel forward with the placing player's view. Conditons are: - Multi-unit/push-pull train (= has locomotives on both ends): Never flipped - Locomotive-hauled train (= has one end with a locomotive): Flipped so that the locomotive is always at the front. If the locomotive points long hood forward, it will still point long hood forward. - Rake of wagons (= has no locomotives on ends): Flipped according to which end of the train the player copies from. If the player is towards the back (wagon out of train divded by total wagons > 0.5), then the back becomes the new front. If the player is towards the front, no change.
* Relicense under AGPLv3 and update information in readme.txtorwell962020-02-15
|