I wanted the local worlds save files so I looked at the code and figured out how to do this. It is easy to do as the code has already been written and is just commented out. Two changes to two lines will make this change.
In the sethome directory, there is a file called init.lua, you should create a backup in case something happens. Load the file init.lua into a text editor (I used Notepad++) and change the following two lines, line 13 and 14.
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
local homes_file = minetest.get_modpath('sethome')..'/homes'
--local homes_file = minetest.get_worldpath() .. "/homes"
They should be changed to look like this.
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
--local homes_file = minetest.get_modpath('sethome')..'/homes'
local homes_file = minetest.get_worldpath() .. "/homes"
All that needed to be done was to add two dashes, the -- to the beginning of line 13 and delete the two dashes, the -- from the beginning of line 14. You just need to save the file and then you can load up minetest and have different worlds using the same position names. I hope this helps anyone that wanted this and had no clue how to do it.