20 Commits

Author SHA1 Message Date
Niklp
226b0dc964
fix crashes due not send itemstacks (#71)
* fix crashes due not send itemstacks

* fix item returns

* fix use of wrong player ref

* open only door nodes
2023-03-12 08:59:37 +01: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
20e77d56ef
Fix travelnet removal issue and cleanup removal code (#58) 2022-08-21 14:12:18 +10:00
Oversword
43281e5f22 Consistently rename owner to owner_name (except metadata prop); Move a line below a condition to avoid crash. 2022-06-09 21:27:00 +01: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
wsor4035
79277d24f5
cleanup #40 changes (#41)
* cleanup #40 changes

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

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2022-02-01 19:18:04 -05:00
Oversword
b4b8f12852
Check that a node is in fact a travelnet or elevator before parsing input data (#40)
* Check that a node is in fact a travelnet or elevator before parsing input data

* Update functions.lua

Check that node_def and node_def.groups exist before using them

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

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
Co-authored-by: Buckaroo Banzai <39065740+BuckarooBanzay@users.noreply.github.com>
2022-02-01 19:08:29 +01:00
Oversword
d0b8e43254
Add paging mechanism (#36)
* Initial interface

* Paging functionality and conditional display completed

* Cleanup

* Move formspec display to formspecs file

* Linting

* Use max station number to decide if paging is required

* Linting

* Make sure the current page number as a valid number
2022-02-01 19:05:18 +01:00
Oversword
48f46d2985
Load the travelnet node before performing teleport logic on it (#27)
* Move load retrying from the rotate_player method to outside of the existance check
2022-01-28 14:29:04 -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
OgelGames
ede07a3933 fix typo 2021-02-03 16:55:19 +11:00
BuckarooBanzay
5549df3acc fix player variable leak 2021-02-02 09:20:48 +01:00
BuckarooBanzay
30ed33fcba fix door opening code 2021-02-02 09:18:40 +01:00
BuckarooBanzay
0a1b7dcf1b stricter luacheck / cleanups 2021-01-15 08:26:42 +01:00
BuckarooBanzay
39e7d86040 modularization, cleanup part II 2020-11-19 19:57:19 +01:00
BuckarooBanzay
484bd808f7 split some functions in separate files (cleanup part I) 2020-11-19 19:46:40 +01:00