185 Commits

Author SHA1 Message Date
Alexsandro Percy
5a67fafdf5 removed travelnet recipe
Some checks failed
integration-test / build (push) Has been cancelled
luacheck / build (push) Has been cancelled
2022-04-27 11:32:23 -03: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
David Leal
efa07b17bd
Fix spelling 2021-01-12 20:08:26 -06:00
David Leal
73fc37ee20
Improve README.md 2021-01-08 12:28:35 -06:00
BuckarooBanzay
5e13a52faa add contentdb badge 2021-01-08 15:25:27 +01:00
BuckarooBanzay
bf30b4cef0 add screenshot, update readme 2021-01-08 15:16:26 +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
OgelGames
b1fd70ea48 update luacheck 2021-01-05 17:40:12 +11:00
BuckarooBanzay
97bd66afda remove debug prints 2020-11-19 20:12:50 +01:00
BuckarooBanzay
3e8915e249 fix translation issues
fixes #6
2020-11-19 20:12:17 +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