Jump to content
Sign in to follow this  
Eagle114th

Very odd problems with SpecificStationCode= (SOLVED)

Recommended Posts

Hello everyone,

F-4K and F-4M are the first aircraft I am facing problems with  SpecificStationCode.  Whenever I use SpecificStationCode, the weapons refuse to show up in loadout screen. it works perfectly with other F-4s (Iran, South Korea, and others).  

For example, here is the codes:

 


[SidewinderStation1]
SystemType=WEAPON_STATION
StationID=10
StationGroupID=2
GroupLimit=3
StationType=EXTERNAL
AttachmentPosition=-2.24,2.63,-1.18
AttachmentAngles=0.0,-1.0,85.0
LoadLimit=120
DiameterLimit=0.15
AllowedWeaponClass=IRM
AttachmentType=NATO,UK
ModelNodeName=missile_rails_L
PylonMass=39.46
PylonDragArea=0.001
LaunchRailNodeName=
MinExtentPosition=
MaxExtentPosition=
SpecificStationCode=IRM_UK

[SidewinderStation2]
SystemType=WEAPON_STATION
StationID=11
StationGroupID=2
GroupLimit=3
StationType=EXTERNAL
AttachmentPosition= 2.24,2.63,-1.18
AttachmentAngles=0.0,-1.0,-85.0
LoadLimit=120
DiameterLimit=0.15
AllowedWeaponClass=IRM
AttachmentType=NATO,UK
ModelNodeName=missile_rails_R
PylonMass=39.46
PylonDragArea=0.001
LaunchRailNodeName=
MinExtentPosition=
MaxExtentPosition=
SpecificStationCode=IRM_UK

[SidewinderStation3]
SystemType=WEAPON_STATION
StationID=12
StationGroupID=2
GroupLimit=3
StationType=EXTERNAL
AttachmentPosition=-1.86,2.63,-1.18
AttachmentAngles=0.0,-1.0,-85.0
LoadLimit=120
DiameterLimit=0.15
AllowedWeaponClass=IRM
AttachmentType=NATO,UK
ModelNodeName=missile_rails_L
PylonMass=39.46
PylonDragArea=0.001
LaunchRailNodeName=
MinExtentPosition=
MaxExtentPosition=
SpecificStationCode=IRM_UK

[SidewinderStation4]
SystemType=WEAPON_STATION
StationID=13
StationGroupID=2
GroupLimit=3
StationType=EXTERNAL
AttachmentPosition=1.86,2.63,-1.18
AttachmentAngles=0.0,-1.0,85.0
LoadLimit=120
DiameterLimit=0.15
AllowedWeaponClass=IRM
AttachmentType=NATO,UK
ModelNodeName=missile_rails_R
PylonMass=39.46
PylonDragArea=0.001
LaunchRailNodeName=
MinExtentPosition=
MaxExtentPosition=
SpecificStationCode=IRM_UK

And this is AIM-9B codes as an examlpe:
 

[WeaponData001]
TypeName=AIM-9B_UK
FullName=[IRM] AIM-9B Sidewinder
ModelName=aim-9b
Mass=70.110001
Diameter=0.127000
Length=2.830000
SubsonicDragCoeff=0.677000
SupersonicDragCoeff=2.310000
AttachmentType=NATO,UK
SpecificStationCode=IRM_UK
NationName=RAF
StartYear=1956
EndYear=1975
Availability=3
BaseQuantity=4
Exported=FALSE
ExportStartYear=
ExportEndYear=
ExportAvailability=2
WeaponDataType=1
RailLaunched=TRUE
RocketPod=FALSE
Retarded=FALSE
FinStabilized=TRUE
SpinStabilized=FALSE
HasGrowl=TRUE
EffectClassName=SmallMissileEffects
ReleaseDelay=0.900000
WarheadType=0
Explosives=6.200000
FusingDistance=9.000000
ClusterBomblets=0
ClusterDispersion=0.000000
GuidanceType=10
Accuracy=65
MaxTurnRate=11.000000
MaxLaunchG=2.000000
LockonChance=65
LaunchReliability=70
ArmingTime=0.500000
SeekerFOV=4.000000
SeekerGimbleLimit=25.000000
SeekerTrackRate=11.000000
SeekerRange=4800.000000
CLmax=14.000000
MinFreq=0.000000
MaxFreq=0.000000
MinLaunchRange=400.000000
MaxLaunchRange=4800.000000
Duration=20.000000
CounterCountermeasure=40.000000
NoiseRejection=10.000000
CapabilityFlags=0x00000100
LoftAngle=0.000000
DescentAngle=0.000000
MaxLoftAltitude=0.000000
BoosterStart=0.000000
BoosterDuration=2.200000
BoosterAccel=24.240000
BoosterEffectName=MissileFireEffect
BoosterSoundName=Missile
BoosterNodeName=
BoosterPosition=0.000000,-1.456000,0.000000
SustainerDuration=0.000000
SustainerAccel=0.000000
SustainerEffectName=
SustainerSoundName=
SustainerPosition=0.000000,-1.456000,0.000000
InFlightEffectName=MissileInFlightEffect
InFlightSoundName=
ReleaseAnimationID=1
ReleaseAnimationTime=0.000000
ReleaseAnimationDelay=0.000000
EODisplayFlags=0
CEP=5.000000


What is wrong with my code? I am literally pulling my hairs after trying to make this work for hours.  May I ask for someone to show me what I am doing wrong with the codes.

Thank you.


Eagle114th

Edited by Eagle114th

Share this post


Link to post
Share on other sites

Does it work if you just remove the "IRM_UK" in the aircraft data.ini and the AIM data.ini ?

  • Thanks 1

Share this post


Link to post
Share on other sites
47 minutes ago, pvince said:

Does it work if you just remove the "IRM_UK" in the aircraft data.ini and the AIM data.ini ?

Yes, it does.  It turns out that if you use SpecificStationCode with code "UK", it will NOT work at all.  And I realized why;  the "UK" is not even part of NATION, it is probably reserved codes written by TK inside the game engine that handles UK ordinances.  And anything that is not listed in NATION.ini, you can not use SpecificStation.  


Eagle114th

Share this post


Link to post
Share on other sites

Looks like I fixed the problems by changing "UK" to RAF,RoyalNavy and the weapon now appears on loadout screen.  Here is the codes:

 


[SidewinderStation1]
SystemType=WEAPON_STATION
StationID=10
StationGroupID=2
GroupLimit=3
StationType=EXTERNAL
AttachmentPosition=-2.24,2.63,-1.18
AttachmentAngles=0.0,-1.0,85.0
LoadLimit=120
DiameterLimit=0.15
AllowedWeaponClass=IRM
AttachmentType=RAF,RoyalNavy
ModelNodeName=missile_rails_L
PylonMass=39.46
PylonDragArea=0.001
LaunchRailNodeName=
MinExtentPosition=
MaxExtentPosition=
SpecificStationCode=RAF_RN_IRM

[SidewinderStation2]
SystemType=WEAPON_STATION
StationID=11
StationGroupID=2
GroupLimit=3
StationType=EXTERNAL
AttachmentPosition= 2.24,2.63,-1.18
AttachmentAngles=0.0,-1.0,-85.0
LoadLimit=120
DiameterLimit=0.15
AllowedWeaponClass=IRM
AttachmentType=RAF,RoyalNavy
ModelNodeName=missile_rails_R
PylonMass=39.46
PylonDragArea=0.001
LaunchRailNodeName=
MinExtentPosition=
MaxExtentPosition=
SpecificStationCode=RAF_RN_IRM

[SidewinderStation3]
SystemType=WEAPON_STATION
StationID=12
StationGroupID=2
GroupLimit=3
StationType=EXTERNAL
AttachmentPosition=-1.86,2.63,-1.18
AttachmentAngles=0.0,-1.0,-85.0
LoadLimit=120
DiameterLimit=0.15
AllowedWeaponClass=IRM
AttachmentType=RAF,RoyalNavy
ModelNodeName=missile_rails_L
PylonMass=39.46
PylonDragArea=0.001
LaunchRailNodeName=
MinExtentPosition=
MaxExtentPosition=
SpecificStationCode=RAF_RN_IRM

[SidewinderStation4]
SystemType=WEAPON_STATION
StationID=13
StationGroupID=2
GroupLimit=3
StationType=EXTERNAL
AttachmentPosition= 1.86,2.63,-1.18
AttachmentAngles=0.0,-1.0,85.0
LoadLimit=120
DiameterLimit=0.15
AllowedWeaponClass=IRM
AttachmentType=RAF,RoyalNavy
ModelNodeName=missile_rails_R
PylonMass=39.46
PylonDragArea=0.001
LaunchRailNodeName=
MinExtentPosition=
MaxExtentPosition=
SpecificStationCode=RAF_RN_IRM


 

[WeaponData001]
TypeName=AIM-9Gswift
FullName=[IRM] AIM-9G (SWIFT) Sidewinder UK
ModelName=AIM-9d
Mass=89.360001
Diameter=0.127000
Length=2.830000
SubsonicDragCoeff=0.689000
SupersonicDragCoeff=0.811000
AttachmentType=NATO,RAF,RoyalNavy
SpecificStationCode=RAF_RN_IRM
NationName=RAF
StartYear=1983
EndYear=1999
Availability=2
BaseQuantity=4
Exported=FALSE
ExportStartYear=0
ExportEndYear=0
ExportAvailability=0
WeaponDataType=1
RailLaunched=TRUE
RocketPod=FALSE
Retarded=FALSE
FinStabilized=TRUE
SpinStabilized=FALSE
HasGrowl=TRUE
EffectClassName=SmallMissileEffects
ReleaseDelay=0.800000
WarheadType=0
Explosives=5.000000
FusingDistance=6.000000
ClusterBomblets=0
ClusterDispersion=0.000000
GuidanceType=10
Accuracy=70
MaxTurnRate=18.000000
MaxLaunchG=10.000000
LockonChance=70
LaunchReliability=80
ArmingTime=0.500000
SeekerFOV=2.500000
SeekerGimbleLimit=40.000000
SeekerTrackRate=12.000000
SeekerRange=16000.000000
CLmax=14.000000
MinFreq=0.000000
MaxFreq=0.000000
MinLaunchRange=400.000000
MaxLaunchRange=16000.000000
Duration=55.000000
CounterCountermeasure=80.000000
NoiseRejection=60.000000
CapabilityFlags=0x00000280
LoftAngle=0.000000
DescentAngle=0.000000
MaxLoftAltitude=0.000000
BoosterStart=0.000000
BoosterDuration=4.700000
BoosterAccel=13.900000
BoosterEffectName=MissileFireEffect
BoosterSoundName=Missile
BoosterNodeName=
BoosterPosition=0.000000,-1.456000,0.000000
SustainerDuration=0.000000
SustainerAccel=0.000000
SustainerEffectName=
SustainerSoundName=
SustainerPosition=0.000000,-1.456000,0.000000
InFlightEffectName=MissileInFlightEffect
InFlightSoundName=
ReleaseAnimationID=1
ReleaseAnimationTime=0.000000
ReleaseAnimationDelay=0.000000
EODisplayFlags=0
CEP=5.000000

Now I can see AIM-9G (SWIFT) without seeing another missiles, which is a good news!

The most important note I learn today about SpecificCodes, only use what is shown in NATION.ini.  Anything that is not there, do NOT use it.  the code "UK" won't work with SpecificStationCode=".


Eagle114th

Share this post


Link to post
Share on other sites

This is even more strange;  My new codes posted abover does NOT work with F-4K or F-4K_75.  It still work with F-4K_80.

TW F-4K and F-4K_75 are glitchy.  F-4K_80 is stable.  So be careful when messing with F-4K and F-4K_75 weapon station codes.  I am not going to mess with any UK F-4s, I'll leave them be and only tweak the loadout.


Eagle114th

Edited by Eagle114th

Share this post


Link to post
Share on other sites

For Nation or AttachmentType, yes, UK is not a valid one. But for SpecificStationCode, you can use any characters string you want.

Share this post


Link to post
Share on other sites
27 minutes ago, pvince said:

For Nation or AttachmentType, yes, UK is not a valid one. But for SpecificStationCode, you can use any characters string you want.

The problem with F-4K and F-4K_75 is that if you use SpecificStationCode, their weapon station no longer works or the weapon does not show up on the loadout screen, even when you change the nation or attachmentType.  I am able to use SpecificStationCode with F-4K_80 successfully.  That surprised me.  Hence I think that F-4K and F-4K_75 are glitchy and need patches to fix it.


Eagle114th

Share this post


Link to post
Share on other sites

I have to correct: "RAF" for Nation, but "UK" code for AttachmentType is correct. Sorry for confusing.

For your problem, if the couple (aircraft,weapon) works without SpecificStationCode, it will work again if you apply the same SpecificStationCode in both. If not, make sure you have it on the right weapon_station (for example test with a "StationGroup" that has only this one in, and disable the loadout.ini, so that no doubt), or no typo.

  • Like 1

Share this post


Link to post
Share on other sites
3 minutes ago, pvince said:

I have to correct: "RAF" for Nation, but "UK" code for AttachmentType is correct. Sorry for confusing.

For your problem, if the couple (aircraft,weapon) works without SpecificStationCode, it will work again if you apply the same SpecificStationCode in both. If not, make sure you have it on the right weapon_station (for example test with a "StationGroup" that has only this one in, and disable the loadout.ini, so that no doubt), or no typo.

I appreciate your help.  May I ask if you can experiment it on F-4K, F-4K_75, and F-4K_80?  I have done the same with all of them.  Only F-4K_80 works.  

I will re-test with all three planes.  


Eagle114th

Share this post


Link to post
Share on other sites

I have not those aircraft on my install. But you can post the data.ini of them, I will try.

Share this post


Link to post
Share on other sites
20 minutes ago, pvince said:

I have not those aircraft on my install. But you can post the data.ini of them, I will try.

Ah I see.  Since you don't have F-4K and F-4M DLC, you can't help me in this situation.  I need someone who has F-4K and F-4M DLC to see if their F_4K and F-4K_75 are bugged too.

I still appreciate your help.


Cheers!

 

Share this post


Link to post
Share on other sites

I have the F-4M

Share this post


Link to post
Share on other sites

BTW, F-4K is RoyalNavy right ? and your missile is RAF. Then you need Exported=TRUE, because for the game, RAF and RoyalNavy are not the same Nation.

  • Thanks 1

Share this post


Link to post
Share on other sites
10 minutes ago, pvince said:

BTW, F-4K is RoyalNavy right ? and your missile is RAF. Then you need Exported=TRUE, because for the game, RAF and RoyalNavy are not the same Nation.

AH! I SEE NOW!  This may have solved the problems I was having.  I will test it.  (Fingers crossed)


Eagle114th

Share this post


Link to post
Share on other sites
8 hours ago, Eagle114th said:

Yes, it does.  It turns out that if you use SpecificStationCode with code "UK", it will NOT work at all.  And I realized why;  the "UK" is not even part of NATION, it is probably reserved codes written by TK inside the game engine that handles UK ordinances.  And anything that is not listed in NATION.ini, you can not use SpecificStation.  


Eagle114th

sorry, but wrong

specific station just has to match between weapon and data.ini. i used a specific station code to make the drogue basket for the KC-135 as "weapon", and named it "Eddie". so it has nothing to do with the Nations ini.

 

Edited by daddyairplanes
  • Like 1

Share this post


Link to post
Share on other sites
6 hours ago, daddyairplanes said:

sorry, but wrong

specific station just has to match between weapon and data.ini. i used a specific station code to make the drogue basket for the KC-135 as "weapon", and named it "Eddie". so it has nothing to do with the Nations ini.

 

That is noted and thank you for correcting me.  As always, I learn new things everyday.


Cheers!

Share this post


Link to post
Share on other sites
9 hours ago, pvince said:

BTW, F-4K is RoyalNavy right ? and your missile is RAF. Then you need Exported=TRUE, because for the game, RAF and RoyalNavy are not the same Nation.

YOU ARE MY HERO!  I just realized why it didn't work with F-4K and F-4K_75 while works with F-4K_80.  F-4K and F-4K_75 is Royal Navy while F-4K_80 is Royal Air Force.  And by seting Exported to True, now it works with ALL F-4K (both RN and RAF)!  I see now, UK is an unique code designed to have weapons working with both RN and RAF at the same time.  I am joyed now!

Thank you very much for the help.  I learned an important lesson today.


Cheers!

Edited by Eagle114th
  • Thanks 1

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