Jump to content
Sign in to follow this  
Vigilant

How to add SAM sites?

Recommended Posts

Hello,

I need to add SAM sites with specific types of Launchers/Radars to the GermanyCE map. I was unable to find any tutorial about this. Drawing inspiration form original TW work and Mr. Bell's HAWK mod i was able to make this:

 

germanyCE_types.ini

 

[TargetType106]

Name=SA-5RD

FullName=SquarePair Radar

TargetType=SAM_RADAR

ActiveYear=0

TargetValue=300

UseGroundObject=TRUE

GroundObjectType=SquarePair

RepairRate=0.555

StartDetectChance=80

StartIdentifiedChance=20

IncreaseDetectChanceKey=10

MaxVisibleDist=8000.0

DestroyedEffect=SmallRocketGroundExplosion

SecondaryEffect=VehicleFireEffect

SecondaryChance=50

 

[TargetType107]

Name=SA-5L

FullName=SA-5 Launcher

TargetType=SAM_LAUNCHER

ActiveYear=0

TargetValue=200

UseGroundObject=TRUE

GroundObjectType=SA-5L

RepairRate=0.555

StartDetectChance=20

StartIdentifiedChance=0

IncreaseDetectChanceKey=0

MaxVisibleDist=8000.0

DestroyedEffect=SmallRocketGroundExplosion

SecondaryEffect=VehicleFireEffect

SecondaryChance=50

 

germanyCE_targets.ini:

 

[TargetArea390]

Name=Klondajk SA-5 Site

Position=696902,378229

Radius=3000.000

ActiveYear=01/01/1985

Location=2

Alignment=ENEMY

Target[001].Type=SA-5RD

Target[001].Offset=141.000,570.000

Target[001].Heading=265

Target[001].ActiveDate=01/01/1985

Target[002].Type=SA-5RD

Target[002].Offset=320.000,550.000

Target[002].Heading=220

Target[002].ActiveDate=01/01/1985

Target[003].Type=SA-5RD

Target[003].Offset=390.000,383.000

Target[003].Heading=185

Target[003].ActiveDate=01/01/1985

Target[004].Type=SA-5L

Target[004].Offset=-490.0,217.000

Target[004].Heading=265

Target[004].ActiveDate=01/01/1985

Target[005].Type=SA-5L

Target[005].Offset=-415.000,277.000

Target[005].Heading=265

Target[005].ActiveDate=01/01/1985

Target[006].Type=SA-5L

Target[006].Offset=-318.000,277.000

Target[006].Heading=265

Target[006].ActiveDate=01/01/1985

Target[007].Type=SA-5L

Target[007].Offset=-445.000,52.000

Target[007].Heading=265

Target[007].ActiveDate=01/01/1985

Target[008].Type=SA-5L

Target[008].Offset=-350.000,42.000

Target[008].Heading=265

Target[008].ActiveDate=01/01/1985

Target[009].Type=SA-5L

Target[009].Offset=-268.000,97.000

Target[009].Heading=265

Target[009].ActiveDate=01/01/1985

Target[010].Type=SA-5L

Target[010].Offset=-245.000,-45.000

Target[010].Heading=220

Target[010].ActiveDate=01/01/1985

Target[011].Type=SA-5L

Target[011].Offset=-335.000,-100.000

Target[011].Heading=220

Target[011].ActiveDate=01/01/1985

Target[012].Type=SA-5L

Target[012].Offset=-105.000,-155.000

Target[012].Heading=220

Target[012].ActiveDate=01/01/1985

Target[013].Type=SA-5L

Target[013].Offset=-365.000,-295.000

Target[013].Heading=220

Target[013].ActiveDate=01/01/1985

Target[014].Type=SA-5L

Target[014].Offset=-220.000,-305.000

Target[014].Heading=220

Target[014].ActiveDate=01/01/1985

Target[015].Type=SA-5L

Target[015].Offset=-140.000,-245.000

Target[015].Heading=220

Target[015].ActiveDate=01/01/1985

Target[016].Type=SA-5L

Target[016].Offset=33.000,-138.000

Target[016].Heading=185

Target[016].ActiveDate=01/01/1985

Target[017].Type=SA-5L

Target[017].Offset=-5.000,-229.000

Target[017].Heading=185

Target[017].ActiveDate=01/01/1985

Target[018].Type=SA-5L

Target[018].Offset=26.000,-324.000

Target[018].Heading=185

Target[018].ActiveDate=01/01/1985

Target[019].Type=SA-5L

Target[019].Offset=214.000,-142.000

Target[019].Heading=185

Target[019].ActiveDate=01/01/1985

Target[020].Type=SA-5L

Target[020].Offset=242.000,-244.000

Target[020].Heading=185

Target[020].ActiveDate=01/01/1985

Target[021].Type=SA-5L

Target[021].Offset=205.000,-330.000

Target[021].Heading=185

Target[021].ActiveDate=01/01/1985

 

But it has several problems:

The site won't show in mission. If i replace the Types with generic SAMradar and SAM launcher, then the site will show, but there are no missiles on the launchers.

Also one radar and one launcher are misplaced.

Any help will be much appreciated.

Share this post


Link to post
Share on other sites

Unfortunately that doesn't solve my problem. That tutorial concerns adding a textured Lod into a terrain. I need to add a GroundObject. The _types ini is probably wrong and there is almost no explanation about that file/parameters.

Share this post


Link to post
Share on other sites

Hey eh, have you checked the Knowledge Base?

Share this post


Link to post
Share on other sites

Yes, i have checked the Knowledge base. Yes, I've found Bunyap's tutorial and no it didn't help me. Is there something i've missed?

Edited by Vigilant

Share this post


Link to post
Share on other sites
Is there something i've missed?

 

Most definately.

That turorial covers adding a ground object.Adding a SAM site is the same as adding a shipwreck, or parked plane or Grandmas outhouse. With one additional step...

 

You're creating a new "target area", which is no different. Finding the cordinates (the 'camera position') Other than laying out all the objects and figuring out their offsets and facing.

 

Here's a little quote from the shipwreck's doc that might be helpfull...bold added for this example

 

You can see, in the 'factoryplace.jpg' above, the top line is the coordinate of “camera”. The little white "X" is the actual ‘offset from center’ of the target area. This is an important line, "Cam Pos" when creating a new target area. This view not only gives the grid, but the name of the target area, as defined in the '**_targets.ini. You can see the line tagged "Nearest Target Area="

 

The critical wording here is "creating a new target area"

 

You post above show's you done so...but you must remember the game only populates the region when the player is close by -- I don't know the exact distance. So if you go wandering over there, say the sites near Berlin, and you're flying over Paris, it aint gonna show.

 

I'm assuming the operational dates for the launchers and radar are correct?? I'd also suggest loosing the rest of the date info, just use "1985" the game seems to "assume" January 1st. You might also want to change the "ActiveYear=" in the types ini data to match that shown in the data inis for the SquarePair and Gammon.

 

Make sure the "Name" matches the folder and/or ini name of the object your trying to add. The full name can be anything you want. That Name should also match the LOD name, to be safe.

 

I had no problems getting the Gammons to show in the SoCal map -as a specificed target type and location ... don't fly too far south from San Deigo...these f***ers have realllly long legs!!

 

Wrench

kevin stein

Share this post


Link to post
Share on other sites
You post above show's you done so...but you must remember the game only populates the region when the player is close by -- I don't know the exact distance. So if you go wandering over there, say the sites near Berlin, and you're flying over Paris, it aint gonna show.

I know where the site is, so i can make observation flypass. And it is not there. But what confuses me most is, that if i replace SA-5L/RL with SAMRadar and SAMlauncher. The site will show and will be populated with radars and launchers. But there are no missiles on the lauchers.

 

Make sure the "Name" matches the folder and/or ini name of the object your trying to add. The full name can be anything you want. That Name should also match the LOD name, to be safe.

 

No change.

 

I had no problems getting the Gammons to show in the SoCal map -as a specificed target type and location ... don't fly too far south from San Deigo...these f***ers have realllly long legs!!

Well, the Gammons normaly show on other sites. But not on this one.

Anyway, thanks for the help.

Share this post


Link to post
Share on other sites

Read your post. and had similar problems.

Take note of all wrench'scomments.

MAke also sure that the missiles AND SAM-Lanunchers AND Sam-RADAR belong to the same year-span.

Actually, I observed, but I might be wrong, in a sam site, should the system pick a sam radar without available launchers because of the date, only the radar will appear witout the luanchers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..