aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
Commit message (Collapse)AuthorAge
* Fix player_to_train_mapping (H#74)orwell962018-12-16
| | | | Entries were not inserted, thus neither damage protection nor teleport-to-train did work
* Fix crashes:orwell962018-12-10
| | | | | 1. when train hit a route, nil access to already cancelled route caused crash 2. fix crash when trying to ensure_init a train that doesn't exist
* Shunt signals (not exactly Ks), along with fixes in other components that ↵orwell962018-12-08
| | | | those rely on
* Apply speed restriction 0.5 indexes later, do not cap tarvelocity by ↵orwell962018-12-04
| | | | speed_restriction
* Remove superfluous "tarvelocity" assignmentsorwell962018-11-20
|
* Remove "couple locks" and apply protection to the actual coupling process, ↵orwell962018-11-10
| | | | and fix permissions on that
* Document fix 0a982b6356b2f4b6a28e74f9f90c4f584169a96dorwell962018-10-29
| | | | Add comment that explains why fix was necessary
* Actually set last_connid to 1, to prevent warningorwell962018-10-29
|
* Handle the case that a train is not initialized (train_ensure_init returns ↵orwell962018-10-29
| | | | | | nil/false) Fixes H#72
* Small fixes which do not have any effectorwell962018-10-29
|
* Improve ATC-LZB-User control interaction, smoothen LZB control operationsorwell962018-10-17
| | | | (prevent flickering view when atc battles against lzb)
* Address H#60, H#17, M#18 and M#7orwell962018-10-17
| | | | | | | duplicate "message" to "msg" make operation panel "cracky" remove inexistent dtime_s parameter add bones:bones to the list of not_blocking_trains nodes
* Properly handle speed restrictionsorwell962018-10-10
|
* Remote Routesetting from Onboard Computerorwell962018-10-10
| | | | + Fix lzb oncoming item deletion/speed restriction
* Properly implement invalidate_all_paths, recheck lzb on aspect changeorwell962018-10-10
|
* Add signal safety control override, restructure control systemorwell962018-10-10
|
* Teleport player to their train every 2 seconds instead of just on_joinplayerorwell962018-08-12
| | | | Solves problem of wagon being unloaded while player sitting inside it because of network lag
* Fix some incompatibility crash for old worldsorwell962018-08-12
|
* Fix ATC rail reversingorwell962018-08-12
|
* Add off-track train flag, fixes wagon object property reset on reversingorwell962018-07-04
|
* Implement trains blocking sectionsorwell962018-06-29
|
* Fix final bugs and to-do's (u.a.save/load system)orwell962018-06-14
|
* Mainly make collisions and coupling workorwell962018-06-14
| | | | Missing: ATC stuff, yaw problems
* Implement collisions. (does not work yet, still code errors)orwell962018-06-14
|
* Implement a reverse path lookup for trains instead of an occupations window ↵orwell962018-06-14
| | | | system
* Fix path_dir to actually be an angle, path item deletion and orientation of ↵orwell962018-06-14
| | | | | | | | wagons The occupation system as it is now will change. For each position, I will save the index in the train's path, and implement a callback system. I need this because the occupation window system will not be enough to cover all use cases (e.g. to make a train stop with it's center or back at a certain position, I need 3 different brake distances, which doesn't fit into the scheme)
* Bugfixes part 1orwell962018-06-14
| | | | There's something wrong with the new paths, next time build a path validity checker to trace the issue
* Occupation System, new train steps, still incompleteorwell962018-06-14
|
* Adapt wagons to new path systemorwell962018-06-14
| | | | Still outstanding: trains
* Restructure path systemorwell962018-06-14
| | | | The changes to the path system have not yet been integrated...
* Add bord computer to trainsorwell962018-01-09
| | | | | | | | Features: - couple/decouple trains from a driver stand - new couple lock system (owner based, overridable by 'train_remove' privilege) - all train operators can now change the inside/outside text, allows for multilines Accessible via right-click menu or by pressing Sneak+Jump keys
* Change controls for trains (again)orwell962018-01-07
|
* Decrease the amount of garbage saved in save filesorwell962018-01-07
|
* Remove path invalidation statement.orwell962017-12-18
| | | | | Caused problems on multiple detector rails in a row, because paths got cleared in-between a train step Also optimize some code
* Do not spam the server chat with messages from /at_sync_ndb and trains going ↵orwell962017-12-18
| | | | | | off_track The off-track warning has moved into the info text of wagons
* Rewrite rail connection system...orwell962017-12-18
| | | | | | | | | ...to support an arbitrary number of connections for rails, which leads to these new features: - switches now get recognized by the trackworker correctly - ability to add real rail crosses During this, I also rewrote the rail registering system and the conway function (important part of path prediction) Note, developers: the track preset format changed, you might need to rewrite them according to the presets in tracks.lua if you wrote your own (possibly breaks advcarts)
* remove superfluous parameterorwell962017-11-27
| | | | ... from update_trainpart_properties call Prohibits flipping of all wagons when extent_h wasn't set
* Add modifiable wagon extentsorwell962017-11-23
| | | | This will be required for advcarts
* Fix multiple track types not working simultaneouslyorwell962017-11-22
| | | | | | | 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.
* Do not punch signsorwell962017-11-14
| | | | For some reason, a sign text gets removed by a train when it drives by. This should fix it.
* Fix entity damageorwell962017-11-02
| | | | Animals from mobs weren't damaged because they have the immortal group set. Instead, we check for the existence of "fleshy".
* Punch non-player objects when they get overridden by a train.orwell962017-10-25
|
* Fix subway train placerorwell962017-10-25
|
* Some workaround fixes for Linuxworks serverorwell962017-10-25
| | | | | Trains no longer get deleted when there's no rail Fast item to create subway train
* Implement multi-occupation in detector.on_node table to finally fix collisionsorwell962017-10-25
|
* Replace many math.floor(x+0.5) calls (or math.floor calls that should be ↵orwell962017-10-25
| | | | those) by custom atround() function
* Fix coupling and collisions in certain casesorwell962017-10-25
| | | | | | 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
* Do not crash when train_pos is nil while checking wagon entity loadingorwell962017-10-11
|
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20
|
* Restructure mod directoryorwell962017-01-04
|