FSIC Messageboard
  Tech Talk
  What is the extended characted in unit names problem?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   What is the extended characted in unit names problem?
ArgonV
Pilot
posted 02-11- 01:57 PM     Click Here to See the Profile for ArgonV   Click Here to Email ArgonV     Edit/Delete Message   Reply w/Quote
I saw this posted in the Help section and I think this could be the problem I am having with Rhineland and some airfield/town names not showing correctly. (They are showing loadout.ppf text) Exactly what is this AND how is it fixed and what do I look for?

Thanks

IP: Logged

Pachy
Pilot
posted 02-11- 02:30 PM     Click Here to See the Profile for Pachy   Click Here to Email Pachy     Edit/Delete Message   Reply w/Quote
That's a bug in OpenPlane really. Or not a bug, a small design error with countless consequences.

The principle is (in programmer's terms): sometimes in ppf or mission files you have to have an openplane identifier that matches a quoted string constant. Quoted strings can be anything really, but openplane identifiers cannot, like in any programming language variable names are expected to follow some rules. Example:

in a mission file, you will find:

code:

msnSquadron ( "GC III 6" "GBM Bretagne")

msnGCIII6 ( msnCount 1 msnAircraft "p39" msnFormation "strVIC" msnLoadOut "Guns"
msnGasLevel 200 msnAllegiance "Allied" msnAggressionLevel 0.50 msnLoyaltyLevel
0.50 msnMoraleLevel 0.50 msnSanityLevel 0.50 msnSkillLevel 0.50 msnCoordinate (
51017 -48789 ) msnVelocity 0 msnAltitude 0 msnHeading 0 msnCountry "strFrance"
msnSquadron "squadrons/France/squad10.ppf" msnRibbons "France/Dover/RIBBON#01.BMP" )

msnGBMBretagne ( msnCount 3 msnAircraft "b26" msnFormation "strVIC" msnLoadOut "Guns"
msnGasLevel 1000 msnAllegiance "Allied" msnAggressionLevel 0.50 msnLoyaltyLevel
0.50 msnMoraleLevel 0.50 msnSanityLevel 0.50 msnSkillLevel 0.50 msnCoordinate ( 51686 -46784 ) msnVelocity 300 msnAltitude
20000 msnHeading 0 msnAirfield "airfield7" msnCountry "strFrance" msnSquadron "squadrons/France/squad03.ppf"
msnRibbons "France/Dover/RIBBON#01.BMP" )


in this example the OpenPlane engine expects to find msnMySquad for the squadron "My Squad". If, for historical accuracy's sake, we had chosen to call the 3ème Groupe de Chasse of the 6ème Escadre by its proper Armée de l'Air name, "GC III/6", the mission editor would have generated :

code:
msnGCIII/6 (  msnCount 1  msnAircraft "p39" msnBlah msnBlah msnBlah 

Blam! Of course, msnGCIII/6 is not a proper variable name (as in most programming languages, only english standard letters, numerals and "_" are allowed). Result: you can't fly this unit in the mission.

Left as an excercise to the reader: If you have Nations V2, seach your StringTable.ppf and find out why a fix is needed for the French version of the game.

[This message has been edited by Pachy (edited 02-11-2001).]

[This message has been edited by Pachy (edited 02-11-2001).]

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c