• 0

    posted a message on Supply Depot

    Thx VJeux,

    Now i can Lower the supply depot, but i can't Raise.

    void supplyLower(){
    
    	order ordPlayer;
    	unitgroup supply;
    	
    	// c_AB_DepotLower
    	ordPlayer = AICreateOrder(4, c_AB_DepotLower, 0);
    	OrderSetTargetPoint(ordPlayer, UnitGetPosition(UnitGroupUnit(UnitGroupFilterType(UnitGroupAllUnits(), "SupplyDepot"), 1)));
    	supply  = UnitGroupFilterType(UnitGroupAllUnits(),"SupplyDepot");
    		
    	//dord(ordPlayer);
    	
    	UnitGroupOrder(supply,ordPlayer);
    	
    }
    
    void supplyRaise(){
    
    	order ordPlayer;
    	unitgroup supply;
    	
    	// c_AB_DepotRaise
    	ordPlayer = AICreateOrder(4, c_AB_DepotRaise, 0);
    	OrderSetTargetPoint(ordPlayer, UnitGetPosition(UnitGroupUnit(UnitGroupFilterType(UnitGroupAllUnits(), "SupplyDepot"), 1)));
    	supply  = UnitGroupFilterType(UnitGroupAllUnits(),"SupplyDepot");
    		
    	//dord(ordPlayer);
    	
    	UnitGroupOrder(supply,ordPlayer);
    	
    }
    

    Do you have an idea ?

    BR,

    Posted in: Miscellaneous Development
  • 0

    posted a message on Supply Depot

    Hi all,

    Someone have an idea how to control Supply Depot from MapScript.galaxy ?

    I want to Raise/Lower if one unit enter in a Region.

    I've the piece of code for detect if unit is in Region, but i've no idea how to Raise/Lower Supply Depot.

    BR,

    Posted in: Miscellaneous Development
  • 0

    posted a message on How to update (listfile)

    Thx,

    I download a again mpqeditor and now all it's good.

    BR,

    Posted in: Miscellaneous Development
  • 0

    posted a message on How to update (listfile)

    I try to update my (listfile) on the mpgeditor but mpqeditor can't that.

    Do you know how i can update (listfile)?

    BR,

    Posted in: Miscellaneous Development
  • 0

    posted a message on Help with Tutorial

    Greg21,

    I've the same issue and i solved! Check if you have not overwrite the Base.sc2 with an AI and replace by the default.

    After all it work !

    BR,

    Posted in: Miscellaneous Development
  • 0

    posted a message on Micro Defense

    Waou, it's very good!

    I try to used your code on my custom map "extrem" available on nibbit.

    I add your (and Vjeux) galaxy file (map,debug,MapSript and objects Units) I start my map with lazylauncher with your base10000 I've no error but on start game i'm tied!

    Can you tell me if i miss some file or modification ? Or maybe write a tutorial on forum ;)

    PS: I try to update my (listfile) with mpgeditor with your (listfile), but mpqeditor can't that. Do you know how ?

    BR,

    Posted in: Miscellaneous Development
  • 0

    posted a message on Trigger Error in 'gt_MeleeInitialization_Func': Parameter out of bounds in 'PlayerGetAlliance' (value: 10, min: Passive, max: 9)

    Thx sanktanglia, that's i understand too after more more test ;)

    Posted in: Triggers
  • 0

    posted a message on Trigger Error in 'gt_MeleeInitialization_Func': Parameter out of bounds in 'PlayerGetAlliance' (value: 10, min: Passive, max: 9)

    I want to set alliance between p1 and p2.

    This MapScript.galaxy is created by the 'SC2ALLin1' launcher. I just try to add on my map then run with 'lazylaunch2'.

    Maybe i miss something, for enable the alliance ?

    PS: VJEUX thx for the rate of my tool ;)

    Posted in: Triggers
  • 0

    posted a message on Trigger Error in 'gt_MeleeInitialization_Func': Parameter out of bounds in 'PlayerGetAlliance' (value: 10, min: Passive, max: 9)

    Hi all,

    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.

    PS: VJEUX thx a lot for puting my web map editor on your ftp ;)

    Posted in: Triggers
  • To post a comment, please or register a new account.