Jump to content
Sign in to follow this  
dr_eyeball

[Request] New command: serverMissions

Recommended Posts

Request:

It would be very useful now to have a command, like serverMissions, which will send the current list of missions on the server to the requesting client (or server).

 

Implementation:

eg: 

1. If obtaining the data and performing the transfer is efficient, then a normal command result can be used:

_missionList = serverMissions;
 

2. Or, if obtaining the file list might not be instant, so you could specify a variable name to save the results in, which may not be instant. eg: it may take 1 seconds to obtain and send the data, similar to a public variable.

eg:

serverMissions "var_name";
waitUntil {!isNil "var_name"};
3. Ideally, it would be good to be able to access other properties in every mission.pbo description.ext file, such as: author, class Header, gameType, class Params, etc.

 

Data syntax:

The suggested array format would be a 2 string record per mission, the mission name and pbo path:

[
  ["[M-30] Operation Dangerous v3", "sub-folder\mission_name.pbo"],
  ["this is the mission briefing name", "this is the pbo file name and folder"],
  ...
]
 

Purpose:

It would be used to:

  • display a list of missions to players, for voting purposes,
  • map preview purposes.
  • automatic mission launch execution via new server admin commands
When would it be beneficial to use?

Immediately. Some mods already have Mission Voting dialogs which currently have to manually maintain the list of missions which are "likely to be" on the server.

y3mR_Of3_rJ2cf6C89AOBiXb1ztqJuq2f0B-j2uS Screen shot 2

Foreseeable Problems:

1) The data array sent, might be quite large, but it would be up to the mod dev to manage any such potential issue, eg: such as only using it at the end of the game.

  • Like 2

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  

×