Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Event Engine Unit Value

 
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 >> Event Engine Unit Value Page: [1]
Login
Message << Older Topic   Newer Topic >>
Event Engine Unit Value - 12/13/2021 12:46:09 PM   
Lobster


Posts: 5104
Joined: 8/8/2013
From: Third rock from the Sun.
Status: offline
When a scenario is saved as an XML file (File/Save Game(XML) As...) units are addressed as values. The value is what is used to enable the game to undertake the process asked of it. For instance, unit withdrawal. Where can those unit values be found? In the XML file they are not a part of the XML file. An example of a withdraw Event:




Where is the unit's value found? It's not in the XML file except where the withdraw event takes place.

Perhaps it's in the order the unit's were created? Still, it would be helpful to be able to see these values.

Attachment (1)

< Message edited by Lobster -- 12/13/2021 12:58:24 PM >


_____________________________

http://www.operationbarbarossa.net/

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein

Q: What do you call a boomerang that doesn’t come back?
A: A stick.
Post #: 1
RE: Event Engine Unit Value - 12/13/2021 1:02:24 PM   
76mm


Posts: 4688
Joined: 5/2/2004
From: Washington, DC
Status: offline
I had to figure this out when coding TOAWxml. The note below refers to formations rather than units, I would guess it would be the same for units...

Value = Formation ID - 1, prefix of 2 for Force 2 (eg, Formation 1 of Force 2 = 2000; Formation 2 of Force 1 = 1; No XML for Formation1 of Force 1

(in reply to Lobster)
Post #: 2
RE: Event Engine Unit Value - 12/13/2021 2:26:38 PM   
Lobster


Posts: 5104
Joined: 8/8/2013
From: Third rock from the Sun.
Status: offline
Right. I had already found that using your XML editor I can insert the unit name and save, then the proper unit ID is inserted into an event for instance for a unit withdrawal.

I had wondered if, using the unit ID, a person could create a utility that allowed units to be passed in and out of formations in some way simply by changing the appropriate number. Would have to involve converting .sal to a .sce and back again. Probably also would have to be able to convert the turn counter to the proper turn after going from .sal to .sce and back again. All speculation of course.

_____________________________

http://www.operationbarbarossa.net/

Two things are infinite: the universe and human stupidity and I’m not sure about the universe-Einstein

Q: What do you call a boomerang that doesn’t come back?
A: A stick.

(in reply to 76mm)
Post #: 3
RE: Event Engine Unit Value - 12/13/2021 3:10:01 PM   
76mm


Posts: 4688
Joined: 5/2/2004
From: Washington, DC
Status: offline
You can already transfer units between formations in TOAWxml. I've actually finished coding a new module that allows the modification of saved games, including changing the turn to the proper turn, removing completed events, etc. It's pretty cool, although has not been tested other than by me.

Now I'm working on converting data from the gam files to a "tactical file" which includes additional data from the resolution of tactical level battles--you can convert both ways, so TOAW data from the gam file into a "tac" file, then resolve the tactical battle, but the data into the "tac" file, and send it back to the gam file. I've been working on this for several months, it is, um, rather complicated!

(in reply to Lobster)
Post #: 4
RE: Event Engine Unit Value - 12/13/2021 5:09:32 PM   
golden delicious


Posts: 5575
Joined: 9/5/2000
From: London, Surrey, United Kingdom
Status: offline

quote:

ORIGINAL: Lobster

I had wondered if, using the unit ID, a person could create a utility that allowed units to be passed in and out of formations in some way simply by changing the appropriate number. Would have to involve converting .sal to a .sce and back again. Probably also would have to be able to convert the turn counter to the proper turn after going from .sal to .sce and back again. All speculation of course.


As soon as you're playing around with modding the scenario between saves, I would suggest you can make the whole experience a lot cleaner by simply doing away with any and all uses of the turn counter:
1) no turn-based events
2) no turn-based reinforcements
3) no turn-based replacements changes

Instead, you can handle all these things when you crack open the scenario to make your other changes. This is the way I handled things for my Grand Strategy projects; the strategic ruleset would output whatever units, replacements, force supply etc. etc. at the start of the strategic turn and that would be input into the scenario. The scenario has a fixed duration of 1-3 months and at the end of it you go back into the editor and add these factors back in again. The only thing you need to do with regard to the turn count is increment the start date for the new scenario.

_____________________________

"What did you read at university?"
"War Studies"
"War? Huh. What is it good for?"
"Absolutely nothing."

(in reply to Lobster)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Event Engine Unit Value Page: [1]
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.672