TOAWxml Editor

Post new mods and scenarios here
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
In the unit view would it be possible to show the date after you input s turn number for reinforcement?
In theory, yes. In practice, not sure...I think the coding would be kind of fiddly but nothing too complicated, but I am running out of real estate on the screen. I will put this on the list and take a look.
User avatar
76mm
Posts: 4766
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: TOAW XML Editor

Post by 76mm »

ORIGINAL: Lobster
What is needed is a flow chart.
This is what I was trying to achieve with the "causal chain," which would list event numbers...

My understanding of a flow chart would be the same, but with graphics. This would certainly be much more complicated to code--what exactly do you have in mind, and how would it be better than simply listing events?
User avatar
Lobster
Posts: 5542
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: TOAW XML Editor

Post by Lobster »

I was referring to what I do to make a chain of events. I make a flow chart. I think that would be beyond the scope of your tool. It would be a huge pain in the butt to code since it's a graphical representation of events and there's already free programs on the net that can be used by people. Sorry, didn't mean that you should make it part of yours.
ne nothi tere te deorsum (don't let the bastards grind you down)

If duct tape doesn't fix it then you are not using enough duct tape.

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Thanks 76mm
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
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: Zovs
In the unit view would it be possible to show the date after you input s turn number for reinforcement?
In theory, yes. In practice, not sure...I think the coding would be kind of fiddly but nothing too complicated, but I am running out of real estate on the screen. I will put this on the list and take a look.
At the bottom of the box, could you put an 'info bar' that would show some stuff when it is moused over? TOAW's editor actually does this in many areas. In a worse case, is there the ability to add mouse-overs for some stuff? I don't particularly like the floating mouse-overs as they tend to cover other stuff on screen and become annoying.
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
At the bottom of the box, could you put an 'info bar' that would show some stuff when it is moused over? TOAW's editor actually does this in many areas.
Definitely possible, although I can't say that I like the info bar approach very much, personally I find the info very easy to overlook. But let me know what specific you have in mind and I can take a look. The main issue is that I'd like to have a consistent approach to presenting information, rather than tool tips on some forms, info bars on others, etc. But I'm always willing to consider new approaches.
ORIGINAL: sPzAbt653
In a worse case, is there the ability to add mouse-overs for some stuff? I don't particularly like the floating mouse-overs as they tend to cover other stuff on screen and become annoying.
I'd be happy to add mouse-overs for more stuff; you've probably seen that I've added some tooltips for many of the force variables explaining the settings, etc.,. let me know if these pop up too quickly, stay up too long, etc., I should be able to tweak those settings, I think they are on the defaults now, whatever those are...

Let me know specifically what you have in mind--what is obvious it you is probably not so obvious to me...again, willing to consider various approaches although ultimately I want a consistent look/operation.

The main thing is that there is a standard Windows control for something, and there are such standard controls for both info bars and tool tips.
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

So this is a very basic idea of how it may look and what I was hoping I could see (the date for when a turn is used):

Image
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
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post by sPzAbt653 »

although I can't say that I like the info bar approach very much, personally I find the info very easy to overlook.
It's true I know, I just think that an Info Bar is a cleaner look than the floating Tool Tips. As far as what to put there and when, I think it requires use of the program to determine what the user needs to know at first, plus what can be of constant use.
So the thing we see below is that by mousing over 'Turn: 142', we get to see that is March 6th, 1944. We always need that, although TOAW often has too much info [a hangover from the days when computer games were beginning]. It's obviously a Button and we all know we can click it so no need to say that. 'Set Deployment or Mission' is the type of thing that could be helpful to new users.


Image
Attachments
XMLEd6.jpg
XMLEd6.jpg (110.13 KiB) Viewed 287 times
User avatar
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post by sPzAbt653 »

Here is the Info Bar from another game. It uses the entire bottom of the screen so has more than you would ever need, but it shows a lot more than can be reasonable for a tool tip. Plus, if you want or need to know something you can glance to the Bar, whereas with a tool tip it becomes annoying over time. Again though, that is my opinion.

Image
Attachments
XMLEd5.jpg
XMLEd5.jpg (26.32 KiB) Viewed 287 times
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Steve that approach would also work, i.e. if the select a unit it shows the Entry turn [142]: March 6th, 1944 etc...
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
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

So after I dump the scenario particulars into XML if I manipulate it in a text editor, when I see things like this I am thinking I can deleted them? Or should I leave them as it makes no impact?

Code: Select all

<PLACE ID="64" loc="38,78" name=" " />

I have a few where I moved text (while in the editor) and or deleted text.
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
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Also, I converted this scenario from TOAW III to IV and I am seeing stuff like this:

Code: Select all

NAME="Sturmgeschütz III41" 

Is this normal? Any ideas?
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
<PLACE ID="64" loc="38,78" name=" " />
Those are place names. I think you can either delete them (in a text editor), leave them, or insert a place name, as you wish.
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
Also, I converted this scenario from TOAW III to IV and I am seeing stuff like this:

Code: Select all

NAME="Sturmgeschütz III41" 
Is this normal? Any ideas?
Don't know if it is "normal", but it is certainly common. I think something changed with game fonts somewhere along the line, leaving gibberish like that. I would just replace it with what you want.

Similarly, some of the text in older scenarios seems to be made of up invalid XML characters, which would crash TOAWxml, so now upon loading the program tests for these characters and replaces them with a "Z" if it finds them (you'll get a message if this happens). I posted about this a couple pages back in this thread.
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Ok thanks 76mm (What’s your real name, mine is Don, I think call signs is silly).

Your tool is fantastic, it has greatly increased my productivity, I would have left my designs in the trash bin of history if not for this one tool.

I am a programmer by trade and I know XML. Been using Notepad++, bit going to switch to VSCode.

Man if you can get the event editor in I’ll be set.
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
sPzAbt653
Posts: 10112
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: TOAW XML Editor

Post by sPzAbt653 »

I think something changed with game fonts somewhere along the line, leaving gibberish like that.
Somebody didn't like the lightening bolt type runes for the SS, so they disabled the use of special characters. That included things like umlauts and the weird looking o's a's and e's, etc. Now when the program opens it replaces all of them with the gibberish.
Somebody may come in and say that the SS runes are illegal, but they aren't. How it's different from typing SS is beyond me. There it is - SS - see if I get arrested ! [:)]
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Runes and such is not illegal for historical purposes. War games are for historical purposes and therefore it's good to go.
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
Lobster
Posts: 5542
Joined: Thu Aug 08, 2013 2:12 pm
Location: Third rock from the Sun.

RE: TOAW XML Editor

Post by Lobster »

ORIGINAL: sPzAbt653
I think something changed with game fonts somewhere along the line, leaving gibberish like that.
Somebody didn't like the lightening bolt type runes for the SS, so they disabled the use of special characters. That included things like umlauts and the weird looking o's a's and e's, etc. Now when the program opens it replaces all of them with the gibberish.
Somebody may come in and say that the SS runes are illegal, but they aren't. How it's different from typing SS is beyond me. There it is - SS - see if I get arrested ! [:)]

Watch out for the black helos. [X(]
ne nothi tere te deorsum (don't let the bastards grind you down)

If duct tape doesn't fix it then you are not using enough duct tape.

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein.
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
Ok thanks 76mm (What’s your real name, mine is Don, I think call signs is silly).
Tom. But don't be offended if I keep calling you Zovs, honestly I can't keep all the names straight, although I'll try my best...
ORIGINAL: Zovs
Your tool is fantastic, it has greatly increased my productivity, I would have left my designs in the trash bin of history if not for this one tool.
Glad you like it...hopefully I'll have time to use it as well once I'm finished creating it!
ORIGINAL: Zovs
I am a programmer by trade and I know XML. Been using Notepad++, bit going to switch to VSCode.
Interesting...you know any C# :-)? Why the move to VSCode? I'm generally pretty happy with Notepad++ but don't know any better...
ORIGINAL: Zovs
Man if you can get the event editor in I’ll be set.
Working on it. Depending on how hard it will be, I might create a functional event editor, then come back and tweak the GUI, or if it looks hard, might tweak the GUI first then come back to it.
User avatar
Zovs
Posts: 9276
Joined: Sun Feb 22, 2009 11:02 pm
Location: United States

RE: TOAW XML Editor

Post by Zovs »

Thanks Tom!

VSCode is a powerful yet easy to use editor, it has a ton of features and extensions that can be added for just about everything. Plus I have been using it for work for that last four years so I am familiar with it.

Yes, I know the basics of C#, I am essentially a Java programmer by trade. The two languages are somewhat similar.
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
Post Reply

Return to “Mods and Scenarios”