Page 1 of 1

[Mod] Compass+ [0.2][compass]

PostPosted: Sat Dec 28, 2013 22:25
by TeTpaAka
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

PostPosted: Sun Dec 29, 2013 00:50
by LuxAtheris
Cool mod.Now I cant be lost.

PostPosted: Sun Dec 29, 2013 02:01
by Jordach
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.

PostPosted: Sun Dec 29, 2013 02:25
by Evergreen
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.

PostPosted: Sun Dec 29, 2013 11:05
by TeTpaAka
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.

PostPosted: Tue Dec 31, 2013 02:47
by LuxAtheris
My suggestion: [mod]Compass+[0.1][compass]

PostPosted: Tue Dec 31, 2013 22:16
by TeTpaAka
LuxAtheris wrote:My suggestion: [mod]Compass+[0.1][compass]


Name changed now.

PostPosted: Wed Jan 01, 2014 21:20
by Krock
A portable compass, exactly what I've searched.
Also that bookmarks is a nice addition :)

PostPosted: Sun Feb 09, 2014 20:29
by TeTpaAka
I have added a menu so you can manage the bookmarks more easily.

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

PostPosted: Wed May 21, 2014 19:46
by Kilarin
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?

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

PostPosted: Thu May 29, 2014 12:19
by Kilarin
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.

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

PostPosted: Wed Jun 18, 2014 14:30
by BrunoMine
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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)

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

PostPosted: Sun Jul 06, 2014 15:52
by TeTpaAka
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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?