Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

RE: TOAW XML Editor

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Mods and Scenarios >> RE: TOAW XML Editor Page: <<   < prev  12 13 14 15 [16]
Login
Message << Older Topic   Newer Topic >>
RE: TOAW XML Editor - 6/30/2019 4:43:53 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
quote:

ORIGINAL: Lobster
If I recall someone mention pointers at one time. When in doubt always blame the pointers.

hmmm, I don't even know what "pointers" are...must be some kind of C++ thing or sumfink.

In any event, maybe it is only a matter of how TOAW exports/imports the file, and the structure of the XML file itself remains the same or close to the same... I guess we'll find when/if .30 comes out.

(in reply to Lobster)
Post #: 451
RE: TOAW XML Editor - 6/30/2019 4:56:55 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
One other thing I forgot to mention: I will also try to add the calculated values such as unit movement and combat values, special characteristics, etc. Ralph said that he had no problem in principle with providing the relevant formula, etc. to calculate these values, so the main issue is when/if he will have time to dig up and send the relevant info.

And sorry to disappoint Larry and I'm sure others, but it will be some time before I do anything allowing the use of the map--the requisite coding would be orders of magnitude more complicated than what I'm doing now... I might look at allowing surgical tweaks to the map via XML, such as removing mud or snow, repairing/destroying rail/bridges, adding airfields, upgrading roads, etc.

(in reply to 76mm)
Post #: 452
RE: TOAW XML Editor - 6/30/2019 6:59:54 PM   
Lobster


Posts: 3083
Joined: 8/8/2013
From: Third rock from the Sun.
Status: offline
https://en.wikipedia.org/wiki/Pointer_(computer_programming)

_____________________________

http://www.operationbarbarossa.net/

"Getting back to reality...I'll only go as a tourist!"

(in reply to 76mm)
Post #: 453
RE: TOAW XML Editor - 6/30/2019 8:27:14 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
quote:

ORIGINAL: Lobster
https://en.wikipedia.org/wiki/Pointer_(computer_programming)

yeah, just what I thought, some kind of old-school computer stuff. We don't need no stinkin' pointers in C# (heh, AFAIK).

(in reply to Lobster)
Post #: 454
RE: TOAW XML Editor - 6/30/2019 8:30:05 PM   
Lobster


Posts: 3083
Joined: 8/8/2013
From: Third rock from the Sun.
Status: offline
Yes but TOAW is in C.

Too bad it's so old.


< Message edited by Lobster -- 6/30/2019 8:31:22 PM >


_____________________________

http://www.operationbarbarossa.net/

"Getting back to reality...I'll only go as a tourist!"

(in reply to 76mm)
Post #: 455
RE: TOAW XML Editor - 7/2/2019 9:21:57 AM   
Zovs


Posts: 3795
Joined: 2/23/2009
From: United States
Status: online
There is nothing wrong with the C language, it was the first one I learned prior to C++ and Java.

_____________________________


War in the East/War in the East II - Alpha Test Teams
WarPlan Beta Tester
DG CWIE2 tester/SPWW2 and SPMBT playtester/scenario creator

(in reply to Lobster)
Post #: 456
RE: TOAW XML Editor - 7/2/2019 1:58:10 PM   
Curtis Lemay


Posts: 11433
Joined: 9/17/2004
From: Houston, TX
Status: offline

quote:

ORIGINAL: Lobster

Yes but TOAW is in C.

Too bad it's so old.


C++

_____________________________

My TOAW web site:

Bob Cross's TOAW Site

(in reply to Lobster)
Post #: 457
RE: TOAW XML Editor - 7/2/2019 4:05:04 PM   
Zovs


Posts: 3795
Joined: 2/23/2009
From: United States
Status: online
Which IDE do you use Bob? I know Java, C++ and C, been doing JavaScript for the last few years. Not sure if Matrix needs or wants anymore programmers or not.

_____________________________


War in the East/War in the East II - Alpha Test Teams
WarPlan Beta Tester
DG CWIE2 tester/SPWW2 and SPMBT playtester/scenario creator

(in reply to Curtis Lemay)
Post #: 458
RE: TOAW XML Editor - 7/2/2019 7:24:57 PM   
Lobster


Posts: 3083
Joined: 8/8/2013
From: Third rock from the Sun.
Status: offline

quote:

ORIGINAL: Zovs

Which IDE do you use Bob? I know Java, C++ and C, been doing JavaScript for the last few years. Not sure if Matrix needs or wants anymore programmers or not.


You could try contacting Tamas. http://www.matrixgames.com/forums/showprofile.asp?memid=2218

_____________________________

http://www.operationbarbarossa.net/

"Getting back to reality...I'll only go as a tourist!"

(in reply to Zovs)
Post #: 459
RE: TOAW XML Editor - 7/2/2019 9:03:22 PM   
Zovs


Posts: 3795
Joined: 2/23/2009
From: United States
Status: online
Thanks, I'll give it a shot.

_____________________________


War in the East/War in the East II - Alpha Test Teams
WarPlan Beta Tester
DG CWIE2 tester/SPWW2 and SPMBT playtester/scenario creator

(in reply to Lobster)
Post #: 460
RE: TOAW XML Editor - 7/4/2019 12:29:51 AM   
biddrafter2

 

Posts: 39
Joined: 1/17/2007
Status: offline
Thrilled to see you are still working on this 76mm!! Your event viewer looks great.

I'll try to do some testing over the long weekend but a couple of potential comments:

1. Perhaps a toggle that allows the name of the top level event tree node to be either the current "Event # - Description" format, or switch to an "Event # - News" format. Sometimes news may be more descriptive than the number.

2. I had done initial work on event Groups. The idea was to layer another level of information above the events called groups. This would allow a batch of events to be grouped even if they did not have sequential event IDs. So, if a scenario designer had a set of common events for a particular purpose they could be grouped logically. Downside, since the XML does not have this field I was creating the group concept in local storage only, which raised the difficulty level. If you are interested, take a look at that old code I shared with you.

3 Longer term request - I had sketched out ideas to run Scenarios. Targeting the group concept in #2, I was going to allow a designer to simulate inputs to see how they flowed through the event tree, with the output being the call stack of events.

Keep up the excellent work!!

(in reply to Zovs)
Post #: 461
RE: TOAW XML Editor - 7/4/2019 4:04:57 AM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
quote:

ORIGINAL: biddrafter2
Thrilled to see you are still working on this 76mm!! Your event viewer looks great.

Thanks!

quote:

ORIGINAL: biddrafter2
1. Perhaps a toggle that allows the name of the top level event tree node to be either the current "Event # - Description" format, or switch to an "Event # - News" format. Sometimes news may be more descriptive than the number.

Yeah, I thought about some kind of toggle like this but wasn't quite sure what would make the most sense. Also, I was thinking that I would keep the base view as only the event numbers, but have some kind of toggle for the text shown in association with the various filters...hadn't really thought about news, but that could be useful. This would be a pretty easy change, but I wasn't sure I wanted to clutter the interface with another toggle. But maybe worth it, dunno...

quote:

ORIGINAL: biddrafter2
2. I had done initial work on event Groups. The idea was to layer another level of information above the events called groups. This would allow a batch of events to be grouped even if they did not have sequential event IDs. So, if a scenario designer had a set of common events for a particular purpose they could be grouped logically. Downside, since the XML does not have this field I was creating the group concept in local storage only, which raised the difficulty level. If you are interested, take a look at that old code I shared with you.

Actually, this ability to store data in addition to what is in the exported XML data would be great for several things that I want to do...I will try to take a look at your code but am sure I'll have some questions.

quote:

ORIGINAL: biddrafter2
3 Longer term request - I had sketched out ideas to run Scenarios. Targeting the group concept in #2, I was going to allow a designer to simulate inputs to see how they flowed through the event tree, with the output being the call stack of events.

I had a similar idea, which I called "causal chains" (although without simulating inputs) to show how events were linked together, but decided I would save this feature for later. As it is, I've put in a check so that if you delete an event used by another event, you will get a warning to that effect.

Thanks for the ideas!


< Message edited by 76mm -- 7/4/2019 4:05:13 AM >

(in reply to biddrafter2)
Post #: 462
RE: TOAW XML Editor - 7/21/2019 1:21:05 PM   
John T_MatrixForum

 

Posts: 78
Joined: 8/7/2000
From: Stockholm Sweden
Status: offline
I have one problem that I can't solve easily in the XML,
and XMLED throws a bug at me..

I try to change a already deployed unit to be a reinforcement, the user interface looks good
but at save I gets an error "Duplicate attribute"

attached gam-file




the log says:

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

************** Exception Text **************
System.InvalidOperationException: Duplicate attribute.
at System.Xml.Linq.XElement.AddAttributeSkipNotify(XAttribute a)
at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)
at System.Xml.Linq.XContainer.Add(Object content)
at TOAWXML.xmlform.<btnSave_Click>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3416.0 built by: NET472REL1LAST_B
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/JohnTuresson/AppData/Local/Apps/2.0/EW74HK41.MOR/JGDJTK5V.JEB/toaw..tion_bb51667b7c9905d2_0001.0002_5368c0835e9a41b9/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.3416.0 built by: NET472REL1LAST_B
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.3429.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
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.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
----------------------------------------





Attachment (1)

_____________________________

/John T

(in reply to 76mm)
Post #: 463
RE: TOAW XML Editor - 7/21/2019 1:36:30 PM   
John T_MatrixForum

 

Posts: 78
Joined: 8/7/2000
From: Stockholm Sweden
Status: offline
and here's the picture:

hmm..





and while I'm at it,
my filepath is too long for the textbox, could you right-justify the text och just get the file name in the top border,
"TOAWxml--TOAW IV XML File Editor - <Scenarioname>"



Attachment (1)

< Message edited by John T_MatrixForum -- 7/21/2019 1:44:10 PM >


_____________________________

/John T

(in reply to John T_MatrixForum)
Post #: 464
RE: TOAW XML Editor - 7/21/2019 2:04:41 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
John T, thanks for the info, and sorry for the bug...have not heard of that one before. I leave tomorrow morning for a week long trip, so will not be able to look at this until the first week of August, but will definitely take a look then. Can you tell me what deployment the unit was in before you set it to Reinforce?

In the meantime, I can think of two ways you might be able to get around the error:
1) Set the deployment to something other than Reinforcement, save, then try reinforcement again; OR
2) Copy the unit you are trying to set as reinforcement, delete the original unit, and then try to set the copied unit as a reinforcement.

Please let me know if either of these expedients work.

[EDIT] If these methods don't work, I might be able to look at the gam file in the next couple of days to see if I can find and fix the issue there.

< Message edited by 76mm -- 7/21/2019 2:05:54 PM >

(in reply to John T_MatrixForum)
Post #: 465
RE: TOAW XML Editor - 7/21/2019 2:45:24 PM   
John T_MatrixForum

 

Posts: 78
Joined: 8/7/2000
From: Stockholm Sweden
Status: offline
The unit I tried with are the one in the picture above.
It might be that this unit's XML are a bit weird, they have an entry tag even thou they are deployed on map.

Workaround 1 did not work, and I now understood that the Status tag has to be 1 for turn reinforcements.
It was the status tag that tricked me so now I can edit the XML directly - not much extra work for me
So have your next week free !

cheers
/John

(in reply to 76mm)
Post #: 466
RE: TOAW XML Editor - 7/21/2019 3:36:45 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
quote:

ORIGINAL: John T_MatrixForum
It might be that this unit's XML are a bit weird, they have an entry tag even thou they are deployed on map.

Thanks for the update; the issue that you note above could definitely cause the error that you encountered, although I will take a look at adding some checks to prevent similar issues in future.

(in reply to John T_MatrixForum)
Post #: 467
RE: TOAW XML Editor - 7/22/2019 12:31:27 AM   
sPzAbt653


Posts: 8786
Joined: 5/3/2007
From: east coast, usa
Status: offline
quote:

they have an entry tag even thou they are deployed on map.

No idea if it makes any difference, but I thought I should mention the newer feature that we can change those coordinates and the unit will relocate on the map. This means that we don't have to physically move a unit from one location to another. The practical usefulness is questionable, but it is nonetheless a feature

(in reply to 76mm)
Post #: 468
RE: TOAW XML Editor - 7/22/2019 1:01:08 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
quote:

ORIGINAL: sPzAbt653
...I thought I should mention the newer feature that we can change those coordinates and the unit will relocate on the map.

Actually this has been a feature since the beginning...didn't realize that people didn't notice it.

It's obviously not intended for deploying a whole force, but it might be handy if someone wants to reposition a handful of units rather than the left click/right click rigamarole.

(in reply to sPzAbt653)
Post #: 469
RE: TOAW XML Editor - 8/8/2019 6:16:33 PM   
larryfulkerson

 

Posts: 38217
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
Hey Tom:
I tried to load the 19th Century database into your magnificant tool and it threw an exception. I chose to "ignore" and it went into an endless loop so I caused the same exception again and this time chose "quit" and it ended "normally".

I'm attaching the file I attempted to load here below so you can play with it, should you desire to do so.
It's name is American Civil War 1861-1865 vB09.zip

EDIT: Part of the problem may be that I was trying to load an EQP file as if it were a GAM file.
EDIT2: I used the TOAW 4 editor to produce the proper GAM file it loaded without any problems. Sorry
for the false alarm.



Attachment (1)

< Message edited by larryfulkerson -- 8/9/2019 8:51:51 PM >


_____________________________

Star Trek: TNG Bridge Background Ambience (no conversations)
https://www.youtube.com/watch?v=dLrfdcz8Ou4

(in reply to 76mm)
Post #: 470
RE: TOAW XML Editor - 8/9/2019 8:50:06 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
Hi larry, thanks, I will check this out. I know that I've loaded the 19th Century DB in the past without any problem, but I'll try to check the one you sent over the weekend.

(in reply to larryfulkerson)
Post #: 471
RE: TOAW XML Editor - 8/19/2019 5:25:37 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
quote:

ORIGINAL: larryfulkerson
EDIT: Part of the problem may be that I was trying to load an EQP file as if it were a GAM file.
EDIT2: I used the TOAW 4 editor to produce the proper GAM file it loaded without any problems. Sorry for the false alarm.

Hey Larry, thanks for the update. One more question: how did you load the eqp file as a gam file? That shouldn't be possible unless you had misnamed the eqp file as a gam file?

(in reply to larryfulkerson)
Post #: 472
RE: TOAW XML Editor - 8/19/2019 5:27:31 PM   
larryfulkerson

 

Posts: 38217
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
quote:

unless you had misnamed the eqp file as a gam file?

That's what I did alright. I learned my lesson.

_____________________________

Star Trek: TNG Bridge Background Ambience (no conversations)
https://www.youtube.com/watch?v=dLrfdcz8Ou4

(in reply to 76mm)
Post #: 473
RE: TOAW XML Editor - 8/19/2019 5:52:42 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
Great, thanks, just wanted to make sure I hadn't missed something in the file-selection interface...

(in reply to larryfulkerson)
Post #: 474
RE: TOAW XML Editor - 8/19/2019 7:28:15 PM   
76mm


Posts: 3742
Joined: 5/2/2004
From: Washington, DC
Status: offline
I'm going to spend more time on this for the next couple of weeks after having been distracted by some other stuff for awhile. I've already tweaked the form for adding new equipment so that it doesn't show a bunch of "EMPTY" slots. Anybody have any burning requests?

If not, I think I'll try to add propagating icon colors among units and dates corresponding to Turns for events/reinforcements, and then various clean-up stuff.

(in reply to 76mm)
Post #: 475
Page:   <<   < prev  12 13 14 15 [16]
All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Mods and Scenarios >> RE: TOAW XML Editor Page: <<   < prev  12 13 14 15 [16]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.138