Commit Graph

376 Commits (254c32e304a4f279bf99e460727daf1b78050c47)

Author SHA1 Message Date
orwell96 254c32e304 Fix yaw calculations, track placement orientation and speed up direction lookup functions 2018-06-14 17:39:42 +02:00
orwell96 24b0639c5f Mainly make collisions and coupling work
Missing: ATC stuff, yaw problems
2018-06-14 17:39:42 +02:00
orwell96 5dca155333 Implement collisions. (does not work yet, still code errors) 2018-06-14 17:39:42 +02:00
orwell96 b420a71939 Implement a reverse path lookup for trains instead of an occupations window system 2018-06-14 17:39:42 +02:00
orwell96 caf2bda7bc Fix path_dir to actually be an angle, path item deletion and orientation of 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)
2018-06-14 17:39:42 +02:00
orwell96 139a26fccc Bugfixes part 1
There's something wrong with the new paths, next time build a path validity checker to trace the issue
2018-06-14 17:39:42 +02:00
orwell96 30e98520e7 Occupation System, new train steps, still incomplete 2018-06-14 17:39:42 +02:00
orwell96 064a454117 Adapt wagons to new path system
Still outstanding: trains
2018-06-14 17:39:42 +02:00
orwell96 3420a1a912 Restructure path system
The changes to the path system have not yet been integrated...
2018-06-14 17:39:42 +02:00
Gabriel Pérez-Cerezo da0e7ac756
make platform creation possible from other mods 2018-06-10 17:40:37 +02:00
Gabriel Pérez-Cerezo 38d10acca2
Merge branch 'master' of https://github.com/orwell96/advtrains 2018-06-10 17:30:50 +02:00
orwell96 8d8e8c1553
Write something into description.txt 2018-05-25 18:25:24 +02:00
orwell96 1feae7a1ea Add digiline interface and is_passive function to LuaATC 2018-04-25 17:14:03 +02:00
orwell96 8b576357ef Rework the privilege system completely
See privilege_guide.txt for information
2018-03-14 20:57:07 +01:00
Gabriel Pérez-Cerezo 3e29cba6af
Don't blame me for the sounds 2018-02-22 11:09:03 +01:00
Gabriel Pérez-Cerezo e22e8ad0b9
fixed unmerged stuff 2018-02-22 11:06:22 +01:00
Gabriel Pérez-Cerezo 8ca7325d7c
Merge https://github.com/orwell96/advtrains into log 2018-02-22 11:03:53 +01:00
Gabriel Pérez-Cerezo 481f6218a8 Log certain events in a logfile in the world directory
(also fix the output of /at_sync_ndb)
2018-02-21 20:03:34 +01:00
orwell96 4c512f1dc5
Allow wagon owners to drive their trains #2
The check was missing at check_seat_group_access
2018-02-20 16:39:31 +01:00
orwell96 e9322075a3
Allow wagon owners to control their own trains
...even without the train_operator privilege
This still doesn't allow them to control switches, but whatever...
2018-02-20 16:22:31 +01:00
Gabriel Pérez-Cerezo 81d637dc76
added separate logging for railway networks 2018-02-18 22:52:57 +01:00
orwell96 06cdb14f3d
Do not crash when player gets on a train while it`s turning 2018-02-07 22:29:08 +01:00
orwell96 c93a5bf390 Simplify /at_reroute
It is not necessary to reload the save files, because there already is a function to invalidate train routes e.g. when turnouts are switched
2018-01-23 13:14:40 +01:00
orwell96 418c026038 Correct discouple position
Discouple entity was falsely placed at the position of the wagon
instead of at its end
2018-01-22 22:44:55 +01:00
orwell96 8ef6e9a529
Fix crash
IDK why this happens, but it's not important.
2018-01-17 20:15:06 +01:00
orwell96 fa7f05fd0c
Actually use the static_save property
My PR on this was merged months ago, but i've just noticed that i'm not using it yet
2018-01-15 22:17:56 +01:00
orwell96 e9946d98ac Relayout Wagon Properties form
The button wasn't visible on the screen anymore
2018-01-15 14:45:51 +01:00
orwell96 4049fca8ca
Revert assign_to_seat_group order on subway train
as train_operator on Linuxworks, it often happens that you accidentally manually drive a subway train.
This is more effort to get to the drivers seat, but is how the behavior was for the last 6 months
2018-01-15 13:39:49 +01:00
orwell96 11da67f426
Add "seat_access" to saved fields
Fixes seat access properties not being saved
Reported by Och_Noe in Linuxworks Server
2018-01-15 13:35:50 +01:00
orwell96 27afd89d1b
Use directory delimter constant
Reported by @kostett, probably the cause of buggy nodedb saving
2018-01-15 13:33:43 +01:00
orwell96 7507dbba3a Add train_operator privilege check on discouple 2018-01-09 22:04:25 +01:00
orwell96 79da249c3d Add bord computer to trains
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
2018-01-09 21:30:56 +01:00
orwell96 33a8f0f570 Move driving_ctrl_access property to seat group
there's now a more strict check for the train_operator privilege
Also added custom reasons on getting on a train.
2018-01-09 18:30:29 +01:00
orwell96 23da60848a Merge branch 'master' of https://github.com/orwell96/advtrains 2018-01-07 20:54:01 +01:00
orwell96 ae88f29481 Don't use looped sounds on subway
(causes engine bugs with dangling sound handles)
2018-01-07 20:52:15 +01:00
orwell96 1f26781b6a Change controls for trains (again) 2018-01-07 20:41:48 +01:00
orwell96 07442cfe8f Decrease the amount of garbage saved in save files 2018-01-07 19:00:43 +01:00
mbb addd7d0b48 steam locomotive: Add sounds and improve textures 2017-12-23 10:12:14 +01:00
orwell96 e3b7046968 Remove path invalidation statement.
Caused problems on multiple detector rails in a row, because paths got cleared in-between a train step
Also optimize some code
2017-12-18 23:44:01 +01:00
orwell96 8a51a10a61 Fix detector lookup in ATC rails 2017-12-18 23:26:01 +01:00
orwell96 09838252fe Do not spam the server chat with messages from /at_sync_ndb and trains going off_track
The off-track warning has moved into the info text of wagons
2017-12-18 23:20:29 +01:00
orwell96 46c4447da0 Rewrite rail connection system...
...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)
2017-12-18 23:09:23 +01:00
orwell96 faa60e2bd4 Use preferred rail orientation algorithm also for double connections 2017-12-18 12:39:38 +01:00
orwell96 cd0aaa53a0 Move train_load() function into advtrains_train_track 2017-12-18 12:21:54 +01:00
orwell96 ae3452a39c
Try to fix occasional crash when placing wagons 2017-12-17 13:21:56 +01:00
mbb 875eb90acb Improve textures and models of industrial train and add new more powerful industrial engine 2017-12-12 22:28:57 +01:00
orwell96 e9c51dfab4
Make sure an old_velocity is always passed
Fixes crash on placing a new subway wagon
2017-12-06 21:27:04 +01:00
orwell96 dc67ff7226 Implement sound api and some sounds
- Level crossing bell
- Horns
- Subway train driving and door sounds
...to be continued...
2017-12-06 13:23:55 +01:00
orwell96 be8aca9fb8 Remove zip file and makefile
These are not needed anyway
2017-11-29 17:23:47 +01:00
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