View Full Version : New Unit Editor


Lime42
Apr 30, 2006, 05:49 PM
Check out this unit xml editor i whuped up. It is pretty simple and easy to use. It is made in .net 05 so you will need ms framework 2.0 if you don't have it.

-Sean

PS made it using the latest patch, not sure how it runs on anything older then 1.6

*** I posted a new version which should fix those crashes. They were from comments in the xml files. Also I made loading mods a bit faster instead of having to type out the name.

J_Period
Apr 30, 2006, 11:10 PM
:( not working for me
get this error:

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

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Civ4Editor.frm_Main.Refresh_Units()
at Civ4Editor.frm_Main.Load_Mod()
at Civ4Editor.frm_Main.buttLoadMod_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.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
----------------------------------------
Civ4Editor
Assembly Version: 1.0.0.0
Win32 Version: 0.2.0.0
CodeBase: file:///C:/Documents%20and%20Settings/j/Desktop/Civ4Editor.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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.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.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.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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
----------------------------------------

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


Can't even make a new mod, get that error, also when I try and load mine

stgelven
May 01, 2006, 02:13 PM
well, i just dl and try your tool :eek:
the load mod button, doesn't match.
when i type a mod name, it ask me to create a folder because he doesn't find it and i 've 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.NullReferenceException: Object reference not set to an instance of an object.
at Civ4Editor.frm_Main.Refresh_Units()
at Civ4Editor.frm_Main.Load_Mod()
at Civ4Editor.frm_Main.buttLoadMod_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.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
----------------------------------------
Civ4Editor
Assembly Version: 1.0.0.0
Win32 Version: 0.2.0.0
CodeBase: file:///D:/tempo/temp%20civ4/Civ4Editor.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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.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.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
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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.

GarretSidzaka
May 06, 2006, 07:58 AM
Please get this program working! It is gorgeous and I want it!!!

here what i got when loading my mod:
************** Exception Text **************
System.Xml.XmlException: Invalid character in the given encoding. Line 14025, position 41.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(I nt32& bytesCount, Int32& charsCount)
at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
at System.Xml.XmlTextReaderImpl.ReadData()
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.ParseText()
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(String filename)
at Civ4Editor.frm_Main.Load_Mod()
at Civ4Editor.frm_Main.buttLoadMod_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.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
----------------------------------------
Civ4Editor
Assembly Version: 1.0.0.0
Win32 Version: 0.3.0.0
CodeBase: file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/Rar$EX00.641/Civ4Editor.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
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.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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
----------------------------------------

keldath
May 06, 2006, 09:28 AM
hi

the editor looks very good -but when i choose a unit to edit - it gives an error

J_Period
May 16, 2006, 11:51 AM
very nice so far-
a couple of suggestions/bugs, though:

*If you change the unitclass of a unit and save changes, you have to reload the mod before editing the unit
*It would be nice to have the option to delete a unit
*Currently you can only have one model/unit, it would be great to have more than one (like in the settler)
*(edit) Also, when you change a unitclass, it leaves the old unitclass in the xml file. For example, I made a unit based on the archer called "Wood Elf Archer" and its default class was WOOD_ELF_ARCHER. Then, I changed its class to "ARCHER" so that it was a UU, and saved. When I checked the Class xml file, the WOOD_ELF_ARCHER class was still there.

Great job! I'm looking forward to future releases!

Belizan
May 16, 2006, 03:16 PM
Hrmm, I was half-heartedly working on a very similar tool, maye I should stop... :/

GarretSidzaka
May 16, 2006, 03:35 PM
this editor needs more work, but it would be great to see it finished soon. i plan on rewriting my revolution scenario from ground up after warlords, and this would save me hours of time.

Please dont give up on this one!

McGlocklinMA
Jun 25, 2006, 01:35 PM
loads fine but when i need to edit a mod i get errors whats the deal?

TheBladeRoden
Jul 04, 2006, 06:16 PM
Jill: ****, it's broken!

WRL
Aug 12, 2006, 01:47 PM
wow, great idea, well implemented. The only thing I'd request so far is that where the irequired for the artdefine tag displaying the units, some of us like to put officers in front of our units, which requires an extra irequired and artdefines area. So if you update this anymore, would you please consider adding at least one more area to add the extra irequired and artdefines unit.

WRL
Aug 12, 2006, 01:54 PM
Also, besides the extra space to add more than one type of unit to a formation, will you please add an fscale editor as well. This changes unit height, it's located in artdefines I believe.

fredperon
Aug 14, 2006, 05:57 AM
mine doesn't work at all - it just says "the application failed to initialise properly (0zx0000135)". I have the latest patch, so what's going on?

football751
Sep 03, 2006, 04:01 PM
mine doesn't work at all - it just says "the application failed to initialise properly (0zx0000135)". I have the latest patch, so what's going on?
Do you have .Net Framework 2.0 installed?

Depx
Sep 22, 2006, 06:49 PM
This has been working well for the mod Im working on. There seems to be one bug I havent been able to figure out with it though. It seems to sometimes (cant figure out what triggers it) add the primary resource needed to the secondary resource needed list. This causes the game to crash before it loads without giving any info (info you can understand :crazyeye:) as to why it crashed, took me a long time to figure out what was causing it.

Also something that would be nice is under the requirements tab, to make the building requirement a checkbox format instead of drop down list so you can add more than one.

Gwydion62
Mar 18, 2007, 03:14 AM
Nice tool :)

I can not use it for Warlords, filling in the warlords folder showes nothing...

And it is not remembering the folder I write in because my game is in an other folder - can u fix that?

For editing MODs it wrote some problems - not possible to use it for Mods?

thanx

woodelf
Mar 18, 2007, 06:28 AM
The creator has made 1 post ever almost a year ago. I don't think this has plans to work with Warlords or to be updated at all.

TheBladeRoden
Mar 18, 2007, 01:03 PM
I lol at my past self's Resident Evil reference

TheLopez
Mar 22, 2007, 10:18 PM
Nice tool :)

I can not use it for Warlords, filling in the warlords folder showes nothing...

And it is not remembering the folder I write in because my game is in an other folder - can u fix that?

For editing MODs it wrote some problems - not possible to use it for Mods?

thanx

The creator has made 1 post ever almost a year ago. I don't think this has plans to work with Warlords or to be updated at all.

Not to worry I will release a Warlords compatible version of the Civilizeditor, here is the link to the thread: http://forums.civfanatics.com/showthread.php?t=193830

woodelf
Mar 23, 2007, 05:16 AM
You're the best TL. :pat:

macantas
May 27, 2007, 12:21 PM
I just downloaded this and tried to make it work with Warlords. At first I got some error messages about the program not being able to find the correct text files, but I figured out that was because the xml files in Warlords have filenames with "Warlords" in it. I just copied over the original CivIV files, and the program loaded no problem.
By adding "Warlords\" to the existing directory name in the box on the top left, I was able to look through, find and edit all my Warlords mods. Haven't tried playing any of the changes yet, but so far it looks good. Much easier than editing the XML by hand, though no editor should really take away having to look through thousands of lines of code. That patience is what makes modders modders! :)

TheLopez - How is the Civilizeditor for Warlords coming?

rebakan
Jun 20, 2007, 03:43 AM
@TheLopez - When the Civilizeditor for Warlords will be ready to download? Are you still working on it?
Maybe in fifteen days, or a month, how long, could you please give us a hint when it will be released?
Sorry to ask so much, but I'm anxious to use it.Thanks very much.

Zuul
Jul 28, 2007, 04:36 PM
Still his last post. Miss that guy TheLopez!