Advertisement
Civilization Fanatics' Center

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Utility Programs

Reply
 
Thread Tools
Old Nov 28, 2005, 03:27 PM   #1
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Civ4 WorldBuilderSave/Scenario/Map Editor

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/d...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.
Attached Files
File Type: zip Civ4EditorInstaller.zip (440.1 KB, 25590 views)

Last edited by kswoll; Jan 03, 2006 at 01:00 PM.
kswoll is offline   Reply With Quote
Old Nov 28, 2005, 04:36 PM   #2
thamis
King of Kish
 
thamis's Avatar
 
Join Date: Jan 2002
Location: Munich
Posts: 1,573
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?
__________________
- Ancient History Encyclopedia, my new project that needs your contributions!
- The Ancient Mediterranean Mod
thamis is offline   Reply With Quote
Old Nov 28, 2005, 06:12 PM   #3
Karam
Chieftain
 
Join Date: Oct 2005
Posts: 92
First pick! excellent work, I can't try it out tonight, tomorrow maybe.
Karam is offline   Reply With Quote
Old Nov 29, 2005, 01:20 AM   #4
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Thanks for your feedback. I've attached a new version (to the main thread up top)

Quote:
Originally Posted by thamis
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.

Quote:
Originally Posted by thamis
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.

Quote:
Originally Posted by thamis
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.
Thanks, this is fixed.

Quote:
Originally Posted by thamis
May I also draw your attention to this little tool for XML modding of civilizations and get your opinion on it?
Very cool. The open architecture of this game sure makes creating tools for it fun, huh?
kswoll is offline   Reply With Quote
Old Nov 30, 2005, 12:24 PM   #5
JamieCiv4Files
Chieftain
 
Join Date: Oct 2005
Posts: 56
Look great!

I've taken the liberty to host it on our website (http://www.civ4files.com/file/;51179), I hope that is OK.

Looking forward to future updates
JamieCiv4Files is offline   Reply With Quote
Old Nov 30, 2005, 07:47 PM   #6
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Quote:
Originally Posted by JamieCiv4Files
Look great!

I've taken the liberty to host it on our website (http://www.civ4files.com/file/;51179), I hope that is OK.

Looking forward to future updates
Thanks Jamie, I appreciate it.
kswoll is offline   Reply With Quote
Old Dec 01, 2005, 06:02 AM   #7
Feet
Warlord
 
Feet's Avatar
 
Join Date: Oct 2005
Location: Southend, UK
Posts: 143
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.
Feet is offline   Reply With Quote
Old Dec 01, 2005, 06:34 AM   #8
CivDav
Warlord
 
CivDav's Avatar
 
Join Date: Jul 2005
Location: Budapest, Hungary
Posts: 140
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(T Key key)
at Civ4MapGenerator.GameInfo.GameInfoProvider.GetGame Infos(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_C lick(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs 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(Mes sage& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(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.
CivDav is offline   Reply With Quote
Old Dec 01, 2005, 09:29 AM   #9
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Quote:
Originally Posted by Feet
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.
kswoll is offline   Reply With Quote
Old Dec 01, 2005, 09:32 AM   #10
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Quote:
Originally Posted by CivDav
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 is offline   Reply With Quote
Old Dec 01, 2005, 01:19 PM   #11
CivDav
Warlord
 
CivDav's Avatar
 
Join Date: Jul 2005
Location: Budapest, Hungary
Posts: 140
Quote:
Originally Posted by kswoll
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(Strin g 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_C lick(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs 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(Mes sage& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(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 is offline   Reply With Quote
Old Dec 01, 2005, 01:45 PM   #12
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Quote:
Originally Posted by CivDav
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.
kswoll is offline   Reply With Quote
Old Dec 01, 2005, 02:00 PM   #13
CivDav
Warlord
 
CivDav's Avatar
 
Join Date: Jul 2005
Location: Budapest, Hungary
Posts: 140
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(T Key key)
at Civ4MapGenerator.GameInfo.GameInfoProvider.GetGame Infos(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_C lick(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs 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(Mes sage& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(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.
CivDav is offline   Reply With Quote
Old Dec 01, 2005, 02:04 PM   #14
CivDav
Warlord
 
CivDav's Avatar
 
Join Date: Jul 2005
Location: Budapest, Hungary
Posts: 140
Here is a screenshot of the problem
Attached Thumbnails
Click image for larger version

Name:	névtelen.jpg
Views:	7471
Size:	149.1 KB
ID:	105922  
CivDav is offline   Reply With Quote
Old Dec 01, 2005, 02:49 PM   #15
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Quote:
Originally Posted by CivDav
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.

Last edited by kswoll; Dec 01, 2005 at 02:55 PM.
kswoll is offline   Reply With Quote
Old Dec 01, 2005, 03:22 PM   #16
Zespri
Chieftain
 
Join Date: Nov 2005
Location: Auckland, New Zealand
Posts: 13
Minor issue

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.
Zespri is offline   Reply With Quote
Old Dec 01, 2005, 07:01 PM   #17
Get SEG-Y
Chieftain
 
Join Date: Dec 2005
Posts: 3
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(Event Args e)
at System.Windows.Forms.Form.OnHandleCreated(EventArg s e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(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.
Get SEG-Y is offline   Reply With Quote
Old Dec 02, 2005, 10:10 AM   #18
Harrdy
Chieftain
 
Join Date: Dec 2005
Posts: 4
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

Last edited by Harrdy; Dec 02, 2005 at 10:14 AM.
Harrdy is offline   Reply With Quote
Old Dec 02, 2005, 11:58 AM   #19
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Quote:
Originally Posted by Harrdy
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.
kswoll is offline   Reply With Quote
Old Dec 02, 2005, 11:59 AM   #20
kswoll
Chieftain
 
Join Date: Dec 2001
Posts: 33
Quote:
Originally Posted by Get SEG-Y
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.
kswoll is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Utility Programs > Civ4 Save/Scenario/Map Editor

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 05:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR