Page 1 of 1
Do worlds have a minetest.conf?

Posted:
Thu Sep 25, 2014 16:16
by Wuzzy
Do worlds have a minetest.conf?
In other words: Do worlds store their own set of settings, independently from all other worlds in some way (for example by having a file called “minetest.conf”?
Re: Do worlds have a minetest.conf?

Posted:
Thu Sep 25, 2014 17:27
by CraigyDavi
I don't think so. It's always something I have found annoying in the game...mapgen settings should be on a per-world basis and yet they get configured in a global file.
Re: Do worlds have a minetest.conf?

Posted:
Thu Sep 25, 2014 18:20
by Casimir
Mapgen settings get saved in map_meta.txt when a world is created and don't change afterwards. Other then that there are no settings possible for a world.
Re: Do worlds have a minetest.conf?

Posted:
Thu Sep 25, 2014 20:57
by ExeterDad
I may be mistaken, but I believe subgames have a minetest.conf. Would that be helpful?
Re: Do worlds have a minetest.conf?

Posted:
Thu Sep 25, 2014 22:37
by Wuzzy
Not if you have more than just 1 world per subgame. ;-)
Re: Do worlds have a minetest.conf?

Posted:
Fri Sep 26, 2014 17:24
by Krock
You can read settings from "map_meta.txt" if that's your target.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_mapgen_init(function(mgparams)
local foobar = mgparams["IluvFish"]
end)
Re: Do worlds have a minetest.conf?

Posted:
Fri Sep 26, 2014 23:44
by Wuzzy
Well, let me explain: I want to store per-world settings (in general, not related to modding for now). Not just mapgen settings, but every minetest.conf setting.
For example, I want to know if I can store a per-world setting like time_speed in a world. World 1 could have a time_speed of 0, World 2, could have a time_speed of 72, etc.
And of course the same idea applies to many other settings.
Now is something along the lines of this even possible?
Re: Do worlds have a minetest.conf?

Posted:
Sat Sep 27, 2014 05:57
by Krock
Wuzzy wrote:World 1 could have a time_speed of 0, World 2, could have a time_speed of 72, etc.
And of course the same idea applies to many other settings.
Now is something along the lines of this even possible?
Yes, I also miss that while using static_spawn over multiple worlds.
Currently, there's no way for a world-seperate configuration. :(
Re: Do worlds have a minetest.conf?

Posted:
Sat Sep 27, 2014 15:20
by Wuzzy
Bummer! I thought so. :-(
Well, thanks for the replies, folks!
Re: Do worlds have a minetest.conf?

Posted:
Mon Sep 29, 2014 08:01
by ThatGraemeGuy
You can use the --config option for minetestserver to specify a config file when starting a server.
Re: Do worlds have a minetest.conf?

Posted:
Tue Sep 30, 2014 16:02
by Krock
ThatGraemeGuy wrote:You can use the --config option for minetestserver to specify a config file when starting a server.
Yes but how tu use that in the GUI?
An additional configuration file which is read automatically, would be better.
Re: Do worlds have a minetest.conf?

Posted:
Tue Sep 30, 2014 19:41
by LazyJ
It would be nice to have the option to have a custom minetest.conf (or similar) for each world for the reasons already mentioned. I would like to be able to have a way to set separate screenshot paths for each world.
World specific conf files would also be handy when working on and developing mods. I've had to swap out different minetest.conf because of this.
Re: Do worlds have a minetest.conf?

Posted:
Mon Oct 06, 2014 00:07
by Sokomine
LazyJ wrote:It would be nice to have the option to have a custom minetest.conf (or similar) for each world for the reasons already mentioned. I would like to be able to have a way to set separate screenshot paths for each world.
Screenshots saved by servername_port_day_month_year.png would certainly be nice. Perhaps something like that can be accomplished? The devs seem pretty busy, but such a change might not be too much work.