New widget: Enemy Spotter - Page 11

New widget: Enemy Spotter

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: New widget: Enemy Spotter

Post by knorke »

User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: New widget: Enemy Spotter

Post by Floris »

....so I did it myself

It now renders different colors for diffrent allyTeams
(defined 16 colors)

I've to mention that with 1v1v1v1v... it wont use the actual playercolors. So that might me a little unpleasant to the eye, but is still better than all having the same color anyway.


enjoy!
Attachments
gui_enemy_spotter.lua
(7.82 KiB) Downloaded 73 times
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: New widget: Enemy Spotter

Post by very_bad_soldier »

Floris wrote: It now renders different colors for diffrent allyTeams
(defined 16 colors)
So your EnemySpotter version marks allies?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: New widget: Enemy Spotter

Post by Silentwings »

No, it doesn't (I have a copy of Floris' version atm). It marks allyTeams all one colour, with different colours for different allyTeams, except your own one which is left blank.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: New widget: Enemy Spotter

Post by very_bad_soldier »

very_bad_soldier wrote:
Floris wrote: It now renders different colors for diffrent allyTeams
(defined 16 colors)
So your EnemySpotter version marks allies?
Silentwings wrote:No, it doesn't (I have a copy of Floris' version atm). It marks allyTeams all one colour, with different colours for different allyTeams, except your own one which is left blank.
Ok, now I am totally confused xD
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: New widget: Enemy Spotter

Post by Floris »

Yes, naming is confusing... but thats jut the way it is around here.

An allyTeam = group of players (also called teams).


I am still working on another version
- severely graphically enhanced
- well adjustable
- fits teamplayer colors
- supports different styles and can be randomly generated.

Image
Broker
Posts: 156
Joined: 02 Jul 2012, 13:16

Re: New widget: Enemy Spotter

Post by Broker »

than your widget better than TeamPlatter?

name = "TeamPlatter",
desc = "Shows a team color platter above all visible units",
author = "trepan",
date = "Apr 16, 2007",

Floris wrote:Yes, naming is confusing... but thats jut the way it is around here.

An allyTeam = group of players (also called teams).


I am still working on another version
- severely graphically enhanced
- well adjustable
- fits teamplayer colors
- supports different styles and can be randomly generated.

Image
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: New widget: Enemy Spotter

Post by Silentwings »

Right now its an alternative to teamplatter - people are using both and so, even though this and teamplatter can't really be used together, we keep both widgets in ba.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: New widget: Enemy Spotter

Post by Floris »

My widget is different because calling it 'AllySpotter' would match its functionality.

I am not sure about how to release it yet.

I will update the regular enemyspotter without the fancy options. (Using teamcolors if allyteams > 4)

And release the new one with the fancy options (which hasnt got a name yet). And each mod owner can just adjust it to their liking and bundle it with their mod.


But... It still needs a lot of tweaking in the part that generates random spotter circles if you ask me.


A feature I think would be nice to have is to retrieve each player trueskill value and use this as the number of stripes it renders, so you can see the skill of your opponent(s)
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: New widget: Enemy Spotter

Post by very_bad_soldier »

Looks kinda cool!
How much does it cost compared to regular EnemySpotter perfomance wise?
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: New widget: Enemy Spotter

Post by Floris »

not so much.. i only notice like 1..4 fps difference with on and off

Image
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: New widget: Enemy Spotter

Post by very_bad_soldier »

Hm, means a perfomance drop of up to >10%. Thats imo quite a huge impact for a single widet, no?
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: New widget: Enemy Spotter

Post by Floris »

nah that was with like 900+ units on screen when i tested, the diffrence with the plain enemyspotter really is minimal


(tested on mobile HD4670 gpu and MT client)
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: New widget: Enemy Spotter

Post by Floris »

(when allyTeams < 4 it will pick enemy teamcolors, when > 3 it will pick some standard colors defined in the config)


Also a video showing the FX version in action: (not released yet)
http://www.youtube.com/watch?v=zEM4O27K4Fs


edit: I must admit that without some AntiAliasing it doesnt look good, quitte odd really
Last edited by Floris on 19 Mar 2013, 01:09, edited 2 times in total.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: New widget: Enemy Spotter

Post by Floris »

(the one without the fancy circles)
Attachments
gui_enemy_spotter.lua
(9.78 KiB) Downloaded 19 times
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: New widget: Enemy Spotter

Post by Floris »

I recently picked up the project again and the new 'enemyspotter fx' is availible.

It shows a config panel when pressing ctrl+f11

You can set it to use trueskill values, so you can see if your enemy is a capable player instantly.

note: I only tested the widget with BA.

edit: on request I added option to draw the enemyspotter for own team when playing
Attachments
EnemySpotterFX.zip
(20.87 KiB) Downloaded 15 times
Last edited by Floris on 31 Jan 2014, 01:43, edited 2 times in total.
muckl
Posts: 151
Joined: 30 Aug 2010, 07:18

Re: New widget: Enemy Spotter

Post by muckl »

i would like a super lightweight platter plugin with best information vs performance value
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: New widget: Enemy Spotter

Post by Forboding Angel »

Your tweakmode UI does not work, floris.
Post Reply

Return to “Lua Scripts”