Custom mission fails to load

Issue #163 resolved
Justagai created an issue

Attached output_log.txt

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Trying to instantiate object of type Asteroid1 but no prefab is registered. Skipping!

This line repeats in the log. I'm assuming no model is set for Asteroid1.

This also appears:

KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary2[Common.EntityIdentifier,Common.ShipStats].get_Item (EntityIdentifier key) [0x00000] in <filename unknown>:0 at Common.StatManager.GetStats (EntityIdentifier type) [0x00000] in <filename unknown>:0 at Mission.FlightGroup.get_Stats () [0x00000] in <filename unknown>:0 at Mission.FlightGroup.get_IsCapitalShip () [0x00000] in <filename unknown>:0 at AstronomicalBackdropManager.<SpawnBackdrop>m__0 (Mission.FlightGroup fg) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator122[Mission.FlightGroup,UnityEngine.Vector3].MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D1[UnityEngine.Vector3].MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator102[UnityEngine.Vector3,UnityEngine.Vector3].MoveNext () [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1[UnityEngine.Vector3].AddEnumerable (IEnumerable1 enumerable) [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1[UnityEngine.Vector3]..ctor (IEnumerable1 collection) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToArray[Vector3] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 at AstronomicalBackdropManager.SpawnBackdrop (Mission.FlightObjectDefinition planet, Mission.Mission mission) [0x00000] in <filename unknown>:0 at GameManager.PlaceBackdrops () [0x00000] in <filename unknown>:0 at GameManager+<PerformResourceLoading>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0 at GameManager+<LoadCombatSequence>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0 at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0

It's possible the two are related.

Comments (5)

  1. Justagai reporter

    I've replaced one of the FG with one that has no ship assigned to it.

    It looks like XWVM can't load missions that has a FG with its ship set to none. Somehow the mission still loads in the original.

  2. David Esparza Guerrero

    Fixed: Issue #163: Custom mission fails to load Added: Asteroids (Retro model placeholders) Fixed: Hidden helper quad in Torpedo and Missile prefabs. Fixed: Missiles and torpedoes should no longer blow up when hitting the player from behind while the player is firing the laser cannons.

    → <<cset cfef624395a9>>

  3. Log in to comment