ywang
fdfb3dba5f
Image optimizations
2020-04-12 16:07:59 +02:00
ywang
ba91ba8109
Fix failure to recognize braking
2020-04-12 16:07:56 +02:00
ywang
314ed9aa0b
HUD improvments
2020-04-12 16:07:16 +02:00
ywang
e043a78c9d
Consider speed limit; minor improvments
2020-04-12 16:07:16 +02:00
ywang
caf53fbafb
Remove dtime limiting
2020-04-12 16:07:16 +02:00
ywang
797544564e
Stable code
2020-04-12 16:07:16 +02:00
ywang
ad0713547c
Improved quadratic function solver; added wrapper for math.sqrt()
2020-04-12 16:07:16 +02:00
ywang
a86677b42f
Fix minor bugs
2020-04-12 16:07:16 +02:00
ywang
be22775cdb
More accurate train logic, but still buggy
2020-04-12 16:07:16 +02:00
ywang
e22262a450
Fix problems related to zero
...
Note: this fix only makes sure that the mod does not throw errors, but
there are currently weird behaviors related to trainlogic.
2020-04-12 16:07:16 +02:00
ywang
2db7eab62e
Update trainlogic to use new LZB function
2020-04-12 16:04:58 +02:00
ywang
0d1c5a873c
Add function to calculate distance until override
...
The function will be used to improve the train movement algorithm.
The changes related to spaces in blank lines is caused by a weird
feature in the text editor.
2020-04-12 16:03:44 +02:00
Gabriel Pérez-Cerezo
fb837a449a
Merge branch 'diagonal_platforms' of https://github.com/Montandalar/advtrains
2020-03-15 12:04:10 +01:00
Blockhead
301dcf953e
Reduce the profile of the platforms by 0.1
...
Currently some trains clip the platform (especially E231
modpack), but they won't after the platform edge is moved
back slightly.
2020-03-15 21:56:42 +11:00
Blockhead
09fda4ffaa
Add 45 degree diagonal platforms with a mesh
2020-03-15 21:51:38 +11:00
Blockhead
3b87ac5372
Delete train if it ends up off track, show a warning
2020-03-03 23:00:20 +11:00
Blockhead
0689c70aac
Save clipboard on item metadata
...
Also a minor user feedback text cleanup
2020-03-03 23:00:20 +11:00
Blockhead
8a08d77166
Remove debugging print statements
2020-03-03 23:00:20 +11:00
Blockhead
378d862572
Draft copy tool
...
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.
2020-03-03 23:00:20 +11:00
orwell96
9d7b21c451
Relicense under AGPLv3 and update information in readme.txt
2020-02-15 22:19:22 +01:00
orwell96
1bb1d825f4
Use minetest.safe_file_write() to atomically save state [Breaks MT4 compat]
2020-01-10 14:08:56 +01:00
Blockhead
c0c6fcf00b
Apply minetest.formspec_escape() to prevent formspec injection (H#143)
2020-01-04 18:33:57 +01:00
orwell96
a8ae0a5332
Simplify and optimize path_get_index_by_offset (cherrypicked)
2019-12-09 11:00:21 +01:00
orwell96
8d794525b3
Fix repeated log file opening/closing (H#136)
2019-12-04 10:09:19 +01:00
orwell96
e0662b2971
use group:wood in bumper recipe (H#120)
2019-12-04 10:09:19 +01:00
Gabriel Pérez-Cerezo
3db3f24857
Tentative fix for #31
...
This might fix #31 by clearing the HUD entry for the player when
joining
2019-12-03 21:35:42 +01:00
Gabriel Pérez-Cerezo
25a335203f
Allow painting coupled wagons
2019-12-01 12:25:06 +01:00
Gabriel Pérez-Cerezo
0518fbbf3a
Merge branch 'master' of https://git.bananach.space/advtrains
2019-12-01 12:09:04 +01:00
Gabriel Pérez-Cerezo
b71c72b4ab
Add experimental liveries feature
...
Please do not use this in your train mods yet, this may be subject to
changes!
2019-12-01 12:08:28 +01:00
ywang
2157a7ef36
Simplify formula for brake distance calculation
2019-11-27 10:37:25 +01:00
orwell96
7082038f75
Don't spawn couple entities when not loaded
2019-11-26 16:43:47 +01:00
orwell96
cf2179dea5
remove obsolete code/comments
2019-11-26 16:01:51 +01:00
orwell96
4ff8e05755
Fix trains not stopping when colliding with environment H#122
2019-11-26 15:49:36 +01:00
Gabriel Pérez-Cerezo
ca4d65050c
Add wagon_width attribute
...
This allows for wider vehicles than trains, such as boats to discharge
the passengers onto the platforms.
2019-11-22 20:29:57 +01:00
Gabriel Pérez-Cerezo
7977776b4a
Changes for linetrack
...
Allows defining a suitable substrate for tracks, and liquid pointable tracks
2019-10-21 16:36:35 +02:00
Gabriel Pérez-Cerezo
2d8c13885a
Shunting mode now couples trains on collision.
...
Trains now get coupled when one of them is in coupling mode.
2019-08-11 20:16:11 +02:00
Gabriel Pérez-Cerezo
1f6038c75a
Add decoupling to luaatc
2019-08-11 17:42:30 +02:00
Gabriel Pérez-Cerezo
d074d3223a
Change API to return the id of a newly created train when discoupling
2019-08-09 19:11:26 +02:00
Gabriel Pérez-Cerezo
95fb122eca
New version 3 save system.
...
This new save system exists to split up the save file into several
smaller ones, to bypass lua limitations.
2019-07-23 20:15:37 +02:00
Gabriel Pérez-Cerezo
91bb555bc2
No longer require server priv for /at_sync_ndb
...
The check for server priv was hidden where no one would have expected
it.
2019-07-17 14:44:36 +02:00
Gabriel Pérez-Cerezo
daba00b6a2
Various small fixes
...
- Also do atomic operations on nodedb
- no longer require Worldedit for at_sync_ndb
- "overrun LZB 0 restriction" should now show where it happened.
2019-07-16 17:26:53 +02:00
Gabriel Pérez-Cerezo
7a6740eb8c
Keep a backup file where stuff is written to when saving
...
This should prevent yet another train service disaster.
2019-07-16 17:17:18 +02:00
orwell96
24e56dbfc2
Railway Time: Basic time counter and utility functions
2019-06-19 09:56:30 +02:00
orwell96
d6cfa7dbf6
Run entity overrun checking only in loaded areas
2019-06-05 15:49:53 +02:00
orwell96
ff94129761
Fix occurences of old lzb_invalidate
2019-04-23 22:30:33 +02:00
orwell96
b56cda8695
Fix remote routesetting
2019-04-16 12:59:17 +02:00
orwell96
ea33ad9de0
Move LZB system to core and unify approach callback mechanism
2019-04-16 09:16:44 +02:00
Pedro Gimeno
c50224e05c
Set wagon pitch on slopes
2019-04-06 13:38:00 +02:00
orwell96
1227456d46
Ugly workaround for green signals bug
2019-03-15 17:39:31 +01:00
orwell96
7149137990
Add setting for death behavior and implement damage checks better
2019-03-09 11:29:22 +01:00