Civ4 Save/Scenario/Map Editor

Hi, I tried to use your program but I get this error when openning up a saved game (If possible, you should show a message saying it can't open saved games, only worldbuilder saves. I found out only after reading through this thread)

Message:
Illegal version line "g

Stack Trace:
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)
 
I'm getting this when trying to open a saved game
Illegal version line "g

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)
seems the last person before me was getting the same thing, what can I do to fix it?
I just bought the game at wal-mart this weekend too, and downloaded the lastest patch


ok so guess you can only open worldbuilder saves... I'm only looking to edit the time so it doesn't end in 2050
 
samoyed1958 said:
I'm only looking to edit the time so it doesn't end in 2050

I was also trying to find out how to do the same thing after I also bought the game at walmart, lol.

I found out that you can continue playing even after 2050. After you get the score screen and other stuff, you will get a dialog box and you can exit to the main menu or click the button that says something like "err.. just one more turn" and keep playing. That was all I wanted.

But if you still want to change it, I am not sure if you can or not, but you can play more turns until you get to the year 2050. The easiest way is to play a slower game like Epic or Marathon. You can also edit the file with those settings. Go to the folder you installed Civ4 and open Assets\XML\GameInfo\CIV4GameSpeedInfo.xml with a text editor. There you can change how many turns it will take to get to 2050 and other speed related settings.

I hope this helped!
 
Yo, your editor is great. But I'm getting this error when I try to create cities:

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

************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Games\Firaxis Games\Sid Meier's Civilization 4\Assets\XML\'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at Civ4MapGenerator.GameInfo.GameInfoProvider.GetGameInfos(GameInfoKey gameInfo)
at Civ4EditorModel.Wbs.Persist.XmlPickListAttribute.CreatePickList[V,W](Field`1 field)
at Foundation.PickList`1.GetPickListExplicit[V](Field`1 field)
at Foundation.PickList`1.GetPickList(Field`1 field)
at Foundation.WinformConnectors.Connect[V,W](ComboBox comboBox, Field`1 field, Field`1 displayField)
at Civ4MapGenerator.GameEditor.BindCity(City city)
at Civ4MapGenerator.GameEditor.plotHasCityCheckBox_CheckedChanged(Object sender, EventArgs e)
at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
at System.Windows.Forms.CheckBox.OnClick(EventArgs e)
at System.Windows.Forms.CheckBox.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.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:/Games/Utilities/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
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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
----------------------------------------
Civ4EditorModel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Civ4EditorModel.DLL
----------------------------------------
Foundation
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.DLL
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
Civ4EditorControls
Assembly Version: 1.0.2192.34445
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Civ4EditorControls.DLL
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/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.

After that, every time I click on the map, I get this:

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 Foundation.WinformConnectors.Disconnect[V](TextBox textBox, Field`1 field)
at Civ4MapGenerator.GameEditor.UnbindPlot(Plot plot)
at Civ4MapGenerator.GameEditor.mapPanel_PlotSelected(Object sender, PlotEventArgs e)
at Civ4EditorControls.MapEditor.OnPlotSelected(Plot plot)
at Civ4EditorControls.MapEditor.SelectPlots()
at Civ4EditorControls.MapEditor.OnMouseUp(MouseEventArgs e)
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.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:/Games/Utilities/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
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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
----------------------------------------
Civ4EditorModel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Civ4EditorModel.DLL
----------------------------------------
Foundation
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.DLL
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
Civ4EditorControls
Assembly Version: 1.0.2192.34445
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Civ4EditorControls.DLL
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/Casalus/Civ4%20Editor/Foundation.dll
----------------------------------------
ConceptProxyAssembly
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Games/Utilities/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.

Sorry for the massive post >_>
 
I can't launch the editor, it keeps sayin "civilization 4 required",
I have windows xp64...
 
i also can't launch the editor and I get the same error message. I think it might be because I reinstalled windows and didn't reinstall civ 4. I didn't reformat and civ 4 still worked so why reinstall? But I think it might not be registered in windows.
 
Ive downloaded the latest version. When i try to run the program it freezes during "Loading color values".

Im using swedish windows 2000 OS.
 
I can't launch the editor, it keeps sayin "civilization 4 required",
I have windows xp64...

Same here I run Vista Ultimate x64 I get the same error I have anyone any ideas Civ is ofcourse installed and works fine.
 
Message: Object Reference not set to an instance of an object

Stack Trace:

NullReferenceException
at Civ4MapGenerator.Wbs.WorldBuilderSave.Load(String file, ProgressHost progressHost)
at Civ4MapGenerator.LoadScreen.DoLoad(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)

happens when trying to load a compatible map
 
Same here I run Vista Ultimate x64 I get the same error I have anyone any ideas Civ is ofcourse installed and works fine.

It´s probably the registry structure Vista vs. registry structure XP.

I did something similar in MapView, i check the registry for Civ4 to determine whe XML file locations etc. Vista prolly has another structure so Civ4 isn´t found. Mayb there´s a ini or something where you can interfere?
 
Does it work with BtS?
Using version 1.0.23 to open a BtS savegame I get;

Illegal version line "-

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)

Using Civ4 Home Of
C:\Program Files\Firaxis Games\Sid Meier's Civilization 4

^ Maybe you have to change that directory to Beyond the Sowrds.. I dunno.
 
I apologize for any confusion because of my subject, but the editor is intended to edit only Civ4WorldBuilderSave files, and not Civ4SavedGame files. Is there any possible value in being able to edit Civ4SavedGame files?

I have a need for editing a Civ4SavedGame file.
About a year ago, I played game of Civ using two custom leaders. I added these leaders, not by adding a mod, but by adding directly to the XML files. Then at some point I had to reinstall Windows and lost Civ. (But I still have the Civ4SavedGame file.)

I would like to extract the map from that SavedGame becuase it was a great map. The problem is that the Civ4SavedGame won't load, probably because the leaders I used then don't correspond to the leaders I have now.

Does anyone know of an editor/map extractor ?? Or any ideas for a workaround ??

thx,
Miguel3d
 
I get the following error message when trying to run the program:

Could not find a part of the path 'C:\Assets\XML\Text\CIV4GameTextInfos.xml'.


Stack Trace


DirectoryNotFoundException
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode)
at Civ4MapGenerator.GameInfo.GameInfoProvider.Preload(ProgressHost progressHost)
at Civ4MapGenerator.SplashScreen.Start(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)



And i have nothing in my "using civ home of" box either... and yes, civ is installed.

Two potential problems:

1) I have vista (like those above)
2) I have the "Civ Complete" version, not separate installed versions - I don't know if this would make any difference.
 
Can't find it anywhere or maybe I'm looking passed it but are BtS savegames supported?
 
Top Bottom