orwell96
83df46d786
Change name of update_animation function
...
I will use this for sounds, and so it needs to be changed to a more general name
2017-11-29 17:20:46 +01:00
orwell96
7681de96c9
remove superfluous parameter
...
... from update_trainpart_properties call
Prohibits flipping of all wagons when extent_h wasn't set
2017-11-27 17:46:01 +01:00
orwell96
a3d3520fdb
Do not modify rails that should not be modified
...
... when placing tracks, such as slopes
Fixes slopes being replaced by curves.
Also, check the node below for connection (does not check rely, but that would be uneccessary)
2017-11-24 12:31:46 +01:00
orwell96
ef076d6435
Merge branch 'master' of https://github.com/orwell96/advtrains
2017-11-24 12:07:23 +01:00
orwell96
3d29635a8f
Correct yaw to preferred rail direction calculation
2017-11-24 12:06:46 +01:00
orwell96
7ea41df5d9
Preserve the player's looking direction
...
Contributed by @gpcf
2017-11-23 19:59:21 +01:00
orwell96
d78d07589d
Add modifiable wagon extents
...
This will be required for advcarts
2017-11-23 17:00:39 +01:00
orwell96
5fc6cc7f5b
Fix multiple track types not working simultaneously
...
Bug was caused by the drives_on table of every train and advtrains.all_tracktypes
sharing the same reference, which caused advtrains.all_tracktypes to become the
intersection of all train drives_on's in the world.
However, this did become empty, causing nothing to work anymore.
2017-11-22 23:13:42 +01:00
orwell96
2d4833b5a8
do not register wagons in the advtrains namespace automatically
...
One step towards advcarts compatibility
2017-11-22 22:16:08 +01:00
orwell96
409e2125c9
Make trackplacer align rails by any tracks, not just by tracks with the same nnpref
...
This finally fixes the need to rotate atc rails and bumpers.
Also prefers rotation that is closer to the player's look dir (placed bumpers will face the player)
2017-11-22 20:46:36 +01:00
orwell96
ce73643b10
Do not punch signs
...
For some reason, a sign text gets removed by a train when it drives by.
This should fix it.
2017-11-14 23:16:08 +01:00
orwell96
17ee62dc64
Fix occasional crash in discouple on_punch
...
I think the issue is caused by the new animal damage code...
2017-11-14 22:08:56 +01:00
orwell96
480011c781
Fix entity damage
...
Animals from mobs weren't damaged because they have the immortal group set.
Instead, we check for the existence of "fleshy".
2017-11-02 18:00:38 +01:00
orwell96
9294e770ca
Change name of the node database group in order to clone node database code 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.
2017-10-31 13:52:32 +01:00
orwell96
cac7753158
Punch non-player objects when they get overridden by a train.
2017-10-25 14:04:20 +02:00
orwell96
3659fa9e63
Fix subway train placer
2017-10-25 13:31:01 +02:00
orwell96
c5256fb3aa
Some workaround fixes for Linuxworks server
...
Trains no longer get deleted when there's no rail
Fast item to create subway train
2017-10-25 12:34:49 +02:00
orwell96
e4b3d293d2
Add missing documentation for set_line
2017-10-25 12:00:30 +02:00
orwell96
1495d3b49f
Update readme.txt
2017-10-25 11:55:42 +02:00
orwell96
f1a8b4f505
Implement multi-occupation in detector.on_node table to finally fix collisions
2017-10-25 11:49:34 +02:00
orwell96
1f9a9062e0
Replace many math.floor(x+0.5) calls (or math.floor calls that should be those) by custom atround() function
2017-10-25 10:51:19 +02:00
orwell96
c67770833b
Fix coupling and collisions in certain cases
...
If a train moved towards another train, and the other train's step was executed after the first one's, the trains did eventually not collide.
Fix by moving the enter_node and collision check to step_b
Also change some couple behavior
2017-10-25 10:33:41 +02:00
Gabriel Pérez-Cerezo
f228e2d30e
Moved default train track to separate mod, for integration with advcarts.
2017-10-25 09:52:10 +02:00
orwell96
291da56aa2
Fix last commit
2017-10-23 14:02:40 +02:00
orwell96
850d8ac570
Fix continous object_property modification
...
This problem caused flickering of door animations on subways.
2017-10-23 13:56:59 +02:00
Gabriel Pérez-Cerezo
11d6a12ce7
Set wagon line number
2017-10-23 13:40:20 +02:00
orwell96
be771d9413
Prefer saved nodedb node before node loaded from map
...
Possibly fixes bug on linuxworks server.
2017-10-11 12:45:37 +02:00
orwell96
6ade65b6d6
Merge remote-tracking branch 'lemon-melon-repo/master'
2017-10-11 12:32:23 +02:00
orwell96
0dfb0fce22
Do not crash when train_pos is nil while checking wagon entity loading
2017-10-11 11:53:14 +02:00
orwell96
b6a5620cd3
Fix error cascade due to inexistent drb_dump when debugging is disabled
2017-10-11 11:22:35 +02:00
rubenwardy
d65c4916ce
Remove zip release files, move mod to root, exclude assets from Makefile ( #92 )
2017-09-20 18:05:04 +02:00
MBB
b75c83ea43
Merge PR from mbb - Improve models and textures
2017-08-24 19:26:40 +02:00
orwell96
6ddf3fed14
Repack for gpcf's PR
2017-08-15 14:36:53 +02:00
Gabriel Pérez-Cerezo
9826161a14
Added command to reroute trains
2017-08-15 14:35:42 +02:00
Gabriel Pérez-Cerezo
c894dee7ef
Fixed #86
2017-08-15 14:35:41 +02:00
lemon-melon
c184c00f26
Add speed as number in km/h to train hud
2017-07-15 16:04:08 +01:00
lemon-melon
efc319f877
Add m/s to km/h helper function
2017-07-15 16:01:15 +01:00
orwell96
a34ff7664a
Add command to throw all players out of trains, fixes #78
2017-06-12 21:13:53 +02:00
orwell96
7431b40073
Update Zip - Release 1.8.3
2017-06-08 14:34:36 +02:00
orwell96
05704ac016
Fix broken door animations caused by continuous set_object_properties() messages sent to client
...
... which each time caused the animation to be reset
2017-06-08 14:20:40 +02:00
orwell96
af46d180f8
lower capacity of freight cars
2017-06-08 11:13:53 +02:00
orwell96
3abd0f0e34
Change log level of save_all message to atprint()
2017-06-08 11:07:45 +02:00
orwell96
e1fce28fac
Do not clear the F table when running the init code fails
2017-06-08 11:05:24 +02:00
orwell96
d78450bb7c
Merge pull request #67 from AntumDeluge/settings
...
Replace deprecated methods
2017-06-08 10:52:36 +02:00
orwell96
b0580176b4
Merge pull request #75 from AntumDeluge/digtron
...
Check if 'digtron' global exists before calling in condition
2017-06-08 10:52:03 +02:00
AntumDeluge
f6b00f882c
Check if 'digtron' global exists before calling in condition:
...
Fixes 'Undeclared global variable "digtron"'.
2017-06-07 17:38:25 -07:00
AntumDeluge
7db4a5f039
Replace deprecated methods:
...
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
2017-06-07 03:53:52 -07:00
gpcf
92af0b53e5
Add loading/unloading rails ( #63 )
...
Pull request by gpcf
Will update zip file with next release
2017-05-31 21:32:05 +02:00
orwell96
93250ca3a2
Fix still broken ndb restoring, and make sid() honor nil values
2017-05-31 15:55:45 +02:00
orwell96
ca6989b560
Fix detector rails changing to default orientation
...
Release 1.8.1
2017-05-30 15:19:24 +02:00