Unit Tracer

Unit Tracer

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

Moderator: Moderators

Post Reply
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Unit Tracer

Post by aegis »

anyone remember my mouse tracing widget?

I changed it to track unit movements over their lifetime instead of mouse movement

here's the result from a 7mb replay of an 8v8 I had -_-

Image
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Unit Tracer

Post by hoijui »

:D cool!
patrolling panes are quite dominant.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Unit Tracer

Post by aegis »

wellll this was a really long game with a very large replay :P
User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Re: Unit Tracer

Post by Masse »

Just add anti-aliasing and make the line thickness to vary by speed or maybe by health of the unit, then you got art!
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Unit Tracer

Post by aegis »

I'm thinking of throwing it into some kind of heatmap or mesh

adding line width might be too expensive
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: Unit Tracer

Post by JohannesH »

Just try a game that doesnt include gazillion players and itll make more sense
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Unit Tracer

Post by CarRepairer »

Or just make a version that only shows land units.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Unit Tracer

Post by aegis »

it's actually not very performance intensive to track the units like this, so I can keep tracking all units and just put a GUI on it to configure display (when I start playing more with GUIs)

I have a tracer class and give each unit a short-range tracer (only the last 15 game frames) and a long-range tracer (every 15 game frames) so it looks cool live but I still got workable fps at the end of that game showing thousands of unit paths
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Unit Tracer

Post by TradeMark »

Nice, i wonder how it would look if you added 1000 replays of BADSD8v8 in it :D

Transparent lines will do enough to see the "heatmap", once you have enough data...

Also it should be in 2d only
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Unit Tracer

Post by aegis »

hmm I can decrease the transparency over time
User avatar
CaptainPoo
Posts: 19
Joined: 28 Jul 2010, 13:46

Re: Unit Tracer

Post by CaptainPoo »

I'd prefer it if it combined all the small lines doing the same path into bigger lines so there would be like 1 line for the patroling fighters etc and there wouldn't be such a fail mess

Tbh no matter what you do to it, it's not very interesting
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: Unit Tracer

Post by oksnoop2 »

I find this to be very interesting.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Unit Tracer

Post by TradeMark »

aegis wrote:hmm I can decrease the transparency over time
Rather make it so the slow units draws stronger lines, and fast units less visible lines, so the airscreens wont be that visible as they are now.
CaptainPoo wrote:I'd prefer it if it combined all the small lines doing the same path into bigger lines so there would be like 1 line for the patroling fighters etc and there wouldn't be such a fail mess
Or do what i said above.
CaptainPoo wrote:Tbh no matter what you do to it, it's not very interesting
These kind of heatmaps are really useful IMO, if we had such heatmaps from all maps, you can learn to play the map faster since you focus on those spots where were most heat.

--

aegis; You could also separate air, water, and ground units heatmaps, by using white, blue and yellow traces, could be turned on onto the same image if wanted (like on a website). Would be really cool. Would help a lot to see what kind of map it is, and know fast where the possible battles will be.

Only bad thing on this is that if the mod changes a lot, the heatmap isnt necessary valid anymore. Maybe we can make a gadget in BA that autouploads the unit traces data to some server that keeps track how the heatmaps looks on each map/mod?
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Unit Tracer

Post by Neddie »

It is interesting for the purposes of analysis, but not useful or interesting for the majority of users. That doesn't preclude it having a use.
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: Unit Tracer

Post by oksnoop2 »

TradeMark wrote: Maybe we can make a gadget in BA that autouploads the unit traces data to some server that keeps track how the heatmaps looks on each map/mod?

Ohh I did not think of that but that would be interesting. I enjoyed looking over stuff like that. http://www.steampowered.com/status/tf2/tf2_stats.php for example
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Unit Tracer

Post by knorke »

I find this quite interessting.
Cool how the endgame "factory waypoint to front" spam of orange and green is visible. At least I think thats what it is.
If you cba to fullfil all the request of automatic server upload and bla just make some more images for us to look at 8)

Ie of games on maps where units can not go everywhere and of different mods. kernel panic might be interessting.
Post Reply

Return to “Lua Scripts”