TOAWxml Editor

Post new mods and scenarios here
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

ORIGINAL: 76mm
ORIGINAL: Zovs
Suggest the dialing app can be double clicked to make bigger and increase the view point.
Sorry, no comprende?

Okay, here is dialog application for another game system. When you launch it its in 'normal' mode like so:

Image

But when you expand it it looks like so:

Image

Notice that all the fields and editable things are now much more larger (more real estate) this is what I was referring to. Why keep it boxed in to that modal dialog?

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
Notice that all the fields and editable things are now much more larger (more real estate) this is what I was referring to. Why keep it boxed in to that modal dialog?
Ah, now I understand the concept, but which form do you think it would be useful for here? The unit tree, or what?
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 »

Here's the Scenario editor for WITP-AE

Image
Attachments
temp.jpg
temp.jpg (257.18 KiB) Viewed 221 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 »

That is also a good one Larry!

Personally I was thinking both but your call. I was trying to expand things in the main editor but I think it may be more useful on the add new unit one.
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 »

Well, rather than expanding I could also just make the whole form bigger; I tried to keep it smallish so that people could use it on laptops, but how much real estate do I have to play with?

I also dread messing around with scaling and fonts but could probably figure it out sooner or later.
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 guessing 800x600 at a minimum should be doable. Most laptops are at least 1024x768 I believe.
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 »

I'm running 1440 by 900 and it's working just fine. Also, I need to report a problem. I'm changing the number of motorcycles just to get the save changes button to enable so I can save my changes. I've read in the GAM file just to get the invalid characters changed to 'Z's and then I intended to save the result but the save changes button wasn't enabled. So I had to change something. So I dropped down the number of motorcycles and when I go to save my changes it reports an error and for the life of me I can't see what it is. I'll attach the GAM file on the next post below.

Also, how about some kind of indication when the changes are saved. I click on the button but nothing seems to happen and I'm left wondering if my changes were written to disk.


Image
Attachments
temp.jpg
temp.jpg (94.64 KiB) Viewed 222 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
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 »

Here's the GAM file for the above problem.
Attachments
Directive21lgf.zip
(1.54 MiB) Downloaded 4 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
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

Thanks Larry, will take a look!

User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Tom,

While your at it, if your in the same screen as Larry is in the editor, it won't allow you to add 0 Number. It wants at least a 1. If you could correct that, that would be great. This would all a user in this screen to set the max to 16 and the number (on hand) to 0. You can do this in the add equipment by just leaving the number as 0.
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 »

And while you're at it....how about allowing overstuffed units that have more equipment than is allowed for balancing purposes. Say the unit has 50 light rifle squads but is authorized only 10. I've seen scenario designers do that.
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
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Zovs
While your at it, if your in the same screen as Larry is in the editor, it won't allow you to add 0 Number. It wants at least a 1. If you could correct that, that would be great. This would all a user in this screen to set the max to 16 and the number (on hand) to 0. You can do this in the add equipment by just leaving the number as 0.
That should be easy.
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
And while you're at it....how about allowing overstuffed units that have more equipment than is allowed for balancing purposes. Say the unit has 50 light rifle squads but is authorized only 10. I've seen scenario designers do that.
I don't have any principled objection, but I don't get the point of doing that? And are you sure it won't break something in a scenario? Just because some scenarios do it doesn't necessarily mean it is a good idea...
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

Hey Larry, a couple of things:
ORIGINAL: larryfulkerson
So I dropped down the number of motorcycles and when I go to save my changes it reports an error and for the life of me I can't see what it is.
First, unfortunately, I couldn't replicate this using your gam or either of a couple of other files I tried. Frankly not sure what could have caused this; but see next point.

ORIGINAL: larryfulkerson
I'm changing the number of motorcycles just to get the save changes button to enable so I can save my changes.
I'll be changing this button activation stuff in the next version, which should only be a few days out. I found both this button activation scheme and the one in the Add New Equipment form very clunky, so want to change. Hopefully these changes will eliminate whatever bug you encountered. But before changing I'd like to confirm whether I can allow the "Current Quantity" to exceed the "Max Quantity", because most of the complications arise from the need to check these quantities.
ORIGINAL: larryfulkerson
I've read in the GAM file just to get the invalid characters changed to 'Z's and then I intended to save the result but the save changes button wasn't enabled.
For future reference, you don't need to save the fix for invalid XML characters, it is saved automatically. Also the invalid characters are now replaced with a "$" rather than a "Z".
ORIGINAL: larryfulkerson
Also, how about some kind of indication when the changes are saved. I click on the button but nothing seems to happen and I'm left wondering if my changes were written to disk.
I put this on the list, this could be a good candidate for data for the status bar which Steve requested.
User avatar
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post by sPzAbt653 »

ORIGINAL: 76mm
ORIGINAL: larryfulkerson
And while you're at it....how about allowing overstuffed units that have more equipment than is allowed for balancing purposes. Say the unit has 50 light rifle squads but is authorized only 10. I've seen scenario designers do that.
I don't have any principled objection, but I don't get the point of doing that? And are you sure it won't break something in a scenario? Just because some scenarios do it doesn't necessarily mean it is a good idea...
It's actually a necessary feature, because often units have more of something than authorized for a reason. For one example, a Panzer unit that starts a scenario with 79 Pz IV's but is authorized only 48, because during the scenario the unit will receive some new Panthers to replace the difference [and we don't want the unit retaining all 79 IV's because then it would be 'overstuffed'].
User avatar
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post by sPzAbt653 »

ORIGINAL: larryfulkerson
So I dropped down the number of motorcycles and when I go to save my changes it reports an error and for the life of me I can't see what it is.
First, unfortunately, I couldn't replicate this using your gam or either of a couple of other files I tried. Frankly not sure what could have caused this; but see next point.
I also get the little Error Icon whenever I change either of those [Number or Max]. And it doesn't tell me what the error is, lol [:@]
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: sPzAbt653
It's actually a necessary feature, because often units have more of something than authorized for a reason. For one example, a Panzer unit that starts a scenario with 79 Pz IV's but is authorized only 48, because during the scenario the unit will receive some new Panthers to replace the difference [and we don't want the unit retaining all 79 IV's because then it would be 'overstuffed'].
OK, consider it done, I'll do this in the next version, to be out in a couple of days. Will actually make the code much easier...
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: sPzAbt653
I also get the little Error Icon whenever I change either of those [Number or Max]. And it doesn't tell me what the error is, lol
Actually it will tell you what the error is if you mouse over it. That error message was intended to only appear if a user input invalid data, such as a letter, negative number, decimals, etc.

So I'm mystified why it appears if you are entering positive whole numbers...I will take another look at the code.
User avatar
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post by sPzAbt653 »

Yes there is a mouse over error explanation !

Image

EDIT: We could also have '0' instead of '1' for the Number/On Hand. For an example, Panthers aren't available until 1943, but the scenario starts in 1941, so some units may have 0/48 Panthers and would start filling out when the Panthers begin arriving in 1943.
Attachments
XMLEd9.jpg
XMLEd9.jpg (25.9 KiB) Viewed 217 times
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: sPzAbt653
We could also have '0' instead of '1' for the Number/On Hand.
Yes, Don already asked for it, and in fact, I've already done it. Need to sort out a few more things before I release the next version, maybe as soon as tomorrow.
Post Reply

Return to “Mods and Scenarios”