Cannot add turret to cnc
Posted: Wed Jun 23, 2021 2:08 pm
Hi all!
I just found OpenRa, and its awesome. i already changed cnc to my liking planning on playing whit some friends.
But now i tried to add a new building and i get an exception "Exception of type `System.IO.FileNotFoundException`: File not found: gunbmake.shp"
I wanted to clone the turret and give it a long range weapon. so i tried copy the entrees in structures and seq/structures
i copied Gun: in both structures and in sequences/structures. i tried looking for the normal Gunmake.shp but i cant find it any where i looked around also for gun.shp i dont even know what a shp is. for reference here is what i did to the orginal code.
I chagend all Gunmakes to Gunbmake, note: i also tried leaving gunmake like it was but that threw an exception too
"gunb:
idle: gunbmake # Empty first frame. We need WithSpriteBody for the make anim, and WSB needs at least a placeholder default sequence to work
turret:
Facings: 32
UseClassicFacings: True
recoil:
Start: 32
Facings: 32
UseClassicFacings: True
damaged-turret:
Start: 64
Facings: 32
UseClassicFacings: True
damaged-recoil:
Start: 96
Facings: 32
UseClassicFacings: True
make: gunbmake
Length: *
Tick: 80
muzzle: gunfire2
Length: *
bib: mbGUN
UseTilesetExtension: true
TilesetOverrides:
WINTER: TEMPERAT
JUNGLE: TEMPERAT
SNOW: TEMPERAT
Length: *
Offset: -1,-1
icon: gunicnh.tem
AddExtension: False"
and the structure file
"GUNb:
Inherits: ^Defense
Inherits@AUTOTARGET: ^AutoTargetGround
Selectable:
Bounds: 24,24
Valued:
Cost: 700
Tooltip:
Name: Turretx
Buildable:
BuildPaletteOrder: 45
Prerequisites: barracks
Queue: Defence.GDI, Defence.Nod
BuildDuration: 960
Description: Basic Anti-Tank base defense.\n Strong vs Tanks, vehicles\n Weak vs Infantry
Building:
Health:
HP: 56000
Armor:
Type: Heavy
RevealsShroud:
Range: 6c0
WithBuildingBib:
HasMinibib: true
Turreted:
TurnSpeed: 48
InitialFacing: 192
RealignDelay: -1
RequiresCondition: !build-incomplete
WithSpriteTurret:
RequiresCondition: !build-incomplete
Recoils: false
WithTurretAttackAnimation:
Sequence: recoil
Armament:
Weapon: TurretGunX
LocalOffset: 512,0,112
MuzzleSequence: muzzle
AttackTurreted:
RequiresCondition: !build-incomplete
WithMuzzleOverlay:
-WithDeathAnimation:
DetectCloaked:
Range: 3c0
Power:
Amount: -20
-BodyOrientation:
ClassicFacingBodyOrientation:"
i hope you can hellp me out i have some experience in coding and i could not find any how to do this online.
I just found OpenRa, and its awesome. i already changed cnc to my liking planning on playing whit some friends.
But now i tried to add a new building and i get an exception "Exception of type `System.IO.FileNotFoundException`: File not found: gunbmake.shp"
I wanted to clone the turret and give it a long range weapon. so i tried copy the entrees in structures and seq/structures
i copied Gun: in both structures and in sequences/structures. i tried looking for the normal Gunmake.shp but i cant find it any where i looked around also for gun.shp i dont even know what a shp is. for reference here is what i did to the orginal code.
I chagend all Gunmakes to Gunbmake, note: i also tried leaving gunmake like it was but that threw an exception too
"gunb:
idle: gunbmake # Empty first frame. We need WithSpriteBody for the make anim, and WSB needs at least a placeholder default sequence to work
turret:
Facings: 32
UseClassicFacings: True
recoil:
Start: 32
Facings: 32
UseClassicFacings: True
damaged-turret:
Start: 64
Facings: 32
UseClassicFacings: True
damaged-recoil:
Start: 96
Facings: 32
UseClassicFacings: True
make: gunbmake
Length: *
Tick: 80
muzzle: gunfire2
Length: *
bib: mbGUN
UseTilesetExtension: true
TilesetOverrides:
WINTER: TEMPERAT
JUNGLE: TEMPERAT
SNOW: TEMPERAT
Length: *
Offset: -1,-1
icon: gunicnh.tem
AddExtension: False"
and the structure file
"GUNb:
Inherits: ^Defense
Inherits@AUTOTARGET: ^AutoTargetGround
Selectable:
Bounds: 24,24
Valued:
Cost: 700
Tooltip:
Name: Turretx
Buildable:
BuildPaletteOrder: 45
Prerequisites: barracks
Queue: Defence.GDI, Defence.Nod
BuildDuration: 960
Description: Basic Anti-Tank base defense.\n Strong vs Tanks, vehicles\n Weak vs Infantry
Building:
Health:
HP: 56000
Armor:
Type: Heavy
RevealsShroud:
Range: 6c0
WithBuildingBib:
HasMinibib: true
Turreted:
TurnSpeed: 48
InitialFacing: 192
RealignDelay: -1
RequiresCondition: !build-incomplete
WithSpriteTurret:
RequiresCondition: !build-incomplete
Recoils: false
WithTurretAttackAnimation:
Sequence: recoil
Armament:
Weapon: TurretGunX
LocalOffset: 512,0,112
MuzzleSequence: muzzle
AttackTurreted:
RequiresCondition: !build-incomplete
WithMuzzleOverlay:
-WithDeathAnimation:
DetectCloaked:
Range: 3c0
Power:
Amount: -20
-BodyOrientation:
ClassicFacingBodyOrientation:"
i hope you can hellp me out i have some experience in coding and i could not find any how to do this online.