Page 1 of 1

[Mod] Inventory Warp [0.0] [inventorywarp_0gb_us]

PostPosted: Tue Nov 20, 2012 06:26
by 0gb.us
Development of inventorywarp_0gb_us will no longer continue. People wanted more warp points, so I built something else. It is called teleport_0gb_us, and provides an unlimited number of warp points, but each has a cost. If anyone is interested in this, it is being developed as part of 0gb.us_game, the game used at 0gb.us:30000.

Topic: http://forum.minetest.net/viewtopic.php?id=3808
Github: https://github.com/0gb-us/0gb.us_game/tree/master/0gb.us_game




[mod] Inventory Warp [0.0] [inventorywarp_0gb_us]

Code license: GNU LGPL version 2
Image license: No images included.

Plugin dependencies: inventory_plus

Image

I was going to install teleporters_reloaded, but the forum was down and I couldn't download it, so I built this instead. Like teleporters_reloaded, it provides a settable home, mine, and build location that can be warped to at any time, individual to each player. However, this plugin adds it to the menu instead of providing chat command access. In addition, to make sure you are never trapped, a suicide button is included, to send you back to the spawn point. Please note that this DOES count as a death, so if something such as bones is installed, you will, for example, loose all your items. The code for menu itself was taken from Celeron55's experimental plugin, with a few things removed, and a few things added.

I know the responses it gives have bad capitalization, punctuation, and grammar (such as "Teleported to your Build"), but that allows it to store/process less strings, so unless someone actually cares, I'm going to leave it as it is.

Done:
I'm adding support for inventory_plus, and have already finished the code to also show the player skin instead of the default skin if player_textures is installed (not included in this version). I decided to post this now instead of finishing inventory_plus support because I may be taking over inventory_plus soon, and change it up a bit, giving me more options to work with.

PostPosted: Wed Nov 21, 2012 21:02
by kaeza
Download link?

PostPosted: Tue Nov 27, 2012 01:30
by 0gb.us
What? I didn't include a download link? Well, that was rather lame of me. When I went to go get the link, it seems I had forgotten to upload it as well. Tisk, tisk.

Anyway, I no longer had a stable copy of the plugin because I've been messing with it, so I finished up what I've been working on, and uploaded it. Since the original version 0.0 was never available, I'll just call this on version 0.0.

http://0gb.us/minetest/download.php?plugin=inventorywarp_0gb_us-0.0

Additions: Commands!

While I would have liked to use commands such as /gohome and /die, people are more familiar with /home and /spawn, so I used those so people wouldn't have to learn as many new commands.

A command was added for every functional button. Each command does what it sounds like it should. Added commands include /home, /sethome, /mine, /setmine, /build, /setbuild, and /spawn.

In addition, this plugin is now compatible with (and requires) inventory_plus, and is also compatible with (but does not require) player_textures.

PostPosted: Thu Nov 29, 2012 15:20
by guilleelcapoextra
nice

PostPosted: Sun Dec 02, 2012 22:19
by davidpace
THIS IS AMAZING!!!!

PostPosted: Sun Dec 02, 2012 22:41
by yohoho
Does this work with the bags mod?

PostPosted: Sun Dec 02, 2012 22:43
by davidpace
Pretty Sure it does :)

PostPosted: Mon Dec 03, 2012 02:01
by 0gb.us
Thanks to inventory_pus, yes, it is compatible with bags.

PostPosted: Thu Dec 06, 2012 09:44
by RAPHAEL
I wouldn't mind seeing two homes, mines and builds. Sometimes people have more than one of each lol. Otheriwse I love this mod. It has proven very useful.

PostPosted: Fri Dec 07, 2012 19:11
by 0gb.us
I had thought that three warp points was already pushing boundaries, so I hadn't even considered adding three more. I have had times when more would have been very helpful though. Times such as every other day.

I'll add a second of each warp type in the next release. I might also throw in a setting, to allow server administrators to specify whether users should be allowed to have three or six warp points (NOT on a per user basis).

PostPosted: Sun Dec 09, 2012 22:21
by tux_peng
This looks great! But, how do I set the spawn point?

PostPosted: Mon Dec 10, 2012 08:19
by 0gb.us
There is no spawn point defined by this plugin. The "Die (Respawn)" button and /spawn command just kill you, and allow the game to respawn you in whatever way is set up.

Assuming there are no other non-default plugins installed, use the command "/set -n static_spawnpoint -13,4,50", or add "static_spawnpoint = -13,4,50" to your configuration file to set a spawn point. If a spawn point is not defined in this way, you'll respawn somewhere near the center of the map.

I would love to set up the /spawn command that doesn't the user, I just don't know how. If someone has any ideas, I'd love to hear them. I know how to get and parse the static_spawnpoint setting, but what do I do if no static spawn point has been set? I want to preserve the ability to spawn in a somewhat randomized location in this case.

PostPosted: Mon Dec 10, 2012 09:38
by Spots
I know that bookmarks does that it sets a many points as you need you just name them what you want then type (if i remember right) /go "bookmark name" i use the home and the book mark home for me home point and the book mark for like "mine1" , "mine2" , "forest" , "farm" ....bookmarks - http://minetest.net/forum/viewtopic.php?id=2321 and i just found a bookmarks GUI by cornernote - http://minetest.net/forum/viewtopic.php?id=3219 , maybe you can check the code there and see if that helps

PostPosted: Mon Dec 10, 2012 15:03
by 0gb.us
Spots wrote:I know that bookmarks does that it sets a many points as you need you just name them what you want then type (if i remember right) /go "bookmark name" i use the home and the book mark home for me home point and the book mark for like "mine1" , "mine2" , "forest" , "farm" ....bookmarks - http://minetest.net/forum/viewtopic.php?id=2321 and i just found a bookmarks GUI by cornernote - http://minetest.net/forum/viewtopic.php?id=3219 , maybe you can check the code there and see if that helps


Okay, that sounds like something I'd take the time to make. It may sake a while, as I do have some other things to deal with, such as homework, so be patient.

To be clear, are you wanting a way for server staff to set warp points that everyone can warp to (I was actually planning on building that eventually), or something to allow all users to set their own warp points, that only they can warp to?

PostPosted: Tue Dec 11, 2012 00:10
by Spots
you could set it either way i tend to play single player and set my warp to the spots i most use like home , 2-3 different mines, my tree farm,and my vault for storage

PostPosted: Tue Dec 11, 2012 16:34
by 0gb.us
Spots wrote:you could set it either way i tend to play single player and set my warp to the spots i most use like home , 2-3 different mines, my tree farm,and my vault for storage


Okay, so what is it about bookmarks_gui that doesn't meet your needs? I ask so I can make sure mine DOES meet your needs.

PostPosted: Sat Feb 23, 2013 19:45
by 0gb.us
Development of inventorywarp_0gb_us will no longer continue. People wanted more warp points, so I built something else. It is called teleport_0gb_us, and provides an unlimited number of warp points, but each has a cost. If anyone is interested in this, it is being developed as part of 0gb.us_game, the game used at 0gb.us:30000.

Topic: http://forum.minetest.net/viewtopic.php?id=3808
Github: https://github.com/0gb-us/0gb.us_game/tree/master/0gb.us_game