Civ4 Save/Scenario/Map Editor

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

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Civ4EditorModel.Wbs.Civ4Map.get_Item(Int32 x, Int32 y)
at Civ4EditorControls.MapEditor.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(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.UserControl.WndProc(Message& m)
at Civ4EditorControls.MapEditor.WndProc(Message& messg)
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.2194.21616
Win32 Version: 1.0.2194.21616
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.2192.34445
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
----------------------------------------
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.
 
Hello, I've just downloaded your utility and I'm now upgrading the .net Framework. But I've a doubt:
when I tried to run the installation, the program said "you need framework version n et cetera... do you want to install now?" I clicked yes and it opened a browser window with the italian version (1.1!) of the framework. I tried to install it but it said I already have it.
I tried to download it from your link and now it's installing... BUT...
if I've italian Visual Basic 6 installed, will .netFW interfer with it???

Thanks...
 
Hi,

just downloaded the utility and got the following message:


Illegal version line "f

Exception
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.LoadHeader(Civ4PersistenceLoadContext context)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(Stream stream, C concept, PersistenceTypeConverter converter, ProgressHost progressHost)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(String file, C concept, PersistenceTypeConverter converter, ProgressHost progressHost)
at Civ4MapGenerator.Wbs.WorldBuilderSave.Load(String file, ProgressHost progressHost)
at Civ4MapGenerator.LoadScreen.DoLoad(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)

What's the problem with?
 
How can i create a edit scenario savegame for hotseat playing with this editor ? :crazyeye:
 
I have a problem with using the Civ4Editor.

After I edited a scenario in World builder, I use the Civ4Editor to make some changes of the game setting. But sometimes, the number of civs increased. The first half of the civs are empty.

When I open this game again in Civ4, my original civs are gone remining with the empty civs.

See attachment for a screenshot of the extra civs.

Any help would be greatly appreciated!
 
I have a problem regarding mods, It isnt able to load mods, the button does nothing!
 
I have the European version of Civ4, with the 1.52 patch, and I got this error when launching the editor (It's a bit fast but I think it appears while saying "loading civilization types...") :

Code:
Message : Invalid character in the given encoding. Line 2095, position 39.

Stack trace :
XmlException
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32& charsCount)
   at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
   at System.Xml.XmlTextReaderImpl.ReadData()
   at System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type, Int32& outStartPos, Int32& outEndPos)
   at System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type)
   at System.Xml.XmlTextReaderImpl.ParseComment()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(Stream inStream)
   at Civ4MapGenerator.GameInfo.GameInfoProvider.GetGameInfos(GameInfoKey gameInfo)
   at Civ4MapGenerator.GameInfo.GameInfoProvider.Preload(ProgressHost progressHost)
   at Civ4MapGenerator.SplashScreen.Start(Object param)
   at Civ4MapGenerator.TaskScreen.RunThread(Object host)

I would have tried to look at this line 2095, position 39 but I don't see a filename mentioned in the error so...
And I haven't made changes to any XML file as far as I remember.
 
hi

great program, it's super helpful, but I had a couple of problems with v1.0.23 that you might want to know about.

First, I think I ran into the same problem as CivDav, with the OutOfRangeException. For me, it happens when I'm drawing with a brush, cruising around the screen, and my mouse pointer goes off the edge of the map. For instance, drag the horizontal scrollbar all the way to the right, then choose a brush, click in the middle of the drawing window, and drag the mouse pointer to the right, past the edge of the world. You'll get this:

System.IndexOutOfRangeException: Index was outside the bounds of the array.


Second, it doesn't look like river arrows work properly. I draw a southbound river, save my map, quit and reload the program, load my map, and see a northbound river. This happens with east/west as well as north/south. Not sure how or why this is happening.

Finally, I'm having problems launching the program. The progress bar gets stuck on 'loading religions' or whatever the message is that has to do with religions. I have to kill it and re-run it (one or more times) for it to work. Weird.

Anyway, keep up the great work. Looking forward to newer versions when you get the time.

thanks

- Dan
 
I have the neccessary files installed to run this program, but for some reason I cannot place units or cities. The only thing I have been able to do is place rivers(and not very well either). Any ideas what I am doin wrong?
 
Kswoll, you should be shamed for tricking hardcore modders in such a frustrating way!
 
Hi, looks like a handy tool..but i can't tell becoz i get this error when i try to open a BMP image:

Illegal version line "BM6d

Exception
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.LoadHeader(Civ4PersistenceLoadContext context)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(Stream stream, C concept, PersistenceTypeConverter converter, ProgressHost progressHost)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(String file, C concept, PersistenceTypeConverter converter, ProgressHost progressHost)
at Civ4MapGenerator.Wbs.WorldBuilderSave.Load(String file, ProgressHost progressHost)
at Civ4MapGenerator.LoadScreen.DoLoad(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)


any ideas???
thanx
 
:beer: For some reason when i load a worldbuilder file the application freezes and doesn't respond I do have the latest version of .net framework. It would be nice if you could create a help file in your next version explaining how to use all the settings so people dont have to figure it out. Great work by the way!
 
Awesome editor, it works great, though adding trees/jungle/ice somestimes gets a little wonky, and I have to go straight to the official worldbuilder - but hey, at least this saves a LOT of time.

Also, I discovered the "trace" feature today. Absolutely fantastic
 
This is absolutely great!, one thing though, I personally prefer editing resources using Map View. When I try to load a worldbuilder file that is previously fabricated using the Civ4Editor the MapView utility crashes. Any ideas?
 
Tyranausaurus said:
This is absolutely great!, one thing though, I personally prefer editing resources using Map View. When I try to load a worldbuilder file that is previously fabricated using the Civ4Editor the MapView utility crashes. Any ideas?

Could you please host/send me such a file? I´ll see if i can find the error.
 
I had this same error. The plot characteristics are in a different order then the mapview uses. What I did was open the file in World Builder, and saved it. I could then open it in Mapview, as worldbuilder reconfigured the plot information into a sequence that Mapview could handle.

Sounds like you had the same problem.

Greyhound: I mentioned it previously in your Mapview thread. Just so you know.
 
I had this same error. The plot characteristics are in a different order then the mapview uses. What I did was open the file in World Builder, and saved it. I could then open it in Mapview, as worldbuilder reconfigured the plot information into a sequence that Mapview could handle.
Hey thanx, I thought that would solve the issue but I thought if I point this out another time the creators of the program would be able to fix it. Kswoll and Gr3yHound I thank you guys for putting the two absolutely fanastic programs together, I think this should have been an essential utility the game should have shipped with. :goodjob:
 
Top Bottom