[Mod] Compass+ [0.2][compass]

Post Reply
User avatar
TeTpaAka
Member
Posts: 141
Joined: Sat Dec 28, 2013 21:54

[Mod] Compass+ [0.2][compass]

by TeTpaAka » Post

I think, Echos Compass mod is pretty awesome. But I was missing the feature to refind places you visited once and then never find it again. So I added the ability to bookmark lokations.

The Mod is based on the compass mod, so it uses Echos images and code.
The images are CC BY-SA of Echo.
The code is WTFPL, partially by Echo and partially by me.

You can craft a compass like this:

steel_ingot
steel_ingot mese_crystal_fragment steel_ingot
steel_ingot

To set a bookmark, type: /set_bookmark_name
To delete a bookmark, type: /remove_bookmark bookmark_name
To view all your bookmarks: /list_bookmarks
And finally to let your compass point to the bookmark: find_bookmark bookmark_name

If you want your compass to return to its usual behavior, type: find_bookmark default

Since 0.2 you can also open a menu with these commands by punching with the compass.

Changelog:
compass+_0.2: menu added for manipulating bookmarks
compass+_0.1: changed the name from bookmark to compass+
bookmarks_0.1.1: minor bugfix

Download:
compass+_0.2.zip
compass+_0.1.zip (name changed)
bookmarks_0.1.1.zip (Bugfix)
bookmarks.zip
Last edited by TeTpaAka on Sun Feb 09, 2014 20:28, edited 1 time in total.

User avatar
LuxAtheris
Member
Posts: 169
Joined: Fri Oct 25, 2013 00:54
Location: Aether

by LuxAtheris » Post

Cool mod.Now I cant be lost.
Believe you can and you’re halfway there.

Jordach
Member
Posts: 4527
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Reminds me of Rei's minimap on how the locations work. Otherwise, not bad.

Come to think of it, something that replicates said MC mod would be nice.
viewtopic.php?f=10&t=19056 Solar Plains Dev Server

User avatar
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:

by Evergreen » Post

Jordach wrote:Reminds me of Rei's minimap on how the locations work. Otherwise, not bad.

Come to think of it, something that replicates said MC mod would be nice.
Good idea. Though I can't really imagine how to make the visible markers unobtrusive. Also, entities are still too buggy to be reliable, so I would still keep a .txt file with the coords of all your locations.
Back from the dead!

User avatar
TeTpaAka
Member
Posts: 141
Joined: Sat Dec 28, 2013 21:54

by TeTpaAka » Post

Hybrid Dog wrote:How much mods are called bookmarks yet?
I don't know. What name do you suggest? I could rename it, so it doesn't interfere with other mods.

User avatar
LuxAtheris
Member
Posts: 169
Joined: Fri Oct 25, 2013 00:54
Location: Aether

by LuxAtheris » Post

My suggestion: [mod]Compass+[0.1][compass]
Believe you can and you’re halfway there.

User avatar
TeTpaAka
Member
Posts: 141
Joined: Sat Dec 28, 2013 21:54

by TeTpaAka » Post

LuxAtheris wrote:My suggestion: [mod]Compass+[0.1][compass]
Name changed now.

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

by Krock » Post

A portable compass, exactly what I've searched.
Also that bookmarks is a nice addition :)
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
TeTpaAka
Member
Posts: 141
Joined: Sat Dec 28, 2013 21:54

by TeTpaAka » Post

I have added a menu so you can manage the bookmarks more easily.

User avatar
Kilarin
Member
Posts: 779
Joined: Mon Mar 10, 2014 00:36

Re: [Mod] Compass+ [0.2][compass]

by Kilarin » Post

ok, this is an AWESOME mod. BUT, I've got a question. It seems that compass works without the bookmarks mod. What is the purpose of the bookmarks mod?

User avatar
Kilarin
Member
Posts: 779
Joined: Mon Mar 10, 2014 00:36

Re: [Mod] Compass+ [0.2][compass]

by Kilarin » Post

I've created a fork of this awesome fork of an awesome mod: Compass GPS

The fork adds an heads up display of your current position -> the bookmark name the compass is pointing at : distance to that bookmark. And it expands the bookmark list from a dropdown to a textlist for improved readability.

Image

I think the original mods are really great, and incredibly useful. That's why I was inspired to make my own version. I learned so much working with this advanced code! If you try out compass gps, please let me know how it works for you.

User avatar
BrunoMine
Member
Posts: 1074
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Compass+ [0.2][compass]

by BrunoMine » Post

Code: Select all

06:19:07: ACTION[ServerThread]: Filipe uses compass:4, pointing at [node under=-167,3,183 above=-167,4,183]
06:20:24: ACTION[ServerThread]: Filipe uses compass:2, pointing at [node under=-168,22,280 above=-168,22,279]
06:20:27: ACTION[ServerThread]: Filipe uses compass:2, pointing at [nothing]
06:20:31: ACTION[ServerThread]: Filipe uses compass:2, pointing at [nothing]
06:20:47: ERROR[ConnectionSend]: con(5/1)RunTimeouts(): Peer 322 has timed out. (source=peer->timeout_counter)
06:20:47: ERROR[main]: ERROR: An unhandled exception occurred: /root/minetest/bin/../mods/compass/init.lua:124: attempt to concatenate local 'param' (a nil value)
06:20:47: ERROR[main]: stack traceback:
06:20:47: ERROR[main]: 	/root/minetest/bin/../mods/compass/init.lua:124: in function 'find_bookmark'
06:20:47: ERROR[main]: 	/root/minetest/bin/../mods/compass/init.lua:24: in function '?'
06:20:47: ERROR[main]: 	/root/minetest/bin/../builtin/game/register.lua:348: in function </root/minetest/bin/../builtin/game/register.lua:336>

In thread 7f5d12c7e740:
/usr/games/minetest-minetest-660e636/src/main.cpp:1919: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f5d0b56b700:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD 7f5d12c7e740:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void Database_SQLite3::saveBlock(MapBlock*))
(Leftover data: #4  void ItemStack::serialize(std::ostream&) const)

User avatar
TeTpaAka
Member
Posts: 141
Joined: Sat Dec 28, 2013 21:54

Re: [Mod] Compass+ [0.2][compass]

by TeTpaAka » Post

Kilarin wrote:ok, this is an AWESOME mod. BUT, I've got a question. It seems that compass works without the bookmarks mod. What is the purpose of the bookmarks mod?
The "bookmarks" mod is just an old version of the compass+ mod. The difference is only the name (and some unfixed bugs.)
brunob.santos wrote:

Code: Select all

06:19:07: ACTION[ServerThread]: Filipe uses compass:4, pointing at [node under=-167,3,183 above=-167,4,183]
06:20:24: ACTION[ServerThread]: Filipe uses compass:2, pointing at [node under=-168,22,280 above=-168,22,279]
06:20:27: ACTION[ServerThread]: Filipe uses compass:2, pointing at [nothing]
06:20:31: ACTION[ServerThread]: Filipe uses compass:2, pointing at [nothing]
06:20:47: ERROR[ConnectionSend]: con(5/1)RunTimeouts(): Peer 322 has timed out. (source=peer->timeout_counter)
06:20:47: ERROR[main]: ERROR: An unhandled exception occurred: /root/minetest/bin/../mods/compass/init.lua:124: attempt to concatenate local 'param' (a nil value)
06:20:47: ERROR[main]: stack traceback:
06:20:47: ERROR[main]: 	/root/minetest/bin/../mods/compass/init.lua:124: in function 'find_bookmark'
06:20:47: ERROR[main]: 	/root/minetest/bin/../mods/compass/init.lua:24: in function '?'
06:20:47: ERROR[main]: 	/root/minetest/bin/../builtin/game/register.lua:348: in function </root/minetest/bin/../builtin/game/register.lua:336>

In thread 7f5d12c7e740:
/usr/games/minetest-minetest-660e636/src/main.cpp:1919: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f5d0b56b700:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD 7f5d12c7e740:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void Database_SQLite3::saveBlock(MapBlock*))
(Leftover data: #4  void ItemStack::serialize(std::ostream&) const)
Can you please tell me what caused this error?

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests