Default Mod does not start #2142

Closed
Mailaender opened this Issue May 13, 2012 · 4 comments

Comments

Projects
None yet
3 participants
Owner

Mailaender commented May 13, 2012

It looks like as if the default mod is currently outdated. Also the error message is not very helpful. Which key is not present in which dictionary? I am stuck at the same error message with d2k mod which might be source code from the same era.

Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,OpenRA.FileFormats.MiniYaml].get_Item (System.String key) [0x00000] in <filename unknown>:0 
  at OpenRA.FileFormats.Manifest..ctor (System.String[] mods) [0x00000] in <filename unknown>:0 
  at OpenRA.ModData..ctor (System.String[] mods) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.InitializeWithMods (System.String[] mods) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,OpenRA.FileFormats.MiniYaml].get_Item (System.String key) [0x00000] in <filename unknown>:0 
  at OpenRA.FileFormats.Manifest..ctor (System.String[] mods) [0x00000] in <filename unknown>:0 
  at OpenRA.ModData..ctor (System.String[] mods) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.InitializeWithMods (System.String[] mods) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
Owner

chrisforbes commented May 13, 2012

Run that with mono --debug and it will give you line numbers.

This is the interesting stack frame:

at OpenRA.FileFormats.Manifest..ctor (System.String[] mods) [0x00000] in :0

Contributor

Holloweye commented May 16, 2012

Maybe this is your use-case:

  1. You test your Dune2k mod
  2. You install a new OpenRA version or remove your mod from the game
  3. You try to start game, (game want to start Dune2K mod because it's the last one you played but it dose not exist anymore = crash)

to fix: mono OpenRA.Game.exe Game.Mods=ra

Owner

Mailaender commented May 16, 2012

I know that OpenRA remembers the old mod, thanks. The problem was mono OpenRA.Game.exe Game.Mods=d2k or mono OpenRA.Game.exe Game.Mods=default did not load at all and I thought I could use them as a start to create a Dune 2000 mod. The --debug options is indeed very helpful to find errors in YAML files. However the default mod might just be removed from the master branch as it is of no use. You are better of learning how to create your own mods by looking at /mods/ra or /mods/cnc.

Owner

Mailaender commented Jun 7, 2012

It uses some Mapformat = 2 (recent seems to be 5) and .xml files for chrome and cursor that are not supported any more. I removed it completely because of heavy bitrot in commit f50f8dc Copying the official mods and stripping them down is a good basis for a new mod. At least this is how I did it for Dune 2000. In pull request #2155 I add my improved d2k mod.

@Mailaender Mailaender closed this Jun 7, 2012

@Mailaender Mailaender added the crash label Apr 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment