Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#4622564 - 03/12/23 08:43 AM Testing torpedoes  
Joined: Apr 2002
Posts: 12,500
MrJelly Offline
Veteran
MrJelly  Offline
Veteran

Joined: Apr 2002
Posts: 12,500
Montagnac, L'Herault, France
The combination that I tried in this host-only test was an escort mission of torpedo armed Avengers with a Japanese carrier as the target.
I wanted to check that the torpedo code was working OK.

There were no AI interceptors and the Avengers released their fish appropriately:

[Linked Image]

This will make a nice GameRanger mission with the Avengers set as the AI friendly planes but with Interceptors to be downed by the Allied escorts smile


Fly EAW online at GameRanger: GameRanger Site

FaceBook Pages
UAW 160 downloads
EAW Club

Mark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.

I am now of an age at which I no longer need to suffer fools gladly
#4622565 - 03/12/23 08:53 AM Re: Testing torpedoes [Re: MrJelly]  
Joined: Aug 2000
Posts: 7,433
Moggy Offline
EAW Old Timer and Bodger
Moggy  Offline
EAW Old Timer and Bodger
Hotshot

Joined: Aug 2000
Posts: 7,433
A slit trench at RAF Gravesend
thumbsup

Will be looking at torpedo missions for one of the Italy/Balkan scenarios.

#4622567 - 03/12/23 09:16 AM Re: Testing torpedoes [Re: MrJelly]  
Joined: Apr 2002
Posts: 12,500
MrJelly Offline
Veteran
MrJelly  Offline
Veteran

Joined: Apr 2002
Posts: 12,500
Montagnac, L'Herault, France
I have a torpedo plane-set. The first loadout slot is supposed to be empty so that you get the unladen plane. However, in this plane-set the first slot has the torpedo loadout. There are no other slots, and this only applies to the torpedo carrying planes such as the Avenger and the B5N2 Kate.

Testing torpedo missions can be time consuming, especially if you are flying the plane with the torpedo.
Often the torpedo will sink when it is released, making the test a waste of time.

This routine in the UAW160 exe can help:

Code
	fp = fopen("Torpedo.mpf", "r");

		
	if (fp != NULL) 
	{ 
		fscanf(fp, "%d\n", &TorpMaxHeight); 
		fscanf(fp, "%d\n", &TorpMaxSpeed);

		fclose(fp); 
//		MPSetAlDone = 0; 
	}
	else
	{	TorpMaxHeight = 100;
		TorpMaxSpeed = 160; //153;
	}


By default the torpedo will sink if it released at a height of more than 100 feet or a speed of more than 160 knots.
However, if you make a "Torpedo.mpf" file with two values of 2000, and put it in the root folder, then they will only sink if they are released at a height of more than 2000 feet or a speed of more than 2000 knots.

In the screenie the height of the AI Avenger was 98 feet and its speed was 138 mph which is 120 knots so the code for the AI torpedo run was working very well.
It was host-only multiplayer, so I can set the altitudes for all the planes to a low value. This uses less time for getting the AI plane down to the correct height on the release run.

[Linked Image]



Fly EAW online at GameRanger: GameRanger Site

FaceBook Pages
UAW 160 downloads
EAW Club

Mark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.

I am now of an age at which I no longer need to suffer fools gladly
#4622572 - 03/12/23 11:17 AM Re: Testing torpedoes [Re: MrJelly]  
Joined: Feb 2006
Posts: 4,859
Rotton50 Offline
3DZ / campaign designer
Rotton50  Offline
3DZ / campaign designer
Senior Member

Joined: Feb 2006
Posts: 4,859
Cape Charles, Virginia, USA
Why not just make the settings in the torpedo.mpf default rather than have the player add the file to the root directory?


Heck, even paranoids have enemies.
#4622577 - 03/12/23 12:00 PM Re: Testing torpedoes [Re: MrJelly]  
Joined: Apr 2002
Posts: 12,500
MrJelly Offline
Veteran
MrJelly  Offline
Veteran

Joined: Apr 2002
Posts: 12,500
Montagnac, L'Herault, France
It is for the modder to add the file for testing purposes, not the player. I does not make sense for a plane to be able to release a torpedo from 500 feet at 300 mph.

My post was a reply to Moggy who wrote "Will be looking at torpedo missions for one of the Italy/Balkan scenarios."


Fly EAW online at GameRanger: GameRanger Site

FaceBook Pages
UAW 160 downloads
EAW Club

Mark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.

I am now of an age at which I no longer need to suffer fools gladly
#4622582 - 03/12/23 01:45 PM Re: Testing torpedoes [Re: MrJelly]  
Joined: Aug 2000
Posts: 7,433
Moggy Offline
EAW Old Timer and Bodger
Moggy  Offline
EAW Old Timer and Bodger
Hotshot

Joined: Aug 2000
Posts: 7,433
A slit trench at RAF Gravesend
Thanks, makes it easier to wrap my head around the torpedo side of things.

#4622608 - 03/12/23 08:06 PM Re: Testing torpedoes [Re: MrJelly]  
Joined: Feb 2006
Posts: 4,859
Rotton50 Offline
3DZ / campaign designer
Rotton50  Offline
3DZ / campaign designer
Senior Member

Joined: Feb 2006
Posts: 4,859
Cape Charles, Virginia, USA
Seems to me there should be a 'happy medium" built into the game, balancing game play vs real life.

Truth is, default torpedo runs in EAW have always been very difficult to perform because of the limitations of the EAW virtual world. Keeping the plane under 100 feet and 160 knots isn't easy to do. many of the planes involved are rather sluggish at that speed, making it too easy to go over the 100 foot limit or hit the water. It's not like in the real world where the pilot could look out to the side to judge his height.

Why not make it a default of say 250 feet and 200 knots? Regular players won't notice the difference (except maybe they'll have more successful drops) yet modders can add the .mpf file for testing purposes.

Just a thought.


Heck, even paranoids have enemies.

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Top 50 cities in the world by population
by PanzerMeyer. 07/21/24 10:28 PM
Had a close call this past Sunday
by NH2112. 07/20/24 03:55 AM
Happy Blue Friday
by DM. 07/19/24 08:30 AM
Bob Newhart was 94
by F4UDash4. 07/18/24 08:29 PM
Yahoo Dynasty football league
by WangoTango. 07/17/24 02:12 PM
The Last of "The Few" Turns 105
by F4UDash4. 07/17/24 11:48 AM
Dear Amazon... What Is The Deal?
by F4UDash4. 07/17/24 02:20 AM
This is getting bad....
by WangoTango. 07/15/24 08:35 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0