| View previous topic :: View next topic |
| Author |
Message |
Seaboy
Joined: 14 Apr 2005 Posts: 290 Location: nill
|
Posted: Sun Jun 19, 2005 2:48 pm Post subject: SH3 AI takes precedence over scripted waypoints |
|
|
Another shocker for me about SH3 game logic...
Those who used to try the daunting task of building SH2 levels will recall that in that game ships tended to do just what you scripted them to do with way points. SH3 is a whole different animal. Case example: I built a non-historic level where Hitler decides to risk all and send all his capital ships in a daring raid on a fictional cluster of Brit capital ships in the bay of Firth Of Forth. I scripted the ship action with the following waypoint parameters: the Brit fleet of 5 BB, 4 Cruisers, 1 Carrier, and 8 DD all acting in unison were to start out by moving 1 knot a short distance (about 2000 meters) then slowly ramp up their speed to 2 knots and then 3, before going into full gear at 10 knots, finally reaching 15 to 25 knots once out of the bay. They were to headed out of the bay and then up north to Scapa Flow.
The German fleet was set up in two waves, the first about 10 DDs that were to sweep in and clean up the outer Brit guard DDs that guarded the bay’s entrance (not part of the main Brit fleet) and then these were followed by 4 German Bismarcks (trying to make up for the lack of a Scharnhorst and Gneisenau) and 6 German Cruisers (2 were supposed to be pocket BBs) – all in a line abreast so that their forward fire would not in anyway hit their own ships (which by the way seems not to be a problem anyway when surface ships are firing long distance) .
The German DDs were to swoop in – draw fire, then retreat, as the German capital ships swept in at 30 knots, made a long pass, and then withdrew. The German DDs were to then slow up, allow the German heavies to pass them by, and in this way protect the withdrawing capital ships. How did it all work? Without flaw – exactly as I would have thought.
BUT – the Brit’s fleet did nothing at all like I had planned! Instead of moving forward into the battle as I had scripted with waypoints – they merely turned and began firing in place. They took a heavy pounding I think by remaining more or less stationary. They moved in directions and patterns that I had not scripted in, but also in patterns that seemed to make logic as far as the battle was concerned.
Once the Germans withdrew I was certain this fleet would resume its proper scripted course. It didn’t. I remained stationary long after the Germans had left. This allowed me to move around and sink the carrier. They seemed to ignore my sub completely. It was not until I was out of the bay and into its long channel area that I noted that the Brit fleet was sailing again. But not at the speed I had scripted. It was moving at 2 knots – not the 10 I had designed in! I began to wonder, was this fleet scared of my sub? But if that was true, why had it ignored me an hour before and allowed me to move in and out of its columns so easily with no ships trying to get away? Then I thought, mayhaps the BB that had been the Group Leader had been sunk, but no, it was still healthy and on a camera-inspection of it I could see it had no black marks on it anywhere.
Then I believe I figured out what was up. The German DDs were still in the channel covering the retreat of the German heavies. It was not until these DDs had fully cleared the channel that the Brit Fleet began to pick up speed to 9 knots (not the 10 I had set). Their earlier slow behavior had allowed me time to reload my torpedoes from the deck compartments, and so I was able to sink another BB. Once out to sea the Brit Fleet finally switched over to following all the speeds I had scripted for them.
My only conclusion is that the game AI made a decision to ignore my scripted moves based on the fact that the Brit Fleet had been pulverized while the German Fleet was still nearly at full strength. Of the Brit fleet – after the ship to ship action – all their DDs were wiped out, 3 Cruisers were sunk, and 2 BBs were left as wreckage (which I finished off with torpedoes). I had set the Brit ships captains all to POOR or just COMPETENT, while setting the German ships to EXPERT – simply to create a condition like the effects of the element of surprise – as in the Japanese attack on Port Arthur or Pearl Harbor. So perhaps this factor played some in why the Brit fleet acted the way it did (as in – OUR SHIPS are badly commanded – the German ships are perfectly commanded). I am not sure.
The upshot is that SH3 does not follow level designer waypoints WHEN the logic of the game dictates that it is a bad idea.
SH3 AI  |
|
| Back to top |
|
 |
Jace11
Joined: 16 Mar 2005 Posts: 1091
|
Posted: Sun Jun 19, 2005 3:09 pm Post subject: |
|
|
Did you post this in the Mods forum by mistake?
Shouldn't this be in "General Discussion", or perhaps even the "Mission Making Forum"?
Probably nothing more that the combination of confined space and allied ship collision detection. If you sail near a friendly ship and get too close, it moves to avoid you, be it docked or under steam.
"I am bored of this thread and I'm not coming back".....  |
|
| Back to top |
|
 |
Seaboy
Joined: 14 Apr 2005 Posts: 290 Location: nill
|
Posted: Sun Jun 19, 2005 5:00 pm Post subject: |
|
|
| sure should, except this site is now so dead with little new being posted that I thought I'd give Jace something to complain about. At the rate its decreasing, soon it will be just Jace and me |
|
| Back to top |
|
 |
Sailor Steve
Joined: 22 Nov 2002 Posts: 5433 Location: Salt Lake City, Utah
|
Posted: Sun Jun 19, 2005 5:35 pm Post subject: |
|
|
I'll never leave.  |
|
| Back to top |
|
 |
sdcruz
Joined: 14 Jun 2005 Posts: 241
|
Posted: Tue Jun 21, 2005 2:08 am Post subject: |
|
|
VERY interesting seaboy - thanks for the post -can you try that with the BRIT AI on 3 and 4 and let us know what happens.
Regards
Shelton. |
|
| Back to top |
|
 |
Wulfmann
Joined: 13 May 2005 Posts: 507 Location: Florida
|
Posted: Tue Jun 21, 2005 10:35 am Post subject: |
|
|
While I do not build missions for SH3, I do for CFS3.
What happens is once the AI make contact they react to the situation of that contact over any aspect you put in. They will modify their diection, speed and actions based on enemy contact. Once that has ceased, they will then continue with the programed WPs.
In CFS3 I developed new custom spawn files that allowed missions to vary considerably in that different formations and events would make reflying the mission more interesting and different.
It do not know, but if building spawn tables was possible it would make SH3 missions more playable in the long term.
Wulfmann |
|
| Back to top |
|
 |
misha1967
Joined: 16 May 2004 Posts: 549 Location: Texas, USA
|
Posted: Tue Jun 21, 2005 7:49 pm Post subject: |
|
|
Well dammit, Seaboy, you're actually beginning to post stuff that is worth reading and not just a bunch of whining and personal insults.
Kudos, my man!  |
|
| Back to top |
|
 |
Seaboy
Joined: 14 Apr 2005 Posts: 290 Location: nill
|
Posted: Fri Jun 24, 2005 10:45 am Post subject: |
|
|
misha1967 - I have been discovering the joys of SH3 in levels. The SH3 game engine populates the entire world of a level even if all you add in is just your own sub. Some of troubles found in careers never develop in single levels ( I am not sure why) but the SH3 engine seems to function better in levels - storms etc - than it does in career mode. For example, remember my gripes about not being able to use my guns when water lapped the decks? Well I now play the stock game in just levels I have seen waves washing over my gunner now many times with no cease fire - except when the water washed over the tops of the gunners and then they suspended fire and started aiming their gun in random directions until I redirected their fire. That of course made me happier than Clam Chowder!! Even the convoys seemed to be more robust in simple levels too - I am not sure why.
Also over time I have come to see that SH3 is dynamic to the point that you can think you fuly understand it when in fact you don't. I have been making all kinds of off the wall levels to test it out and am being surpirsed each time. I wonder if the Devs even know what they have built..... The game engine is actually one of the best physics machines I have played in sim games. Most of my old complaints have proved to be wrong - the more I test it out the more I see that career seems to lock you in to a dull routine and so you never get to see just what this game engine is capable of.
SH3 rocks  |
|
| Back to top |
|
 |
joea
Joined: 07 Jul 2002 Posts: 1534 Location: Canada now in Geneva
|
Posted: Fri Jun 24, 2005 12:39 pm Post subject: |
|
|
| Well for me one of thge reasons I got SH3 was the campaign, I like getting more renown and upgrading my boat and getting a more experienced qualified crew. I don't want to be restricted to single missions. :down: |
|
| Back to top |
|
 |
Immacolata
Joined: 12 Apr 2005 Posts: 189
|
Posted: Mon Jun 27, 2005 6:13 am Post subject: |
|
|
| Seaboy wrote: | misha1967 - I have been discovering the joys of SH3 in levels. The SH3 game engine populates the entire world of a level even if all you add in is just your own sub. Some of troubles found in careers never develop in single levels ( I am not sure why) but the SH3 engine seems to function better in levels - storms etc - than it does in career mode. For example, remember my gripes about not being able to use my guns when water lapped the decks? Well I now play the stock game in just levels I have seen waves washing over my gunner now many times with no cease fire - except when the water washed over the tops of the gunners and then they suspended fire and started aiming their gun in random directions until I redirected their fire. That of course made me happier than Clam Chowder!! Even the convoys seemed to be more robust in simple levels too - I am not sure why.
Also over time I have come to see that SH3 is dynamic to the point that you can think you fuly understand it when in fact you don't. I have been making all kinds of off the wall levels to test it out and am being surpirsed each time. I wonder if the Devs even know what they have built..... The game engine is actually one of the best physics machines I have played in sim games. Most of my old complaints have proved to be wrong - the more I test it out the more I see that career seems to lock you in to a dull routine and so you never get to see just what this game engine is capable of.
SH3 rocks  |
Thats a bit disappointing Would it be possible to graft a "level" based SH3 experience onto a kind of hacked career? Or would it be possible to just fix whatever destroyes the career mode world population? |
|
| Back to top |
|
 |
|