Crashing after changing weapon range

Information and discussion for custom maps and mods.
Post Reply
Lassar
Posts: 13
Joined: Tue Dec 18, 2018 11:20 pm

Crashing after changing weapon range

Post by Lassar »

Changed the Telsazap & VolkovWeapon range to A20. (in weapons.yaml)

Code: Select all


TeslaZap:
	Range: a20
CydogJaw:
	Inherits: DogJaw
	Range: 5c512

VolkovWeapon:
	Inherits: SilencedPPK
	ReloadDelay: 25
	Range: a20
	-ValidTargets:
	InvalidTargets: Air, Bridge, Structure
	Warhead@1Dam: SpreadDamage
		Spread: 256
		Versus:
			None: 90
			Wood: 75
			Light: 60
			Heavy: 25
			Concrete: 50
		-ValidTargets:
		DamageTypes: Prone50Percent, TriggerProne, SmallExplosionDeath
	Warhead@2Smu: LeaveSmudge
		SmudgeType: Crater
		InvalidTargets: Vehicle, Structure, Wall, Husk, Trees
	Warhead@3Eff: CreateEffect
		Explosions: artillery_explosion
		ImpactSounds: kaboom25.aud
		ValidTargets: Ground, Ship, Trees
	Warhead@4EffWater: CreateEffect
		Explosions: small_splash
		ImpactSounds: splash9.aud
		ValidTargets: Water, Underwater
		InvalidTargets: Ship, Structure, Bridge


Now I get the error "Cannot parse `a20` into `Range.OpenRA.WDist"

The range is in hexadecimal right?

What gives ?

abcdefg30
Posts: 416
Joined: Mon Aug 18, 2014 6:00 pm

Re: Crashing after changing weapon range

Post by abcdefg30 »

No, ranges are measured in cells, the value before "c" is the full cells, while the value afterwards is a fraction of a cell (between including 0 and 1023; a full cell are 1024 'units'). So "3c512" means "3 full cells and a half".

Post Reply