195 Commits

Author SHA1 Message Date
Buckaroo Banzai
8fb8c794ec
use mtt for testing (#66)
* use `mtt` for testing

* fix luacheck

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2022-12-17 16:19:51 -05:00
Christian Weiske
d4c9f9d365
List all craftable items and recipes in doc/crafting.md (#64)
and link that from the README
2022-09-28 07:07:28 -04:00
Christian Weiske
0545838f15
Link settings from README, add extendet documentation for some settings (#61)
See https://raw.githubusercontent.com/minetest/minetest/master/builtin/settingtypes.txt
2022-09-26 18:28:25 -04:00
Christian Weiske
beb7bba60a
MineClone 2 adjustments (#63)
* MineClone2: use same image and nearly the same items

Since mineclone2 does not have mese, I chose a diamond block (9 diamonds)
because it is very expensive, too

* Elevator doors for MineClone 2
2022-09-26 02:31:10 -04:00
Christian Weiske
30af8c90bc
Fix casing error in German translation (#62) 2022-09-25 10:31:51 -04:00
мтест
e08167c431 fix missing colons in translations 2022-08-30 17:12:39 +02:00
OgelGames
0be2434c3d fix incorrect variable name 2022-08-28 21:06:56 +10: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
956d2adc51
Merge pull request #56 from oversword/bugfixes-9-6-22
Consistently rename owner to owner_name (except metadata prop); Move a line below a condition to avoid crash.
2022-06-10 00:43:36 +01: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
unknown
a436c1b106 fix https://github.com/mt-mods/travelnet/issues/55 2022-02-24 00:14:46 -05:00
Oversword
9ea2c0d1ff
Locked travelnet compat (#51)
* Allow for setting of promary formspec height via options; Get stored pos on form handler, not on recieve fields

* Make sure pos is local and end_input is always called when the form closes

* Always pass as much infomration as possible into the end_input action
2022-02-15 16:34:19 -05:00
Oversword
46bf9ec120
Merge pull request #50 from oversword/pos_inside_current
Move assignment of pos from on_interact methods to inside show_current_formspec method
2022-02-15 02:49:23 +00: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
Buckaroo Banzai
db1e731ba7
add lbm to migrate formspecs automatically on mapblock load (#48)
* add lbm to migrate formspecs automatically on mapblock load

* add setting for formspec migration

* apply suggestion from @OgelGames

* rename setting to `travelnet_cleanup_lbm`

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2022-02-14 17:09:26 -05:00
OgelGames
65c254a372 don't convert player name back to player reference
fixes #49
2022-02-14 18:23:06 +11: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
9fdcbe8570
Remove the usage of pos2str using context var (#44)
* Remove the usage of pos2str using context var

* Make sure on punch and paging is working
2022-02-06 14:09:03 -05:00
wsor4035
9ed450b853
fix https://github.com/mt-mods/travelnet/issues/43 data loss 2022-02-03 19:08:25 -05:00
wsor4035
6f44bbc493
use the settings api with fallback defaults (#42)
* use the settings api

* add settingtypes.txt for menu
2022-02-02 19:20:44 -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
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
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
wsor4035
d8c0c9d423
prevent data loss (#34)
* use json to store travelnets

Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2022-01-28 23:04:28 -05: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
OgelGames
5b3a060d44 fix translation
fixes #25
2021-12-26 16:48:43 +11:00
OgelGames
4149fa4ece consistently use utility function to check for elevator 2021-09-16 15:01:38 +10:00
OgelGames
80ba872612 prevent crashing when travelnet with non-existent network is used
closes #20
2021-09-16 14:57:22 +10:00
OgelGames
b81650cf7e
fix typo 2021-07-15 14:14:29 +10:00
Buckaroo Banzai
19f7bc2039 add the rest of the dye colors for travelnets (#19)
* add the rest of the dye colors for travelnets

* fix screenshot url in readme

* use markdown syntax for images

* add color fixes from OgelGames

Co-authored-by: OgelGames <olliverdc28@gmail.com>

* updated screenshots

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
Co-authored-by: OgelGames <olliverdc28@gmail.com>
Co-authored-by: OgelGames <48543043+OgelGames@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-07-14 15:46:59 +10: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
740cecc67e fix deprecated use of use_texture_alpha 2021-04-04 22:45:36 +10:00
Sbgodin
33c15e1836
Corrects typo: diffrent --> different (#13) 2021-02-10 23:55:17 +11:00
OgelGames
451db00fc2 add export ignores 2021-02-09 16:54:02 +11:00
OgelGames
f10135d770 check protection when coloring travelnet 2021-02-09 16:14:22 +11:00
OgelGames
8e57c5c96c in-place travelnet coloring 2021-02-03 17:11:29 +11: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
OgelGames
3ab42e0373 repair travelnet texture
fixes #12
2021-02-02 17:42:13 +11:00
BuckarooBanzay
0a1b7dcf1b stricter luacheck / cleanups 2021-01-15 08:26:42 +01:00
OgelGames
f379075b5a optimize textures 2021-01-14 16:02:45 +11:00
OgelGames
703a939204 adjust travelnet colors 2021-01-14 16:01:50 +11:00
OgelGames
aa899c4437 craft default travelnet from colored using yellow dye
fixes #11
2021-01-13 21:27:32 +11:00
OgelGames
927c9bdee3 fix removal of colored travelnets
fixes #10
2021-01-13 19:55:54 +11:00