Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

RE: Impressions - Pathfinding/Maps

 
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] >> Close Combat Series >> Close Combat: Wacht am Rhein >> RE: Impressions - Pathfinding/Maps Page: <<   < prev  1 [2] 3   next >   >>
Login
Message << Older Topic   Newer Topic >>
RE: Impressions - Pathfinding/Maps - 12/1/2008 11:13:42 PM   
Platoon_Michael


Posts: 1119
Joined: 3/9/2003
Status: offline
Heres another one,went in my favor but inmho shouldnt had.
The map listed the ground at 8.0m where the 105 Sherman was,the house at 8.0m and the ground around the Panther at 8.5m




Attachment (1)

(in reply to nietsche)
Post #: 31
RE: Impressions - Pathfinding/Maps - 12/1/2008 11:54:15 PM   
crushingleeek_slith

 

Posts: 89
Joined: 11/24/2008
Status: offline
TO MAKE CHECKING LOS EASIER:


Has anyone thought or played with the idea of:

1) right click on the unit of interest
2) every spot on the map stays either normal, gets lightly shaded or darkly shaded.

Normal = valid Line of sight
lightly shaded areas = valid line of fire
darkly shaded = No line of fire

(this would be similar to steel panthers system, albeit more complex to program, im sure). This, to me, would bring about one of the best possible improvements to gameplay!


(in reply to nietsche)
Post #: 32
RE: Impressions - Pathfinding/Maps - 12/2/2008 4:12:07 AM   
TheReal_Pak40

 

Posts: 186
Joined: 10/8/2003
Status: offline
Michael,

I could be wrong but isn't that particular building a two sided garage/warehouse, in other words, large doors on both sides that allows the LOS through it?
Someone will have to put some men in that building to find out.

(in reply to crushingleeek_slith)
Post #: 33
RE: Impressions - Pathfinding/Maps - 12/2/2008 10:36:09 PM   
Platoon_Michael


Posts: 1119
Joined: 3/9/2003
Status: offline
It's a house,complete with sone walls and windows.

(in reply to TheReal_Pak40)
Post #: 34
RE: Impressions - Pathfinding/Maps - 12/3/2008 4:10:43 AM   
crushingleeek_slith

 

Posts: 89
Joined: 11/24/2008
Status: offline
For instance, in steel panthers (pictured here), if you click on a unit then right click in any direction around the unit, the game will show you the LOS for that unit. All areas that can be seen are highlighted. All areas that cannot be seen due to obstruction or smoke, etc., are shadowed out.

Something like this would elevate CC immeasurably!!

Attachment (1)

(in reply to Platoon_Michael)
Post #: 35
RE: Impressions - Pathfinding/Maps - 12/3/2008 4:11:41 AM   
crushingleeek_slith

 

Posts: 89
Joined: 11/24/2008
Status: offline
For instance, in steel panthers (pictured here), if you click on a unit then right click in any direction around the unit, the game will show you the LOS for that unit. All areas that can be seen are highlighted. All areas that cannot be seen due to obstruction or smoke, etc., are shadowed out.

Something like this would elevate CC immeasurably!!




Attachment (1)

(in reply to crushingleeek_slith)
Post #: 36
RE: Impressions - Pathfinding/Maps - 12/3/2008 4:09:02 PM   
pelle75

 

Posts: 97
Joined: 7/14/2006
Status: offline
I think the LOS calculations are quite expensive, and doing it in realtime at that detailed level is probably too expensive.

To answer a question at the top of this thread: The waypoints were introduced in CC3. Unfortunately at the same time they also reintroduced the need to specify defense direction (that was, wisely imho, dropped from CC2) and introduced the command radius thing and starting adding other features that mostly made the game more complex (and the AI more and more unable to handle the maps).

(in reply to crushingleeek_slith)
Post #: 37
RE: Impressions - Pathfinding/Maps - 12/3/2008 5:25:43 PM   
TheReal_Pak40

 

Posts: 186
Joined: 10/8/2003
Status: offline
Crushingleeek and Pellen,

This is a very interesting idea but probably not the first time this has come up. I think we'll need some input from the programmers to determine if this sort of implementation would be too taxing on the CPU.

Does anyone know how LOS is calculated?

I assume it's done on a unit by unit basis at least once every second. But, what Crushingleeek is proposing is checking the LOS from a unit to every square meter on the board. That's a lot more CPU cycles. But, It's probably more complex than i realize.

(in reply to pelle75)
Post #: 38
RE: Impressions - Pathfinding/Maps - 12/3/2008 6:33:23 PM   
crushingleeek_slith

 

Posts: 89
Joined: 11/24/2008
Status: offline
Is the concern here that the average CC fan does not have a computer capable of handling these numerous calculations? Or that the game engine can not handle this?

I'm pretty sure with the computers out there today, this could be handled by decent cpu's.

Help Programmers!

(in reply to TheReal_Pak40)
Post #: 39
RE: Impressions - Pathfinding/Maps - 12/5/2008 4:57:20 AM   
RD_Roach


Posts: 289
Joined: 2/15/2007
Status: offline
Growing pains :) each release is getting better!

Tank pathing has always been a issue for cc4 and esp cc5,and in my opinion its alot better then it was.

When moving tanks/vehicles, make your way point(s) short distances,i also find useing least amount of waypoints works better..then ordering more after it reaches the last one,bridges...order your tank/vehicle close to it,then give way point to center of bridge and second one just on the other side,youll find they manouver better(not always) if it starts to spin around try putting a defend/ambush arch on it,move it to the dirrection you want then use short distant waypoint. in other words micromanage your tanks/vehicles. you will find they react to your orders better.

(in reply to crushingleeek_slith)
Post #: 40
RE: Impressions - Pathfinding/Maps - 12/5/2008 5:18:06 PM   
mavraamides


Posts: 447
Joined: 4/1/2005
Status: offline

quote:

ORIGINAL: crushingleeek

Is the concern here that the average CC fan does not have a computer capable of handling these numerous calculations? Or that the game engine can not handle this?

I'm pretty sure with the computers out there today, this could be handled by decent cpu's.

Help Programmers!



Displaying LOS this way would be computationally equivalent to calculating LOS to each possible location on the map in worst case (unit sitting on top of a hill with view to entire map). Some short circuiting could be done but it gets a bit tricky.

One thing that could work (and was done in the early days of FPS games like Doom for example) would be to pre-calculate all viewable locations from every location in the map at load time and then store that in a table for fast lookup. Of course, it would still be complicated by vehicles and wrecks blocking LOS that didn't exist when the game started.

Also, you could have the issue that the 'shadow' of a vehicle that you could not see would give away its location. In other words, its possible that a vehicle that is in the sight range of a unit but had not actually been spotted yet would block cells behind it and these dark cells would indicate the location of a yet unspotted vehicle.

Only people intimate with the actual game code could really speculate on the complexity of pulling this off efficiently enough to work in a real time game.

On the pathing issue:

One thing that's always bothered me with talk of better pathing and pathing improvements and all that is the fact that the A* pathing algorithm has been around for about 20 years and there is really nothing to improve on it. One should easily be able to calculate a path from any point to any point on maps this small in a fraction of a second. I'm sure there is a good reason for the pathing problems but again only someone who has looked at the source code could really speculate on why there are any issues on this at all.

(in reply to crushingleeek_slith)
Post #: 41
RE: Impressions - Pathfinding/Maps - 12/5/2008 11:23:35 PM   
GoodGuy

 

Posts: 1506
Joined: 5/17/2006
From: Cologne, Germany
Status: offline
quote:

ORIGINAL: GordianKnot
[]....pathing algorithm has been around for about 20 years and there is really nothing to improve on it.

Erm, I'm not sure if I understand what you mean. Are you saying the pathing is fine and there's no need to improve it, or are you saying it can't be done?

If looking at games like Company of heros or CDV's "Panzers" you get an idea about how things can be perfected, and - in case of Panzers - how things can be botched.
IIIRC, units in CoH are usually extremely patient, they wait in lines to cross a bridge, although each individual unit may have different waypoints on the other side of a river. If there's a traffic jam, each unit will wait patiently and memorize its waypoint, and it will then start moving again once a jam has been untangled.

In Panzers, units try to find a different crossing right after the first attempt to cross a bridge failed. This leads to situations like units heading to another bridge (mined), where the player then has to catch all these stubborn units, like a cowboy watching/chasing cattle, lol.

It's not a piece of cake-thing to code hassle-free pathfinding, but recent games show that it can be done. The pathfinding in CC is antiquated. Tanks often won't cross bridges, unless you put the waypoint right in the middle of a bridge, on a certain spot. And even after reaching the spot, AFTER passing let's say a wrecked halftrack residing on the left edge of a huge bridge, the tank may just reverse back to end of the bridge if you place the next waypoint on a "bad" location, just because the AI suddenly thinks the bridge is impassable.

This leads to situations where it takes 10-30 mins to get ONE tank over a goddamn bridge.


_____________________________

"Aw Nuts"
General Anthony McAuliffe
December 22nd, 1944
Bastogne

---
"I've always felt that the AA (Alied Assault engine) had the potential to be [....] big."
Tim Stone
8th of August, 2006

(in reply to mavraamides)
Post #: 42
RE: Impressions - Pathfinding/Maps - 12/6/2008 2:31:16 AM   
Senior Drill


Posts: 199
Joined: 11/21/2007
From: Quantico
Status: offline
Pathing and LOS in the CC series of games is a function of both the AI algorithms AND the map coding. What we see as a country side and rectangular vehicles is processed by the game engine in terms of square tiles for both the terrain and entities - our warrior sprites. The balance of DATA driven entity sizes determines whether or not an entity can or cannot fit down paths of map terrain element tiles. If the path is X wide, an entity that is X wide can fit into the next tile. If the path is occluded at some point along the path to be X -1, then the path is a No Go and the AI will either reject the proposed path and determine a viable one or refuse to execute the entire order.

Map coding does play a key role. On Map A, a vehicle entity can rummble down the city street without any problems, yet on Map B is does have problems, though the two roads appear to us, the players, to be quite similar. Yet when one looks at the coding of Map B, the building wall coded tiles create a chock point that the X wide entity cannot path through.

Now, don't automatically blame the map coding. Coding is done to the best logical representation of the pretty painted picture of the map graphic that we see within the contraints of the square grid system. Blame also belongs on the game engines interpertation of entities as square blocks. These blocks are given a size in the data files. One can only reduce the width of a square entity so much before the retangular image that we see starts to do things that are not realistic. Tank hulls override building walls without effect, long vehicles bunched up at a pathing block appear to be performing some bizarre tank porn without the spawning of little tankettes. (Pardon me, Sir, but your Panther was raped by a Tiger two blocks back and is now pregnant.)

The compromises in data and coding are well known issues with the current game engine, including all the game code tweeking that can be done. The S3T guys are working at developing a new game engine that will, at the least, resovle many of these issues. 2D or 3D is not the issue, but to what scale and what grid pattern the game engine resolves GO or NO GO decisions is.

Go! Go, speed Shemans!



< Message edited by Senior Drill -- 12/6/2008 2:32:53 AM >


_____________________________

C'est magnifique, mais ce n'est pas la guerre.

(in reply to GoodGuy)
Post #: 43
RE: Impressions - Pathfinding/Maps - 12/6/2008 5:40:32 AM   
TheReal_Pak40

 

Posts: 186
Joined: 10/8/2003
Status: offline
Platoon_Michael,

I played that map yesterday where you had the LOS issue through the building. It seems quite valid to me after examining the building. There are no interior walls in the building and therefore no way to block the LOS through two windows on opposite sides of the building. Most of that building will block LOS, you just happen to have a tank at that perfect angle that allowed a LOS though two windows.

(in reply to Platoon_Michael)
Post #: 44
RE: Impressions - Pathfinding/Maps - 12/6/2008 6:49:31 AM   
crushingleeek_slith

 

Posts: 89
Joined: 11/24/2008
Status: offline
I am very naive about map making, but is is possible to draw them at a slight angle, so that windows like these can be seen easier, as well as differences in elevation?

(in reply to TheReal_Pak40)
Post #: 45
RE: Impressions - Pathfinding/Maps - 8/31/2009 11:20:56 PM   
Platoon_Michael


Posts: 1119
Joined: 3/9/2003
Status: offline
Is Vehicle pathing on the list for the next patch?
I havent seen anyone mention it for a long time.

If not how about a Traffic Cop :)

The Tank on the far right did nothing but move left move right move back move forward for 15 minutes.Allies are the AI

Kinda makes you wonder how these guys are gonna do at night.




Attachment (1)

< Message edited by Platoon_Michael -- 8/31/2009 11:21:40 PM >

(in reply to nietsche)
Post #: 46
RE: Impressions - Pathfinding/Maps - 9/4/2009 4:51:33 PM   
stolidog


Posts: 76
Joined: 11/1/2008
From: Virginia
Status: offline
Hey Michael, Are you sure there wasn't a traffic cop there? eg a german soldier dressed up as american MP, an added feature as part of Operation Greif

(in reply to Platoon_Michael)
Post #: 47
RE: Impressions - Pathfinding/Maps - 8/23/2010 11:20:50 PM   
Platoon_Michael


Posts: 1119
Joined: 3/9/2003
Status: offline
As per the other forums that I wasn't supposed to post in can you please check/correct the Elevation in all the WAR maps?
Elsenborne Ridge is also another map with elevation thats not properly depicted by shadding.
Lower area just west of the bridge climbs to 18 to 20m while the road is 7m

(in reply to stolidog)
Post #: 48
RE: Impressions - Pathfinding/Maps - 8/24/2010 2:26:15 AM   
Tejszd

 

Posts: 3437
Joined: 11/17/2007
Status: offline
Thanks Platoon Michael, passed on the information....

(in reply to Platoon_Michael)
Post #: 49
RE: Impressions - Pathfinding/Maps - 8/25/2010 3:56:28 PM   
Dundradal


Posts: 753
Joined: 6/9/2007
Status: offline
Dampsquib and I have a WAR GC going with latest patch. We'll be sure to look for stuff too Michael.

_____________________________

"To you, we are deeply grateful, and release what little hold we might, as Durandal, have had on your soul.
Go."
- Final Terminal Message Marathon Infinity

(in reply to Tejszd)
Post #: 50
RE: Impressions - Pathfinding/Maps - 9/1/2010 7:26:00 AM   
Andrew Williams


Posts: 6116
Joined: 1/8/2001
From: Australia
Status: offline
Are you guys going to post an AAR or updates?

(in reply to Dundradal)
Post #: 51
RE: Impressions - Pathfinding/Maps - 9/1/2010 9:41:28 PM   
Dundradal


Posts: 753
Joined: 6/9/2007
Status: offline
We thought about an AAR when we started, but thought we might take a break for WAR then maybe do one for TLD.

_____________________________

"To you, we are deeply grateful, and release what little hold we might, as Durandal, have had on your soul.
Go."
- Final Terminal Message Marathon Infinity

(in reply to Andrew Williams)
Post #: 52
RE: Impressions - Pathfinding/Maps - 9/2/2010 12:39:37 AM   
DampSquib


Posts: 425
Joined: 3/8/2010
From: UK
Status: offline
Hehe...1 quick AAR for map LaRoche.
Start of level me:..mixed Inf..2 bazooka teams..1 AT gun...1 M18 Hellcat...2 mortar teams. 44 seconds later NOTHING!!!!!!!!!!!!!!!!!!!!!!!.
A NEW RECORD ding ding!!!!!!!!!!!
Wish i had a screen shot.

< Message edited by DampSquib -- 9/2/2010 1:59:39 AM >

(in reply to Dundradal)
Post #: 53
RE: Impressions - Pathfinding/Maps - 9/2/2010 8:56:42 PM   
Dundradal


Posts: 753
Joined: 6/9/2007
Status: offline
Hehehehehe yeah you did get screwed with that deployment area. It was pretty awful.

_____________________________

"To you, we are deeply grateful, and release what little hold we might, as Durandal, have had on your soul.
Go."
- Final Terminal Message Marathon Infinity

(in reply to DampSquib)
Post #: 54
RE: Impressions - Pathfinding/Maps - 9/25/2010 8:20:22 AM   
Platoon_Michael


Posts: 1119
Joined: 3/9/2003
Status: offline
On the Malmedy map there is a tree in the large house right at the "Crossroads VL"

(in reply to Dundradal)
Post #: 55
RE: Impressions - Pathfinding/Maps - 9/25/2010 4:42:37 PM   
Tejszd

 

Posts: 3437
Joined: 11/17/2007
Status: offline
quote:

ORIGINAL: Platoon_Michael

On the Malmedy map there is a tree in the large house right at the "Crossroads VL"


Thanks, bug put in the bug tracker....

Edit: I fixed the element txt file, here it is....

Attachment (1)

< Message edited by Tejszd -- 9/25/2010 11:06:08 PM >

(in reply to Platoon_Michael)
Post #: 56
RE: Impressions - Pathfinding/Maps - 9/26/2010 11:08:16 AM   
Platoon_Michael


Posts: 1119
Joined: 3/9/2003
Status: offline
Thanks tejszd,


(in reply to Tejszd)
Post #: 57
RE: Impressions - Pathfinding/Maps - 9/26/2010 11:20:59 PM   
Andrew Williams


Posts: 6116
Joined: 1/8/2001
From: Australia
Status: offline
Just backtracked, as seems to be SOP these days.

The malmedy.txt was fixed at release. with the 4.50.2 at release patch.... and also available with the 4.50.7 patch

So, it has been broken with the latest patch... that makes at least three maps reported as broken with this patch.


< Message edited by Andrew Williams -- 9/28/2010 9:28:20 AM >


_____________________________


(in reply to Platoon_Michael)
Post #: 58
RE: Impressions - Pathfinding/Maps - 9/28/2010 8:05:17 PM   
RD Oddball

 

Posts: 4836
Joined: 2/10/2007
Status: offline
quote:

ORIGINAL: Platoon_Michael

Heres another one,went in my favor but inmho shouldnt had.
The map listed the ground at 8.0m where the 105 Sherman was,the house at 8.0m and the ground around the Panther at 8.5m





Hey Michael I checked the map coding and elevation on Meyerode and everything looks as good as it can be for the CC map system. There are a few spots where the elevation is barely cutting through the buildings and I'll tweak those but those wouldn't account for what you're seeing.






Attachment (1)

< Message edited by RD_Oddball -- 9/28/2010 8:06:12 PM >

(in reply to Platoon_Michael)
Post #: 59
RE: Impressions - Pathfinding/Maps - 9/28/2010 8:07:03 PM   
RD Oddball

 

Posts: 4836
Joined: 2/10/2007
Status: offline
quote:

ORIGINAL: Andrew Williams

Just backtracked, as seems to be SOP these days.

The malmedy.txt was fixed at release. with the 4.50.2 at release patch.... and also available with the 4.50.7 patch

So, it has been broken with the latest patch... that makes at least three maps reported as broken with this patch.



Great detective work Andrew. Will have a look at it. Thanks!

*EDIT* I looked for the initial bug report and did not find one. Please PM or e-mail me the link to the report. Thanks.

< Message edited by RD_Oddball -- 9/30/2010 7:11:14 PM >

(in reply to Andrew Williams)
Post #: 60
Page:   <<   < prev  1 [2] 3   next >   >>
All Forums >> [New Releases from Matrix Games] >> Close Combat Series >> Close Combat: Wacht am Rhein >> RE: Impressions - Pathfinding/Maps Page: <<   < prev  1 [2] 3   next >   >>
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

3.469