Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radius marker for your own player #26

Open
Alexgopen opened this issue Jul 21, 2023 · 3 comments
Open

Radius marker for your own player #26

Alexgopen opened this issue Jul 21, 2023 · 3 comments
Labels
radius markers Radius Markers plugin

Comments

@Alexgopen
Copy link

Alexgopen commented Jul 21, 2023

I see that you can attach radius markers to npcs by NPC ID, but is there a way to attach a radius marker to your own player character?

I want to be able to set a square radius around my player to mark out things such as NPC render distance, as well as the attack range of my weapon/spell. I basically want a square around my character that updates with me as I run around.

@Skretzo
Copy link
Owner

Skretzo commented Jul 27, 2023

You should try out the "Line of Sight" hub plugin, as that one will let you choose a radius around the player. It has an outline mode and will disregard tiles that you cannot walk on, which is probably useful for the attack range of a player weapon/spell.

I will eventually implement the ability to make a radius marker for your own player character, but that will not account for line of sight.

@Alexgopen
Copy link
Author

Alexgopen commented Jul 27, 2023

Yeah I saw and tried that plugin before, hoping it would do what I was looking for, but it doesn't. That one seems to be line of sight as in which obstacles will block your shot. I'm looking to just have a square around the player which extends out to the edge of NPC render distance, to know if an area up ahead is close enough that a crystal impling would be visible to me if there were one there, that way I don't need to run up closer than I need to in order to check. This would be one example of where it would be useful to have a square of predetermined size centered on the player, but there would be other cases such as avoiding being seen when doing wildy clue steps by keeping hotspots out of your render distance, among other use cases we haven't thought of yet.

Just a simple square radius centered on the player, such as this:
image
In this case I have a 15 tile radius, as that's the distance at which NPCs begin rendering. Any NPCs outside this radius are not in render distance yet, so to search for crystal implings, I would run around covering as much area as I could with the marked radius. Then I don't need to waste energy going further than I need to if the area up ahead is already within the 15 tile NPC render distance. "Line of Sight" plugin doesn't do this, and additionally "Line of Sight" has a max distance of 10, which isn't even as far as NPC line of sight actually goes. Your plugin already creates a radius centered on the player if you click the + "Add new radius marker" button in the plugin panel, however it's locked to just that tile, and doesn't follow the player around. Specifying an NPC ID allows the radius marker to follow an NPC around, but there's no value to specify as NPC ID to make the radius marker follow your own player.

For example here this guard has a 15 tile square radius that moves around with it as it walks around, but I'd like to be able to add a radius like this to my own player character. Perhaps you could use NPC ID -1 as a placeholder to represent your own character, and make a radius marker with NPC ID -1 follow your own player like it would any other NPC.
image

@Skretzo
Copy link
Owner

Skretzo commented Jul 27, 2023

In this case I have a 15 tile radius, as that's the distance at which NPCs begin rendering. Any NPCs outside this radius are not in render distance yet, so to search for crystal implings, I would run around covering as much area as I could with the marked radius. Then I don't need to waste energy going further than I need to if the area up ahead is already within the 15 tile NPC render distance

Have you tried lowering the render distance to 15 tiles in the GPU plugin? That way everything > 15 tiles away from the player should become black (or whatever colour you have set in the skybox plugin).

There is also a very scuffed workaround to do the marking in the Radius Marker plugin which is to bring a cat and have a marker follow the cat, although that will always be off by 1 tile and the cat will get stuck behind obstacles and need to be called frequently.

I will add the option to place radius markers that will follow the player, but I cannot give you an ETA for when this will happen. Hopefully within a month.

@Skretzo Skretzo added the radius markers Radius Markers plugin label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
radius markers Radius Markers plugin
Projects
None yet
Development

No branches or pull requests

2 participants