Dynamic Campaign Generator (DCG) is a mod for the game "Men of War" and some of its successors that randomly generates skirmish missions and lets you keep your surviving forces from one battle to another. Some people find this mod tricky to install the first time - please read the readme.txt carefully and ask for help (if you need it) on our forums here on this site, or at the game developer's site.

Forum Thread
  Posts  
Crash on Map extraction. (Games : Men of War : Mods : Dynamic Campaign Generator (DCG) : Forum : Bugs, problems, troubleshooting : Crash on Map extraction.) Locked
Thread Options
Jan 16 2016 Anchor

This pops up as soon as I hit extract.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at CampaignGenerator.FileHandlerPak.ExtractAllMaps(String pakfilename, String outputfolder)
at CampaignGenerator.frmSettings.btnExtractAllMaps_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: C:
----------------------------------------
Campaign
Assembly Version: 4.5.0.0
Win32 Version: 1.0.0.0
CodeBase: C: Files (x86)/Steam/steamapps/Common/Men of War Assault Squad 2/mods/Campaign/Campaign.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: C:
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: C:
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: C:
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: C:
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: C:
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: C:
----------------------------------------
Microsoft.Xna.Framework
Assembly Version: 3.1.0.0
Win32 Version: 3.1.10527.0 built by: xnabldr
CodeBase: C:
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.9177
Win32 Version: 9.00.30729.9177
CodeBase: C:
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Thanks for any help anyone can give me.


,Alex

Please ignore, have fixed issue (set to run as admin)

Jan 20 2016 Anchor

You are missing the Visual #J library structure in your PC. It can be downloaded from Microsoft´s homepage for free if you have a legit copy of Windows.

For more details on how to install DCG correctly, please follow this tutorial ---> Moddb.com


~Zeke.

Feb 16 2016 Anchor

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at CampaignGenerator.Player.AddTypesCumulative(Campaign campaign)
at CampaignGenerator.Player.InitializeAndAddTypes(Campaign campaign)
at CampaignGenerator.Operation.AdjustEdgeAndPlayers(Int32 edge, Player player1, Player player2, Player player3, Campaign campaign)
at CampaignGenerator.Operation.getCurrentMapPlayerInfo(List`1 players, Map m, Campaign campaign)
at CampaignGenerator.Campaign.AddMap()
at CampaignGenerator.frmMain.DisplayMission()
at CampaignGenerator.frmMain.PanelOperation_btnDone_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: C:
----------------------------------------
Campaign
Assembly Version: 4.5.0.0
Win32 Version: 1.0.0.0
CodeBase: E: Files (x86)/Steam/SteamApps/common/Men of War Assault Squad 2/mods/Campaign/Campaign.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8015 (FX35W81RTMGDR.050727-8000)
CodeBase: C:
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8009 (FX35W81RTMGDR.050727-8000)
CodeBase: C:
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8019 (FX35W81RTMGDR.050727-8000)
CodeBase: C:
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8018 (FX35W81RTMGDR.050727-8000)
CodeBase: C:
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8007 (FX35W81RTMGDR.050727-8000)
CodeBase: C:
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8007 (FX35W81RTMGDR.050727-8000)
CodeBase: C:
----------------------------------------
Microsoft.Xna.Framework
Assembly Version: 3.1.0.0
Win32 Version: 3.1.10527.0 built by: xnabldr
CodeBase: C:
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.8387
Win32 Version: 9.00.30729.8387
CodeBase: C:
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


I keep having this crash. I couldn't figure out how to start a new post in the forum so I have to post this here. Any idea what is wrong? I have windows 8, game is set to run as admin, and I have all the Microsoft downloads needed to run

Feb 16 2016 Anchor

Do you get this all the time, ie. can you begin a new campaign and play, or do you get the same crash then to? I don´t play AS2 due to many difference reasons, but the same bug do happen in vanilla MoW as well (rarely though). The one and only solution I have found for this bug, is sadly to start a new campaign from scratch.

Jason1 is looking into it (he´s the coder of DCG) but it is also the first time I´ve ever heard about the same problem in AS2/DCG.

~Zeke.

Feb 16 2016 Anchor

I am playing AS2. It mainly happens when I attempt Operation Husky as Allies. Same with D-Day. Sometimes it happens after I complete one mission. I always get that error. So I am not sure if it is the operations or something. Also it sometimes happens after I attempt to deploy to the mission.

Also which MoW is this mod best to be played with? I have the first one and AS2. I dont prefer to play the first one as it seems oudated to me some.

Edited by: ajs97

Feb 16 2016 Anchor

Personally I prefer to play MoW over AS2. Sure AS2 has better graphics, but it changed so much game wise (my opinion) that it no longer suit SP gaming. Artillery is a big let down for me in AS2, and since artillery spotting got a "work-over" in AS2, it no longer works properly in AS2, and thus, all heavy artillery over 10.5cm in calibre, has been removed from DCG.

I do get the same error as you got, but not very often and I can usually play several campaigns without seeing the error. Mostly I get the error when I play as USSR or USA.

Some times the error can be fixed by simply closing down the campaign.exe, restart it and then go back into the game, and re-save your last battle as Result, but please observe, this "fix" doesnt always fix your crash.

~Zeke

Feb 16 2016 Anchor

Ok thanks and that is when I most get it is when I play USA. I most likely with revert back to MoW then.


Edit: Also what is the best way to refill a units ammo? In AS2 they made it to where the ammo truck automatically does this. Last time I remember I had to do everything manually in MoW.

Edited by: ajs97

Feb 17 2016 Anchor

Yes, in MoW you´ll have to refill tanks, infantry etc manually. The ammo truck is yet another reason for my dislike against AS2. I like micromanaging and find it enjoyable to loot the battlefield once the mission is won, but hey, that´s just me. :)

Easiest way to refill a units ammo (though its whole inventory will reset by doing this), is to use the button "Reset" in the DCG buy menu (pick the unit you want to replendish with ammo, then press one of the two reset buttons (one resets a single unit, the other resets the inventories for your whole unit, right now I can´t remember the buttons exact names though, sorry).

~Zeke.

Feb 17 2016 Anchor

Alright thanks for the help. I do like to scavenge the battlefield but sometimes it just is too time consuming for me.

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.