TOAWxml Editor

Post new mods and scenarios here
User avatar
Lobster
Posts: 5542
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: TOAW XML Editor

Post by Lobster »

Any idea when the latest and greatest will be made available?
ne nothi tere te deorsum (don't let the bastards grind you down)

If duct tape doesn't fix it then you are not using enough duct tape.

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Lobster
Any idea when the latest and greatest will be made available?
Will try to post it tomorrow, or Sunday at the latest.
User avatar
larryfulkerson
Posts: 42791
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: TOAW XML Editor

Post by larryfulkerson »

ORIGINAL: 76mm
ORIGINAL: Lobster
Any idea when the latest and greatest will be made available?
Will try to post it tomorrow, or Sunday at the latest.
I really appreciate your efforts and I'll bet I'm not the only one.
Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
User avatar
Lobster
Posts: 5542
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: TOAW XML Editor

Post by Lobster »

ORIGINAL: 76mm
ORIGINAL: Lobster
Any idea when the latest and greatest will be made available?
Will try to post it tomorrow, or Sunday at the latest.

kewl [;)]
ne nothi tere te deorsum (don't let the bastards grind you down)

If duct tape doesn't fix it then you are not using enough duct tape.

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

Actually I just uploaded the latest version, which allows adding new equipment. To add new equipment, select a unit in the treeview, right click, and select "Add New Equipment". THat will open up a new form.

Please take a look and let me know if you have any problems or if you have recommendations for the GUI...I struggled a bit trying to get the filters to work properly.

Please don't think I'm ignoring your GUI suggestions if you don't see them incorporated immediately--I am keeping notes and plan to revisit these GUI issues sooner or later.

I'm going to try to work on the event editor next, but if I get bogged down will probably switch to GUI issues before turning back to the event editor.
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

On it Tom!

Many thanks!
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
larryfulkerson
Posts: 42791
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: TOAW XML Editor

Post by larryfulkerson »

EDIT: Never mind.....I figured out what I was doing wrong. Ignore this post.


Hey Tom: I just now downloaded the 1.14 version and tried to load my B41mod and it gave me 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.Xml.XmlException: There are multiple root elements. Line 27342, position 3.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri)
at TOAWXML.xmlform.xmlform_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
TOAWXML
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Owner/AppData/Local/Apps/2.0/O4RNMA46.AYE/X0CRP5QW.9JY/toaw..tion_bb51667b7c9905d2_0001.0000_03e472ab5b7c5c1d/TOAWXML.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.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.


I'll post the GAM file I was trying to load in the next post below.
Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
User avatar
larryfulkerson
Posts: 42791
Joined: Sat Apr 16, 2005 9:06 pm
Location: Tucson, AZ,usa,sol, milkyway
Contact:

RE: TOAW XML Editor

Post by larryfulkerson »

EDIT: This file is corrupt and is good for nothing.

Here's the GAM file I was trying to load into the TOAWXML editor
Attachments
B41_lgf_5.7.zip
(174.67 KiB) Downloaded 5 times
Russia’s 41st Army COLLAPSED in Pokrovsk — 25,000 Soldiers KILLED After a RIDICULOUS Russian Assault
https://www.youtube.com/watch?v=T_CtW3GqPQg
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

I have downloaded 1.14 and it seems to work pretty good.

I love the new fonts makes it easier to see. I did get an error while trying to add "New" equipment though. I selected one of my German Infantry Divisions, and clicked add. It prompted me for the eqp file which I selected and loaded (looks awesome, and love the filtering), then I tried to add a piece of equipment and got this:


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 TOAWXML.frmEquip.btnEquipAdd_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(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.Button.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: 4.0.0.0
Win32 Version: 4.7.3394.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
TOAWXML
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/dlazo/AppData/Local/Apps/2.0/0J3ZBGVD.XO7/3L9XK7NQ.Q3W/toaw..tion_bb51667b7c9905d2_0001.0000_e3874bfbc766dcfc/TOAWXML.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
TOAWXML.resources
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/dlazo/AppData/Local/Apps/2.0/0J3ZBGVD.XO7/3L9XK7NQ.Q3W/toaw..tion_bb51667b7c9905d2_0001.0000_e3874bfbc766dcfc/en/TOAWXML.resources.DLL
----------------------------------------
TOAWXML.resources
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/dlazo/AppData/Local/Apps/2.0/0J3ZBGVD.XO7/3L9XK7NQ.Q3W/toaw..tion_bb51667b7c9905d2_0001.0000_e3874bfbc766dcfc/en-US/TOAWXML.resources.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.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.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Suggestion.

When you replace invalid characters could you use something other than 'z'? It's hard to search for that in a text editor.

Maybe something like ZZZZ or XYZ that would be searchable in a text editor and could be globally searched and replaced.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Interesting per my crash above.

I reloaded and this time I 're-imported' my epq file and I could then add the equipment to an existing unit.

So maybe it missed the initial check on first load?
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
Lobster
Posts: 5542
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: TOAW XML Editor

Post by Lobster »

I realize there's a lot of information in the Unit Report window and there's not much room left to display anything in your TOAWXML window. Do you think there's any way some of the unit information can be displayed? I'm sure different people would like different pieces of info and the best way would be to put all of it that's under Unit Report, Strengths and Special Abilities. But I don't see how that would be possible given the limited window size you have left.



Image
Attachments
ScreenHunt..0311.26.jpg
ScreenHunt..0311.26.jpg (166.13 KiB) Viewed 433 times
ne nothi tere te deorsum (don't let the bastards grind you down)

If duct tape doesn't fix it then you are not using enough duct tape.

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Lobster
I realize there's a lot of information in the Unit Report window and there's not much room left to display anything in your TOAWXML window. Do you think there's any way some of the unit information can be displayed? I'm sure different people would like different pieces of info and the best way would be to put all of it that's under Unit Report, Strengths and Special Abilities. But I don't see how that would be possible given the limited window size you have left.
The bigger issue is that at this point, I have no way of calculating most of the values/strengths in the unit report, because they are calculated by the game engine and are not in XML. Because I don't know the formula, and it is not feasible to reverse engineer everything with any degree of accuracy, I can't add this data without more info.

The good news is that I've actually contacted Ralph about this, and it sounds like he's willing to provide this info when/if he gets a chance, so hopefully this can be addressed at some point.

The whole GUI might need to be rejiggered at that point to accommodate all of this additional info, so I might hold off on any other major significant GUI changes until then. I haven't really thought about what rejiggering might look like, so pls let me know if you have any suggestions.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: larryfulkerson
EDIT: This file is corrupt and is good for nothing.

Here's the GAM file I was trying to load into the TOAWXML editor
Hey Larry, I took a look, as far as I can tell that is an OOB file rather than a real "gam" file--that will probably wreak havoc with the code... Did you rename that file to a gam from something else?

In future, I hope to add the ability to export/import just OOB and Event files, but that is a bit down the road.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs

Interesting per my crash above.

I reloaded and this time I 're-imported' my epq file and I could then add the equipment to an existing unit.

So maybe it missed the initial check on first load?
Yeah, I suspect you're right, although that is not supposed to happen--could you send me the original version of eqp file that you were using when it crashed? I will try to trouble-shoot.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs

Suggestion.

When you replace invalid characters could you use something other than 'z'? It's hard to search for that in a text editor.

Maybe something like ZZZZ or XYZ that would be searchable in a text editor and could be globally searched and replaced.

I thought about this (OK, but not all that much), and decided to use "Z" because:

1) I figured that many (most?) people would not bother to replace whatever I used, so I didn't want whatever I used to be too "obnoxious" (such as "XYZ"...), something that people could live with if they didn't replace it (I also thought about "Q", etc.); and
2) I figured that there would actually be very few "Z"s (or even "z"s) in an average OOB, so that it would not be difficult to search for, especially since most search tools allow you to search by case as well as letter (ie, "Z" vs "z").

That said, I'm not necessarily wedded to the Zs and could reasonably easily change it to something else--any feedback from anyone else on this point?
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

As far as searchable characters the only ones that come to mind are '~', '@', '$', '^', ';' or ':'. I don't know for sure.

I try to send the eqp file I have not sure if I corrected it since or not.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs
As far as searchable characters the only ones that come to mind are '~', '@', '$', '^', ';' or ':'. I don't know for sure.
oh, duh, now I see the problem with searching for "Z"--even if there are few Zs in the OOB, there are tons of Zs in the XML code. So I guess either "ZZ" or "@"--do you think the @ would cause any issues?
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

I am thinking an '@' symbol would be fine. I would speculate that most designers would not use that key for their formations.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

I think that the most obvious and possibly the best to use would be '@' or '$' no systems should have those funky chars in them.
Image
Beta Tester for: War in the East 1 & 2, WarPlan & WarPlan Pacific, Valor & Victory, Flashpoint Campaigns: Sudden Storm, Computer War In Europe 2
SPWW2 & SPMBT scenario creator
Tester for WDS games
Post Reply

Return to “Mods and Scenarios”