[Mod] Compass+ [0.2][compass]

TeTpaAka
Member
 
Posts: 131
Joined: Sat Dec 28, 2013 21:54

[Mod] Compass+ [0.2][compass]

by TeTpaAka » Sat Dec 28, 2013 22:25

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

by LuxAtheris » Sun Dec 29, 2013 00:50

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

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Sun Dec 29, 2013 02:01

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.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Sun Dec 29, 2013 02:25

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.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

TeTpaAka
Member
 
Posts: 131
Joined: Sat Dec 28, 2013 21:54

by TeTpaAka » Sun Dec 29, 2013 11:05

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

by LuxAtheris » Tue Dec 31, 2013 02:47

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

TeTpaAka
Member
 
Posts: 131
Joined: Sat Dec 28, 2013 21:54

by TeTpaAka » Tue Dec 31, 2013 22:16

LuxAtheris wrote:My suggestion: [mod]Compass+[0.1][compass]


Name changed now.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Wed Jan 01, 2014 21:20

A portable compass, exactly what I've searched.
Also that bookmarks is a nice addition :)
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

TeTpaAka
Member
 
Posts: 131
Joined: Sat Dec 28, 2013 21:54

by TeTpaAka » Sun Feb 09, 2014 20:29

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

Kilarin
Member
 
Posts: 649
Joined: Mon Mar 10, 2014 00:36

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

by Kilarin » Wed May 21, 2014 19:46

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?
 

Kilarin
Member
 
Posts: 649
Joined: Mon Mar 10, 2014 00:36

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

by Kilarin » Thu May 29, 2014 12:19

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: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

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

by BrunoMine » Wed Jun 18, 2014 14:30

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)
 

TeTpaAka
Member
 
Posts: 131
Joined: Sat Dec 28, 2013 21:54

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

by TeTpaAka » Sun Jul 06, 2014 15:52

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?
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 12 guests

cron