Commit Graph

292 Commits (master)

Author SHA1 Message Date
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
orwell96 b8a3ac038f Re-add option for debugging features and add option to disable collisions 2017-05-30 15:16:56 +02:00
orwell96 5ebadbd6ff Fix collision bug (trains driving through each other) 2017-05-30 14:55:41 +02:00
orwell96 e484654f89 Re-add debug ring buffer and print its contents on a lua crash
When the crash on linuxworks has been fixed, the ringbuffer will go into master and behind an option
also fix last commit
2017-05-30 09:20:01 +02:00
orwell96 74c8784b21 Fix command + Update zip file - Version 1.8 2017-05-22 16:18:24 +02:00
orwell96 d22b9fb011 Add Digtron compatibility
Override digtron's item-place function to be able to place tracks with digtrons.
2017-05-22 15:44:25 +02:00
orwell96 9132c5d996 Fix some 'undeclared assignment' warnings 2017-05-22 15:13:43 +02:00
orwell96 0f14562112 Fix Syntax Error 2017-05-22 15:08:10 +02:00
orwell96 d85f95ad10 Fix issue #40
Was caused by arrowconn not being set. Instructs user to revisit.
2017-05-22 15:01:38 +02:00
orwell96 5fe0ba1f24 Remove the debug setting 2017-05-22 14:59:35 +02:00
orwell96 b6cbc36192 Fix a series of bugs
- Prevent min_iot from becoming a comma value, which caused a major problem on the linuxworks server
- Fix previous commit
- also restore the nodedb file after a crash
Other changes:
- add chatcommand to update the nodedb after using WorldEdit
2017-05-22 14:56:41 +02:00
orwell96 2f2a859e08 Don't invoke conway on a path item that has been over-generated
This breaks ATC systems that are based on wronly switched switches, but fixes a series of bugs (esp. setting train recovery positions at a place where no tracks are)
2017-05-15 12:46:58 +02:00
orwell96 3e67f3c66a Merge pull request #66 from AntumDeluge/eclipse
Ignore Eclipse project files & directories
2017-05-13 23:20:08 +02:00
AntumDeluge 22896641dc Ignore Eclipse project files & directories 2017-05-12 23:19:36 -07:00
orwell96 da884afbb1 write the saved nodedb state back to the map when restoring after a crash
also, print a complete stack trace when an error happens
also, don't replace nodes in the nodedb when worldedit has been used
2017-05-12 21:57:51 +02:00
orwell96 5aaf493cef Remove pos_to_string whereever possible to prevent crashes 2017-05-12 19:59:42 +02:00
orwell96 dbe13e67f1 Relicensing media under CC-BY-SA 2017-05-04 16:50:44 +02:00
orwell96 28717b4d65 Performance improvements: Don't clear paths unless absolutely necessary
instead delete path elements that are too far from the train one-by-one
Also when switching a switch or changing rails, only clear train paths of trains that are nearby.
2017-05-03 16:31:13 +02:00
orwell96 0c7144bcc4 Merge nocrash branch into master and merging it with the unified functions so that restoring works how it should
Also fix minor bugs and an occasional crash with couples
2017-04-29 19:44:43 +02:00
orwell96 331db7ba5f Unify globalstep, load and save of all components into single functions 2017-04-29 19:13:15 +02:00
orwell96 f42b01c74b Add pcall wrapper to prevent server crashes when advtrains throws an error
Instead, read save files again and restore state before the crash
Rebased to latest commit
2017-04-29 14:53:00 +02:00
orwell96 337db2a573 Add Andrew's Cross 2017-04-27 15:33:40 +02:00
orwell96 64dcbad3d2 Fix bug introduced by last commit (revert change) 2017-04-12 15:11:44 +02:00
orwell96 fe8794b353 Add privilege for basic train operation.
This privilege is granted to singleplayer by default, but is not granted on servers. This prevents unexperienced or evil players from breaking automatic train operation on servers.
2017-04-09 15:17:51 +02:00
orwell96 4ea222fd6a record_protection_violation: fix player name not being passed 2017-04-07 23:06:02 +02:00
orwell96 e795f51293 Fix #59 2017-04-05 13:35:39 +02:00
orwell96 0447e43be9 Actually check for protection when placing trains and use the train_place privilege 2017-04-02 17:07:58 +02:00
orwell96 327b12d488 Assert some variable types obtained from lua automation 2017-03-30 22:17:54 +02:00
orwell96 606c129f57 Add support to display text to passengers and on the outside of the train
Outside is currently displayed as infotext. TODO: signs-like draw it on the wagon
FIXME: When object properties are set, for some reason the animation restarts
2017-03-30 21:51:45 +02:00
orwell96 b5a5d9035f Respect protection_bypass privilege, fix crash with areas and properly record protection violations 2017-03-30 21:21:03 +02:00
orwell96 a091ac2e1d Fix privilege enforcement being useless
Privilege violations caused an error message but didn't abort the operation
2017-03-16 22:04:32 +01:00
orwell96 ba0e75a692 Fix Atc arrows pointing into wrong direction 2017-03-12 19:27:40 +01:00
orwell96 b29b88482d update zip (release 1.7) 2017-03-12 12:23:04 +01:00
orwell96 dab50fe064 Screw buttonlike rules for wall signals and use regular rules. 2017-03-12 12:19:18 +01:00
orwell96 e9fb8f9f1b Redo rail models
Use multiple textures for slope objects, include mbb's rail textures and make curves and switches look better. Also add cable template.
2017-03-12 12:19:18 +01:00
orwell96 0dd40c2434 Don't drop items in creative mode when player gets overrun by train 2017-03-11 22:19:01 +01:00