RE: Impressions - Pathfinding/Maps (Full Version)

All Forums >> [New Releases from Matrix Games] >> Close Combat Series >> Close Combat: Wacht am Rhein



Message


Platoon_Michael -> RE: Impressions - Pathfinding/Maps (12/1/2008 11:13:42 PM)

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

[image]local://upfiles/8753/EAB9F014E52F41F581EC3B7861CFFEFF.jpg[/image]




crushingleeek_slith -> RE: Impressions - Pathfinding/Maps (12/1/2008 11:54:15 PM)

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!





TheReal_Pak40 -> RE: Impressions - Pathfinding/Maps (12/2/2008 4:12:07 AM)

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.




Platoon_Michael -> RE: Impressions - Pathfinding/Maps (12/2/2008 10:36:09 PM)

It's a house,complete with sone walls and windows.




crushingleeek_slith -> RE: Impressions - Pathfinding/Maps (12/3/2008 4:10:43 AM)

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!!




crushingleeek_slith -> RE: Impressions - Pathfinding/Maps (12/3/2008 4:11:41 AM)

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!!

[image]local://upfiles/30551/86018F3CB696481585BF34633B477352.jpg[/image]




pelle75 -> RE: Impressions - Pathfinding/Maps (12/3/2008 4:09:02 PM)

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).




TheReal_Pak40 -> RE: Impressions - Pathfinding/Maps (12/3/2008 5:25:43 PM)

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.




crushingleeek_slith -> RE: Impressions - Pathfinding/Maps (12/3/2008 6:33:23 PM)

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!




RD_Roach -> RE: Impressions - Pathfinding/Maps (12/5/2008 4:57:20 AM)

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.




mavraamides -> RE: Impressions - Pathfinding/Maps (12/5/2008 5:18:06 PM)


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.




GoodGuy -> RE: Impressions - Pathfinding/Maps (12/5/2008 11:23:35 PM)

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.




Senior Drill -> RE: Impressions - Pathfinding/Maps (12/6/2008 2:31:16 AM)

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!





TheReal_Pak40 -> RE: Impressions - Pathfinding/Maps (12/6/2008 5:40:32 AM)

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.




crushingleeek_slith -> RE: Impressions - Pathfinding/Maps (12/6/2008 6:49:31 AM)

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?




Platoon_Michael -> RE: Impressions - Pathfinding/Maps (8/31/2009 11:20:56 PM)

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.

[image]local://upfiles/8753/6D0F6BE5AF0F498F9C66665424D0DE1E.jpg[/image]




stolidog -> RE: Impressions - Pathfinding/Maps (9/4/2009 4:51:33 PM)

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




Platoon_Michael -> RE: Impressions - Pathfinding/Maps (8/23/2010 11:20:50 PM)

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




Tejszd -> RE: Impressions - Pathfinding/Maps (8/24/2010 2:26:15 AM)

Thanks Platoon Michael, passed on the information....




Dundradal -> RE: Impressions - Pathfinding/Maps (8/25/2010 3:56:28 PM)

Dampsquib and I have a WAR GC going with latest patch. We'll be sure to look for stuff too Michael.




Andrew Williams -> RE: Impressions - Pathfinding/Maps (9/1/2010 7:26:00 AM)

Are you guys going to post an AAR or updates?




Dundradal -> RE: Impressions - Pathfinding/Maps (9/1/2010 9:41:28 PM)

We thought about an AAR when we started, but thought we might take a break for WAR then maybe do one for TLD.




DampSquib -> RE: Impressions - Pathfinding/Maps (9/2/2010 12:39:37 AM)

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!!!!!!!!!!!!!!!!!!!!!!![:D].
A NEW RECORD ding ding!!!!!!!!!!!
Wish i had a screen shot.




Dundradal -> RE: Impressions - Pathfinding/Maps (9/2/2010 8:56:42 PM)

Hehehehehe yeah you did get screwed with that deployment area. It was pretty awful.




Platoon_Michael -> RE: Impressions - Pathfinding/Maps (9/25/2010 8:20:22 AM)

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




Tejszd -> RE: Impressions - Pathfinding/Maps (9/25/2010 4:42:37 PM)

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....




Platoon_Michael -> RE: Impressions - Pathfinding/Maps (9/26/2010 11:08:16 AM)

Thanks tejszd,





Andrew Williams -> RE: Impressions - Pathfinding/Maps (9/26/2010 11:20:59 PM)

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.




RD Oddball -> RE: Impressions - Pathfinding/Maps (9/28/2010 8:05:17 PM)

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

[image]local://upfiles/8753/EAB9F014E52F41F581EC3B7861CFFEFF.jpg[/image]


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.



[image]local://upfiles/23996/F551DB9555CF4686B9E6061F0FC8A31D.jpg[/image]




RD Oddball -> RE: Impressions - Pathfinding/Maps (9/28/2010 8:07:03 PM)

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.




Page: <<   < prev  1 [2] 3   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.234375