A second future is a browser trough lua variables/global tables.
Features
- redirection of print() output to minetest chat. (can be disabled by changing code line "print_to_chat")
- robust call of the scripts trough "pcall" does not crash the game in case of syntax- or runtime errors
- all functionality available trough chat commands and the QA-Block node
- refresh and list the checks script list at runtime
- edit the code before calling them
- type code and run them (with smartfs only)
- browser trough lua variables/global tables.
Dependencies
- smartfs - https://github.com/minetest-mods/smartfs
GUI for check selection and manipulation. Optional, but without smartfs there is limited functionality available.
smartfs is provided again (my version) because of missed futures in upstream
Available check modules
- empty - Empty file for your own checks
- global_variables - List suspicious global variables
- is_ground_content - This checker lists all nodes for which is_ground_content == true
- list_entities - Lists all the registered entities (except builtin)
- list_spawning_mobs - List entities that are mobs from mobs_redo or compatible framework
- no_item_description - Lists all items without description
- same_recipe - Find duplicate crafting recipes
- unobtainable_items - Lists items which seem to be unobtainable
- useless_items - Lists all items which are probably useless
- get_items_csv - Write a csv-file from minetest.registered_items to the world folder that can be pivot-analyzed in a spreadsheet like localc or excel
How to use:
- add the mod to the game you like to test
Using chat command
- /qa help - print available chat commands
- /qa ls - list all available check modules
- /qa ui - display and run check using the selection dialog (smartfs only)
- /qa checkname - run check
- /qa set checkname - set default check
- /qa - run default check
Using the block
- get the QA-Block from creative inventory
- place the block somewhere
- - without smartfs - wait till the default check is finished and the block disappears
- - with smartfs - start the check using selection dialog
In all cases - check the debug.txt for test results
License GPL-V3: https://www.gnu.org/licenses/gpl-3.0.html
Github: https://github.com/bell07/minetest-qa_block
Credits: Wuzzy, thanks for ideas, code optimizations and the most check scripts