ChronoshiftDeploy error

Information and discussion for custom maps and mods.
Post Reply
Proteus
Posts: 23
Joined: Wed Jun 08, 2011 2:42 pm

ChronoshiftDeploy error

Post by Proteus »

https://github.com/OpenRA/OpenRA/blob/e ... tDeploy.cs

I saw this in the list of things when I was trying to figure out something else.
So I thought, "Is this what I think it is?" because I was looking at the Chrono Tank sprites at the same time...

I went ahead and thought I'd test it out on something (as such being a Light Tank), and when I right click to deploy the Chronoshift, I crashed and got this error in exception.log:

Code: Select all

System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenRA.WorldUtils.PlayVoiceForOrders(World w, Order[] orders)
   at OpenRA.Widgets.WorldInteractionControllerWidget.ApplyOrders(World world, float2 xy, MouseInput mi)
   at OpenRA.Widgets.WorldInteractionControllerWidget.HandleMouseInput(MouseInput mi)
   at OpenRA.Widgets.Widget.HandleMouseInputOuter(MouseInput mi)
   at OpenRA.Widgets.Widget.HandleMouseInputOuter(MouseInput mi)
   at OpenRA.Widgets.Widget.HandleMouseInputOuter(MouseInput mi)
   at OpenRA.Widgets.Widget.HandleInput(MouseInput mi)
   at OpenRA.DefaultInputHandler.<OnMouseInput>c__AnonStorey29.<>m__64()
   at OpenRA.Sync.<CheckSyncUnchanged>c__AnonStorey22.<>m__45()
   at OpenRA.Sync.CheckSyncUnchanged[T](World world, Func`1 fn)
   at OpenRA.Sync.CheckSyncUnchanged(World world, Action fn)
   at OpenRA.DefaultInputHandler.OnMouseInput(MouseInput input)
   at OpenRA.Renderer.Glsl.GraphicsDevice.Present(IInputHandler inputHandler)
   at OpenRA.Graphics.Renderer.EndFrame(IInputHandler inputHandler)
   at OpenRA.Graphics.Viewport.DrawRegions(WorldRenderer wr, IInputHandler inputHandler)
   at OpenRA.Game.Tick(OrderManager orderManager, Viewport viewPort)
   at OpenRA.Game.Run()
   at OpenRA.Program.Run(String[] args)
   at OpenRA.Program.Main(String[] args)

Code: Select all

1TNK:
	Inherits: ^Tank
	Buildable:
		Queue: Vehicle
		BuildPaletteOrder: 40
		Owner: allies
	Valued:
		Cost: 600
	Tooltip:
		Name: Light Tank
		Description: Light Tank, good for scouting.\n  Strong vs Light Vehicles\n  Weak vs Tanks, Aircraft
	Health:
		HP: 250
	Armor:
		Type: Heavy
	Mobile:
		Speed: 9
	RevealsShroud:
		Range: 4
	Turreted:
		ROT: 5
	AttackTurreted:
		PrimaryWeapon: 25mm
		Recoil: 2
		AlignIdleTurrets: true
	RenderUnitTurreted:
	AutoTarget:
	Explodes:
		Weapon: UnitExplodeSmall
		EmptyWeapon: UnitExplodeSmall
#	LeavesHusk:
#		HuskActor: 1TNK.Husk
	ChronoshiftDeploy:
		ChargeTime: 30
User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Post by Sleipnir »

This is indeed for the chronotank, which we used to include in our old aftermath mod.

The internal trait code is bugged - fixing this would be a good bug for someone just getting started on OpenRA development. Bug #774 covers this.
chrisf
Posts: 246
Joined: Mon Sep 06, 2010 4:59 am

Post by chrisf »

Marked the ticket as such.
Post Reply