Matrix Games Forums

Happy Easter!Battle Academy is now available on SteamPlayers compare Ageods Civil War to Civil War IIDeal of the week - An updated War in the East goes half Price!Sign up for the Qvadriga beta for iPad and Android!Come and say hi at Pax and SaluteLegends of War goes on sale!Piercing Fortress Europa Gets UpdatedBattle Academy Mega Pack is now availableClose Combat: Gateway to Caen Teaser Trailer
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

RE: Rout Behavior

 
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] >> Command Ops Series >> RE: Rout Behavior Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
RE: Rout Behavior - 1/10/2013 10:42:58 PM   
Arjuna


Posts: 17636
Joined: 3/31/2003
From: Canberra, Australia
Status: offline
OK so we have two different issues here. One is what affects a unit to rout and what affects it during the rout. The decision to Rout is first kicked off by a UnitMoraleCheck() function. This occurs each minute. I won't go into all the details as the algorythm runs for 500 lines. Suffice to say that yes it factors in nearby friendly ( and enemy ) retreaters. It determines the differential in retreat/rout personnel between friendly and enemy troops. The adjustment applied to the morale level will vary between 10 and 40%. Typically if there were 300 other friendly retreaters/routers nearby and no enemy then the effect would be to reduce the morale by around 16%. BTW the function also factors in the presence of a nearby superior HQ, adding in a mod based on its leadership, which could be negative if the guy is a jerk :).

_____________________________

Dave "Arjuna" O'Connor
www.panthergames.com

(in reply to phoenix)
Post #: 31
RE: Rout Behavior - 1/10/2013 10:56:46 PM   
phoenix

 

Posts: 1639
Joined: 9/28/2010
Status: offline
500 lines. Wow. Just for that. How many lines of code for the entire engine?

Thanks for the clarification.

(in reply to Arjuna)
Post #: 32
RE: Rout Behavior - 1/10/2013 11:18:38 PM   
RockinHarry


Posts: 2948
Joined: 1/18/2001
From: Germany
Status: offline

quote:

ORIGINAL: Arjuna

OK so we have two different issues here. One is what affects a unit to rout and what affects it during the rout. The decision to Rout is first kicked off by a UnitMoraleCheck() function. This occurs each minute. I won't go into all the details as the algorythm runs for 500 lines. Suffice to say that yes it factors in nearby friendly ( and enemy ) retreaters. It determines the differential in retreat/rout personnel between friendly and enemy troops. The adjustment applied to the morale level will vary between 10 and 40%. Typically if there were 300 other friendly retreaters/routers nearby and no enemy then the effect would be to reduce the morale by around 16%. BTW the function also factors in the presence of a nearby superior HQ, adding in a mod based on its leadership, which could be negative if the guy is a jerk :).


Thanks, that´s quite valuable information! I´d already assumed, that presence and distance to friendly units/HQ plays a larger role in rout triggering (well, should´ve been obvious anyway).

So a more isolated (from other friendly) unit, is likely to get a rout trigger more oftenly (other factors left aside). Is physical distance a matter, or just visual distance? In example, two adjacent infantry Coys in a thick wood do not have LOS to each other, will it help to broaden the footprint of one or both, so they get in visual liaison to each other? Does that help for rout triggering, or avoiding?

Would be nice if statements like yours above, make it into the game manual anytime.



_____________________________

RockinHarry in the web:

http://www.myspace.com/rockinharryz
http://www.youtube.com/user/rockinharryz
https://www.facebook.com/harry.zann

(in reply to Arjuna)
Post #: 33
RE: Rout Behavior - 1/10/2013 11:36:10 PM   
wodin


Posts: 7704
Joined: 4/20/2003
From: England
Status: offline
quote:

ORIGINAL: phoenix

500 lines. Wow. Just for that. How many lines of code for the entire engine?

Thanks for the clarification.


Thats why fixes etc can take awhile..their dealing with a huge programme and I presume several thousand of lines of code minimum. It's why I say we have to be patient with CO, work wont stop on it even if it seems to take awhile to get a fix we'd like.

< Message edited by wodin -- 1/10/2013 11:37:02 PM >


_____________________________

My Tactical wargame facebook page.

https://www.facebook.com/Tacticalwargame


(in reply to phoenix)
Post #: 34
RE: Rout Behavior - 1/10/2013 11:52:40 PM   
Arjuna


Posts: 17636
Joined: 3/31/2003
From: Canberra, Australia
Status: offline
Wodin,

Back in 2004 we actually did a line count and it was over half a million lines of code. It will be more now.

_____________________________

Dave "Arjuna" O'Connor
www.panthergames.com

(in reply to wodin)
Post #: 35
RE: Rout Behavior - 1/10/2013 11:54:59 PM   
Arjuna


Posts: 17636
Joined: 3/31/2003
From: Canberra, Australia
Status: offline
RockinHarry,

If I described in detail everything in the code the manuals would be so big no one would ever read them. I reckon most users would prefer I spend my limited time on coding rather than writing up manuals.

_____________________________

Dave "Arjuna" O'Connor
www.panthergames.com

(in reply to Arjuna)
Post #: 36
RE: Rout Behavior - 1/11/2013 12:30:45 AM   
wdkruger

 

Posts: 56
Joined: 1/23/2012
Status: offline
Thanks for the details. I don't know about others, but the more I know about the engine the better.

(in reply to Arjuna)
Post #: 37
RE: Rout Behavior - 1/11/2013 1:09:11 AM   
Arjuna


Posts: 17636
Joined: 3/31/2003
From: Canberra, Australia
Status: offline
When I can I respond to questions here on this forum. So ask away but please be aware that I try and ration out my time so I can still make progress on development work.

_____________________________

Dave "Arjuna" O'Connor
www.panthergames.com

(in reply to wdkruger)
Post #: 38
RE: Rout Behavior - 1/11/2013 7:41:55 AM   
wodin


Posts: 7704
Joined: 4/20/2003
From: England
Status: offline
Dave I was trying to be very conservative in my estimation..I was going to say hundreds of thousand.

Hopefully when people know that they will realize what a huge task it is to debug and make fixes etc.

_____________________________

My Tactical wargame facebook page.

https://www.facebook.com/Tacticalwargame


(in reply to Arjuna)
Post #: 39
RE: Rout Behavior - 1/11/2013 4:22:36 PM   
RockinHarry


Posts: 2948
Joined: 1/18/2001
From: Germany
Status: offline

quote:

ORIGINAL: Arjuna

RockinHarry,

If I described in detail everything in the code the manuals would be so big no one would ever read them. I reckon most users would prefer I spend my limited time on coding rather than writing up manuals.


Well, not describing everything, rather supplementing key features that are asked for repeatedly in the forum. What about simovitch, MarkShot and Golf33, since these are mentioned to be suplementing authors for the manuals?

_____________________________

RockinHarry in the web:

http://www.myspace.com/rockinharryz
http://www.youtube.com/user/rockinharryz
https://www.facebook.com/harry.zann

(in reply to Arjuna)
Post #: 40
RE: Rout Behavior - 1/11/2013 6:20:16 PM   
wodin


Posts: 7704
Joined: 4/20/2003
From: England
Status: offline
Dave and Co I imagine are too busy to redo the whole manual. Also the ones you mentioned aren't employed ..MarkShot for instance I'm not sure he still plays the game or even owns BFTB.

I can see Dave's point,, where do you stop when it comes to explaining things, Blimey Daves patch update rundowns\list mean nothing to me mostly so it's likely most of the info will wont mean anything unless you knew the code or coding language.

Harry your very much into details and finding out exactly how the game operates and I'm not so certain many are bothered enough to read that kind of thing aslong as the game appears to play within the realms of reality. Not sure if the time spent on it would be worth the detraction from improving the game and working on the new titles. I haven't read the manual since the HTTR manual came out.

_____________________________

My Tactical wargame facebook page.

https://www.facebook.com/Tacticalwargame


(in reply to RockinHarry)
Post #: 41
RE: Rout Behavior - 1/11/2013 6:48:26 PM   
BigDuke66


Posts: 1537
Joined: 2/1/2001
From: Terra
Status: offline
I already posted this in the Patch thread but I guess here is a better place for it:

I wonder if there is a way to make the distance that a routed unit moves more variable without narrowing it too much, the other posts already mention that the retreat range was too low, then too high and I guess no matter what values are used there will be agaij and again situations where those values just don't fit.
I thought about a check that compares the current view range for the unit against the distance retreated and if the view range is smaller than the distance moved the unit would stop.
This should make units reaching covers like wood or dents in open ground that break the line of fire & sight use these beneficial positions for recovery.

_____________________________

Last of the Wilds!
"Spread word to every slave, that even the mighty republic bleeds when struck!"

(in reply to RockinHarry)
Post #: 42
RE: Rout Behavior - 1/11/2013 11:12:58 PM   
Arjuna


Posts: 17636
Joined: 3/31/2003
From: Canberra, Australia
Status: offline
BigDuke66,

The obvious follow on question is in what direction do we test this for in one direction you may be able to see only 300m but in another 3000m. Even if you assume back towards the location you routed from, this would mean we would have to store that loc, but it also ignores any other enemy threats that may be at a different angle than back to the point of origin. We have to be very careful here that we don't halt the router in a spot which is in dead ground to one enemy threat but totally exposed to another.

But in any event all this presupposes that the routers are behaving rationally, that they can cooly assess the situation around them and make optimum decisions. This is not what happens. Routers panic and in panic the focus is on fleeing. There are many cases where routers have fled for many kilometers unchecked.

Take a look at the mods I have made for the new public beta build 4.4.256 that will be out in the next few days and then we can discuss this further.

_____________________________

Dave "Arjuna" O'Connor
www.panthergames.com

(in reply to BigDuke66)
Post #: 43
Page:   <<   < prev  1 [2]
All Forums >> [New Releases from Matrix Games] >> Command Ops Series >> RE: Rout Behavior Page: <<   < prev  1 [2]
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.148