19 Commits

Author SHA1 Message Date
ywang
cc78b63e34 [BREAKING] Use client-side translations instead of intllib; add zh_CN translations
* Client-side translations is used instead of intllib. [Breaks MT4 compat]
* Existing locale files have been moved to advtrains/locale and named with the format advtrains.[lang].tr
* Add zh_CN locale. (requires a font that supports CJK text)
2020-07-19 16:21:08 +02:00
Blockhead
2da11c5a49 Use a standard wagon inventory formspec
This new formspec also allows access to the wagon properties. Once
whitelisted in the wagon properties, other players can access its
inventory.

Note on 'useless use' of OO: I tried passing just the wagon ID and
avoiding using the `self` object in order to bypass the need to look up
the lua entitie out of the list, but it ended up retrieving nil data.
The best way to solve this overhead might be to wait for some kind of
better way upstream in minetest's lua API to get entities, or to keep a
central record of entities. Either way, the solution is outside the
scope of this commit.
2020-03-18 00:35:30 +11:00
orwell96
dbaafeda3e Merge branch 'mt5-fixes' 2020-01-04 18:37:52 +01:00
orwell96
b905a8bf6d Remove fullbright (H#140) 2019-12-18 10:08:03 +01:00
orwell96
02025f53aa Move attachment positions down 1 node 2019-12-05 10:15:54 +01:00
ywang
35a6f14561 Fix steam engine sound playing forever (H#121) 2019-11-27 10:23:05 +01:00
orwell96
144e1fc4e0 Change get_inventory_formspec API - add invname parameter 2018-12-10 22:54:23 +01:00
Thomas Rudin
07ecc44130 lower steel return 2018-09-28 20:48:38 +02:00
orwell96
6524c656a6 Fix box wagons 2018-06-14 21:33:18 +02:00
orwell96
3d7924c751 Fix bugs found while testing 2018-06-14 17:39:42 +02: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
mbb
addd7d0b48 steam locomotive: Add sounds and improve textures 2017-12-23 10:12:14 +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
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
Gabriel Pérez-Cerezo
f228e2d30e Moved default train track to separate mod, for integration with advcarts. 2017-10-25 09:52:10 +02:00
rubenwardy
d65c4916ce Remove zip release files, move mod to root, exclude assets from Makefile (#92) 2017-09-20 18:05:04 +02:00
orwell96
2d0b51b897 Restructure mod directory 2017-01-04 19:10:03 +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