[Mod] Sethome [sethome]
[Mod] Sethome [sethome]
Sethome allows users to set their home position (using /sethome) and then teleport to it (using /home). It may be cheaty some way, but it is really helpful.
License: WTFPL
Dependencies: default
Download (slightly outdated version)
github repository
License: WTFPL
Dependencies: default
Download (slightly outdated version)
github repository
+1 I like the idea to have a limited teleport feature...
Too avoid the abuse, you may do a teleport with a maximum 1000 block aways from home otherwise don't move or move a distance of 1000 block in home direction . and die if the partial player move stopped into a stone. hehe
or also depnding of the distance, the command gives damages (light speed is not a human stuff )
Too avoid the abuse, you may do a teleport with a maximum 1000 block aways from home otherwise don't move or move a distance of 1000 block in home direction . and die if the partial player move stopped into a stone. hehe
or also depnding of the distance, the command gives damages (light speed is not a human stuff )
Last edited by redcrab on Fri Jan 06, 2012 14:03, edited 1 time in total.
0.4 for serious builder click here
Dedicated Minetest redcrab server forum at http://minetestbb.suret.net
It's nice to be important but it is more important to be nice.
Dedicated Minetest redcrab server forum at http://minetestbb.suret.net
It's nice to be important but it is more important to be nice.
- jordan4ibanez
- Member
- Posts: 1923
- Joined: Tue Sep 27, 2011 18:44
- GitHub: jordan4ibanez
- IRC: jordan4ibanez
- In-game: jordan4ibanez
- Hackeridze
- Member
- Posts: 310
- Joined: Thu Nov 03, 2011 13:35
- Hackeridze
- Member
- Posts: 310
- Joined: Thu Nov 03, 2011 13:35
-
- Member
- Posts: 391
- Joined: Sun Jan 01, 2012 17:21
- Alienhunter3010
- Member
- Posts: 12
- Joined: Sat Nov 03, 2012 07:58
Merry Xmas to all.
I've add bookmark support to /sethome and /home commands.
You are free to download the init.lua file from here
http://ubuntuone.com/3wZcAwpSjLU7TM9bJxx8n6
Some examples:
/sethome shop
/home shop
(set and teleport to the 'shop' bookmark of the player)
For admins:
/sethome PoliceStation JohnDoe
/home PoliceStation JohnDoe
(set and teleport the user 'JohnDoe' to the 'PoliceStation' bookmark)
default home location still works:
/sethome
/home
(set and teleport to the default bookmark of the player)
You can also show bookmarks labels:
/showhomes
for admins:
/showhomes JohnDoe
I've add bookmark support to /sethome and /home commands.
You are free to download the init.lua file from here
http://ubuntuone.com/3wZcAwpSjLU7TM9bJxx8n6
Some examples:
/sethome shop
/home shop
(set and teleport to the 'shop' bookmark of the player)
For admins:
/sethome PoliceStation JohnDoe
/home PoliceStation JohnDoe
(set and teleport the user 'JohnDoe' to the 'PoliceStation' bookmark)
default home location still works:
/sethome
/home
(set and teleport to the default bookmark of the player)
You can also show bookmarks labels:
/showhomes
for admins:
/showhomes JohnDoe
Last edited by Alienhunter3010 on Wed Dec 26, 2012 15:27, edited 1 time in total.
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Nice! Already added your update to my server.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- Alienhunter3010
- Member
- Posts: 12
- Joined: Sat Nov 03, 2012 07:58
There is a configuration option to store the homes locally to the world in the init file.4aiman wrote:I found a bug!
If you save your position in some world... and then go to another... and try to "/home"... yep, you gonna find yourself in the middle of nowhere. 'Cause /sethome do not store world name
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Alienhunter3010, another bug in your fork has cropped up:
A user tried to "/sethome xxxx", which caused the server to crash with:
12:19:19: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaE
rror: error: .../.minetest/games/vanessae_game/mods/sethome/init.lua:168: attemp
t to index local 'output' (a nil value)
A user tried to "/sethome xxxx", which caused the server to crash with:
12:19:19: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaE
rror: error: .../.minetest/games/vanessae_game/mods/sethome/init.lua:168: attemp
t to index local 'output' (a nil value)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
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.
They should be changed to look like this.
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.
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.
Code: Select all
local homes_file = minetest.get_modpath('sethome')..'/homes'
--local homes_file = minetest.get_worldpath() .. "/homes"
Code: Select all
--local homes_file = minetest.get_modpath('sethome')..'/homes'
local homes_file = minetest.get_worldpath() .. "/homes"
- Evergreen
- Member
- Posts: 2135
- Joined: Sun Jan 06, 2013 01:22
- GitHub: 4Evergreen4
- IRC: EvergreenTree
- In-game: Evergreen
- Location: A forest in the midwest
- Contact:
Only 1 if you use /sethome by itself. But you can set more locations by adding some text after.Evergreen wrote:1Element wrote:how many homes can i set
Example:
/sethome mine
will set a location that when you type /home mine it will take you there. So technically it is 1 if you want to use the /home command alone, but many more with location identifiers after the /sethome command.
One warning, if you have multiple worlds, the home position and named positions are the same coordinates in every world so they will overwrite one another unless you make the modification to the lua file that I have mentioned in a post above.
This is not quite correct. It is not "/sethome [location]", it is "/sethome <player>" -- by creating that location identifier, you will be effectively using up a player slot.LionsDen wrote:Only 1 if you use /sethome by itself. But you can set more locations by adding some text after.Evergreen wrote:1Element wrote:how many homes can i set
Example:
/sethome mine
will set a location that when you type /home mine it will take you there. So technically it is 1 if you want to use the /home command alone, but many more with location identifiers after the /sethome command.
One warning, if you have multiple worlds, the home position and named positions are the same coordinates in every world so they will overwrite one another unless you make the modification to the lua file that I have mentioned in a post above.
To be safer and courteous to other players, prefix your home location with your username. "mine" becomes "<player>_mine" or something like that. In this way, you can't set a home name that is someone else's username, and you can set "<player1>_mine" and "<player2>_mine" so that both players can have mines, preventing from one player from creating "/home mine" and preventing all other players from using that.
Of course, all this only works if they have the "home_other" and "sethome_other" priveleges. If they don't, they can only set one home.
Last edited by ak399g on Mon Sep 02, 2013 02:49, edited 1 time in total.
aka SAFR
Nope, wrong.ak399g wrote:This is not quite correct. It is not "/sethome [location]", it is "/sethome <player>" -- by creating that location identifier, you will be effectively using up a player slot.
To be safer and courteous to other players, prefix your home location with your username. "mine" becomes "<player>_mine" or something like that. In this way, you can't set a home name that is someone else's username, and you can set "<player1>_mine" and "<player2>_mine" so that both players can have mines, preventing from one player from creating "/home mine" and preventing all other players from using that.
Look at your homes file and the sethome's init.lua file. The player's name is stored with the location name. You are not overwriting anyone else's locations. Maybe you were looking at an old version but the version that I downloaded months ago stores the player info with the location and the location name.
- fireglow
- Member
- Posts: 93
- Joined: Fri Mar 28, 2014 11:36
- IRC: fireglow
- In-game: fireglow
- Location: Germany
Re: [Mod] Sethome [sethome]
Does anybody have a recent version of Alienhunters fork?
The UbuntuOne link doesn't work anymore :-/
The UbuntuOne link doesn't work anymore :-/
Who is online
Users browsing this forum: Google [Bot] and 41 guests