Minor fixes and cleanup (#3)

This commit is contained in:
OgelGames 2024-02-27 17:28:29 +11:00 committed by GitHub
parent 1860fa44b6
commit 53c0826bff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 43 additions and 42 deletions

View File

@ -1,7 +0,0 @@
version: 2
updates:
- package-ecosystem: gitsubmodule
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 20

View File

@ -1,13 +1,10 @@
name: luacheck name: luacheck
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
build: luacheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - name: Checkout
- name: apt uses: actions/checkout@main
run: sudo apt-get install -y luarocks - name: Luacheck
- name: luacheck install uses: lunarmodules/luacheck@master
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./

View File

@ -1,22 +1,17 @@
unused_args = false
allow_defined_top = true
exclude_files = {".luacheckrc"}
globals = { globals = {
"minetest", "xcompat", "minetest",
"xcompat",
} }
read_globals = { read_globals = {
string = {fields = {"split"}}, "default",
table = {fields = {"copy", "getn"}}, "mcl_sounds",
"ks_sounds",
--luac "nodes_nature",
"math", "table", "fl_stone",
"fl_topsoil",
-- Builtin "fl_trees",
"vector", "ItemStack", "dump", "DIR_DELIM", "VoxelArea", "Settings", "PcgRandom", "VoxelManip", "PseudoRandom", "hades_sounds",
"rp_sounds",
--mod produced
"default", "mcl_sounds", "ks_sounds", "nodes_nature", "fl_stone", "fl_topsoil", "fl_trees", "hades_sounds", "rp_sounds",
} }

View File

@ -1,15 +1,30 @@
# xcompat # XCompat
a mod that aims to facilitate other mods to be game agnostic by handling sounds and crafting [![luacheck](https://github.com/mt-mods/xcompat/workflows/luacheck/badge.svg)](https://github.com/mt-mods/xcompat/actions)
[![ContentDB](https://content.minetest.net/packages/mt-mods/xcompat/shields/downloads/)](https://content.minetest.net/packages/mt-mods/xcompat/)
thanks to: Provides cross compatibility between games and mods for sounds and crafting materials.
* MisterE, OgelGames, and Blockhead for naming advice/suggestion
* luk3yx, Blockhead, Buckaroo for bouncing ideas on the concept of this mod
## Installing Thanks to:
* MisterE, OgelGames, and Blockhead for naming advice/suggestion.
* luk3yx, Blockhead, BuckarooBanzai for bouncing ideas on the concept of this mod.
clone via git or install via contentdb (soon) ## Usage
## Dev Docs See [DEV.md](DEV.md) for detailed documentation.
Can be found at /DEV.md ## Supported games and mods
**Games**
* Minetest Game
* MineClone2
* Mineclonia
* Hades Revisited
* Farlands Reloaded
* Exile
* KSurvive 2
**Mods**
* `basic_materials`
* `mesecons_materials`
* `moreores`

View File

@ -1,2 +1,3 @@
name = xcompat name = xcompat
description = Provides cross compatibility between mods and games for sounds and crafting materials.
optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees