This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Recently I start learning about the use of token in sc2 data editor.
For instance:
I create 2 CUnit entries, MyUnitTemplate and MyUnit:
<CUnit default="1" id="MyUnitTemplate"> <?token id="fac" type="CFacing" value="105.000000"?> <?token id="ab" type="CAbilLink"?> <AbilArray Link="##ab##"/> <Facing value="##fac##"/> </CUnit> <CUnit id="MyUnit" parent="MyUnitTemplate" fac="340.000000" ab="attack"/>
MyUnitTemplate is abstract template, which has two token parameters (fac and ab) .
MyUnit inhert from MyUnitTemplate, which use two tokens arguments (fac="340.000000" ab="attack").
My question is:
After save the the map, the warning occur:
[11/8/2017 5:19:33 PM] Warning: XML: C:\xxxxx\GameData\UnitData.xml(9,9) : Unable to write value: ##fac##; reason: Core: invalid object type identification Source: E:\xxxx\testCatalog.SC2Map\ Entry: MyUnitTemplate Scope: CUnit Field: Facing
Just as you can see, the token "ab" works well, but "fac" can't...
Why I can't use fac as token in CUnit.Facing?
Very thanks.
Tokens are sensitive and prone to corruption.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Recently I start learning about the use of token in sc2 data editor.
For instance:
I create 2 CUnit entries, MyUnitTemplate and MyUnit:
MyUnitTemplate is abstract template, which has two token parameters (fac and ab) .
MyUnit inhert from MyUnitTemplate, which use two tokens arguments (fac="340.000000" ab="attack").
My question is:
After save the the map, the warning occur:
[11/8/2017 5:19:33 PM] Warning: XML: C:\xxxxx\GameData\UnitData.xml(9,9) : Unable to write value: ##fac##; reason: Core: invalid object type identification Source: E:\xxxx\testCatalog.SC2Map\ Entry: MyUnitTemplate Scope: CUnit Field: Facing
Just as you can see, the token "ab" works well, but "fac" can't...
Why I can't use fac as token in CUnit.Facing?
Very thanks.
Tokens are sensitive and prone to corruption.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg