View topic - Gathering point formation


All times are UTC + 1 hour


Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 12 Nov 2012, 04:58 
User avatar

Joined: 03 Jun 2010, 00:28
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.

Image

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 :twisted: )

POSSIBLE SETTINGS

  • spread...............= 250
  • gettingPosition = "advanced" or "simple"
  • xScale...............= 6
  • zScale...............= 6

Meaning:

  • 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.

ISSUES, FUTURE:

  • 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 ;)


Attachments:
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
Top
 Offline Profile  
 
PostPosted: 12 Nov 2012, 11:40 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Does this only work on factories?
Top
 Offline Profile  
 
PostPosted: 12 Nov 2012, 14:43 
User avatar

Joined: 03 Jun 2010, 00:28
Forboding Angel wrote:
Does this only work on factories?


Yep, yet. Would you like to use it for something different? I can edit it for your needs.
Top
 Offline Profile  
 
PostPosted: 13 Nov 2012, 01:13 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
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.
Top
 Offline Profile  
 
PostPosted: 23 Nov 2012, 03:18 
User avatar

Joined: 03 Jun 2010, 00:28
new version v0.2

CHANGELOG

v0.2
- fix for no orders
- fix for lua reloaded widget (it still doesnt work for factories build before reload, but it doesnt do errors)


Attachments:
File comment: v0.2
cmd_clever_gathering_point.lua [4.84 KiB]
Downloaded 30 times
Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Site layout created by Roflcopter et al.