Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AST 6.0 Pro #56

Open
Phoenixna opened this issue Sep 3, 2022 · 4 comments
Open

AST 6.0 Pro #56

Phoenixna opened this issue Sep 3, 2022 · 4 comments

Comments

@Phoenixna
Copy link

When opening ACT and activating AST6.0 this pump up
/2022-09-03 17:40:02.461 Error [cardcaptor_init:AC_02:JsonVariable]Exception: The parent is missing./

when pressing withdraw in game or change job to AST this keeps pumping up
/2022-09-03 17:41:16.877 Error [cardcaptor_ui:AC_04:Variable]Exception: Array index expected./

when pressing cardplay in game this pumps up twice in a row
/2022-09-03 17:41:18.785 Error [发卡宏:【/cardplay】,玩家选择:【F5-F12】,发卡:【K】,选择上一个敌人:【L】:AC_01:KeyPress]Exception: Unexpected end while parsing path./

@Jiacheng-z
Copy link

将核心中triggers.card_draw中的正则表达式修改一下.换成下面这个
^.{15}Gauge 1F:(?1[0-9A-F]{7}):(0*?)21:((?<card_type>00)|([0-9]*?)(?<card_type>00000|10000|20000|30000|40000|50000|60000)):

其实就是在原来 000|100|200|300|400|500|600 的每一项之后添加两个0.
再改一下下面动作里的判断就可以了.

或者直接导入下面这个触发器,替换

<?xml version="1.0"?>
<TriggernometryExport Version="1">
  <ExportedTrigger Enabled="true" Sequential="True" Name="card_draw" Id="df606eb2-ea97-47f2-949f-1ca2dcdab177" RegularExpression="^.{15}Gauge 1F:(?&lt;id&gt;1[0-9A-F]{7}):(0*?)21:((?&lt;card_type&gt;00)|([0-9]*?)(?&lt;card_type&gt;00000|10000|20000|30000|40000|50000|60000)):" DebugLevel="Error" PeriodRefire="Deny" RefirePeriodExpression="100">
    <Actions>
      <Action OrderNumber="1" VariableOp="SetNumeric" VariableExpression="1" TextAuraFontSize="9" TextAuraFontName="宋体" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="none" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 0=None" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="00000" ExpressionTypeR="String" ConditionType="StringEqualCase" />
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="00" ExpressionTypeR="String" ConditionType="StringEqualCase" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="2" VariableOp="SetNumeric" VariableExpression="1" TextAuraFontSize="9" TextAuraFontName="宋体" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="melee" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 1=melee" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="10000|30000|40000" ExpressionTypeR="String" ConditionType="RegexMatch" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="3" VariableOp="SetNumeric" TextAuraFontSize="9" TextAuraFontName="??" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="ranged" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 2=ranged" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="20000|50000|60000" ExpressionTypeR="String" ConditionType="RegexMatch" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="4" SchedulingActionOp="-1" LogLevel="-1" MouseX="" MouseY="" TextAuraFontSize="9" TextAuraFontName="宋体" TriggerId="23ea4bf0-4cb1-43b8-89eb-943e7fb905ee" TriggerForce="regexp" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarSource="" JvarTarget="" JvarExpression="" JvarListIndex="" ActionType="Trigger" ExecutionDelayExpression="10" RefireRequeue="False">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${jvar:cardcaptor.card.type}" ExpressionTypeL="String" ExpressionR="none" ExpressionTypeR="String" ConditionType="StringNotEqualCase" />
        </Condition>
        <Conditions />
      </Action>
    </Actions>
    <Condition Enabled="true" Grouping="Or">
      <ConditionSingle Enabled="true" ExpressionL="${_ffxiventity[${id}].name}" ExpressionTypeL="String" ExpressionR="${_ffxivplayer}" ExpressionTypeR="String" ConditionType="StringEqualNocase" />
    </Condition>
  </ExportedTrigger>
</TriggernometryExport>

@Phoenixna
Copy link
Author

将核心中triggers.card_draw中的正则表达式修改一下.换成下面这个 ^.{15}Gauge 1F:(?1[0-9A-F]{7}):(0*?)21:((?<card_type>00)|([0-9]*?)(?<card_type>00000|10000|20000|30000|40000|50000|60000)):

其实就是在原来 000|100|200|300|400|500|600 的每一项之后添加两个0. 再改一下下面动作里的判断就可以了.

或者直接导入下面这个触发器,替换

<?xml version="1.0"?>
<TriggernometryExport Version="1">
  <ExportedTrigger Enabled="true" Sequential="True" Name="card_draw" Id="df606eb2-ea97-47f2-949f-1ca2dcdab177" RegularExpression="^.{15}Gauge 1F:(?&lt;id&gt;1[0-9A-F]{7}):(0*?)21:((?&lt;card_type&gt;00)|([0-9]*?)(?&lt;card_type&gt;00000|10000|20000|30000|40000|50000|60000)):" DebugLevel="Error" PeriodRefire="Deny" RefirePeriodExpression="100">
    <Actions>
      <Action OrderNumber="1" VariableOp="SetNumeric" VariableExpression="1" TextAuraFontSize="9" TextAuraFontName="宋体" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="none" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 0=None" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="00000" ExpressionTypeR="String" ConditionType="StringEqualCase" />
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="00" ExpressionTypeR="String" ConditionType="StringEqualCase" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="2" VariableOp="SetNumeric" VariableExpression="1" TextAuraFontSize="9" TextAuraFontName="宋体" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="melee" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 1=melee" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="10000|30000|40000" ExpressionTypeR="String" ConditionType="RegexMatch" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="3" VariableOp="SetNumeric" TextAuraFontSize="9" TextAuraFontName="??" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="ranged" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 2=ranged" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="20000|50000|60000" ExpressionTypeR="String" ConditionType="RegexMatch" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="4" SchedulingActionOp="-1" LogLevel="-1" MouseX="" MouseY="" TextAuraFontSize="9" TextAuraFontName="宋体" TriggerId="23ea4bf0-4cb1-43b8-89eb-943e7fb905ee" TriggerForce="regexp" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarSource="" JvarTarget="" JvarExpression="" JvarListIndex="" ActionType="Trigger" ExecutionDelayExpression="10" RefireRequeue="False">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${jvar:cardcaptor.card.type}" ExpressionTypeL="String" ExpressionR="none" ExpressionTypeR="String" ConditionType="StringNotEqualCase" />
        </Condition>
        <Conditions />
      </Action>
    </Actions>
    <Condition Enabled="true" Grouping="Or">
      <ConditionSingle Enabled="true" ExpressionL="${_ffxiventity[${id}].name}" ExpressionTypeL="String" ExpressionR="${_ffxivplayer}" ExpressionTypeR="String" ConditionType="StringEqualNocase" />
    </Condition>
  </ExportedTrigger>
</TriggernometryExport>

我把这个导进去 然后把原来的remove后 没懂下面action里的判断要怎么改?

@Jiacheng-z
Copy link

将核心中triggers.card_draw中的正则表达式修改一下.换成下面这个 ^.{15}Gauge 1F:(?1[0-9A-F]{7}):(0*?)21:((?<card_type>00)|([0-9]*?)(?<card_type>00000|10000|20000|30000|40000|50000|60000)):
其实就是在原来 000|100|200|300|400|500|600 的每一项之后添加两个0. 再改一下下面动作里的判断就可以了.
或者直接导入下面这个触发器,替换

<?xml version="1.0"?>
<TriggernometryExport Version="1">
  <ExportedTrigger Enabled="true" Sequential="True" Name="card_draw" Id="df606eb2-ea97-47f2-949f-1ca2dcdab177" RegularExpression="^.{15}Gauge 1F:(?&lt;id&gt;1[0-9A-F]{7}):(0*?)21:((?&lt;card_type&gt;00)|([0-9]*?)(?&lt;card_type&gt;00000|10000|20000|30000|40000|50000|60000)):" DebugLevel="Error" PeriodRefire="Deny" RefirePeriodExpression="100">
    <Actions>
      <Action OrderNumber="1" VariableOp="SetNumeric" VariableExpression="1" TextAuraFontSize="9" TextAuraFontName="宋体" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="none" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 0=None" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="00000" ExpressionTypeR="String" ConditionType="StringEqualCase" />
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="00" ExpressionTypeR="String" ConditionType="StringEqualCase" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="2" VariableOp="SetNumeric" VariableExpression="1" TextAuraFontSize="9" TextAuraFontName="宋体" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="melee" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 1=melee" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="10000|30000|40000" ExpressionTypeR="String" ConditionType="RegexMatch" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="3" VariableOp="SetNumeric" TextAuraFontSize="9" TextAuraFontName="??" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="ranged" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 2=ranged" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="20000|50000|60000" ExpressionTypeR="String" ConditionType="RegexMatch" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="4" SchedulingActionOp="-1" LogLevel="-1" MouseX="" MouseY="" TextAuraFontSize="9" TextAuraFontName="宋体" TriggerId="23ea4bf0-4cb1-43b8-89eb-943e7fb905ee" TriggerForce="regexp" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarSource="" JvarTarget="" JvarExpression="" JvarListIndex="" ActionType="Trigger" ExecutionDelayExpression="10" RefireRequeue="False">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${jvar:cardcaptor.card.type}" ExpressionTypeL="String" ExpressionR="none" ExpressionTypeR="String" ConditionType="StringNotEqualCase" />
        </Condition>
        <Conditions />
      </Action>
    </Actions>
    <Condition Enabled="true" Grouping="Or">
      <ConditionSingle Enabled="true" ExpressionL="${_ffxiventity[${id}].name}" ExpressionTypeL="String" ExpressionR="${_ffxivplayer}" ExpressionTypeR="String" ConditionType="StringEqualNocase" />
    </Condition>
  </ExportedTrigger>
</TriggernometryExport>

我把这个导进去 然后把原来的remove后 没懂下面action里的判断要怎么改?

导入的话就不用改action了。这个是改好的,跟原来的触发器关联上就行.
不导入的话,要改一下正则和action里匹配卡片用的字符串。
你可以参照导入的这个改一下原来的那个也行。

@LunaSoSmart
Copy link

将核心中triggers.card_draw中的正则表达式修改一下.换成下面这个 ^.{15}Gauge 1F:(?1[0-9A-F]{7}):(0*?)21:((?<card_type>00)|([0-9]*?)(?<card_type>00000|10000|20000|30000|40000|50000|60000)):
其实就是在原来 000|100|200|300|400|500|600 的每一项之后添加两个0. 再改一下下面动作里的判断就可以了.
或者直接导入下面这个触发器,替换

<?xml version="1.0"?>
<TriggernometryExport Version="1">
  <ExportedTrigger Enabled="true" Sequential="True" Name="card_draw" Id="df606eb2-ea97-47f2-949f-1ca2dcdab177" RegularExpression="^.{15}Gauge 1F:(?&lt;id&gt;1[0-9A-F]{7}):(0*?)21:((?&lt;card_type&gt;00)|([0-9]*?)(?&lt;card_type&gt;00000|10000|20000|30000|40000|50000|60000)):" DebugLevel="Error" PeriodRefire="Deny" RefirePeriodExpression="100">
    <Actions>
      <Action OrderNumber="1" VariableOp="SetNumeric" VariableExpression="1" TextAuraFontSize="9" TextAuraFontName="宋体" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="none" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 0=None" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="00000" ExpressionTypeR="String" ConditionType="StringEqualCase" />
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="00" ExpressionTypeR="String" ConditionType="StringEqualCase" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="2" VariableOp="SetNumeric" VariableExpression="1" TextAuraFontSize="9" TextAuraFontName="宋体" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="melee" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 1=melee" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="10000|30000|40000" ExpressionTypeR="String" ConditionType="RegexMatch" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="3" VariableOp="SetNumeric" TextAuraFontSize="9" TextAuraFontName="??" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarOp="Set" JvarSource="cardcaptor.card.type" JvarTarget="" JvarExpression="ranged" JvarListIndex="" JvarAppendAsDict="True" ActionType="JsonVariable" ExecutionDelayExpression="0" Description="判断抽卡的类型 2=ranged" DescriptionOverride="True">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${card_type}" ExpressionTypeL="String" ExpressionR="20000|50000|60000" ExpressionTypeR="String" ConditionType="RegexMatch" />
        </Condition>
        <Conditions />
      </Action>
      <Action OrderNumber="4" SchedulingActionOp="-1" LogLevel="-1" MouseX="" MouseY="" TextAuraFontSize="9" TextAuraFontName="宋体" TriggerId="23ea4bf0-4cb1-43b8-89eb-943e7fb905ee" TriggerForce="regexp" PartyOrderPlayerName="" PartyOrderPartyOrder="" DevActionKey="" DevActionValue="" JvarSource="" JvarTarget="" JvarExpression="" JvarListIndex="" ActionType="Trigger" ExecutionDelayExpression="10" RefireRequeue="False">
        <Condition Enabled="true" Grouping="Or">
          <ConditionSingle Enabled="true" ExpressionL="${jvar:cardcaptor.card.type}" ExpressionTypeL="String" ExpressionR="none" ExpressionTypeR="String" ConditionType="StringNotEqualCase" />
        </Condition>
        <Conditions />
      </Action>
    </Actions>
    <Condition Enabled="true" Grouping="Or">
      <ConditionSingle Enabled="true" ExpressionL="${_ffxiventity[${id}].name}" ExpressionTypeL="String" ExpressionR="${_ffxivplayer}" ExpressionTypeR="String" ConditionType="StringEqualNocase" />
    </Condition>
  </ExportedTrigger>
</TriggernometryExport>

我把这个导进去 然后把原来的remove后 没懂下面action里的判断要怎么改?

导入的话就不用改action了。这个是改好的,跟原来的触发器关联上就行. 不导入的话,要改一下正则和action里匹配卡片用的字符串。 你可以参照导入的这个改一下原来的那个也行。

导入了新的关联之后好像还是会发给自己,改一下原来的也是这样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants