Page 1 of 2

[csm] Location markers [locations_markers_csm]

Posted: Fri Jun 28, 2019 14:09
by matyilona200
Adds location markers to the HUD. These always point in the direction of the location they mark. To work properly, the locations_markers_csm_textures directory has to be installed as a texturepack, as suggested here.

New points can be added by pressing W+S+LMB, the visibility of all markers can be toggled by A+D+LMB.
The button in the middle adds a marker to the current position, the arrows change the marker style, the button on the top change the color.
The three little crosses (left lower corner) delete all markers, the large one (right lower corner) deletes all markers in a 3 meter radius.

It is available on mesehub

Screenshots:
Image
Image

TODO:
  • Eliminate all hardcoded numbers, add them as settings (per marker or global)
  • Adding markers for a specified location
  • List of all markers to delete/toggle visibility/edit them one-by-one
This is my first attempt at a csm, it might have very trivial issues that I did not catch.

Edit: moved repo to mesehub

Re: [csm] Location markers [locations_markers_csm]

Posted: Tue Jul 16, 2019 23:42
by Sokomine
From how far away can the location markers be seen? Might be intresting to add distance and perhaps a name (optional?). Players getting lost and not finding back to their home in their first world sadly still happens. Those won't profit from this mod as they most certainly will not be aware of it. But the mod could be helpful in other cases.

Re: [csm] Location markers [locations_markers_csm]

Posted: Thu Oct 03, 2019 13:03
by Monika_Miyazaki
This csm mod does not work on minetest 5.1.0 rc1.

Image
03.10.19_15.58.png
(40.24 KiB) Not downloaded yet

Re: [csm] Location markers [locations_markers_csm]

Posted: Fri Oct 11, 2019 10:28
by Monika_Miyazaki
Monika_Miyazaki wrote:This csm mod does not work on minetest 5.1.0 rc1.

Image
03.10.19_15.58.png
I see that nobody cares about this mistake.
And nobody wants to help.

Re: [csm] Location markers [locations_markers_csm]

Posted: Sat Oct 12, 2019 16:16
by Lone_Wolf
Monika_Miyazaki wrote:I see that nobody cares about this mistake.
And nobody wants to help.
I see that nobody is patient and nobody thinks that the mod author might be busy this time of year :P

Re: [csm] Location markers [locations_markers_csm]

Posted: Sat Oct 12, 2019 17:30
by Monika_Miyazaki
Lone_Wolf wrote:
Monika_Miyazaki wrote:I see that nobody cares about this mistake.
And nobody wants to help.
I see that nobody is patient and nobody thinks that the mod author might be busy this time of year :P
I understand that. But such an error occurs not only in this mod for CSM.

Re: [csm] Location markers [locations_markers_csm]

Posted: Sun Oct 20, 2019 10:51
by matyilona200
Lone_Wolf wrote:
Monika_Miyazaki wrote:I see that nobody cares about this mistake.
And nobody wants to help.
I see that nobody is patient and nobody thinks that the mod author might be busy this time of year :P
I've been busy, haven't got much time to tinker with minetest nowdays unfortunately.

I noticed this problem too. It only occurs when connecting to servers. I tested it with many of the servers in the ingame list and had the issue with all of them, however if I host a game from the client (by ticking "Host server" on the Start Game tab) and connect with an other client I do not have this issue. I use the stock 5.0.1 archlinux package, taking a look at the PKGBUILD file I can't see any make options being used that can explain this behavior.

I think it is worth keeping in mind that CSM is still unstable and server operators might not want of allow the use of them because of issues with stability, or cheating.

EDIT:
right after writing this, I just found out that CSMs are off by default so unless the server operator enables them explicitly CSMs can't be used on servers.

Re: [csm] Location markers [locations_markers_csm]

Posted: Sun Oct 20, 2019 16:11
by Miniontoby
I like to debug mod errors so I will try it to solve. When I have the solution I'm going to post it.

Re: [csm] Location markers [locations_markers_csm]

Posted: Sun Oct 20, 2019 17:10
by Monika_Miyazaki
Miniontoby wrote:I like to debug mod errors so I will try it to solve. When I have the solution I'm going to post it.
It would be interesting to know whether the problem can be solved higher on the screenshot or not.

Re: [csm] Location markers [locations_markers_csm]

Posted: Sun Oct 20, 2019 17:12
by Monika_Miyazaki
matyilona200 wrote:
Lone_Wolf wrote:
Monika_Miyazaki wrote:I see that nobody cares about this mistake.
And nobody wants to help.
I see that nobody is patient and nobody thinks that the mod author might be busy this time of year :P
I've been busy, haven't got much time to tinker with minetest nowdays unfortunately.

I noticed this problem too. It only occurs when connecting to servers. I tested it with many of the servers in the ingame list and had the issue with all of them, however if I host a game from the client (by ticking "Host server" on the Start Game tab) and connect with an other client I do not have this issue. I use the stock 5.0.1 archlinux package, taking a look at the PKGBUILD file I can't see any make options being used that can explain this behavior.

I think it is worth keeping in mind that CSM is still unstable and server operators might not want of allow the use of them because of issues with stability, or cheating.

EDIT:
right after writing this, I just found out that CSMs are off by default so unless the server operator enables them explicitly CSMs can't be used on servers.
Okay. Thanks for the information.

Re: [csm] Location markers [locations_markers_csm]

Posted: Mon Oct 21, 2019 12:35
by Miniontoby
[DELETED] Check post down here

Re: [csm] Location markers [locations_markers_csm]

Posted: Mon Oct 21, 2019 12:59
by Miniontoby
Monika_Miyazaki wrote:
Miniontoby wrote:I like to debug mod errors so I will try it to solve. When I have the solution I'm going to post it.
It would be interesting to know whether the problem can be solved higher on the screenshot or not.
I think that it is an problem with your Minetest or your downloaded code of this mod Monika, because be me this mod does work.

Try this steps:
  1. Install this mod
  2. Go to the Minetest folder and move the "/clientmods/locations_markers_csm/locations_markers_csm_textures" folder to "/textures/"
  3. Open minetest, goto "content" click on "locations_markers_csm_textures" and then press "Use Texture Pack"
  4. Start your world and press "W+S+Left_click", choose your color, your marker picture (with the arrows) and press then the marker picture
  5. And done!

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 07:42
by Monika_Miyazaki
Miniontoby wrote:
Monika_Miyazaki wrote:
Miniontoby wrote:I like to debug mod errors so I will try it to solve. When I have the solution I'm going to post it.
It would be interesting to know whether the problem can be solved higher on the screenshot or not.
I think that it is an problem with your Minetest or your downloaded code of this mod Monika, because be me this mod does work.

Try this steps:
  1. Install this mod
  2. Go to the Minetest folder and move the "/clientmods/locations_markers_csm/locations_markers_csm_textures" folder to "/textures/"
  3. Open minetest, goto "content" click on "locations_markers_csm_textures" and then press "Use Texture Pack"
  4. Start your world and press "W+S+Left_click", choose your color, your marker picture (with the arrows) and press then the marker picture
  5. And done!
That manual didn't help.
I use the release version of Minetest 5.1.0.

Does not work for single-player or servers.

The mistake is still the same. As on my first post here.

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 08:00
by Miniontoby
I have also Minetest 5.1.0. and by me I got this mod work. I did wrote the steps I did in the post above.

This is being intresting.

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 14:23
by Miniontoby
I think that I have the solution for your problem. But then its only for singleplayer to use

P.S. I haven't got the right answer

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 14:44
by Monika_Miyazaki
Miniontoby wrote:I think that I have the solution for your problem
  1. Set "Client Side Modding" to Disable
  2. Start your world and walk a bit in the world and then leave the world
  3. Set "Client Side Modding" to Enable
  4. Start your world and I hope that it's solved
I don't know of that is the real solution and if it doesn't work try then to put it not in "clientmods" folder, but then in the "mods" folder and enable the mod and try it again.
It doesn't work for me.

And as a regular mod I don't need it.
I need it as a mod for the server, not as a single-player game.

Like a normal mod (in the mods folder) it does not work.

Image
23.10.19.PNG
(44.09 KiB) Not downloaded yet

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 14:47
by Miniontoby
I had an older version of minetest 5.1.0 and now because I have the env_meta error to much I did replace my minetest with the newest version and this mod doesn't work by me also with the same error

My conclusion is that this mod is got broken with the newest version of minetest

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 14:58
by Miniontoby
Monika_Miyazaki wrote: Image
23.10.19.PNG
blocked attempted read from
This means that your minetest couldn't read from the file, I think

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 15:01
by Monika_Miyazaki
Miniontoby wrote:I had an older version of minetest 5.1.0 and now because I have the env_meta error to much I did replace my minetest with the newest version and this mod doesn't work by me also with the same error

My conclusion is that this mod is got broken with the newest version of minetest
Well, in that case, we should expect the fixes of this mod from its author.
And if this is the fault of minetest developers (who broke the API), then wait for the fixes from them.

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 15:02
by Miniontoby
Monika_Miyazaki wrote:
Miniontoby wrote:I had an older version of minetest 5.1.0 and now because I have the env_meta error to much I did replace my minetest with the newest version and this mod doesn't work by me also with the same error

My conclusion is that this mod is got broken with the newest version of minetest
Well, in that case, we should expect the fixes of this mod from its author.
And if this is the fault of minetest developers (who broke the API), then wait for the fixes from them.
I think that is a good solution for now

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 15:03
by Monika_Miyazaki
Miniontoby wrote:
Monika_Miyazaki wrote: Image
23.10.19.PNG
blocked attempted read from
This means that your minetest couldn't read from the file, I think
So that's in case you run it as a regular mod.
But I need it as a mod for CSM (to create labels on the server).

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 15:05
by Monika_Miyazaki
Miniontoby wrote:
Monika_Miyazaki wrote:
Miniontoby wrote:I had an older version of minetest 5.1.0 and now because I have the env_meta error to much I did replace my minetest with the newest version and this mod doesn't work by me also with the same error

My conclusion is that this mod is got broken with the newest version of minetest
Well, in that case, we should expect the fixes of this mod from its author.
And if this is the fault of minetest developers (who broke the API), then wait for the fixes from them.
I think that is a good solution for now
I think the API for CSM is a little broken.
It's worth waiting for the fixes.

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 15:14
by Miniontoby
I think you need to post it in the minetest 5.1.0 topic, only that they know it and then that they can change it, I think

Re: [csm] Location markers [locations_markers_csm]

Posted: Wed Oct 23, 2019 19:08
by Monika_Miyazaki
Miniontoby wrote:I think you need to post it in the minetest 5.1.0 topic, only that they know it and then that they can change it, I think
That doesn't make any sense right now. The developers are surely aware of this.

Re: [csm] Location markers [locations_markers_csm]

Posted: Thu Nov 07, 2019 19:07
by Krock
Miniontoby wrote:I think you need to post it in the minetest 5.1.0 topic
Wrong place. If it's a Minetest bug, please create an issue on GitHub.
Monika_Miyazaki wrote:The developers are surely aware of this.
No, there's yet no report of such an issue.

CSM API wrote:** WARNING: The client API is currently unstable, and may break/change without warning. **
Whereas this is true, it indeed seems to be a new problem. "minetest.localplayer" is not guaranteed to be available when loading the mods. The real issue is that "on_mods_loaded" callback is run before the client is fully initialized.