PDA

View Full Version : Copying an official mision and giving it a new name



theavonlady
Nov 12 2001, 12:49
I want to unpack an official BIS SP PBO file, make a few trivial modifications to the overview HTML, repack it as a new PBO and - here's the tricky part - have it show up under a different name than the mission's original name when you click on the OFP main menu's SINGLE PLAYER option.

Now, from what I can see, the mission name - at least for these official PBOs, is located in the OVERVIEW.HTML and the MISSION.SQM files. Changing it in the former does indeed change the title on the right page of the missions list. But I want it under a different name on the left side page.

I tried editing MISSIONS.SQM but that didn't help either.

Anyone knwo the answer?

Nov 12 2001, 13:15
BIS uses these "strings" ($STR_blabla). So you might want to check out the init.sqs or the stringtable. Just a thought.
Hope this helps you out Avon http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif

theavonlady
Nov 12 2001, 13:52
Nope. STR literals are found in both the mission.sqm file and the description.ext file but they do not refer to the mission name.

Damage Inc
Nov 12 2001, 14:04
Try changing it from the Intel section of the mission editor or saving it with a new name.

theavonlady
Nov 12 2001, 14:26
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Damage Inc on 6:04 pm on Nov. 12, 2001
Try changing it from the Intel section of the mission editor or saving it with a new name.[/QUOTE]<span id='postcolor'>

Are you referring to the OFP supplied mission?

1. What/where's the INTEL section?

2. It doesn't let you load official missions and it seems to not want to load unpacked missions with encrypted MISSION.SQM files.

Damage Inc
Nov 12 2001, 14:28
Decrypt the mission.sqm. I'm referring to the OFP editor, and the Intel screen is the screen where you change the weather and stuff like that.

theavonlady
Nov 12 2001, 16:17
Well folks, I figured it out. In the encrypted MISSION.SQM file, there is a substitutable string variable that is looked up in file OFP\BIN\STRINGTABLE.CSV. This is done because the table has translations for the mission name in all supported languages. I'm will to forgo that.

So all I did was manually edit MISSION.SQM and replace the variable, @<hidden> (where "xx" is a unique arbitrary identifier) with the name I wanted to give the mission.

All's packed back to PBOs and tested. Works like a charm.

I'll be posting a link later for the Winter Kolgujev versions of the Bomberman, Lone Wolf and Sniper Team SP missions.

Thanks all and especially Shadow@<hidden> for the hint on the use of string variables. http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif