Commit Graph

265 Commits (22896641dcefa5a3b3c7caba00c1b3773c3052fd)

Author SHA1 Message Date
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
orwell96 4187d2504c "Sneak" instead of "Shift" for the sneak key 2017-03-09 13:22:11 +01:00
orwell96 1137dad2fe Update manual and include everything in repo 2017-03-09 12:05:50 +01:00
orwell96 babb41c368 Remove blend1 files cluttering the assets directory 2017-03-08 14:25:42 +01:00
orwell96 272c7b1390 Improve debug outputs of couples and increase maximum distance 2017-03-03 10:56:58 +01:00
orwell96 71ff39637f Only get on by walking in when there's a platform, improve get off handling 2017-02-28 16:25:32 +01:00
orwell96 d51a00c823 Add passive component naming 2017-02-28 14:38:59 +01:00
orwell96 aa2ec0fc03 Add ceiling-mounted signal
This is the wall signal as ceiling variant. Because the trackdb can only save 4 rotation values, we need a ceiling version of this.
2017-02-28 13:39:38 +01:00
orwell96 be1ac1e68e Fix collision issues 2017-02-21 11:39:13 +01:00
orwell96 3b354fb085 Also check positions on high platforms at entering doors 2017-02-21 11:38:17 +01:00
orwell96 56cbfc2c85 Only place rails on solid nodes 2017-02-21 11:02:25 +01:00
orwell96 6b5f5ea345 Fix manual operation of mesecon switches 2017-02-20 11:31:14 +01:00
orwell96 e4e76322ba Fix crash when ATC rail exists but no command is saved.
Crash was caused by a concatenation for a debug message. atprint can handle nil if passed as separate parameter
Setting the train's atc command to nil just means that there is no command.
2017-02-20 11:14:37 +01:00
orwell96 e97287614c don't pass unexistant variable to train_step_b (fixes #46) 2017-02-17 15:30:34 +01:00
orwell96 38fecddff9 use mesecons_switch as correct dependency for luaautomation 2017-02-15 21:29:34 +01:00
orwell96 5eac1d1d27 fix crash on seatpc nil 2017-02-15 21:19:30 +01:00
orwell96 5b7a06fe0f fix #34 - end_index not set when step_a returned in phase 2 2017-02-15 19:45:43 +01:00
orwell96 3f382974b8 Proper implementation for getting on by walking into train, rework damage and player controls in train, fix death and join bugs, do not spawn bones on death 2017-02-09 00:13:36 +01:00
orwell96 4abb967f92 Merge PR from gpcf (Get on by walking in) 2017-02-07 22:10:48 +01:00
orwell96 9f862a158c Use identical proxy environment with swapped metatable to not having to setfenv every function in F. 2017-02-07 22:06:39 +01:00
orwell96 3f54727e4f Check if node is actually loaded before querying get_meta()
Known to cause a segfault in engine sometimes.
2017-02-05 22:54:31 +01:00
orwell96 d84c23f084 Do not invalidate paths unnecessarily
Recomputing paths needs time and computing power, so do this only when really necessary
2017-02-05 20:41:31 +01:00
orwell96 648e501f46 Fix "lock couples" checkbox on wagon properties form 2017-02-05 20:14:37 +01:00
orwell96 b31229d62e Fix ATC components being randomly ignored by trains.
Also add warnings to off_track stuff
Also pack for release
2017-02-05 17:57:46 +01:00
Gabriel Pérez-Cerezo 746e328b7b
Merge branch 'master' of https://github.com/orwell96/advtrains 2017-02-05 16:32:53 +01:00
orwell96 c79be69aef Fix itrainmap 2017-02-05 13:21:06 +01:00
orwell96 af14d57557 Fix LuaAtc Interrupt saving
The timer was loaded, but not saved, leading to it being counted from 0 upwards every restart, which of course broke interrupts.
2017-02-05 12:42:39 +01:00
orwell96 d4975a7003 Even more bugfixes
- add translations of all index values to invert_train
- fix on_leave_node callbacks not being called when train reverses
- fix callbacks on train creation and destruction
- Fix warning when saving ATC rail info
2017-02-04 21:09:20 +01:00