[Mod] SimpleWarp Mod Bug Fix [simple_warp]

Post Reply
0xFireball
New member
Posts: 2
Joined: Thu Jun 09, 2016 22:00
GitHub: 0xFireball

[Mod] SimpleWarp Mod Bug Fix [simple_warp]

by 0xFireball » Post

Hello!
I'm new to the Minetest Forums and modding in general.
This mod is simply a tiny bugfix to this mod: viewtopic.php?t=10681
I'm not sure as to what to do to contribute to the original mod, so I just made a new repository. Please let me know if I made a mistake.

Changes:
- Add a gitignore file to ignore warp definitions
- Fix an issue with warping that caused the server to crash
- Change the file extension of warp definitions

Original mod description:
This mod adds private and public warps to Minetest.

List of commands :
/setwarp <name> (set a private warp at your current position)
/delwarp <name> (delete a private warp)
/setwarpall <name> (set a public warp at your current position)
/delwarpall <name> (delete a public warp)
/warps <index> (outputs the list of private warps, set page index to go to the next page)
/warpsall <index> (outputs the list of public warps, set page index to go to the next page)
/warp <location> (move to warp position)
Privs :
usewarp (can warp to worldwide/private locations)
warpown (can set/del private locations)
warpall (can set/del public locations)

Note :
The public locations have primary name claim, that means if you use /setwarp test and 'test' is already used publicly, the mod will throw an error. But if you had already set 'test' as private, /setwarpall test will ignore your location and you'll end up with conflicting names (in that case /warp test will always move you to the public location). An easy solution is to prefix the public locations.

Back to my modifications:

License: lgpl 2.1 as per the original work
Download: https://gitlab.com/ExaPhaserMinetest/si ... ref=master
Installation : Unzip the file and rename it to "simple_warp". Then move it to the mod directory.
Code: https://gitlab.com/ExaPhaserMinetest/simple_warp

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] SimpleWarp Mod Bug Fix [simple_warp]

by azekill_DIABLO » Post

you should change the name! anyway +1

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests