So I have been tinkering around with openra files, and I tried to create a build-able Badger Bomber. However I seem to have run into a bit of a bother with the Badger icon. So here is the Yaml.
Bomber:
Inherits: ^Plane
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable:
Queue: Aircraft
BuildAtProductionType: Plane
BuildPaletteOrder: 30
Prerequisites: ~afld, ~techlevel.medium
Description: Anti-Tanks & Anti-Infantry Plane.\n Strong vs Infantry, Vehicles\n Weak vs Aircraft
Valued:
Cost: 250
Tooltip:
Name: Tu-16 Badger
Health:
HP: 60
Armor:
Type: Light
RevealsShroud:
Range: 11c0
Type: GroundPosition
RevealGeneratedShroud: False
RevealsShroud@GAPGEN:
Range: 9c0
Type: GroundPosition
Armament@PRIMARY:
Weapon: ChainGun.Yak
LocalOffset: 256,-213,0
MuzzleSequence: muzzle
Armament@SECONDARY:
Name: secondary
Weapon: ChainGun.Yak
LocalOffset: 256,213,0
MuzzleSequence: muzzle
Armament@SECONDARY:
Name: secondary
Weapon: Napalm
LocalOffset: 85,213,-85
AttackPlane:
FacingTolerance: 20
Aircraft:
CruiseAltitude: 2560
InitialFacing: 192
TurnSpeed: 4
Speed: 178
RepulsionSpeed: 40
MaximumPitch: 56
AutoTarget:
InitialStance: HoldFire
InitialStanceAI: HoldFire
AmmoPool:
Ammo: 999999999
PipCount: 6
ReloadDelay: 11
ReturnOnIdle:
SelectionDecorations:
VisualBounds: 30,28,0,2
WithMuzzleOverlay:
Contrail:
Offset: -853,0,0
SpawnActorOnDeath:
Actor: BADR.Husk
SmokeTrailWhenDamaged:
Offset: -853,0,0
Interval: 2
ProducibleWithLevel:
Prerequisites: aircraft.upgraded
RenderSprites:
Image: badr
Icon: badricon.shp
Here is the Error code I got with it.
OpenRA.Utility(1,1): Error: Failed with exception: System.AggregateException: One or more errors occurred. ---> OpenRA.YamlException: Actor type bomber: Junk value `badricon.shp` on trait node Icon
at OpenRA.ActorInfo..ctor(ObjectCreator creator, String name, MiniYaml node) in c:\Users\bobda\Desktop\OpenRAModSDK-
A few notes I would like to leave:
1. I copy-pasted the yak code and changed few things as this was a test.
2. I modified the Yak weapons , However the modded Yak (which I copy-pasted from) worked fine beforehand.
3. I have tried typing without .shp at the end.
4.I have tried using IconPalette.
5. The badger icon was already in the regular openra files.
I've tried all sorts of things but I can't seem to get to work. I feel like I did something wrong here. In case this not legible for you guys I'm going to leave the yaml file on here as well.
Can someone point out what I have done wrong with this YAML
-
- Posts: 12
- Joined: Fri Mar 18, 2016 1:32 am
Can someone point out what I have done wrong with this YAML
- Attachments
-
- aircraft.yaml
- Here is the full yaml file
- (9.58 KiB) Downloaded 219 times
- MustaphaTR
- Posts: 203
- Joined: Mon Aug 04, 2014 6:38 am
- Location: Kastamonu, Turkey
-
- Posts: 12
- Joined: Fri Mar 18, 2016 1:32 am
- MustaphaTR
- Posts: 203
- Joined: Mon Aug 04, 2014 6:38 am
- Location: Kastamonu, Turkey
-
- Posts: 12
- Joined: Fri Mar 18, 2016 1:32 am
- MustaphaTR
- Posts: 203
- Joined: Mon Aug 04, 2014 6:38 am
- Location: Kastamonu, Turkey
-
- Posts: 12
- Joined: Fri Mar 18, 2016 1:32 am