Commit Graph

172 Commits (master)

Author SHA1 Message Date
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
orwell96 61e48fff28 Commit 1.6.2
- Add some more stuff to API for LuaATC rails
- Warn on strange events even if debug info is disabled
- save atlatc on shutdown too
- fix detector rails in unloaded chunks
- do not fail silently in simple ATC rails
2017-02-04 18:35:34 +01:00
orwell96 b3ce833df8 fix up stuff in itrainmap 2017-02-03 20:43:46 +01:00
orwell96 328d5054a1 Revert change to node pos hashes, and rewrite trackdb to use individual coordinates
The precision of integers was not sufficient for saving pos node hashes in most cases, leading to strange bugs.
This fixes broken ATC rails, broken LuaAutomation stuff and trackdb on Windows.
Probably also fixes trains randomly stopping.
2017-02-03 20:40:30 +01:00
orwell96 a72dda17be Add quick position lookup by punching nodes 2017-02-03 15:40:44 +01:00
orwell96 f74ef2a456 add wallmounted light signal 2017-02-03 14:14:45 +01:00
orwell96 82efe2e773 Fix itrainmap not working 2017-02-03 10:27:34 +01:00
orwell96 4882abb1c0 Merge PR from mbb: add better textures and crafts 2017-02-02 23:07:09 +01:00
mbblp 54b78023d7 add better textures and crafts 2017-02-02 23:06:24 +01:00
orwell96 bcf82ed70d Add documentation and pack for release 2017-02-02 22:26:43 +01:00
orwell96 948482a99e LuaAutomation: Add interrupt to the ingame API and implement initialization code handling and env management 2017-02-02 21:14:20 +01:00
orwell96 b19033b224 LuaAutomation - Basic component implementation
Implements the base code for LuaAutomation, an ATC rail and a punch-operated 'operation panel' as well as interface for passive components.
Changes in advtrains code where neccessary.
Supported passive components are light signals, switches and mesecon switches
2017-02-02 17:17:39 +01:00
orwell96 a8f9e3d43e Fix collision to work with pos node hashes 2017-02-02 16:39:16 +01:00
orwell96 f6d1157ba1 Lua automation - initial incomplete coding 2017-02-02 00:02:11 +01:00
orwell96 78e936bea7 Replace all table indices that were pos_to_string strings with node hashes.
Lua table string lookup consumes about 10 times more time than numeric indices
2017-01-31 20:52:02 +01:00
orwell96 01f0d2c445 Join itrainmap mod into the modpack 2017-01-31 20:36:38 +01:00
orwell96 3ca1115142 Remove lua_atc from advtrains main mod. 2017-01-31 20:36:03 +01:00
orwell96 1648de4114 Limit dtime to prevent trains moving too far in a single step
and update zip
2017-01-29 21:50:11 +01:00
orwell96 90390dfc98 Add getter calls for raw nodedb
(required for itrainmap mod)
2017-01-29 21:24:40 +01:00
orwell96 4b63e8d9d6 Fix wagon properties not saved on button click 2017-01-29 21:24:03 +01:00
Gabriel Pérez-Cerezo bfd24ee43a
Found out why collision box does not fit train 2017-01-29 12:52:51 +01:00
Gabriel Pérez-Cerezo 5f01cd2d5a
Added getting on and off by walking in and out. Default seat on subway is now passenger seat. 2017-01-29 12:37:47 +01:00
orwell96 724b03abb9 Fix a crash, update translations and zip file 2017-01-28 17:58:19 +01:00
orwell96 83c859b13a Multiple major changes:
- implement wagon properties and seat group access check
- fix a server warning about unassigned variable
- refill advtrains.detector.on_node every step
- reorder train step function(s):
  - fixed bug that some atc rails were not recognized
  - saving some extra calculations
  - integrate path prediction directly to step functions and separate it
  (also see comment directly above train_step_a())
- add couple lock feature (can't couple or discouple from wagon with locked couples)
- ...
2017-01-28 16:46:24 +01:00
orwell96 262f425966 remove tunnelborer
better now than too late.
use 'digtron' for more realistic functionality.
2017-01-25 22:06:54 +01:00
orwell96 e322e00e3d Document door animation parameters 2017-01-25 21:55:40 +01:00
orwell96 54b566e7a7 Add forced get-on/off to prevent trains being unusable due to closed doors.
else you would be able to lock yourself out of trains or lock players in trains with no escape.
2017-01-25 21:38:08 +01:00
orwell96 ffc49f0972 Rewrite seating system
Players no longer need to worry where to sit down.
2017-01-25 21:23:54 +01:00
orwell96 bd0a4a51b8 Fix typo that caused crash 2017-01-25 12:26:43 +01:00
orwell96 edc7f1ec5f Fix find&replace mistake that broke ATC command interpretation 2017-01-24 21:10:53 +01:00
orwell96 29886d5657 Fix crash when train went off track 2017-01-24 20:41:37 +01:00
orwell96 a2d0b1b8f2 Create new models and textures for japanese train 2017-01-24 19:09:33 +01:00
orwell96 631e77b189 Do not recover wagons from minetest's static storage
Since missing wagons are spawned anyway by update_trainpart_properties, this only causes visible trouble when a train gets into loaded area. also avoids placing entities into unloaded terrain randomly.
2017-01-23 21:36:38 +01:00
orwell96 fac8b518c9 Add intllib support and German translation 2017-01-23 21:29:59 +01:00
orwell96 203a36a5eb Merge branch 'master' of https://github.com/orwell96/advtrains 2017-01-19 20:36:00 +01:00
Gabriel Pérez-Cerezo 647b3c8a4c
Removed last occurrence of minetest.env 2017-01-18 23:28:23 +01:00
Gabriel Pérez-Cerezo fc67d4531a
Merged priv 2017-01-18 23:22:06 +01:00
orwell96 6060556796 Make signals work with the nodedb again 2017-01-18 21:19:03 +01:00
orwell96 7ab4154216 Add 'collision mercy' to get stuck trains out of walls.
Also change the collision logic so that the collision mercy can't be activated accidentally.
2017-01-18 20:51:47 +01:00
orwell96 f7dbd932ca Update manual 2017-01-18 19:04:02 +01:00
orwell96 f52b67a37c Add door controls and ATC commands 2017-01-18 19:03:27 +01:00
orwell96 d73289237e Make 'print debug messages' a setting 2017-01-18 17:50:40 +01:00
orwell96 ea01c9605c Update readme.txt with contributions 2017-01-17 22:34:15 +01:00
orwell96 2f5ebd63c3 Add detailed steam engine contributed by mbb and Krokoschlange 2017-01-17 22:31:29 +01:00
orwell96 262826fb8c Correct view offset and wagon_span on new subway wagon 2017-01-17 22:22:30 +01:00
orwell96 b6e2aeea71 Add animation for steam engine
I needed to completely rewrite the animation because irrlicht couldn't handle the animation NathanS created.
2017-01-17 21:54:50 +01:00
orwell96 9c400f7d43 Model, animate, texture and integrate new subway wagon
engine follows!
2017-01-17 20:02:25 +01:00
orwell96 275579c364 Don't crash when wagons do not exist but show a warning instead 2017-01-17 15:29:37 +01:00
orwell96 b649ea5fe4 replace trackdb by nodedb
- trackdb is kept for large rail networks to still work but not saved anymore
- saving node name and param2 instead of track connections, so also signals can be saved.
- small serialization format
- fast access times, almost no redundancy
2017-01-16 20:09:37 +01:00
orwell96 dc8b47a066 Unite all save data (except the track database) into a single save file 2017-01-12 17:33:43 +01:00
orwell96 ddd42163be Prevent non-initialized wagons from accidentally polluting the world
sometimes wagons get created/loaded but are not initialized. These stand around and can't be removed.
Now if a wagon does not get initialized after 20 steps, something went wrong and the wagon is removed.
2017-01-10 22:54:10 +01:00
orwell96 c2a92608fa Fix restoring the detector.on_node table when paths get cleaned up 2017-01-10 22:44:27 +01:00
orwell96 0d2ec6f49a Clean up debug message code 2017-01-08 21:10:02 +01:00
orwell96 9bc069f825 Add fancy passenger wagon 2017-01-06 17:54:16 +01:00
orwell96 c0957b8a31 also print ATC reverse command warning
and move atc_command.txt at a better place
2017-01-04 21:49:16 +01:00
orwell96 bf68c6f0d5 Purge all debug messages and change 'print' function name to 'atprint'
Ready for 2.0 release.
2017-01-04 21:34:18 +01:00
orwell96 dd4e989639 update makefile to new circumstances 2017-01-04 21:25:32 +01:00
orwell96 400cb55bb0 Fix bug in track database
the entire database was broken due to a not removed indexing
2017-01-04 21:23:15 +01:00
orwell96 2d0b51b897 Restructure mod directory 2017-01-04 19:10:03 +01:00
orwell96 853a9e690e Add Automatic Train Control system 2017-01-04 12:02:00 +01:00
orwell96 a9d43ce2ca add API documentation 2017-01-03 18:48:00 +01:00
orwell96 cc6cf09ac8 make detector code clear entries of trains that do not exist 2017-01-02 18:54:24 +01:00
orwell96 79d0549c8a unify update_trainpart_properties and check_trainpartload 2017-01-02 18:40:49 +01:00
orwell96 2a924d086a fix discouple not disappearing and a logical mistake with owners 2017-01-02 13:55:25 +01:00
orwell96 8784ee41dd Do not duplicate definitions of 'print' in every file 2017-01-02 13:49:20 +01:00
orwell96 987cd5b7f0 spawn couple on train collision
also fix empty trains hanging around for too long
2016-12-31 15:16:19 +01:00
orwell96 d08e202346 remove train type concept and calculate train's capabilities based on used wagons 2016-12-22 18:55:10 +01:00
orwell96 f806ed9eee Turning mod into a modpack and separating the trains from the core mod 2016-12-20 14:17:39 +01:00