RE: TOAW XML Editor (Full Version)

All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Mods and Scenarios



Message


Lobster -> RE: TOAW XML Editor (5/3/2019 3:38:30 AM)

Any idea when the latest and greatest will be made available?




76mm -> RE: TOAW XML Editor (5/3/2019 11:35:38 AM)

quote:

ORIGINAL: Lobster
Any idea when the latest and greatest will be made available?

Will try to post it tomorrow, or Sunday at the latest.




larryfulkerson -> RE: TOAW XML Editor (5/3/2019 11:36:51 AM)


quote:

ORIGINAL: 76mm

quote:

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.




Lobster -> RE: TOAW XML Editor (5/3/2019 1:44:15 PM)


quote:

ORIGINAL: 76mm

quote:

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 [;)]




76mm -> RE: TOAW XML Editor (5/3/2019 2:59:48 PM)

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.




Zovs -> RE: TOAW XML Editor (5/3/2019 3:05:52 PM)

On it Tom!

Many thanks!




larryfulkerson -> RE: TOAW XML Editor (5/3/2019 4:04:27 PM)

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.




larryfulkerson -> RE: TOAW XML Editor (5/3/2019 4:05:41 PM)

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

Here's the GAM file I was trying to load into the TOAWXML editor




Zovs -> RE: TOAW XML Editor (5/3/2019 4:22:00 PM)

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.




Zovs -> RE: TOAW XML Editor (5/3/2019 4:27:46 PM)

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.




Zovs -> RE: TOAW XML Editor (5/3/2019 4:29:49 PM)

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?




Lobster -> RE: TOAW XML Editor (5/3/2019 4:34:06 PM)

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]local://upfiles/45799/3C6C872A51F1430F9D75FE3B86ED2530.jpg[/image]




76mm -> RE: TOAW XML Editor (5/3/2019 4:42:09 PM)

quote:

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.




76mm -> RE: TOAW XML Editor (5/3/2019 4:48:59 PM)

quote:

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.




76mm -> RE: TOAW XML Editor (5/3/2019 4:52:14 PM)

quote:

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.




76mm -> RE: TOAW XML Editor (5/3/2019 4:59:01 PM)

quote:

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?




Zovs -> RE: TOAW XML Editor (5/3/2019 6:21:49 PM)

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.




76mm -> RE: TOAW XML Editor (5/3/2019 7:13:54 PM)

quote:

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?




Zovs -> RE: TOAW XML Editor (5/3/2019 7:27:18 PM)

I am thinking an '@' symbol would be fine. I would speculate that most designers would not use that key for their formations.




Zovs -> RE: TOAW XML Editor (5/3/2019 7:28:15 PM)

I think that the most obvious and possibly the best to use would be '@' or '$' no systems should have those funky chars in them.




Zovs -> RE: TOAW XML Editor (5/3/2019 9:24:00 PM)

Tom,

I have had 3 crashes. It happens when you create a new unit in the game and assign it to a formation (after you have already built stuff) and then you use your tool and load it up and set starting position (x,y) and then save. Then you change it from mobile to turn reinforcement it gives you the default '---' for turn. If you don't input a turn and then save it and then reload it and try to enter a turn it crashes. But the work around is to open the XML and set this value to something for your scenario:
ENTRY="19"
once you do that and then reload the XML into your tool you can now change that field.

Hope that makes sense.




sPzAbt653 -> RE: TOAW XML Editor (5/3/2019 9:33:09 PM)

Thanks very much for the latest version!

I know you are aware but I will mention it once more and will not again so as not to become the nag, can the color coding maybe be turned off by option? I can barely see the red, green, blue and gray.

What is that DIVIDED SUBUNIT message?

How do I delete an equipment item from a unit?

How do I copy equipment from one unit and paste it into another? [The function of the original 'G' and 'A' keys].

[image]local://upfiles/24850/9C4D5D2F746F47549F7D8FEBB877B0A6.jpg[/image]




sPzAbt653 -> RE: TOAW XML Editor (5/3/2019 9:46:18 PM)

I can't think of seeing a scenario that uses @ for anything, so '@' as a replacement for the gibberish seems ok. But how do I search for stuff with this program? I hit Ctrl F and it brought up some scary looking propagation dialog.




Zovs -> RE: TOAW XML Editor (5/3/2019 10:09:58 PM)

Steve,

To delete equipment just select and expand a unit, then you’ll see all the equipment it has. You can right click and select delete or add and a dialog will pop up and you’ll have to load your eqp on first load. Then you can filter and select the system you want, add the max # in lower right and then double click the newly selected system to set the assigned #. Last click the add equipment button.

I love the red and green it looks great in normal windows (white back ground) but your screen shot shows your using a non-standard theme for windows.

That said it may be a feature to add theming?

Suggest the dialing app can be double clicked to make bigger and increase the view point.




Zovs -> RE: TOAW XML Editor (5/3/2019 10:11:41 PM)

The Divide Subunit should allow you to split a unit down (2 or 3) like on the game. I have not tried that feature yet.




Zovs -> RE: TOAW XML Editor (5/3/2019 10:30:03 PM)

A basic walk-through with images:

Select and expand:
[img]https://i.imgur.com/lTt5EVD.png[/img]

Right click and add new:
[img]https://i.imgur.com/ZtYTUqw.png[/img]

The new add dialog (note you'll have to double click the item you want to add):
[img]https://i.imgur.com/RpM5mQU.png[/img]

To delete just right click and delete:
[img]https://i.imgur.com/QTXNQbf.png[/img]




sPzAbt653 -> RE: TOAW XML Editor (5/3/2019 10:34:20 PM)

Thanks Don. As you can see in the screenshot I posted above, the Add Equipment is not available [nor is the Delete Equipment]. I can, however, hit Ctrl + Delete and it will delete stuff.




Zovs -> RE: TOAW XML Editor (5/3/2019 10:56:06 PM)

No problem Steve, Tom will have to help in your other issue.




76mm -> RE: TOAW XML Editor (5/3/2019 11:09:11 PM)

quote:

ORIGINAL: sPzAbt653
I know you are aware but I will mention it once more and will not again so as not to become the nag, can the color coding maybe be turned off by option? I can barely see the red, green, blue and gray.

hmmm, I already made them bold for you. If that didn't help, I will think about creating an option for turning off color-coding, but no promises...

quote:

ORIGINAL: sPzAbt653
What is that DIVIDED SUBUNIT message?

Should indicate the "child" of a divided unit. If that unit is not such a child, it means I missed something in the code.

quote:

ORIGINAL: sPzAbt653
How do I delete an equipment item from a unit?

Select the equipment item in the TreeView, right-click and select Delete...

quote:

ORIGINAL: sPzAbt653
How do I copy equipment from one unit and paste it into another? [The function of the original 'G' and 'A' keys].

Select the equipment in the TreeView, right-click, select Copy, then drag the resulting copy (just below the copied equipment) to the unit where you want it.




76mm -> RE: TOAW XML Editor (5/3/2019 11:11:09 PM)

quote:

ORIGINAL: sPzAbt653
But how do I search for stuff with this program? I hit Ctrl F and it brought up some scary looking propagation dialog.

Now you need to do your searching in Notepad++ or similar. I recognize the utility of a search function, but have no idea how hard it would be to implement...it is on the list!




Page: <<   < prev  9 10 [11] 12 13   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.109375