Jump to content
Linkorz

Extracting map name from a mission

Recommended Posts

I am trying to identify where in a missions PBO file the map is defined. Specifically, I have a server with several hundred missions on and I want to be able to list them by which map they take place on. I assume its defined within the SQM, but I cannot find where. It does not appear to be as simple as searching mission.sqm for 'altis' stratis' etc etc. If I can figure out where the information is, I can extract it programatically for all of the maps.

 

Does anyone know where it is defined? Thanks in advance

Share this post


Link to post
Share on other sites

If the mission is already a PBO file its listed in the name for example.."Mymission.Altis"..I dont even think its listed inside the pbo anywhere..the folder that gets packed has the map name but I think that becomes part of the PBO after its packed. In my server they are all listed alphabetically..listing them in a certain way won't affect how fast you load or find them when your setting up a mission as the only missions loaded when you select a certain Map are the ones for that map anyway...unless you re-name them all to "Mymission_1.Altis" and so on and so forth..thats what I do so I know what mission is the latest in the list.

 

 

Diesel

  • Like 1

Share this post


Link to post
Share on other sites

As DieselJC said, map is in the name of the folder the mission files are in or in the name of .pbo file, when it is packed.

Share this post


Link to post
Share on other sites

I had thought that the name in the filename was a convention rather than an actual part of the structure, so I didn't think it was trustworthy. Thanks for the clarification.

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

×