36 Commits

Author SHA1 Message Date
OgelGames
00ed0a155b check above node before removing it 2023-01-15 23:52:32 +11:00
BuckarooBanzay
6f2d5f6931 add persistence functions for per-player travelnet data 2023-01-02 21:01:43 +01:00
мтест
ef6efac7e9
add fr, it and pl translations, also some updates/fixes (#59)
* add fr, it and pl translations

translations as po files from unmerged PRs: #52, #58 and #41 in https://github.com/Sokomine/travelnet
converted to tr files manually with regex

* update translations

generated using https://github.com/minetest-tools/update_translations

* clean unused strings and manual fixes

* typos and missing translations

* generate the translations... again with the script

some small fixes too

* more fixes

descriptions defined in travelnet.node_description are translated but not found by the script

* let's do this

add S() to travelnet.node_description directly, remove part of changes in 833c5a3

* one more string

travelnet have this field filled with the player name

* consistency with "Travelnet-Box"

already taken in account by most translations, missed the template in the previous commit
2022-08-25 20:17:34 -04:00
Oversword
294d6dd727 Move assignment of pos from on_interact methods to inside show_current_formspec method 2022-02-15 02:40:57 +00:00
Oversword
302e425262
Draft: Formspec redo (#47)
* Remove the usage of pos2str using context var

* Make sure on punch and paging is working

* Generate formspecs on interact, not on update

* Linting and page_formspec usage

* Clear metadata formspec on interact

* Consolidate ordered formspec function

* Reduce repetition in infotext when updating station

* Formspec redo - first working version

* Move largest actions to individual files

* Cleanup and tested
2022-02-12 14:56:37 -05:00
Oversword
661690e583
Generate formspecs on interact, not on update (#45)
* Remove the usage of pos2str using context var

* Make sure on punch and paging is working

* Generate formspecs on interact, not on update

* Linting and page_formspec usage

* Clear metadata formspec on interact

* Consolidate ordered formspec function

* Reduce repetition in infotext when updating station
2022-02-10 11:38:07 -05:00
Oversword
2f09593ebf
Re-work how formspecs are shown to remove the need for delays and to guarantee the formspec is show (#35)
* Initial rewrite

* Working

* Cleanup

* No need to ensure existance as we already check for existance
2022-02-01 19:13:45 -05:00
Buckaroo Banzai
6f170053da
Editable station (#24)
* first pass adding edit functionality

* moved is_falsey_string to functions.lua

* adding some formspec_escape()

* added node_description() getter

* comment updated

* show edit formspec in a subsequent run-loop

* handle edit formspec

* changelog and misc comment fixes

* simplified elevator editing

Don't allow network or owner change on elevators

* remove unused variables

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

* locale revisions

would be nice if some native speakers would check :)

Co-authored-by: Luke aka SwissalpS <Luke@SwissalpS.ws>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2022-01-07 16:37:46 +01:00
Oversword
9b20c7b023
WIP: Code sanity improved (#18)
* Logic cleaned up and repetition removed
2021-07-03 19:41:00 +02:00
Oversword
be109dd8dc
Linting and code formatting (#17)
* Initial linting done

* Spaces spaces everywhere, more than you might think

* No space like home

* Continuation indentation

* Double down

* One more thing

* Undo practical change

* Update doors.lua to reduce line lengths

* String concatenation and line lengths

Co-authored-by: Oversword <bionic@oversword.co.uk>
Co-authored-by: OgelGames <olliverdc28@gmail.com>
2021-07-02 14:58:54 +10:00
Sbgodin
33c15e1836
Corrects typo: diffrent --> different (#13) 2021-02-10 23:55:17 +11:00
BuckarooBanzay
0a1b7dcf1b stricter luacheck / cleanups 2021-01-15 08:26:42 +01:00
Buckaroo Banzai
dd759279ed
colored travelnets (#5)
* changelog title
* split registration and helper function
* add api docs
* simplify travelnet registration (dye as item-string, color only as string)
* fix docs
* add white travelnet
* fix inventory preview

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2021-01-08 15:11:19 +01:00
BuckarooBanzay
39e7d86040 modularization, cleanup part II 2020-11-19 19:57:19 +01:00
BuckarooBanzay
671d754cc8 Merge https://github.com/Panquesito7/travelnet into HEAD 2020-10-26 07:35:35 +01:00
OgelGames
32f89aaab9 remove alias 2019-12-29 13:22:25 +01:00
OgelGames
ca91f95ad8 fix pandorabox-io/pandorabox.io#337 2019-12-29 13:21:47 +01:00
BuckarooBanzay
41f621a760 luacheck workflow and fixes 2019-12-29 13:19:53 +01:00
y
dcac961e68 allow elevator to build into any buildable node 2019-12-29 13:17:15 +01:00
Panquesito7
f602472544
Fix many translation issues 2019-11-11 19:23:00 -06:00
Sokomine
5b338f0d5c added buttons for removing/digging stations 2019-02-26 22:44:33 +01:00
Sokomine
af49bccd79 made compatible with mineclone2 2019-02-26 20:36:14 +01:00
Sokomine
661919aaaf added localization (inttlib); added german 2017-12-25 02:08:06 +01:00
Sokomine
8e023fad92 made behaviour of menu more consistent 2017-12-18 20:05:26 +01:00
Sokomine
11de2c34b7 when placing elevator show where nearest one is 2017-12-17 17:56:36 +01:00
Sokomine
d443ceab4e #13 made immune against TNT and aggressive mobs 2017-12-17 02:34:15 +01:00
Sokomine
a317132f3b players with travelnet_attach can create networks for others 2016-08-30 02:14:19 +02:00
Vanessa Ezekowitz
ab02f746b7 Use mesh nodes instead of nodeboxes
also, removed the 512px textures since they only bloat the repo and are now obsolete.
2015-07-30 18:57:18 -04:00
Vanessa Ezekowitz
d4a62c3e01 minetest.env:* --> minetest.* 2014-11-30 12:50:48 -05:00
Sokomine
316ffff896 created config file; added travelnet.allow_travel function 2013-11-20 20:27:10 +01:00
Sokomine
3f2bf82390 added wield image for elevator 2013-06-30 01:50:55 +02:00
Sokomine
57d8d3b4d3 added inventory image for elevator 2013-06-26 23:15:57 +02:00
Sokomine
6dbd41a67e several improvements for elevator; fixed bug with elevator_top 2013-06-21 22:01:54 +02:00
Sokomine
fe5861aa43 improved doors; elevators no longer need a network name 2013-06-20 04:59:04 +02:00
Sokomine
efeb155191 put elevator into seperate file; elevator doors added; groups changed to avoid accidental dig/drop; only the owner of a box can dig it now 2013-06-19 22:52:32 +02:00
Sokomine
7d2d0af585 elevator doors added; elevator moved to a seperate file; groups changed to avoid accidental digging; only owner can now dig travelnet 2013-06-13 05:49:41 +02:00