Transform units
Posted: Wed Jul 25, 2018 10:55 pm
I have a unit transformer, it must to transform to transformedunit1 or transformedunit2 conditions by build upgrades. its looks must be changed after it.
When I trying to realise this, game is crash:
How to write use conditions and upgrades to make this workabe?
When I trying to realise this, game is crash:
Code: Select all
OpenRA engine version release-20180307
Red Alert 2 mod version release-20180307
on map 1a848cb4377fc30745fe9ada0914e29d05dc5b8b (Arctic Circle by Westwood Studios).
Date: 2018-07-25 22:24:55Z
Operating System: Windows (Microsoft Windows NT 6.2.9200.0)
Runtime Version: .NET CLR 4.0.30319.42000
Exception of type `OpenRA.YamlException`: ActorInfo("transformedunit1") failed to initialize because of the following:
Missing:
OpenRA.Traits.IMouseBoundsInfo
Unresolved:
OpenRA.Mods.Common.Traits.TooltipInfo: { OpenRA.Traits.IMouseBoundsInfo }
в OpenRA.ActorInfo.TraitsInConstructOrder() в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\GameRules\ActorInfo.cs:строка 131
в OpenRA.Actor..ctor(World world, String name, TypeDictionary initDict) в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\Actor.cs:строка 98
в OpenRA.World.CreateActor(Boolean addToWorld, String name, TypeDictionary initDict) в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\World.cs:строка 252
в OpenRA.World.CreateActor(String name, TypeDictionary initDict) в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\World.cs:строка 247
в OpenRA.Mods.Common.Traits.Production.<>c__DisplayClass5.<DoProduction>b__4(World w) в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Mods.Common\Traits\Production.cs:строка 91
в OpenRA.World.Tick() в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\World.cs:строка 359
в OpenRA.Game.InnerLogicTick(OrderManager orderManager) в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\Game.cs:строка 605
в OpenRA.Game.LogicTick() в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\Game.cs:строка 629
в OpenRA.Game.Loop() в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\Game.cs:строка 759
в OpenRA.Game.Run() в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\Game.cs:строка 799
в OpenRA.Game.InitializeAndRun(String[] args) в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\Game.cs:строка 253
в OpenRA.Program.Main(String[] args) в c:\games\RTS\OPENRA-ra2\engine\OpenRA.Game\Support\Program.cs:строка 37
Code: Select all
transformer:
Tooltip:
Name: transformer
Production:
Produces: transformations
Mobile:
Speed: 10
Health:
HP: 1500
Exit:
RevealsShroud:
Range: 4c0
-Guard:
-AttackFrontal:
QuantizeFacingsFromSequence:
Sequence: stand
WithProductionOverlay@WELDING:
Sequence: transformprocess
GrantConditionOnPrerequisite@transformedunit1:
Prerequisites: transformedunit1
Condition: transformedunit1
GrantConditionOnPrerequisite@transformedunit2:
Prerequisites: transformedunit2
Condition: transformedunit2
RenderSprites@transformedunit1:
Image: transformedunit1
RequiresCondition: transformedunit1
RenderSprites@transformedunit2:
Image: transformedunit2
RequiresCondition: transformedunit2
transformedunit1:
AlwaysVisible:
Tooltip:
Name: transformedunit1
Buildable:
BuildPaletteOrder: 50
Prerequisites: transformer
Queue: transformations
BuildDuration: 590
BuildDurationModifier: 40
Description: transformedunit1
Valued:
Cost: 50
RenderSprites:
Image: transformedunit1
ProvidesPrerequisite@upgradename:
transformedunit2:
AlwaysVisible:
Tooltip:
Name: transformedunit2
Buildable:
BuildPaletteOrder: 50
Prerequisites: transformer
Queue: transformations
BuildDuration: 590
BuildDurationModifier: 40
Description: transformedunit2
Valued:
Cost: 50
RenderSprites:
Image: transformedunit2
ProvidesPrerequisite@upgradename: