Page 2 of 3

Re: Custom Ender Radar entries

PostPosted: Sat Apr 25, 2015 7:48 pm
by RickyP602
lachlaan wrote:You make a group, you set its show as false, you add all the markers for the items you want hidden. As it stands anything not normally added to the radar just shows you its terobjs/itemname entry so you know what to add to the list you want hidden.

<group name="hidden" show="false">
<marker match="gfx/terobjs/arch/hwall"/>
<marker match=gfx/terobjs/herbs/gneiss/>
<marker match=gfx/terobjs/herbs/rottenlog/>
<marker match=gfx/terobjs/herbs/daisy/>
</group>

etc etc, those should be fine but you can check yourself ingame.


I'm not familiar with this, any reason you can think of that when I implement this as you have it, it also removes all bushes and animals from Radar? Basically anything that is a shape instead of a small picture.

Re: Custom Ender Radar entries

PostPosted: Sat Apr 25, 2015 7:52 pm
by Cheena
You probably typed "false" for everything instead of just a little group.

Also this is my own current :

<!-- Cochonneries -->
<group name="hidden" show="false">
<marker match="gfx/terobjs/herbs/daisy"/>
<marker match="gfx/terobjs/herbs/lugleaf"/>
<marker match="gfx/terobjs/herbs/samleaf"/>
<marker match="gfx/terobjs/herbs/mabonleaf"/>
<marker match="gfx/terobjs/herbs/reeds"/>
</group>


I'm not familiar with this at all, but in lachlaan's stuff there a few missing "
...that may cause trouble or not, I don't know.

Re: Custom Ender Radar entries

PostPosted: Sat Apr 25, 2015 8:02 pm
by RickyP602
No I pasted his, however I did get it working.

<marker match="gfx/terobjs/arch/hwall"/>

This line was causing it do that, as far as I can tell at least.

Re: Custom Ender Radar entries

PostPosted: Sat Apr 25, 2015 8:45 pm
by Kandarim
weird. i'm not entirely sure how finicky the XML parsing is, but it might be the missing space right before the closing tags.

Re: Custom Ender Radar entries

PostPosted: Sat Apr 25, 2015 11:45 pm
by Kralith
Kandarim wrote:2) Add this line somewhere in a group with show="true":
Code: Select all
<marker pattern="gfx/.+" color="#999999" />



Okay, this Idea is great, but, when i have turned on "Blink radar objects" then all objects will blink.
Have thought, i put this function in a group named hidden and turn in on/off whenever i need this trhough Radar Config in GUI.
But then i cant use the Blink-Option.

Maybe you could restrict the Blink-Option in your code. Maybe a special named Group for such marker like above by which the Blink not matched?

This would be very fine, so could we let the "Find Marker for all Objects" in our radar.xml for later needs.

Re: Custom Ender Radar entries

PostPosted: Sun Apr 26, 2015 11:53 am
by Heffernan
has anyone removed daisies, honeysuckle and rotten logs yet? looking for a mod for this.

edit: nvm got dis viewtopic.php?f=11&t=13245

Re: Custom Ender Radar entries

PostPosted: Sun Apr 26, 2015 6:35 pm
by Kralith
Kralith wrote:
Kandarim wrote:2) Add this line somewhere in a group with show="true":
Code: Select all
<marker pattern="gfx/.+" color="#999999" />



Okay, this Idea is great, but, when i have turned on "Blink radar objects" then all objects will blink.
Have thought, i put this function in a group named hidden and turn in on/off whenever i need this trhough Radar Config in GUI.
But then i cant use the Blink-Option.

Maybe you could restrict the Blink-Option in your code. Maybe a special named Group for such marker like above by which the Blink not matched?

This would be very fine, so could we let the "Find Marker for all Objects" in our radar.xml for later needs.


Btw. Objects in own group like Reeds, Grass and so on will not blink, when i disable the group in GUI, why the marker above results in blinking all, even if i disable the group in GUI?

Re: Custom Ender Radar entries

PostPosted: Mon Apr 27, 2015 10:18 pm
by ShadowTani
Does anyone know why this doesn't work:
Code: Select all
<marker match="gfx/terobjs/tree/rbirch/.+" text="Birch Tree" />

Shouldn't that be somewhat equal to doing this:
Code: Select all
<marker match="gfx/terobjs/tree/rbirch/rtrunk" text="Birch Tree" />
<marker match="gfx/terobjs/tree/rbirch/rstump" text="Birch Stump" />

Yet, only that last version with the full path works for those. Why?

Re: Custom Ender Radar entries

PostPosted: Mon Apr 27, 2015 11:16 pm
by Kandarim
you want marker pattern rather than marker match for that.

Re: Custom Ender Radar entries

PostPosted: Mon Apr 27, 2015 11:48 pm
by ShadowTani
Oh thank you! Works like a charm now. =D