[Mod] Warps [warps] (portal|warp|teleport)

sofar
Developer
 
Posts: 1762
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

[Mod] Warps [warps] (portal|warp|teleport)

by sofar » Wed Apr 29, 2015 06:54

Warps - a warp location and warp stone mod

Keywords: portal|warp|teleport

Image

This is a fairly simple warp mod, designed to make it easy for novice users to travel around a map without having to type in text commands, but without granting users permission to teleport to any location on the map.

Warps are created by the warp admin. Warp privilege needs to be granted to users (not enabled by default). The user can list and warp to the warp locations that exist.

Warp stones are available with /give and through a creative inventory. These stones work as one-way teleporters that can be programmed with a target by the warp_admin. No privileges are needed to use these warp stones. Users can't reprogram the target, only use it to warp. Users can also call the /warp command directly if they know the name of the warp location.

While warping, the user needs to stand still in one location for 5 seconds. This prevents combat escape and teleport overuse, as teleporting can cause large amounts of blocks to be loaded.

Commands:
  • /warp [warp name] - warp to a destination, if allowed and exists
  • /listwarps [warp name] - list all known warp destinations
  • /setwarp [warp name] - create a new, or modify a warp destination
  • /delwarp [warp name] - remove a warp destination

Nodes
  • warps:warpstone - The warp stone node looks like a purple floating gem

Actions that can be performed on the warp stone:
  • Punching the node initiates a warp, similar to typing the /warp command.
  • Right-clicking the warpstone reprograms the target. By default there is no target set.
  • Shift-punching (shift-left click) removes the warp stone from the map.


Permissions
  • warp_admin - allows creating, changing warps and modifying warp stones
  • warp_user - allows listing warps, and using warps and warp stones

Config

Warps are stored in a "warps.txt" file in the world folder. This file isn't meant to be editable, but it's format is trivial enough to edit it with a text editor.

Dependencies: None (default game only)

Download

The project is on github, like my other mods:
Project page: https://github.com/minetest-mods/warps
Download latest version: https://github.com/minetest-mods/warps/archive/master.zip

License:: LGLPv21+ for code, CC-BY-SA-3.0 for models/textures, sounds are CC-BY-3.0 and CC-BY-NC-3.0

Upcoming plans:
  • Assign a cost to using a warpstone (item, other?)
  • Permission audit

======================================
Check out my mods:
Last edited by sofar on Thu Jan 19, 2017 01:03, edited 7 times in total.
 

User avatar
indriApollo
Member
 
Posts: 146
Joined: Fri Sep 26, 2014 11:34
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by indriApollo » Wed Apr 29, 2015 09:41

I wonder, where you aware of viewtopic.php?f=9&t=10681 ? Do you want to do it your own way, or is this just duplicate effort ?
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by Evergreen » Wed Apr 29, 2015 11:39

indriApollo wrote:I wonder, where you aware of viewtopic.php?f=9&t=10681 ? Do you want to do it your own way, or is this just duplicate effort ?

This works pretty differently from your mod, your command uses a lot of commands to create warps, but this uses nodes.
Back from the dead!
 

sofar
Developer
 
Posts: 1762
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by sofar » Wed Apr 29, 2015 16:07

Evergreen wrote:
indriApollo wrote:I wonder, where you aware of viewtopic.php?f=9&t=10681 ? Do you want to do it your own way, or is this just duplicate effort ?

This works pretty differently from your mod, your command uses a lot of commands to create warps, but this uses nodes.


Right. Having "waypoints" or "bookmarks is nice, and is certainly needed, but the main thing I was missing in those other mods is something where a player does not need to actually remember or even type commands in the terminal at all.

I was used to having this functionality when I was still playing MC, and really needed it back in MT. Since I could not find a good solution, this was easy enough ;^)
 

User avatar
Krock
Developer
 
Posts: 4144
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by Krock » Wed Apr 29, 2015 18:41

I think you should rename it to "Portals" because using warp is not the same as teleporting (but is almost the same speed on a map like Minetest uses).
Also using an entity (+ invisible node) as replacement for the meshnode would be a nice idea because you could rotate that one.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

sofar
Developer
 
Posts: 1762
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by sofar » Wed Apr 29, 2015 20:05

Krock wrote:I think you should rename it to "Portals" because using warp is not the same as teleporting (but is almost the same speed on a map like Minetest uses).


Renaming usually is ugly, and I thought about the name for a bit. In the end I didn't like "portal" because it assumes a shape. Whereas warping denominates the idea of "translocating". I can still change the name later, I know the name is in use by other mods anyway.

Krock wrote:Also using an entity (+ invisible node) as replacement for the meshnode would be a nice idea because you could rotate that one.


Yes, *absolutely*. I'm only fairly new to blender and mesh nodes, and I realized immediately that when I made this a mesh node that I couldn't animate it. You also can't have a permanent sound on a mesh node, and I really wanted to add a "humming" sound coming from the warp stone as well.

So my idea is to change the current warp node to a "pedestal" shape, something 1/10th of a node height. The "pedestal" by default is unprogrammed, so there won't be a crystal above it when you set it down. Once programmed, the crystal appears as an object and it rotates and wobbles slightly up-and-down. The programming and removal of the warp stones can then be done by interaction with the warp pedestal, and the actual teleporting can be done by interacting with the warp crystal.

Maybe we can even have some alternative designs, like portals in MC (collision detection?), but ... one thing at a time.

Now you spoiled the surprise :)
 

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by everamzah » Tue Jul 14, 2015 19:51

What do you think about per-user warplists? For example: /setwarp LocationName PlayerName. This way people with warp_user priv can't go just anywhere, and player's can have hidden warps. /setwarp LocationNameTwo without a player name param would be global and anyone with warp_user priv could see it and warp there as normal.

There's a bug when a player punches the stone and stands still and then disconnects before warping. This crashes the server. I added an if not nil e.p:setpos() but that took me 30 minutes to figure out, so that shows the extent of my abilities there. :-) I'm running this mod at amhi.duckdns.org.
 

sofar
Developer
 
Posts: 1762
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by sofar » Sat Aug 29, 2015 04:19

everamzah wrote:What do you think about per-user warplists? For example: /setwarp LocationName PlayerName. This way people with warp_user priv can't go just anywhere, and player's can have hidden warps. /setwarp LocationNameTwo without a player name param would be global and anyone with warp_user priv could see it and warp there as normal.

There's a bug when a player punches the stone and stands still and then disconnects before warping. This crashes the server. I added an if not nil e.p:setpos() but that took me 30 minutes to figure out, so that shows the extent of my abilities there. :-) I'm running this mod at amhi.duckdns.org.


Can you post this patch so I can merge it? github pull request works fine.https://github.com/sofar/warps.

There are mods already there that implement private or per-player warp points - I didn't setup the permission system to account for multiple players, so that would be hard to change, and not something I currently prefer doing.
 

scottvee
Member
 
Posts: 18
Joined: Thu Jan 12, 2017 07:59
In-game: scottvee
 

sofar
Developer
 
Posts: 1762
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar
 

lightseer
Member
 
Posts: 125
Joined: Mon Jan 23, 2017 16:18

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by lightseer » Sat Jan 28, 2017 21:21

Just trying this out (With version 0.4.13 since I'm too incompetent to get 0.4.15 going on Ubuntu 16.04). Standalone there was an error when the get_player_privs function tried to run, so I just took out the permissions checking. Now it works standalone for me. Thanks, because going up and down 600 sections of ladder was going to be a little annoying.
 

sofar
Developer
 
Posts: 1762
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod] Warps [Warps] (portal, warp, teleport)

by sofar » Sat Jan 28, 2017 23:58

lightseer wrote:Just trying this out (With version 0.4.13 since I'm too incompetent to get 0.4.15 going on Ubuntu 16.04). Standalone there was an error when the get_player_privs function tried to run, so I just took out the permissions checking. Now it works standalone for me. Thanks, because going up and down 600 sections of ladder was going to be a little annoying.


right, in general older versions are not supported. Enjoy! glad you got it to work.
 


Return to Mod Releases



Who is online

Users browsing this forum: Google [Bot] and 6 guests