Commit Graph

389 Commits

Author SHA1 Message Date
Alexander Chibrikin
ccfb6b4d61
Translate worldedit_commands (#229) 2023-10-23 20:52:04 +02:00
sfan5
8f60e6f729 Fix clear_objects not working 2023-10-08 18:21:15 +02:00
sfan5
8f86a2120c
Include minimum MT version in modpack.conf 2023-08-06 16:31:36 +02:00
nauta-turbidus
b4202ea779
Trim trailing content when obtaining dedicated_server_step
This change trims anything starting with the first space from dedicated_server_step, including single-line comments following the configured value specifically, before using it for calculations. It fixes compatibility-breaking crashes with some mods/games, which change the mentioned value by adding a comment after it. Such a comment is, as far as I know, syntactically valid, and is accepted by the engine it seems.
2023-08-06 14:05:34 +02:00
HybridDog
689ff90a78
Remove unused variables and assignments 2023-06-19 18:24:31 +02:00
sfan5
bf55f52197 Give CI workflows consistent names 2023-06-11 16:09:06 +02:00
HybridDog
79e5e64c44 luacheck: Reduce the number of ignored codes
After the recent changes, luacheck can be configured to be more strict now, for example to check for inconsistent indentation and undefined variables.
2023-06-10 11:38:23 +02:00
HybridDog
375fbf3c68 Remove trailing whitespaces 2023-06-09 19:51:10 +02:00
HybridDog
cc3aab00bc Fix tab after space indentations 2023-06-09 19:51:10 +02:00
HybridDog
eff01bc8e7
Add code linting with luacheck (#221)
With luacheck mistakes in Lua code can be found, e.g. the use of undefined variables, and the code style can be checked.
workflow by @Panquesito7
2023-06-09 19:48:46 +02:00
HybridDog
099d5047bd Fix undefined variable access in worldedit.metaload
`file` in the deprecated `worldedit.metaload` function was undefined, as reported by luacheck.
2023-06-09 19:47:31 +02:00
sfan5
7f7e928dd9 Switch bare vectors to vector.new() 2023-06-09 14:49:58 +02:00
luk3yx
1a9f66f091 Fix back button in some worldedit_gui pages 2023-06-09 13:59:09 +02:00
sfan5
7a5d76a9bc Add comprehensive schematic deserialization unit tests 2023-06-09 13:02:37 +02:00
sfan5
5260f595c6 Log deserialization errors 2023-06-07 11:50:33 +02:00
sfan5
7a645eba05 Improve loading and error handling for schematics 2023-06-07 11:41:10 +02:00
sfan5
9417f2bbf1 Harden //mtschemprob against incorrect input
closes #216
2023-03-22 21:26:53 +01:00
sfan5
abc9efeeb8 Harden deserialize workaround against unexpected input
Otherwise it will stop working entirely soon when the
serialization inside Minetest is reworked.
This allows it to work at least in the cases where the original
bug (LuaJIT register limit) doesn't apply.
2022-06-06 20:39:15 +02:00
sfan5
c223ca4cec Update IRC link in README
closes #207
2021-11-15 00:16:34 +01:00
wsor4035
c8afa95542
Make worldedit_gui error non-fatal
to allow worldedit to be used in worldmods
2021-09-21 20:47:57 +02:00
sfan5
670e421f57 Rename util folder
because mod loading woes, minetest/minetest#11240
2021-09-21 01:34:10 +02:00
sfan5
770601dd5d Add automated tests for WorldEdit API functions that run under CI
uses a real Minetest instance (Docker)
currently covers most basic manipulations
2021-09-20 23:10:04 +02:00
sfan5
2f2f5a7def Use minetest.global_exists for LuaJIT check
closes #199
2021-09-12 19:35:57 +02:00
Nathan Salapat
7f87f1658e
Add param2 button to WorldEdit GUI 2021-07-23 23:34:13 +02:00
sfan5
4378750498 Use minetest.get_objects_in_area when possible 2021-04-30 19:33:27 +02:00
sfan5
2f26fb7645 WorldEdit 1.3 1.3 2021-01-31 00:49:58 +01:00
h3ndrik
f1b6da3c20
Hide gui button in unified_inventory on missing privilege (#195)
this fixes #151
2020-12-05 14:12:32 +01:00
sfan5
418a30c89e Raise safe region limit to 20000 2020-10-06 13:53:22 +02:00
sfan5
2f535dd053
worldedit: Document inner working of worldedit.keep_loaded 2020-05-25 19:48:54 +02:00
sfan5
867cd6edc7 Improve node name normalization again
so that "desert stone" won't select "desert stone block"
2020-05-12 21:53:01 +02:00
sfan5
4918610c43 Fix rotate in worldedit GUI 2020-05-12 21:29:51 +02:00
sfan5
edd27636a6 Do not allow //mix with no nodes 2020-05-09 22:34:29 +02:00
sfan5
7d0811fd47 Update help texts to be consistent 2020-04-26 16:53:55 +02:00
sfan5
4d08a1cc55 Implement //cubeapply with three side lengths 2020-04-26 16:01:07 +02:00
sfan5
34844b2d38 Set static_save = false for marker entities 2020-04-16 23:50:15 +02:00
sfan5
0f5dcc790d Implement //clearcut to delete trees, plants from generated terrain
closes #165
2020-04-07 03:05:30 +02:00
sfan5
37de177f72 Fix off-by-one in //cubeapply 2020-04-07 00:46:13 +02:00
sfan5
f285a55dd5 Improve brush command error messages 2020-04-07 00:38:11 +02:00
sfan5
9b26034aea Move worldedit.marker_update
Markers are part of the UI (`worldedit_chatcommands`) and do not belong in `worldedit`.
2020-04-07 00:14:31 +02:00
sfan5
963a9f6b96 Implement //cubeapply 2020-04-06 23:32:11 +02:00
sfan5
5e8bfd5166 Improve node name normalization in case of multi-line descriptions 2020-03-29 21:55:47 +02:00
HybridDog
06a3b63578 GUI command execution: Do not ignore chatcommand return values
Additionally, this commit makes the command execution more modular,
so it is e.g. possible to implement something to disable the
many nodes confirmation after setting a checkbox in the formspec.
2020-03-09 15:33:19 +01:00
sfan5
5e47af8773 Make region marker entities withstand TNT explosions
Also fixes a crash when detonating TNT near them though this is
not our fault and the proper fix is pending in minetest_game.
2020-03-06 21:20:15 +01:00
sfan5
da51c688d2 Call minetest.deserialize with safe=true
wtf?
2020-02-06 11:53:14 +01:00
sfan5
ab93871877 Move some deserialization code around 2020-02-06 11:51:44 +01:00
sfan5
116ae25ebd Unbreak //move (closes #188) 2019-12-20 20:29:41 +01:00
sfan5
18444379a1 worldedit_gui: Improve behaviour of all input fields
continuation of 45acf09e4a3ea7ed563d2d43cc63425b04fc63ef
2019-12-19 18:20:24 +01:00
sfan5
974dcaa918 Improve nodename normalization in some cases 2019-12-19 16:58:33 +01:00
sfan5
abdecd4239 Fix some broken commands
This happens when you don't test.
2019-12-19 16:45:38 +01:00
sfan5
9c38b9f6ad Allow more commands for brush usage
In fact, allow all commands that are compatible by the brush:
the ones that expect exactly pos1 to be set
2019-12-19 16:44:15 +01:00