Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

37a7fd6cc8ddc9eb303a2e66e27f9d3c21de7cfb breaks detection of voxelgarden used by moretrees #29

Closed
j-r opened this issue Jun 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@j-r
Copy link

j-r commented Jun 16, 2024

The above mentioned commit just overrides the detected gameid with minetest when a mod named default exists.

Voxelgarden is not based on MTG, but compatible on a technical level, having a default mod and providing most of MTG's apis.

The reason moretrees wants to detect Voxelgarden is that it has different (higher level) gameplay mechanics, affecting out of the box experience of moretrees (see mt-mods/moretrees#38 and mt-mods/moretrees#40 for details).

OTOH it is probably useful for xcompat to detect Voxelgarden as a minetest game derivative because of its low level compatibility usually not requiring mods to do anything special.

I propose to enhance xcompat to provide the actual game id (if provided by new enough minetest) in addition to the detected compatibility game id.

@wsor4035
Copy link
Contributor

i think its better for moretrees to just check itself, and only support that feature for minetest (whatever version added game detection).

@wsor4035
Copy link
Contributor

wsor4035 commented Jun 16, 2024

type(minetest.get_game_info) == "function" and minetest.get_game_info().id~="voxelgarden" or true to replace https://github.com/mt-mods/moretrees/blob/master/settings.lua#L53 assuming the logic passes, didnt check one line fix and also makes a lot more sense than the pr (in my opinion) which makes a mess of things

@BuckarooBanzay BuckarooBanzay added the bug Something isn't working label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants