Jump to content
Sign in to follow this  
Smoerble

Mission description in missions screen... localized?

Recommended Posts

When a user or admin is in the mission selection screen (see image):

The description of the text below the image is taken from the INTEL cuntionality in the editor (where you can et weather and day time etc).

My question: I would like to localize this text, so I need to set the name and the description of mission in a script. Description.ext seems not to contain these values or am I missing it? How to make a localized intro text in the missions text, when the mission is NOT loaded yet?

Share this post


Link to post
Share on other sites

I think you mean the overview text. In description.ext:

overviewText = "$STR_OverviewText";

About the mission name, you can do that from mission.sqm:

class Intel
{
briefingName=$STR_MissionName;
timeOfChanges=3600;
startWeather=0;
startWind=0.099999994;
startWaves=0.44999999;
forecastWeather=0.44999999;
forecastWind=0.099999994;
forecastWaves=0.099999994;
forecastLightnings=0.099999994;
wavesForced=1;
year=2017;
month=6;
day=7;
hour=18;
minute=25;
startFogDecay=0.013;
forecastFogDecay=0.013;
};

But, once you save the mission from the editor, it will consolidate the string containing the current localization, according to you current game language. You should instead pack the .pbo externally, so the end user would get the localization according to his game settings.

And remember that players will see anything prior to mission load according to the server language.

Share this post


Link to post
Share on other sites
And remember that players will see anything prior to mission load according to the server language.

Thanks a lot, I wasn't aware of that. Good to know, then I don't need to do the effort of manual packaging :).

Share this post


Link to post
Share on other sites

Now it should be used like this in mission.sqm:

briefingName="@STR_MISSION_NAME_SQM";

Actually now there is a hint in the mission editor saying how to use it, if you put the cursor over the mission name field.

Share this post


Link to post
Share on other sites

You can do the same for the others as well.

author = $STR_author;
onLoadName = $STR_onLoadName;
onLoadMission = $STR_onLoadMission;

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×