RE: TOAW XML Editor (Full Version)

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



Message


76mm -> RE: TOAW XML Editor (1/30/2020 11:32:08 AM)

quote:

ORIGINAL: rhinobones
Is there a tutorial for this application? XML is basically a foreign language to me.


The manual is in the first post of the thread, and is available in a better-formatted pdf in the downloaded version. And the whole point of TOAWxml is that you don't need to know anything about XML to use it, it does everything behind the scenes. You should be able to get a decent idea of what it does by scanning the screenshots in this thread.




76mm -> RE: TOAW XML Editor (2/2/2020 7:10:37 PM)

OK, I've uploaded a new version (v2.1). As described above, not really many substantive changes: basically just added the ability to change the release/entry turn for static formations (enabled in the latest TOAW patch) and added an indication of the date when turns are indicated (ie, reinforcements, release of formations, events).

I've also fixed a lot of bugs...before deleting formations could crash TOAW, and deleting units or formations would screw up divided units and events which included formations or units--those should now be fixed.

As usual, use at your own risk: I've done some testing but did not, and cannot, test every scenario and situation. Just in case, please keep backups of all of your pre-TOAWxml work.

I'll post some screenshots in the following posts.




76mm -> RE: TOAW XML Editor (2/2/2020 7:14:01 PM)

OK, as mentioned, I've added dates to make it easier to figure out what a turn number means in terms of actual dates. Here is screenshot showing when a reinforcement arrives.



[image]local://upfiles/11887/218812F7D90547A280EB41D5969DCD01.jpg[/image]




76mm -> RE: TOAW XML Editor (2/2/2020 7:14:57 PM)

Here is the date for an event triggered by a turn:


[image]local://upfiles/11887/52582E055F8F4FD9B6CB2803068C7521.jpg[/image]




76mm -> RE: TOAW XML Editor (2/2/2020 7:15:51 PM)

Finally, here is one showing the entry turn for static formations, along with the relevant date:


[image]local://upfiles/11887/9812F35F309D4D92B3BDEF1529504461.jpg[/image]




76mm -> RE: TOAW XML Editor (2/2/2020 7:21:16 PM)

Currently I don't plan to add any more features to TOAWxml, although I'm always open to suggestions and might do so if there is a consensus for other features. I'll keep fixing bugs though, so please report those. I will also probably update it so that it works with future patches, if there are any.

Otherwise, I think I'll start working on some other stuff; I will let you know when/if anything interesting emerges from those efforts.




76mm -> RE: TOAW XML Editor (6/23/2020 4:30:54 PM)

I just made this open-source on github for anyone that wants to play around with it...




rbeeler81 -> RE: TOAW XML Editor (7/19/2020 4:08:12 PM)

First of all, thank you very much for your time and efforts in creating this tool.

I have encountered an issue that, after searching the board for clues, I have been unable to resolve. I edited the Trotsky's War scenario, and within the in-game editor, the scenario is valid, and unit strengths correlate to equipment. However, when I go to play the scenario, Force 2's units all of offensive strengths of "0", and defensive strengths of "1". This is despite all of the equipment and equipment counts appearing normal. I have tried re-importing the .gam file, re-saving as a scenario, and reloading the game. I have also tried using the in-game editor. Despite these measures, I am still encountering this error. I have included the screen shots below. Has anybody experienced this problem and/or found a workaround?


[image]local://upfiles/60721/539B4B440BD5415FAC8EB7AB34E018EA.jpg[/image]




larryfulkerson -> RE: TOAW XML Editor (7/19/2020 4:23:53 PM)

Is there a unit in Force 2 that has a gargantuan offensive or defensive strength? The game engine does some "behind the scenes" adjusting of the combat strengths on the units by making the largest defensive or offensive strength the largest value showing on a unit about 35 or 36 or so and then adjusting all the other unit strengths by the same amount so that they are all proportionally reduced and some of the smaller units can end up with a strength of '1'. [ Is there some kind of proficiency problem in the units? I doubt that that by itself would cause the extent of the problem you have though. ] I've never run into this problem before and I'm curious to know what causes it. Would you please post a copy of the scenario so I can take a look at it?




rbeeler81 -> RE: TOAW XML Editor (7/19/2020 4:29:52 PM)

Thanks Larry.

I've run into that problem in the past with having one "Gargantuan" unit that shrinks the offensive/defensive strengths of the other units. Funnily enough, in the in-game editor, the offensive and defensive strengths for both Force 1 and 2 correspond perfectly to their size and equipment. It is only when I play the scenario does Force 2 show as "0,1".

Below is the scenario. Interestingly, the file size for my edited scenario is only half the size (~1000kb vs ~500kb) of the original Trotsky's War scenario.




rbeeler81 -> RE: TOAW XML Editor (7/19/2020 4:36:50 PM)

My best guess at this point is something was lost importing and exporting the .gam file from the in-game editor to the TOAWXMLeditor, although Force 1 is unscathed. Oddly enough, I've played around with other scenarios and have never run into this problem.




76mm -> RE: TOAW XML Editor (7/19/2020 5:06:35 PM)

quote:

ORIGINAL: rbeeler81
My best guess at this point is something was lost importing and exporting the .gam file from the in-game editor to the TOAWXMLeditor, although Force 1 is unscathed. Oddly enough, I've played around with other scenarios and have never run into this problem.

I don't understand the exact sequence of what you edited in which editor?

I'm not sure if this is the problem that you're encountering, but there is a problem with the in-game exporter in that it makes all Force 2 units "parents" of themselves--see posts #338-352 on page 12 of this thread for more info. TOAWXML will "fix" this problem when the game file exported by the game is loaded into TOAWXML--but every time you re-export the gam file from the game you need to reload it into TOAWXML.




rbeeler81 -> RE: TOAW XML Editor (7/19/2020 5:26:20 PM)

Apologies if my first post was a bit confusing. I will try to describe it chronologically as best I can.

I opened the scenario in the in-game editor, saved it as a .gam file, and uploaded the .gam file into the TOAWXMLeditor.

I edited Force 2 in the TOAWXMLeditor. The items I edited were names of formations and units, proficiency/readiness/supply (mostly propagated), and unit equipment (added in new equipment items and changed some of the equipment count per unit). I did edit the Force 1 proficiency/readiness/supply in the TOAWXMLeditor, but no equipment changes/counts were made for Force 1.

I then uploaded the .gam file back into the in-game editor, copied and pasted units, deployed them, and saved it as a .sce file. According to the in-game editor, the scenario is valid. I then opened the game, but ran into the issue of Force 2 having 0 strength (even though equipment type and count is correct).

I will re-read the posts you have directed and will try to retrace steps.




76mm -> RE: TOAW XML Editor (7/19/2020 5:56:15 PM)

Thanks for the description. Sorry for the hassle, but first thing I would do is start with the original scenario file, export it as a gam file, and re-import it back into TOAW (without editing it in TOAWXML), and then opening as a scenario--just to see if the problem is cause by TOAWXML or the TOAW export/import process.

If I had to guess--although this is only a guess and it could easily be something else--I would say that the problem was caused by you editing the file in TOAWXML, re-importing to TOAW, re-exporting and continuing to work on it in TOAWXML...basically every time you re-export a gam from TOAW you need to open and close TOAWXML, because otherwise it will have weird effects... So you should definitely try to just close TOAWXML, re-open it, save the file in TOAWXML, and then re-import that gam file into TOAW and convert to a scenario.

Anyway, let me know how things work out and we'll try to figure this out...




rbeeler81 -> RE: TOAW XML Editor (7/19/2020 6:07:16 PM)

Thanks for the tip. I am going to keep trying as per your instructions and see what I can come up with. The editing functions and TOAWXMLeditor are phenomenal tools, and I've used them with no issue in the past. For whatever reason this particular scenario file has been giving me fits.

I'll post an update after trying your suggestions.

Thank you again for your feedback.




larryfulkerson -> RE: TOAW XML Editor (7/19/2020 6:48:08 PM)

Hey you guys:
I loaded the scenario in the 4.1.0.40 editor and took a look around and didn't find anything unusual except for the high values of offense and defense are higher than those I've seen for units of other scenarios. Then I saved the scenario with a new name and then loaded the new name scenario in the game mode and it looks like the problem went away although I didn't change anything at all. I've posted the new scenario here below.




rbeeler81 -> RE: TOAW XML Editor (7/19/2020 8:22:10 PM)

Thank you Larry.

I tried to replicate your methodology, but the problem still persisted.

I'll download your attachment and report back with any findings.




larryfulkerson -> RE: TOAW XML Editor (7/19/2020 8:29:23 PM)

You're welcome of course. But I didn't change anything at all. I just went to the edit mode and looked at the events and
the briefings and pulled up the replacements manager to look at the values on the reinforcements and they looked fine so
I didn't change anything and then I remember looking at a formation report on some formation or other but never changed
anything. And then saved the scenario with a new name. So even though nothing was changed while editing the scenario
it turned out fine in the end. By the way I didn't use a custom .eqp file so it's using the default .eqp file now.

May I reccommend the new improved .eqp list. I'm using it on all my modded scenarios. You can find it here:
https://www.matrixgames.com/forums/tm.asp?m=4431184&mpage=1&key=




rbeeler81 -> RE: TOAW XML Editor (7/20/2020 12:23:50 AM)

Your attachment works perfectly. My only guess is by toggling back and forth between the in-game editor and XMLeditor, something must have been corrupted. As I mentioned before, this is the first time I have ever experienced this issue (not that I am an expert player, but I have been tinkering with scenarios and OOBs for quite a while).

Thank you also for pointing me to your updated equipment file. Now if I can only figure out how to view the first two categories!




76mm -> RE: TOAW XML Editor (12/8/2020 11:08:56 PM)

I've uploaded a new version (1.23) which fixes a few bugs that I've come across; no new functionality in this version, although I'm thinking about adding some things.




ericdauriac -> RE: TOAW XML Editor (12/9/2020 1:24:50 PM)

Hello,

it's TOAWVIEWER and not TOAWXLM in download?

Regards

Eric




76mm -> RE: TOAW XML Editor (12/9/2020 10:19:02 PM)

Ooops, let me try to figure out how that happened and fix it.

[EDIT] Sorry too many files around here, I uploaded the wrong one yesterday. Correct file should be in the first post now.

BTW, here what I started working on today:


[image]local://upfiles/11887/29500044089E4F4FA613538A639B78DF.jpg[/image]




ericdauriac -> RE: TOAW XML Editor (12/10/2020 4:37:46 PM)

Hello,

I have a problem.

I want to modify a scenario (39-45).

I can easily modify the quantity of weapons (ex: Squad Rifles 400/400 => 240/400)

But I can't manage to add weapons (Ex: HMG 80/80), these don't appear.

Regards

Eric




cathar1244 -> RE: TOAW XML Editor (12/10/2020 4:48:41 PM)


quote:

ORIGINAL: ericdauriac

Hello,

I have a problem.

I want to modify a scenario (39-45).

I can easily modify the quantity of weapons (ex: Squad Rifles 400/400 => 240/400)

But I can't manage to add weapons (Ex: HMG 80/80), these don't appear.

Regards

Eric


Are there already 24 items of equipment in the unit you want to equip with the machine guns? No more than 24 types of equipment in a unit is allowed.

Cheers




76mm -> RE: TOAW XML Editor (12/10/2020 4:51:23 PM)

I know that it is possible to add new equipment--I just tested it, and it worked fine. Please provide more information.

The only thing I can think of--and this is only a guess--is that you might not be using the right equipment file...I haven't tested this so am not sure, but doubt that this feature will work if you add equipment from an equipment file other than what the scenario is using.

[EDIT: Cathar's point about number of units is also valid, hadn't thought of that!]




alexjack -> RE: TOAW XML Editor (12/13/2020 10:08:37 AM)

Great to see you still expanding this great mod.




76mm -> RE: TOAW XML Editor (12/13/2020 1:04:56 PM)

The Edit Saved Game functionality could be kind of cool, if I can figure out how to make it work! So far I've got some ideas. If anyone has experience editing saved games file, let me know what issues you've encountered, and which features would be helpful!




larryfulkerson -> RE: TOAW XML Editor (12/13/2020 2:06:46 PM)

Back when we had only TOAW III I attempted to put together a simple editor of the type you are contemplating and I took a good hard look at the saved game file and discovered that it's somehow zipped up like a *.zip file. And that I'd have to unzip it in memory and edit THAT. But I could never discover where the zipped up part started in the file. It was so frustrating that I eventually gave up.
Here's some of the code from the beginning of a TOAW IV saved game file:


pi~Ɛ X\`{{IJg ,A,^% ۻWNey т


so I'd have to run the file into a debugger of some sort to see what the code looks like. I'm not detecting any zipped-up-ness in the file so maybe it's no longer zipped up when it's written by the game engine. I'd like to help you with your project in some small capacity. I used to be a professional computer programmer and I still know a thing or two about compilers, debuggers, "make" files, and *.exe files, etc. I assume you're programming in Java or some other simple language. Lemme know.




sPzAbt653 -> RE: TOAW XML Editor (12/13/2020 2:51:05 PM)

Currently, Editing a Saved Game creates a New Scenario. If you could figure out how to actually Edit an actual Saved Game, that could be useful.




Zovs -> RE: TOAW XML Editor (12/13/2020 2:58:26 PM)

Larry its written in C# I have cloned the repo and I was working on a part of it. Its not too bad its like Java.




Page: <<   < prev  15 16 [17] 18 19   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.796875