System.IndexOutOfRangeException: Index was outside the bounds of the array.
at OpenRA.Sound.PlayVoice(String phrase, Actor voicedUnit, String variant)
at OpenRA.Selection.Combine(World world, IEnumerable`1 newSelection, Boolean isCombine, Boolean isClick)
at OpenRA.Widgets.WorldInteractionControllerWidget.HandleInputInner(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(World world, MouseInput mi)
at OpenRA.Game.DispatchMouseInput(MouseInputEvent ev, MouseEventArgs e, Modifiers modifierKeys)
at OpenRA.GlRenderer.GraphicsDevice.Present()
at OpenRA.Graphics.Renderer.EndFrame()
at OpenRA.Graphics.Viewport.DrawRegions(World world)
at OpenRA.Game.Tick()
at OpenRA.Game.Run()
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
any Idea?
Edit:
to be more exactly. the game IE´s as soon as i select my new countries MCV.
without AI this works without any problem
ok...the mcv is not a problem anymore...
last time game crashed because i selected a harvester.
things i changed in voices.yaml was to give my testcountry own entry with .t01/2/3 and copied to \extra\ the soviet soundfiles and renamed them to *.t01/2/3
and to be sure i put copied those in a mix named test.mix too.
will test some more and tell you if i was able to get it working
tested some more with actual version (both cnc and ra) and the game ies randomly when I select a unit (infantry or vehicles).
like when I select some E1 they say "hello". a couple of times later the game ies when I select those E1 again.
and since I checked everything a couple of times I doupt that I made an error...
debug.log says: "Failed generating OpenAL source 30"
exception.log says:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at OpenRA.Sound.PlayVoice(String phrase, Actor voicedUnit, String variant)
at OpenRA.Selection.Combine(World world, IEnumerable`1 newSelection, Boolean isCombine, Boolean isClick)
at OpenRA.Widgets.WorldInteractionControllerWidget.HandleInputInner(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(World world, MouseInput mi)
at OpenRA.Game.DispatchMouseInput(MouseInputEvent ev, MouseEventArgs e, Modifiers modifierKeys)
at OpenRA.GlRenderer.GraphicsDevice.Present()
at OpenRA.Graphics.Renderer.EndFrame()
at OpenRA.Graphics.Viewport.DrawRegions(World world)
at OpenRA.Game.Tick()
at OpenRA.Game.Run()
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
have you ever tried adding a new side/country and can confirm that it works?
debug.log says:
Failed generating OpenAL source 30
exception.log says:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at OpenRA.Sound.PlayVoice(String phrase, Actor voicedUnit, String variant)
at OpenRA.Selection.Combine(World world, IEnumerable`1 newSelection, Boolean isCombine, Boolean isClick)
at OpenRA.Widgets.WorldInteractionControllerWidget.HandleInputInner(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(World world, MouseInput mi)
at OpenRA.Game.DispatchMouseInput(MouseInputEvent ev, MouseEventArgs e, Modifiers modifierKeys)
at OpenRA.GlRenderer.GraphicsDevice.Present()
at OpenRA.Graphics.Renderer.EndFrame()
at OpenRA.Graphics.Viewport.DrawRegions(World world)
at OpenRA.Game.Tick()
at OpenRA.Game.Run()
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
i attached my rules, mod.yaml, voices.yaml, chrome.xml...
Last edited by raminator on Tue Sep 21, 2010 3:28 pm, edited 1 time in total.
any news here?
i tested this again and again with fresh installs of openra and yaml-editing from scratch...
but always the same errors.
how does this exactly work?
- i edited chrome.xml to have entries for "test" (using chrome-allies.png)
- i edited voices.yaml to have sounds for "test"
- i added "test"/"Test" as new "Country@2" to system.yaml
- i gave them all allied units and buildings via infantry.yaml, structures.yaml, vehicles.yaml
and every now and then the game IEs when i select a unit
i will try now removing all voices from all units to see if this helps
UPDATE1:
i gave all infantry, that is using the generic voices, the medic voices and no crash...
so either i did something terribly wrong with thos generic voices for all units or there´s some bugs in that system...
UPDATE2:
giving vehicles engineer voices fixed the problem
so as far as i understand the yaml-files there must be some error in the generic-voices-code for units (atleast if there´s a third country)
can this be fixed by editing the dll-files?