Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - hectorpalador

#1
Hi all,

Someone can help me ?

I've this issue :
Trigger Error in 'gt_MeleeInitialization_Func': Parameter out of   bounds in 'PlayerGetAlliance' (value: 10, min: Passive, max: 9)
When i run my map with the last Launcher 'SC2ALLin1' i can setup Team   on my map.  But when i try to run with 'lazylaunch2' i've this issue :  Trigger Error in 'gt_MeleeInitialization_Func': Parameter out of bounds   in 'PlayerGetAlliance' (value: 10, min: Passive, max: 9)
My MapScript.galaxy :
include "TriggerLibs/NativeLib"  void SetAlliance(int p1, int p2) {     PlayerGetAlliance(p1,0,p2);     PlayerGetAlliance(p1,1,p2);     PlayerGetAlliance(p1,3,p2);     PlayerGetAlliance(p1,5,p2);     PlayerGetAlliance(p1,6,p2);     PlayerGetAlliance(p1,7,p2);     PlayerGetAlliance(p1,8,p2);     PlayerGetAlliance(p1,9,p2);     PlayerGetAlliance(p1,10,p2);  }  void InitLibs () {     libNtve_InitLib();  }  trigger gt_MeleeInitialization;  bool gt_MeleeInitialization_Func (bool testConds, bool runActions) {  if (runActions) {      SetAlliance(4,3);      SetAlliance(3,4);      SetAlliance(2,1);      SetAlliance(1,2);     MeleeInitResources();     MeleeInitUnits();     MeleeInitAI();     MeleeInitOptions();  }  return true;  }  void gt_MeleeInitialization_Init () {     gt_MeleeInitialization =   TriggerCreate("gt_MeleeInitialization_Func");     TriggerAddEventMapInit(gt_MeleeInitialization);  }  void InitTriggers () {     gt_MeleeInitialization_Init();  }  void InitMap () {     InitLibs();     InitTriggers();  }
For running my my i use this simple bat script :  MPQEditor.exe /console add.mpq2k  copy "C:\Program Files\StarCraft II Beta\custom_map\Base.SC2Data"   "C:\Program Files\StarCraft II Beta\Mods\Liberty.SC2Mod\Base.SC2Data" /Y  lazylaunch2.exe Extrem.s2ma -trigdebug=1
The Base.SC2Data is taken from Starcrack AI.7
I don't understand where and how the Alliance is setting.
#2
SC2 Tools / Re: SC Web Map Editor
March 25, 2010, 07:35:28 AM
Thx a lot VJEUX !
#3
SC2 Tools / Re: SC Web Map Editor
March 24, 2010, 11:46:27 AM
To run this simple web map editor, just put the index.php and sub folder in a web server like wamp.
You can download here :
http://www.wampserver.com/

BR
#4
SC2 Tools / SC Web Map Editor
March 24, 2010, 03:56:42 AM
                 It's a simple web map editor. I write this for add simply Unit,   Doodad and Point in the Objects xml file.
For use this tool you need   WAMP or web server with php and a browser with HTML 5 support.
If you want to update or add feature you can ;)
Thx for feedback !
Enjoy :)
   
DOWNLOAD :

http://sc2.nibbits.com/assets/web-map-editor/