I think this is something luanti should NEVER allow a game to do (to force a setting, that overrides that setting for all games)
i originally wanted to give it a thumbs down because this sort of thing really pisses me off but i realize that might not be relevant to the gameplay of this game
Do you know what the home folder or what the filepath is?
no, but why would a mod need to know that? to store something outside of a mod, use core.get_mod_data_path() i guess
i think the only relevant thing might be where minetest is installed, in that case core.get_mod_data_path() .. "/.."
It's on purpose so I don't have to metatable it to prevent rewriting. Of course someone can just rewrite the functions... Could debate a metatable there too
you don't have to prevent rewriting, and you shouldn't, if that is for trusted mods, then they should use it in a way where it couldn't cause harm no matter what happened to the table
but if you really wanted to prevent rewriting then you would have to set a metatable on _G to prevent defining a new OS_detector table (side note: why not just call it os_detector, much nicer)
jit.os - Works only on luajit, but that is what 99.9% of luanti users have (i wish luanti didn't support lua5.1)
This is a cool way to detect what operating system the server has too, just not as simple as checking jit.os
as for the API i am kinda confused why you use functions to get stuff, i think i would do:
-- info from the source code of this modos_detector={os=info.OS,is_multicraft=info.MultiCraftorfalse,-- maybe use core.get_version() instead if avaliable, or just don't support versions that don't have thatis_mobile=info.mobile}
i think my only issue is that the inventory UI probably needs some work, it doesn't look good on smaller window sizes/phones, and that it is unfinished
also, @thematrix9675, i didn't see some of your messages, that was most likely a contentDB bug, it would be nice if you repeated those in a github issue
hello @thematrix9675, frog here!
There is an api for quests
You have 3 options, all of them have their code in sbz_progression/quests.lua:
A) use the global quests table
Example:
quests[#quests+1] = quest_definition
B) you can use sbz_api.register_quest(quest_definition) which does the same thing
C)You can use sbz_api.quests_from_file(path) which will load quests from the file, example: see sbz_progression/quests/<any of those>
As for modifying pipeworks in that specific way:
sadly it would take a lot of work to make it possible
There is a reason why the limit is in place, if you have too many items, it encourages you to compact them using a storinator and a filter injector, because if you have too many items the game becomes laggy
I made instatubes specifically for this purpourse, you can have an insane amount of itemstacks going through them, and also same applies for filter injectors
If you really want reinforced tubes, i guess i could change pipeworks to allow you to do this, or you could submit a pull requesst
Also joke-ish side note: it would be funny if, once i get an account on tilde.team, maybe i could make like a forum for sbz and i would make that the main discussion place xD
Anyway, going foward, please use github to communicate, it is the place where you will be heard the most
"Crystal of yendor" you mean the amulet xD
i think a cooler name for this would be voxel dungeon xD
Issues (posted here, because i don't have a gitlab account):
a bug i found:
With random mod load order enabled, a lot of stuff breaks (e.g. the mod mg_chest doesn't correctly depend on mg_media, so it crashes sometimes, same with mg_traps and mg_mapgen, it took me quite a few tries to load the game)
the inventory says "Armor not initialized"
you are forcing me to hurt cats in the sewers :{
i don't know which rooms i didn't explore fully and it's annoying, it would be nice to have a minimap (that worked)
sometimes it just lets me unequip a cursed weapon(?) I dont really know how i managed to do that
unlike in regular pixel dungeon, the strength values for armor aren't shown anywhere(?) before equipping it which makes it kinda confusing
(later you made a github issue that
habitat regulators create a large amount of lag on your phone, update your review if you think that is worth mentioning {skyblock zero is not made for weak hardware})
oh ok, also you should make your github repository be whats on contentDB, that way its easy to contribute (so no random zip file, just have it be exactly the same as is on contentDB, consider also learning git if you need to)
Your mod has been broken by newer upgrades (which removes the sbz_api.cjh2cj function in favour of sbz_api.format_power), it would be a lot easier to give you the needed fixes if you made a github repository for skyblock one
oh... well... yeah... ummmm.... i can argue its a feature, to get you to make your own editor (see the "basic editor disk" 's code to get started, and you can add in that formspec_escape yourself :D)
why
See: title
https://github.com/Der1248/Labyrinthus/blob/14da136aac30de5b30574d4dbb11e189834caad3/mods/labyrinthus/init.lua#L1252
I think this is something luanti should NEVER allow a game to do (to force a setting, that overrides that setting for all games)
i originally wanted to give it a thumbs down because this sort of thing really pisses me off but i realize that might not be relevant to the gameplay of this game
yeah you don't need to care about performance at all with this, and i don't think you have a reason to prevent rewriting
uhh sorry i edited my message: you don't have to prevent rewriting, even if a trusted mod is using that
yeah same
see also https://luajit.org
no, but why would a mod need to know that? to store something outside of a mod, use
core.get_mod_data_path()
i guess i think the only relevant thing might be where minetest is installed, in that casecore.get_mod_data_path() .. "/.."
you don't have to prevent rewriting, and you shouldn't, if that is for trusted mods, then they should use it in a way where it couldn't cause harm no matter what happened to the table
but if you really wanted to prevent rewriting then you would have to set a metatable on
_G
to prevent defining a newOS_detector
table (side note: why not just call itos_detector
, much nicer)jit.os
- Works only on luajit, but that is what 99.9% of luanti users have (i wish luanti didn't support lua5.1)This is a cool way to detect what operating system the server has too, just not as simple as checking
jit.os
as for the API i am kinda confused why you use functions to get stuff, i think i would do:
instead of what you did in https://codeberg.org/TPH/operating_system_detector/src/branch/master/init.lua#L74
sure
i think my only issue is that the inventory UI probably needs some work, it doesn't look good on smaller window sizes/phones, and that it is unfinished
its a great luanti game what else can i say
Luanti is a game engine, not a game. If you are referring to the minetest game, I assume it isn't intended to be played by children.
also what, are flags endangering children now or something, will they have nightmares over a rainbow flag
also, @thematrix9675, i didn't see some of your messages, that was most likely a contentDB bug, it would be nice if you repeated those in a github issue
hello @thematrix9675, frog here! There is an api for quests
You have 3 options, all of them have their code in sbz_progression/quests.lua:
A) use the global
quests
table Example:B) you can use
sbz_api.register_quest(quest_definition)
which does the same thingC)You can use
sbz_api.quests_from_file(path)
which will load quests from the file, example: seesbz_progression/quests/<any of those>
As for modifying pipeworks in that specific way:
If you really want reinforced tubes, i guess i could change pipeworks to allow you to do this, or you could submit a pull requesst
Also joke-ish side note: it would be funny if, once i get an account on tilde.team, maybe i could make like a forum for sbz and i would make that the main discussion place xD
Anyway, going foward, please use github to communicate, it is the place where you will be heard the most
oh wait... i just realised that there is a voxel dungeon... oh
"Crystal of yendor" you mean the amulet xD i think a cooler name for this would be voxel dungeon xD
Issues (posted here, because i don't have a gitlab account):
(later you made a github issue that habitat regulators create a large amount of lag on your phone, update your review if you think that is worth mentioning {skyblock zero is not made for weak hardware})
oh ok, also you should make your github repository be whats on contentDB, that way its easy to contribute (so no random zip file, just have it be exactly the same as is on contentDB, consider also learning git if you need to)
oh wait no thats literally just a repo containing some zip file and license stuff...
Oh, it sounds like you do have a github repository for it, please mention it in the package
Your mod has been broken by newer upgrades (which removes the sbz_api.cjh2cj function in favour of sbz_api.format_power), it would be a lot easier to give you the needed fixes if you made a github repository for skyblock one
oh... well... yeah... ummmm.... i can argue its a feature, to get you to make your own editor (see the "basic editor disk" 's code to get started, and you can add in that formspec_escape yourself :D)
i dont know what to put here... its just fun :D
wtf
any suggestions?
The interface is weird, typing a thing using the on-formspec keyboard is just painful
And also its insecure, there are at least 50 different ways to freeze a server and completely ignore the limiter hook
But its still great, i love the idea of being able to pause the sandbox thats why i am giving it a neutral