Long time ago i did some nosie because changed behavior of units on gathering point. Today I found some time for making the widget for solving it. I tried some approaches, after some hours i just stolen formation features from NOE tools and used them here for simple gathering point formation-making.
It works nice, first 30 units fit perfectly (using NOE "swarm" formation), another 60 positions are still acceptable (all with no endposition checking, no cpu eating )
gettingPosition = "advanced" or "simple"
For use in other game then NOTA, just change the scales settings (from 6x6 to 8x8 - 10x10 for BA for example)
gettingPosition selects the the way of making some scattered cloud of units. Simple use simple randomization in given spread x spread territory, advanced use NOE formations feature.
spread have different meaning for "advanced" and for "simple" gettingPosition mod. In advanced it means max. possible distance from last waypoint for center of next 30 units formation and for simple it means max distance from last waypoint for all units.
Better result can be done be redifining the formation (for example use NOE hexagon instead of NOE swarm - hex doesnt look "disordered" and it has own formation generator = no real top limit)
Widget knows what to do when end-waypoint is changed.
Behavior after reaching 30 units on place is not bad, but can be better. But the widget was primary built for "nice small groups" then "napoleon lines" making (such things do other NOE tools).
Default max spread can be sometimes problem for fast bots loading into airtransport (more flying for bus) and for fight on bridges and ramps... but thats mostly not about bad widget, but about its bad use
File comment: first 30 example2.jpg [40.83 KiB]
Downloaded 2 times
File comment: the first version of widget, the last will be in NOTA project google-svn repository (http://code.google.com/p/nota/source/browse/trunk/game/LuaUI/Widgets/cmd_clever_gathering_point.lua) cmd_clever_gathering_point.lua [4.72 KiB]
Downloaded 30 times
Joined: 17 Nov 2005, 02:43 Location: Raegquitting Spring on 04/24/12
Derp, I missed your skype message. Sorry. I had already gone to bed.
Well, there is already the widget that spreads out units when you give a non-line move order, but it doesn't spread them enough. I guess I could edit it manually, but yeah. I didn't understand initially that this was for an entirely different purpose.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum