Area Mex - Page 7

Area Mex

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

Moderator: Moderators

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

Re: Area Mex

Post by aegis »

it looked like it was using something weird like distance from an average point

I did a simple nearest-neighbor implementation in smart_area_reclaim if anyone wants to see if it's any better
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Area Mex

Post by Google_Frog »

Nearest neighbour, the averaging is finding the average location of all the selected constructors. The first order is given to the nearest spot to the average point. Then it gives subsequent orders to the nearest neighbour of the last order which doesn't already have an order on it.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Area Mex

Post by knorke »

i think maybe metalmaps are not the best way to test.
(you can just use grid-building with spaceing anyway)
MaDDoX
Posts: 77
Joined: 08 Jan 2006, 17:45

Re: Area Mex

Post by MaDDoX »

Hey guys, follows the edited gui_red_buildordermenu for the 9.31 BA version, place it on LuaUI/Widgets, next to cmd_area_mex.lua (I'm still using 2.2 posted in the previous page). Previous buildordermenu version layout and style was completely different from the current one.

I'm using Ctrl+Z to fire up the areamex command, if you're new to that just add this line to your uikeys.txt:
bind Ctrl+z areamex

PS.: Remember to disable the original red_buildordermenu from the Widgets list in-game
Attachments
gui_red_buildordermenu_custom.lua
(21.29 KiB) Downloaded 18 times
Post Reply

Return to “Lua Scripts”