crashing issue

Information and discussion for custom maps and mods.
Post Reply
Posts: 1
Joined: Tue Dec 29, 2020 8:30 am

crashing issue

Post by Moxmajy »

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

Code: Select all

	Range: a20
	Inherits: DogJaw
	Range: 5c512

	Inherits: SilencedPPK
	ReloadDelay: 25
	Range: a20
	InvalidTargets: Air, Bridge, Structure
	Warhead@1Dam: SpreadDamage
		Spread: 256
			None: 90
			Wood: 75
			Light: 60
			Heavy: 25
			Concrete: 50
		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 ?
Last edited by Moxmajy on Tue Feb 09, 2021 5:26 pm, edited 2 times in total.

Posts: 455
Joined: Mon Aug 18, 2014 6:00 pm

Re: crashing issue

Post by abcdefg30 »

The range is not hexadecimal, but in cells. 1c0 is exactly one cell, while 1c512 is one and a half. So the value before "c" is the amount of full cells, and the value after the "c" is the distance inside a cell (range [0;1023]).

Post Reply