Jump to content
Sign in to follow this  
UllyB

GroundObjects syntax

Recommended Posts

I noticed that in some brought from SF1 or third party made patrol boats there is one more line added in the [Missiondata] section , in their dataini file, which won't appear in SF2  stock patrol boat's dataini files:

GroundObjectRole=WARSHIP
WarshipClass=Patrol_Boat

In SF2 stock patrol boat's files it just this line only:

GroundObjectRole=PATROL_BOAT

So, I am a little confused here. Is the second line ignored in SF2 engine/series or does  it still count ? If it does, what does that line exactly ? How does it affect that specific ground object ?

Thank you in advance!

Edited by UllyB

Share this post


Link to post
Share on other sites

Every ground object has a declaration GroundObjectRole=

The stock SF ground objects available are:

GroundObjectRole=TANK
GroundObjectRole=APC
GroundObjectRole=RECON
GroundObjectRole=ARTILLERY
GroundObjectRole=COMMAND
GroundObjectRole=MOBILE_AAA
GroundObjectRole=STATIC_AAA
GroundObjectRole=MOBILE_SAM
GroundObjectRole=STATIC_SAM
GroundObjectRole=EW_RADAR
GroundObjectRole=SAM_RADAR
GroundObjectRole=CARGO_SHIP
GroundObjectRole=PATROL_BOAT
GroundObjectRole=WARSHIP

Only WARSHIP ground objects require a declaration of  WarshipClass= 

The stock SF warship classes, which require a declaration of WarshipClass= are:

WarshipClass=AIRCRAFT_CARRIER
WarshipClass=CRUISER
WarshipClass=DESTROYER
WarshipClass=FRIGATE
WarshipClass=TRANSPORT

There is also WarshipClass=BATTLESHIP declaration available in the SF2 GroundObject.DLL, although no stock SF warships use it.

CARGO_SHIP and PATROL_BOAT ground objects do not require a WarshipClass= declaration. If there is one in patrol boat object you have it probably won't do any harm, but the line is not needed.

Edited by Gatling20
  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

I see , thank you for clearing this one.

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