Civ4 Save/Scenario/Map Editor

kswoll

Chieftain
Joined
Dec 10, 2001
Messages
33
1/3 - New Version (1.0.23) - Undo support in map editor, bug fixes when starting up
12/5 - New Version (1.0.22)
Fixed river saving, editing, and the arrow directions when drawing north/south were opposite what they should have been.
Added about box with version number and link to this page.​
12/4 - New Version (1.0.21) - Fixed color loading for Europeans and their crazy commas as the decimal point. :)
12/4 - New Version (1.0.20) - Better exception messaging when parsing colors
12/3 - New Version (1.0.19) - Lots of fixes to the file loading parsing
12/2 - New Version (1.0.18) - Lots of fixes to the river editor
12/2 - New Version (1.0.17) - Fix river parsing bug when loading a game
12/2 - New Version (1.0.16) - Exceptions when loading display in a nice dialog
12/2 - New Version (1.0.15)
River editor fixed so you can specify river direction. It should be obvious how to use.​
12/2 - New Version (1.0.14)
New map editor feature: River editing. You can now edit rivers in the map editor. It is considerably easier to edit rivers in this program than in WorldBuilder. Although if you've edited rivers in WorldBuilder you would understand that this isn't saying much. Be that as it may, it should be very easy and intuitive. Just click on the river button and start drawing on the map. The river that will be laid down is displayed when your mouse moves over the map and you can click the left mouse button to actually lay the river down permanently.

A message appears now if you do not have Civ4 installed rather than the program crashing.​
12/1 - New Version (1.0.11) - Bug fixes
12/1 - New Version (1.0.10) - Bug fixes. (thanks CivDav)
12/1 - New Version (1.0.8)
New map editor feature: Background images! Now you can specify a background image in the map editor to make it VERY easy to trace over map images you have.​
12/1 - New Version (1.0.7)
Bug fixes​
11/30 - New Version (1.0.6)
New map editor feature: Generate Coast. This feature ensures every ocean square that is adjacent to a land square is a coast square.​
11/30 - New Version (1.0.5)
Lots of fixing to the parsing engine that loads in save files. Prior versions would crash when faced with some files.​
11/30 - New Version (1.0.4)
Lots of new performance improvements. Game loading/saving and map drawing is MUCH faster.
New Feature: Copying and pasting support in the map editor​
11/29 - New Version (1.0.3)
River data was not being preserved. Still not possible to edit river data. Coming soon.​
11/29 - New Version (1.0.2)

This program currently functions to load and save Civ4WorldBuilderSave files and also to create brand new ones from scratch. It provides complete editing of most aspects of the file. Coming soon is support for rivers. Editing terrain is considerably faster using this program compare to the WorldBuilder. In WorldBuilder, adding a single hill sometimes takes a second or two. Using this program you can paint hills (or any terrain feature) like a painting program with very smooth performance.

Tips
There are two terrain combo boxes in the map editor. The main one is for the left mouse button and the secondary (right) one is for the right mouse button. This way you can, for example, make the primary terrain Grassland and the secondary terrain Ocean. This way you can easily draw on the map and quickly "erase" what you've done with the right mouse button.

There is a button, "Generate Coast." This is useful if you draw on the map using the technique described above, and have land jutting up directly against ocean squares. This button will convert into a coast square any ocean square that is adjacent (in any of the 8 directions) to a land square.

This program currently has some memory leaks and is absolutely in a pre-release state so Use-At-Your-Own-Risk!!! Especially make backup copies of any files you edit as there is every posibility you could lose or corrupt your work. That being said, that hasn't happened to me in quite a while, but who knows? With your help, it'll get increasingly stable. Please report any and all bugs or idiosynchracies here.

Here is a shot of the map editor portion in action:



(http://www.casalus.com/civ4editor/Civ4EditorMap.gif)

Here is a shot of the player editor portion in action:



(http://www.casalus.com/civ4editor/civ4editorplayers.gif)

This software requires .Net v.2.0 which can be downloaded from here if you do not already have it installed:

http://www.microsoft.com/downloads/...cb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en

I will be making changes to this program often. Please check back here for updates. I welcome all types of feedback so please don't hesitate to let me know what you think.
 

Attachments

  • Civ4EditorInstaller.zip
    440.1 KB · Views: 29,375
Cool tool indeed. It's good for editing maps.

I noticed two things:
- Hills: You can place them, but are they grassland hills or plains hills and do they have a forest?
- Forests/Jungles: missing

Also, if you save a file, it writes out the infos for all civilizations that aren't used, as well (including starting location 0,0). Doesn't the game load them if there is any more info than the bare minimum?

Another problem: When I press "save" not "save as", I get this error:
Code:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.File.Delete(String path)
   at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Save(String file, C concept, PersistenceTypeConverter converter)
   at Civ4MapGenerator.Wbs.WorldBuilderSave.Save(String file)
   at Civ4MapGenerator.Civ4Editor.save()
   at Civ4MapGenerator.Civ4Editor.saveToolStripMenuItem_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Civ4MapGenerator
    Assembly Version: 1.0.2158.25714
    Win32 Version: 1.0.2158.25714
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Civ4MapGenerator.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Civ4EditorModel
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Civ4EditorModel.DLL
----------------------------------------
Foundation
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ISymWrapper
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/ISymWrapper/2.0.0.0__b03f5f7f11d50a3a/ISymWrapper.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
Civ4EditorControls
    Assembly Version: 1.0.2158.25713
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Civ4EditorControls.DLL
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
DynamicAssemblyProxyGen
    Assembly Version: 0.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------

************** 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:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

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.

May I also draw your attention to this little tool for XML modding of civilizations and get your opinion on it?
 
First pick! excellent work, I can't try it out tonight, tomorrow maybe.
 
Thanks for your feedback. I've attached a new version (to the main thread up top)

thamis said:
Cool tool indeed. It's good for editing maps.

I noticed two things:
- Hills: You can place them, but are they grassland hills or plains hills and do they have a forest?
- Forests/Jungles: missing

Yes, you're right. It took some puzzling out, but terrain is handled 3 different ways. Most of them are handled by the Plot's TerrainType attribute. Hills and Peaks are handled by PlotType. Forests, Jungles, Flood Plains, and Ice are handled by FeatureType. The graphics should handle all these permutations by various types of shading.

thamis said:
Also, if you save a file, it writes out the infos for all civilizations that aren't used, as well (including starting location 0,0). Doesn't the game load them if there is any more info than the bare minimum?

Spitting out the starting locations was a bug. Thanks for reporting it. My experience is that only CivType and LeaderHead must be blank. It would probably be ideal for the excess information to not be saved. I will look into this.

thamis said:
Another problem: When I press "save" not "save as", I get this error:
Code:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.
[/QUOTE]

Thanks, this is fixed.

[QUOTE=thamis]
May I also draw your attention to [URL="http://forums.civfanatics.com/showthread.php?t=144366"]this little tool [/URL]for XML modding of civilizations and get your opinion on it?[/QUOTE]

Very cool.  The open architecture of this game sure makes creating tools for it fun, huh? :)
 
It doesn't appear to like my mod. I Open my WBS file and the program just crashes. No error message or anything. The WBS is definately ok.

Ho hum.
 
When i try to run the editor i got this error message:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Civ4MapGenerator.GameInfo.GameInfoProvider.GetGameInfos(GameInfoKey gameInfo)
at Civ4EditorModel.Wbs.Game.Created()
at Foundation.Concept`1.Create()
at Civ4MapGenerator.Wbs.WorldBuilderSave.Created()
at Foundation.Concept`1.Create()
at Civ4MapGenerator.Civ4Editor.newToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Civ4MapGenerator
Assembly Version: 1.0.2160.40557
Win32 Version: 1.0.2160.40557
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4MapGenerator.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Civ4EditorModel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4EditorModel.DLL
----------------------------------------
Foundation
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
Civ4EditorControls
Assembly Version: 1.0.2160.40557
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4EditorControls.DLL
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------

************** 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:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

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.
 
Feet said:
It doesn't appear to like my mod. I Open my WBS file and the program just crashes. No error message or anything. The WBS is definately ok.

Ho hum.

Would you mind zipping up your WBS file and either emailing it to me (kirk.woll@gmail.com) or posting it on this forum? I'll try opening it myself and see if I can reproduce it. If so I should have a fix shortly.
 
CivDav said:
When i try to run the editor i got this error message:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

Thanks for reporting this. I'm puzzled why you were having any problems as I was simply catching an exception that was thrown which is perfectly legal code. However, to try to solve your problem I invoked a different method that avoids the exception alltogether. So please try the latest version and let me know if that fixes it for you.
 
kswoll said:
Thanks for reporting this. I'm puzzled why you were having any problems as I was simply catching an exception that was thrown which is perfectly legal code. However, to try to solve your problem I invoked a different method that avoids the exception alltogether. So please try the latest version and let me know if that fixes it for you.
Now it writes another problem:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.Path.GetFullPath(String path)
at System.Drawing.IntSecurity.UnsafeGetFullPath(String fileName)
at System.Drawing.IntSecurity.DemandReadFileIO(String fileName)
at System.Drawing.Bitmap..ctor(String filename)
at Civ4EditorControls.MapEditor.set_Background(String value)
at Civ4MapGenerator.GameEditor.InitializeComponent()
at Civ4MapGenerator.GameEditor..ctor()
at Civ4MapGenerator.Civ4Editor.newToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Civ4MapGenerator
Assembly Version: 1.0.2161.21870
Win32 Version: 1.0.2161.21870
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4MapGenerator.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Civ4EditorModel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4EditorModel.DLL
----------------------------------------
Foundation
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
Civ4EditorControls
Assembly Version: 1.0.2161.21755
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4EditorControls.DLL
----------------------------------------

************** 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:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

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.
 
CivDav said:
Now it writes another problem:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

Fixed. Thanks again.
 
Error message again:) And it stoppes loading at this point: "loading color values"
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Civ4MapGenerator.GameInfo.GameInfoProvider.GetGameInfos(GameInfoKey gameInfo)
at Civ4EditorModel.Wbs.Game.Created()
at Foundation.Concept`1.Create()
at Civ4MapGenerator.Wbs.WorldBuilderSave.Created()
at Foundation.Concept`1.Create()
at Civ4MapGenerator.Civ4Editor.newToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Civ4MapGenerator
Assembly Version: 1.0.2161.22871
Win32 Version: 1.0.2161.22871
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4MapGenerator.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Civ4EditorModel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4EditorModel.DLL
----------------------------------------
Foundation
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
Civ4EditorControls
Assembly Version: 1.0.2161.22870
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Civ4EditorControls.DLL
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/J%E1t%E9kok/Civ4%20Editor/Foundation.dll
----------------------------------------

************** 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:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

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.
 
Here is a screenshot of the problem
 

Attachments

  • névtelen.jpg
    névtelen.jpg
    149.1 KB · Views: 8,057
CivDav said:
Error message again:) And it stoppes loading at this point: "loading color values"
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

Thanks. This one is strange. I notice you're from Hungary. Is your copy of Civ localized to that version? Can you send me (kirk.woll@gmail.com or attach here) your copy of:

Interface\CIV4PlayerColorInfos.xml
Interface\CIV4ColorVals.xml

It's looking for a color (from Civ4ColorVals.xml) based on the value of ColorTypePrimary in CIV4PlayerColorInfos.xml. Thanks again.

Also, I put a new version up that should handle this problem without throwing an exception.
 
If Civ4 is not installed on the computer, your program crashes with an obscure error. It would be nice if it displayed a message saying that you have to have civ4 installed in order to use this program. Thanks.
 
I get this message when I launch Civ4Editor. Any help is appreciated.

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

************** Exception Text **************
System.TypeLoadException: Could not load type 'Civ4EditorModel.Util.ProgressHost' from assembly 'Civ4EditorModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at Civ4MapGenerator.TaskScreen.DoHandleCreated(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Civ4MapGenerator
Assembly Version: 1.0.2161.24735
Win32 Version: 1.0.2161.24735
CodeBase: file:///D:/Program%20Files/Casalus/Civ4%20Editor/Civ4MapGenerator.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Civ4EditorModel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Program%20Files/Casalus/Civ4%20Editor/Civ4EditorModel.DLL
----------------------------------------

************** 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:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

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.
 
Same error while loading the "color" stuff here. I am using the german version in Austria. Could be regional settings?

Edit: DL the new version, same error...

Tried the debugger and he said the following, don't know if it is related to the debugger or the problem at hand:

An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.dll

Additional information: Value of '25500' is not valid for 'red'. 'red' should be greater than or equal to 0 and less than or equal to 255.

PeAcE
 
Harrdy said:
Additional information: Value of '25500' is not valid for 'red'. 'red' should be greater than or equal to 0 and less than or equal to 255.

PeAcE

This is strange. It is parsing the values in Interface\CIV4ColorVals.xml. For me, this file contains a series of color definitions with the colors defined by xml elements with the names fRed, fGreen, fBlue, fAlpha. In my file, these values are numbers between 0 and 1 indicating a percent of the color component. I am multiplying this value by 255 in order to get an integer between 0 and 255 to use .Net. It sounds like the value in your file is actually 100 instead of 1. Can you check if you have any numbers greater than 1 in your Civ4ColorVals.xml file? Thanks.
 
Get SEG-Y said:
I get this message when I launch Civ4Editor. Any help is appreciated.

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

************** Exception Text **************
System.TypeLoadException: Could not load type 'Civ4EditorModel.Util.ProgressHost' from assembly 'Civ4EditorModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

This looks like you're missing a dll. Is there any chance you copied the EXE file from the folder it was installed to? The exe must be run from the folder it was installed to and should not be moved.
 
Top Bottom