RE: TOAW XML Editor (Full Version)

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



Message


Zovs -> RE: TOAW XML Editor (4/23/2019 12:11:26 PM)


quote:

ORIGINAL: cathar1244

Important caveat: Anti-personnel (AP) ratings shown below are as entered in the equipment file with an editor that is EXTERNAL to the game. Entering AP values with the game's built-in equipment editor scales the ratings differently and for me, was confusing.

[:-] Anyone using the game's built-in equipment editor to alter the AP values is on their own. [:-]


Anyone using the game's built-in equipment editor to alter the AP values is on their own.


Newbie question here, would not using the game's built-in equipment editor be the defacto way to go? Or is there something wrong with it?

No idea just asking.




76mm -> RE: TOAW XML Editor (4/23/2019 12:13:11 PM)

Whoa, cathar, thanks for the investigations. Could you say which external equipment editor was used? I find it very strange that the results differ depending on which equipment editor you use...what general differences occurred when you used the in-game equipment editor?




cathar1244 -> RE: TOAW XML Editor (4/23/2019 12:20:02 PM)

quote:

Or is there something wrong with it?


I would not say there is anything wrong with it, but working with it as far as making antipersonnel rating changes is confusing IMO because of the way it takes input and displays output. If you look at it and make entries, you'll see what I mean.

For other activity like setting equipment flags, the in-game editor is straightforward to use.

Any changes in it need to be first saved in memory, and the scenario also has to be saved to put the altered version onto a hard disk.

For wide-ranging work in an equipment database, I would use an external editor as a matter of preference.

Cheers




cathar1244 -> RE: TOAW XML Editor (4/23/2019 12:25:38 PM)


quote:

ORIGINAL: 76mm

Whoa, cathar, thanks for the investigations. Could you say which external equipment editor was used? I find it very strange that the results differ depending on which equipment editor you use...what general differences occurred when you used the in-game equipment editor?


Hi 76mm,

"external editor" was just Notepad, editing an equipment file.

The differences result because the AP rating entered into the equipment file is changed by the game for internal calculations.

The AP ratings of equipment that are not fixed wing aircraft are divided by 8. Aircraft AP ratings are divided by 2. The way the in-game editor takes input can lead to confusion, and then it reads back the change, but showing the internally calculated rating (divided by 8 or 2).

There was also something that looked like a bug to me, but I would have to play with it more to see if that is the case.

It is certainly possible to use the in-game editor to change the AP rating, but one has to be aware of what it is looking for in terms of input and what it is presenting in terms of output.

Cheers




Zovs -> RE: TOAW XML Editor (4/23/2019 1:50:24 PM)

cathar,

Thanks for the explanation.

Several long years ago when I designed my scenarios I just used the default equipment that came with the game, I vaguely recall the bio editor or some such.

For a quick refresher for me, when designing scenarios when/why would you want to deviate from the default?

Just curious to know and understand. I have several of my old scenarios that I have converted to TOAW IV, but I think I need to tweak them before I release them. In one the causalities are horrendous and so I need to research the manual on how to lower that (I believe its with the attrition editor settings).

Thanks for listening and answering newbie-dumb questions lol




cathar1244 -> RE: TOAW XML Editor (4/23/2019 2:22:02 PM)

Zovs, if you used Bio-Ed back in the day, you're hardly a newbie!

For your scens, the default equipment is fine unless you need to model something that is not in the database.

There are different versions of the equipment database floating around that enthusiasts have cranked out.

For what I was discussing above, I needed to alter equipment antipersonnel values to see what the game generated as anti-shipping capability in response.

If you at some point want to make a new piece of equipment, you can always ask in these forums.

Re: casualties. In the editor, go to the deployment editor. Then look under the "edit" menu -- you'll be able to access the "attrition divider" to alter the loss rates. A bunch of other options can be found there as well.

Cheers




Zovs -> RE: TOAW XML Editor (4/23/2019 2:51:08 PM)

Thanks for the kind words and the tips cathar.




cathar1244 -> RE: TOAW XML Editor (4/23/2019 6:17:50 PM)

sPzAbt653,

Nice flags graphic. I have taken the liberty of updating it to reflect the meanings as given by the in-game editor. Note some items have updated meanings.

Cheers

[image]https://i.postimg.cc/mDdfqTPH/Equipment-Flags.png[/image]




larryfulkerson -> RE: TOAW XML Editor (4/23/2019 11:38:09 PM)

Hello again my friends. I've come across an example of what I was refering to before. Here I am deploying my units and I've come to one that I want to appear in the game on turn 5 but I'm not real sure where it would be best to put it yet. I need some way to refer to the map somehow. Right now the workaround is to have a Session of the scenario you're working on loaded as a head to head game to find the right hexes. Which works out just fine. I just thought there might be a way somehow that some kind of mini-map kind of thing might make your editing of things go faster yet.

[image]local://upfiles/16287/2B3E2A5E115F4D1083A1EE1EBFED1F4B.jpg[/image]




sPzAbt653 -> RE: TOAW XML Editor (4/24/2019 12:03:15 AM)

quote:

There was also something that looked like a bug to me, but I would have to play with it more to see if that is the case.

I've been using the Eqp Editor since it was implemented and I've never noticed anything wrong, but let us know if you do see something so that we can look into it.




sPzAbt653 -> RE: TOAW XML Editor (4/24/2019 12:05:46 AM)

I'm having trouble seeing the red, green and blue entries. Can you maybe try making them bold so they might show up better, and hopefully not be overbearing at the same time.




76mm -> RE: TOAW XML Editor (4/24/2019 12:41:18 AM)

quote:

ORIGINAL: sPzAbt653
I'm having trouble seeing the red, green and blue entries. Can you maybe try making them bold so they might show up better, and hopefully not be overbearing at the same time.

I tried bold, and found it rather garish. I think there is a semi-bold option, I can take a look at that.




sPzAbt653 -> RE: TOAW XML Editor (4/24/2019 2:51:02 AM)

Thanks Tom. Full Disclosure, I can't take the standard black on white windows color scheme so I use a custom one, as seen below. So I admit to being selfish when asking for different visual settings, and understand that you have more important items to tend to [:)]

[image]local://upfiles/24850/40ED52AF4BD74BC889F8EC8B3F04ED6F.jpg[/image]




76mm -> RE: TOAW XML Editor (4/24/2019 3:04:09 AM)

quote:

ORIGINAL: sPzAbt653
So I admit to being selfish when asking for different visual settings, and understand that you have more important items to tend to

No worries; don't think this will be complicated, but I can't promise I'll change if I don't like the new look! [8D]




cathar1244 -> RE: TOAW XML Editor (4/24/2019 5:58:28 AM)

A bit more on TOAW internal functioning, concerning the antipersonnel rating. I mentioned these two formulae before when discussing auto-generation of the anti-shipping capability:

quote:

(for fixed wing aircraft) the anti-ship capability is figured as the square root of (two times the AP rating), rounded down.


and,

quote:

Anti-ship capability for artillery, as auto-generated by TOAW.

Once again, with the antipersonnel rating (AP) as entered by an external editor into the equipment file:

Anti-ship capability is the square root of (AP divided by 2), rounded down.


What may not be obvious is that although one formula multiplies by two and the other divides by two, they are both using the same method to generate the anti-shipping capability.

Consider: when entering antipersonnel ratings in the equipment file using an external editor, for equipment that is not fixed wing aircraft, we enter an AP rating that is eight times what the game will display as the AP value. That is, if I want the game to show an AP value of 16 for a 105mm howitzer, I enter a value of 128 in the AP field of the equipment definition:

<ITEM_149>
<NAME>105mm Howitzer</NAME>
<COUNTRY>Common equipment</COUNTRY>
<EQUIP1>25</EQUIP1>
<EQUIP2>165</EQUIP2>
<AT>0</AT>
<AP>128</AP> . . .

But for fixed wing aircraft, the AP rating entered is only doubled from what the game will display as the AP value:

<ITEM_1865>
<NAME>P-40 (late)</NAME>
<COUNTRY>United States - 1941</COUNTRY>
<EQUIP1>256</EQUIP1>
<EQUIP2>187</EQUIP2>
<AT>2</AT>
<AP>6</AP> . . .

(P-40 (late) displays an AP value of 3 in-game, one-half of what is entered into the equipment file).

Back to the two formulae above: the calculation is taking the square root of a quantity and rounding the result down. But the quantity, in terms of units used, is the same for both formulae. This is happening because in the case of artillery (equipment file entry 8 times that used by the game) is DIVIDED BY TWO; that is, the AP value is then four times that used by the game. With fixed wing aircraft (equipment file entry 2 times that used by the game), the AP value is MULTIPLIED BY TWO; that is ... you guessed it ... four times that used by the game. So that "four times the value displayed by the game" for the AP rating is a sort of common ground for the AP ratings of fixed wing aircraft in relationship to the AP ratings of other equipment in the game (for internal calculations done by TOAW).

Lessons therein regarding how much projectile weight goes into a an AP rating of "1" for different equipment, and how air-delivered ordnance is scaled in relationship to that delivered by surface weapons.

Cheers





cathar1244 -> RE: TOAW XML Editor (4/24/2019 6:28:23 AM)

sPzAbt653, will do. I want to retrace my steps and take some notes. Before I declare something seems buggy, I'll open a thread in this forum with what I'm seeing and ask if anyone else sees what I'm seeing. That way, if it is just misinterpretation on my part, you guys can set me straight.

Cheers

quote:

I've been using the Eqp Editor since it was implemented and I've never noticed anything wrong, but let us know if you do see something so that we can look into it.




76mm -> RE: TOAW XML Editor (4/26/2019 9:32:13 PM)

cathar, I saw your other thread but wasn't sure that I understood the outcome...so is Bob saying that the changing AP values are a bug, and that in the next patch they will remain unchanged regardless of equipment type?




cathar1244 -> RE: TOAW XML Editor (4/27/2019 5:01:16 AM)

76mm,

I think what is happening is this.

In the equipment file, AP ratings are given for each piece of equipment. But, internally, the game uses a scaled version of those ratings. For fixed wing aircraft, the internal version is halved; for other equipment, it is divided by 8.

So what I was seeing is that, upon loading the equipment file, the in-game editor displayed the internal value of the AP rating of the Jastreb (internal value is 6, equipment file value is 12, IIRC). But, upon selecting the option to edit that value, the in-game editor's display of the internal value treated the entry as if it was equipment that is NOT a fixed wing aircraft, and was showing the entered value divided by EIGHT and not TWO. So, the entered value of "12" was shown in the edit box (meaning an internal game value of "6"), but when I clicked the checkmark, the in-game editor changed the in-game value to "1" because it treated the entry as an AP value for equipment that is not a fixed wing aircraft.

This is why I said in this thread I found the in-game editor confusing to use as far as AP value entry goes (at least in the case of fixed wing aircraft).

Hopefully what I wrote here is clear. I could show this to you on a PC, in person, in half a minute, but writing it in a message forum ... [X(]

Cheers

quote:

ORIGINAL: 76mm

cathar, I saw your other thread but wasn't sure that I understood the outcome...so is Bob saying that the changing AP values are a bug, and that in the next patch they will remain unchanged regardless of equipment type?





76mm -> RE: TOAW XML Editor (4/27/2019 11:53:06 AM)

quote:

ORIGINAL: cathar1244
But, upon selecting the option to edit that value, the in-game editor's display of the internal value treated the entry as if it was equipment that is NOT a fixed wing aircraft, and was showing the entered value divided by EIGHT and not TWO. So, the entered value of "12" was shown in the edit box (meaning an internal game value of "6"), but when I clicked the checkmark, the in-game editor changed the in-game value to "1" because it treated the entry as an AP value for equipment that is not a fixed wing aircraft.

So I guess this is the bug? What happens when you load the file with the value entered via a third-party into the in-game editor, does it remain unchanged?




76mm -> RE: TOAW XML Editor (4/27/2019 11:57:40 AM)

Guys, I hope to release the version allowing for new equipment in the next week or so.

In the meantime, I've started on an Event Editor...there is still a lot I don't understand, but hopefully I'll be able to figure it out.

But here is a mock-up with the functionality that I have in mind; as usual, let me know if you have suggestions:


[image]local://upfiles/11887/11DAA93C0437453FAAB1B80B3B09AC0B.jpg[/image]




76mm -> RE: TOAW XML Editor (4/27/2019 11:59:15 AM)

Expand/Collapse all events with click of a button:


[image]local://upfiles/11887/CEF4F46BEE6E49F781A5368AAB93F6D1.jpg[/image]




76mm -> RE: TOAW XML Editor (4/27/2019 12:00:40 PM)

Filter by Trigger or Effect:


[image]local://upfiles/11887/A9666978B7494F3099BE405BDB2DEEAF.jpg[/image]




76mm -> RE: TOAW XML Editor (4/27/2019 12:02:40 PM)

Or filter by "Causal Chain", or just note the Causal Chain info at the bottom right:

[image]local://upfiles/11887/83A07844014E4B288ED977D0C7026E85.jpg[/image]




76mm -> RE: TOAW XML Editor (4/27/2019 12:05:13 PM)

Can't promise that I can deliver all of this yet, but I'm hopeful. The main obstacle will be understanding and coding for all of the complex interactions within the Event Engine.

One addition I'm thinking about is adding "Events On Same Turn" to the Causal Chain section, so that, for instance, you could see all of the Events triggered on Turn 4 or whatever. Would that be helpful? Anything else?




76mm -> RE: TOAW XML Editor (4/27/2019 12:08:14 PM)

In case anyone is wondering, the data under each event in the Treeview is the raw XML data and is read-only, while the same info is (hopefully) presented in a more user-friendly manner for the selected event on the right, where it is editable.




Lobster -> RE: TOAW XML Editor (4/27/2019 12:28:56 PM)

You are a brave man. [:)]




sPzAbt653 -> RE: TOAW XML Editor (4/27/2019 1:12:33 PM)

quote:

One addition I'm thinking about is adding "Events On Same Turn" to the Causal Chain section

My opinion is that this and the Trigger and Effect Filters are an accident on the scale of a disaster waiting to happen. Folks can enable these things without realizing that it will change the chain of events as designed, thus causing things to no longer work as intended. I've lobbied for years to remove these but it has not happened. One might think then that they actually serve some usable purpose, but I have asked in the past for anyone to speak up with a reason they would use these and no one ever has. Therefore, I continue to lobby to remove them, and would not recommend that you include them in your work.




cathar1244 -> RE: TOAW XML Editor (4/27/2019 2:20:24 PM)


quote:

ORIGINAL: 76mm

quote:

ORIGINAL: cathar1244
But, upon selecting the option to edit that value, the in-game editor's display of the internal value treated the entry as if it was equipment that is NOT a fixed wing aircraft, and was showing the entered value divided by EIGHT and not TWO. So, the entered value of "12" was shown in the edit box (meaning an internal game value of "6"), but when I clicked the checkmark, the in-game editor changed the in-game value to "1" because it treated the entry as an AP value for equipment that is not a fixed wing aircraft.

So I guess this is the bug? What happens when you load the file with the value entered via a third-party into the in-game editor, does it remain unchanged?


The game, so far as I know, handles the fixed wing aircraft and other values with no problem when loaded from the equipment file, no matter the editor used on the file. Other than the confusing bit with the AP rating, the game also handles the data entered via the in-game editor with no issue. However --

If the editor you're creating will allow users to set the AP value as part of equipment editing, you may wish to cue them about scaling factors (8X, 2X) depending on the kind of equipment they're editing. I don't know of a way to directly enter the in-game scaled-down versions of those ratings. Hopefully that made sense the way I wrote it.

Cheers




cathar1244 -> RE: TOAW XML Editor (4/27/2019 2:24:25 PM)


quote:

ORIGINAL: sPzAbt653

quote:

One addition I'm thinking about is adding "Events On Same Turn" to the Causal Chain section

My opinion is that this and the Trigger and Effect Filters are an accident on the scale of a disaster waiting to happen. Folks can enable these things without realizing that it will change the chain of events as designed, thus causing things to no longer work as intended. I've lobbied for years to remove these but it has not happened. One might think then that they actually serve some usable purpose, but I have asked in the past for anyone to speak up with a reason they would use these and no one ever has. Therefore, I continue to lobby to remove them, and would not recommend that you include them in your work.


sPzAbt653, sorry, I'm not following here. Are you advocating removing triggers as a way of activating events? I've no strong feelings either way (scenario design experience with TOAW too limited), but would like to understand the issues.

Cheers




76mm -> RE: TOAW XML Editor (4/27/2019 2:32:14 PM)

quote:

ORIGINAL: sPzAbt653
Trigger and Effect Filters are an accident on the scale of a disaster waiting to happen. Folks can enable these things without realizing that it will change the chain of events as designed, thus causing things to no longer work as intended. I've lobbied for years to remove these but it has not happened. One might think then that they actually serve some usable purpose, but I have asked in the past for anyone to speak up with a reason they would use these and no one ever has.

I'm afraid that I don't understand your comment at all... The filters will not change any chain of events, but only display events with the filter that you select. I've seen your previous comments about sorting events, but don't understand why sorting (or filtering for that matter)--which is generally purely for display purposes and does not affect any underlying data--would have any effect at all on in-game data; why it seems to in the in-game Event Editor is a bit of a mystery. But in any event I don't intend to (and did not propose to) implement sorting, because I don't think that sorting would be very useful in this context because of how the data is structured.

As to a usable purpose...I think this type of filter would be very useful. The scenario I'm working with has 350 events--let's say I want to see all of them triggered by "Unit destroyed" or "2 occupies", or with the effect of "Cool Front" or "Air transport 1"--instead of hunting and pecking through all 350 events, I can immediately see what I am looking for.

In addition, in my view adding a "Causal Chain" filter should make it easier for designers to ensure that their event chains are working as intended. From the scenarios I've worked with so far, it is obvious that numerous events in many scenarios are broken--necessary values have disappeared or been corrupted during the past twenty years of conversion to successive versions of the game, and so the events basically no longer exist.

Maybe I'm missing something, but as mentioned, I currently don't understand your point at all.




Page: <<   < prev  7 8 [9] 10 11   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.65625