• 0.88734835355286

    posted a message on Is there a way to change AI Race by trigger?

    Hello,

     

    I worked on that, with custom melee AI. And I'm gonna be honest with you, it's unnecessarily complicated.

     

    1/ You MUST change the AI race BEFORE you start the AI script (whether melee or campaign). You can change it to a custom race.

     

    2/ The melee AI script knows ONLY the default ones, that is to say, for the default 3 races. If the race is a custom race (chosen from the game salon of in your player properties), the AI script won't work. Why ? Because it's native and it has entries for the AI galaxy scripts like the function "TerranInit". No fun allowed. In the debugger, you can see some in the tab "Internal Calls".

     

    3/ So you MUST allow Terran, Zerg or Protoss only from the game salon or your player properties !

     

    4/ Do NOT change it after it started. You will break it for similar reasons as 2/.

     

    HAVE FUN

    And a nice day.

    Posted in: Triggers
  • 2.6361665047301

    posted a message on Thor doesn't walk in High Impact Mode

    Hello,

     

    To me, the Thor seems to be locked in a play forever animation.

     

    Go in the actor events of the Thor's Actor of type Unit and see if there is something like the image I attached.

     

    Have fun !

    And a nice day.

    Posted in: Data
  • 0.949552930787063

    posted a message on Area Indicator Actors ( Quad )

    Open the archive browser (Window -> Console ; Type "browse").

    Search for "stretchline", you will find some models that might be at your convenience.

     

    As for the ability range (the famous circle), I used to play with a workaround actor with a model as well. A few exists that fits the expected visual.

    And because of the actor events that work similarly to Range actor.

     

    Have a nice day.

    Posted in: Data
  • 0.949564065776404

    posted a message on Area Indicator Actors ( Quad )

    Hello,

     

    If I remember correctly, since the model is a decal (a "painted" texture over another), the terrain cells must not be hidden.

    Else, you may use 3D models and adjust position/rotation with Site Ops or even its scale in actor events.

     

    Have a nice day.

    Posted in: Data
  • 0.956173475225998

    posted a message on [SOLVED]found a blank button to use for secret achievement but it still shows border on hover.

    Nice work !

     

    I think the "When" tag compares the string in the Text attribute as it is than retrieve the value of a reference beforehand.

    Because I already did a label with Text attribute using a reference and worked as expected.

     

    With the property binding brackets "{" && "}", it retrieves the reference's value.

    <When type="Property" frame="NameLabel" Text="{@Unit/Name/DTRCommandCenter}"/> 

     

    What a trick to create a dummy frame to stock values. Might be useful.

     

     

    About the Alpha, you obliterate the fading animation with :

    [...]
    <FadeTime val="0"/>
    [...]
    <Action type="SetProperty" frame="$layer/CommandTooltip" Alpha="255"/>
    [...]

    But yeah, that's a good workaround if not very concerned about !

     

     

    Lastly, I discover the "$layer" frame referencing.

    Does this reference what's on the current XML sheet / layout (which is extremely useful, headache savior to find frames) ?

     

    Posted in: Data
  • 0.95618350303169

    posted a message on [SOLVED]found a blank button to use for secret achievement but it still shows border on hover.

    OMG (deserves the highlight) you made me discover we can override UIs, that's so powerful !

    That opens so much more possibilities !

     

    So I tried and modified the previous XML to hide the tooltip like previously but :

    - It depends on the Unit's name in the info panel (also called unit status) "InfoPanel".

    - New StateGroup for the info panel of the unit (child of the info panel) "InfoPaneUnit".

     

    Note : However, this inherits an odd behavior, the tooltip shows up when you play around with the mouse.

     

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
        <Frame type="CommandPanel" name="GameUI/UIContainer/ConsoleUIContainer/CommandPanel" file="GameUI">
            <Frame type="CommandTooltip" name="CommandTooltip">
                <FadeTime val="1"/>
                <StateGroup name="TooltipState">
                    <DefaultState val="Visible"/>
                    <State name="Hidden">
                        <Action type="SetProperty" Alpha="0"/>
                    </State>
                    <State name="Visible"/> <!-- Engines makes it fading with Alpha property -->
                </StateGroup>
            </Frame>
        </Frame>
    
        <Frame type="InfoPanel" name="GameUI/UIContainer/ConsoleUIContainer/InfoPanel" file="GameUI">
            <Frame type="InfoPaneUnit" name="InfoPaneUnit">
                <StateGroup name="NameState">
                    <DefaultState val="UnitNameOff"/>
                    <State name="UnitNameOn">
                        <!-- For unknown reasons, it doesn't make the link to the text reference -->
                        <!--<When type="Property" frame="$this/NameLabel" Text="@Unit/Name/DTRCommandCenter"/>-->
                        <!-- Replace the text value to yours -->
                        <When type="Property" frame="$this/NameLabel" Text="Command Center"/>
                        <!-- Command buttons from 00, 01 ... to 14 -->
                        <When type="Property" frame="$GameUI_CommandPanel/CommandButton00/NormalImage" Texture="Assets\Textures\btn-blank.dds"/>
                        <When type="Property" frame="$GameUI_CommandPanel/CommandButton00" Hovering="True"/>
                        <Action type="SetState" frame="$GameUI/$parent/CommandTooltip" group="TooltipState" state="Hidden"/>
                    </State>
                    <State name="UnitNameOff">
                        <Action type="SetState" frame="$GameUI/$parent/CommandTooltip" group="TooltipState" state="Visible"/>
                    </State>
                </StateGroup>
            </Frame>
        </Frame>
    </Desc>

     

     

    Posted in: Data
  • 0.95638236977676

    posted a message on [SOLVED]found a blank button to use for secret achievement but it still shows border on hover.

    I was afraid of "always hidden", so it happens on any selection. That sucks.

     

    I don't think you can get a better result with the standard UI.

     

    Kudos to the person who wrote the XML above.

     

    Posted in: Data
  • 0.956372380625215

    posted a message on [SOLVED]found a blank button to use for secret achievement but it still shows border on hover.

    Ok, that person added a condition for the existing command panel.

     

    Is your background on button 14 (row 3, column 5) always hidden or only when you select your thingy ?

    Posted in: Data
  • 0.956910382764153

    posted a message on [SOLVED]found a blank button to use for secret achievement but it still shows border on hover.

    Do you mean something like this (See attached picture 1) ?

     

    I hovered the button on the bottom left of the command card.

     

    If yes :

    I successfully hooked up the command card's tooltip.

    However, any element of the command card shares the tooltip. That means it's updated according to the button you hover.

    I set the background image of the tooltip to a blank image, it helps to hide without explicitly hiding it.

    See attached picture 2.

     

    Note : CTRL + ALT + F12 to open the UI debugger in the game.

    I followed the tree structure to hook up the intended element.

    On the picture 2 : The 1st hook shows that the command card's tooltip is not linked directly to the command panel.

     

     

    Finally, you must wonder when you change the background image.

    Since the tooltip is shared, there are several ways :

    - When the player hovers / "un-hovers" the button. => Impossible.

    - When the player selects / deselects the building and according to conditions (did all upgrades). => Yes but no, that means there's only 1 button on the command card.

    - All tooltips are modified and you don't care. => Yeah ok (wrong).

    - You change something else about the tooltip. => Inset values are 15 for top, right, bottom, left. Set to 0 does no effect.

    - You change something else about the tooltip. => AnchorFrame has an offset of 15 for bottom and right anchors. Set to 1 does effects, see attached pictures 3 and 4.

     

    Nevertheless, I did the changes in the UI debugger, to find the culprit (See attached picture 5). We now need to do that in triggers.

    Unfortunately, we can't change anchors.

    This is a dead end.

     

    Have a nice ... night !

    Posted in: Data
  • 0.957000343997248

    posted a message on [SOLVED]found a blank button to use for secret achievement but it still shows border on hover.

    Oh. You meant the tooltip, not the button itself.

     

    I tried with empty text for the tooltip, it doesn't show up. See attached pictures.

     

    If it doesn't help, detail how you create your button, please.

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