Jump to content

Cyr

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Everything posted by Cyr

  1. Has anyone used copyToClipboard and copyFromClipboard as a way of passing data from one Multiplayer mission to another? I am writing a 2 part mission where the first is Reconnaissance and the second is a follow on Assault. These missions are intended for organised Clan play. At the debrief of the first mission there will be a "Submit Reconnaissance Report" dialog button for the Team Leader. This will run a script that compiles an array of completed tasks, Threat force status and a bunch of other stuff, wraps it in a string and then prompts the team leader to ALT + TAB out of the game, open a fresh .txt file and CTRL + V the data. It will tell them to name and save the .txt. At the Briefing of the follow on mission a Dialog will prompt the team leader to ALT + TAB out, open the saved .txt, CTRL + C the data, go back into the game and press the "Retrieve Reconnaissance Report" Dialog button. This will then CopyFromClipboard the string, strip out the Array and read it. If there is no Data it will default to a preset Array. If it works it means that the missions can be played on separate weekends and yet maintain a more `campaign' like feel. The mission read-me will come with several sample arrays so a Clan can `tweak' the Data to suit if they want.
  2. Thanks Dmitri That method does not achieve the result that I want. This is because it will not save any data from one mission to the next on a dedicated server. What I am proposing is a bit clunky but it does mean that variables can be passed from the first to the second and that these variables can be stored for any amount of time between playing the two missions. Let me give you an example... Mission 1: Recon Tasks: Locate Static Defence 1, Locate Static Defence 2, Locate Static Defence 3, Count OPFOR Armoured Vehicles, Exfiltrate covertly. CopyToClipboard Array String: "CyrTasks = [[T1complete = 1, T2complete = 1, T3complete = 1, T4complete = 1, T5complete = 0]]" NOTE: 1 = Complete So... During the briefing of Mission2 the TL is prompted to CTRL + C the string to clipboard. If this is done it is then read by a script using CopyFromClipboard. In the above example all of the tasks were complete except the last one. The players located all of the static defenses and correctly counted the number of OPFOR armoured vehicles. They did not exfiltrate covertly so the OPFOR were aware of their activities. As a result, the Mission2 Map is populated with Markers indicating the locations of the Static defences. The defenses themselves have been moved and the armoured support of the OPFOR has been beefed up because they are anticipating the assault. Using Clipboard has allowed a more dynamic flow from one mission to the next where the outcomes of one will influence the other. True, it is a bit clunky but I am hoping that it will give an experience where the players feel that their actions influence the outcomes over a series of coop missions. PS: this is a very simple example. I plan on passing a far larger range of variables with several arrays nested in the main array.
  3. I have searched for this and no luck so now asking. I have scripted for OFP and ARMA in the past and now starting with ARMA2. I see that there are commands for accessing config data from a script. Is it possible to write to a config, changing the values in it, from a script? Thx
  4. Awww... thats tragic. Had a bunch of ideas in development based on doing that.
×