Jump to content

Photo
- - - - -

FHQ TaskTracker


  • Please log in to reply
336 replies to this topic
Thread Starter
Varanon
Varanon

    Master Gunnery Sergeant

  • Members
  • 1289 posts

#1

Posted 25 March 2013 - 20:00

Hey all,

I've decided to release a script that I mainly wrote for my own missions but since I was told that it could be interesting for others, I decided to release it.

The script is the FHQ TaskTracker, as the name implies, it's used to handle and maintain mission tasks and briefings. It can automatically keep track of task states, briefing text, dynamically add both tasks and briefings, and distribute them over the network to clients that join in progress. Also supports the use of parented tasks, and is compatible to both ArmA 2 and Arma 3 (it will take care to add the tasks and briefing entries in the correct order as specified)

The archive also contains documentation on it's use.

New version available:
V1.1 - Adds Arma 3 notification support, as well as a demo mission to explain the use of the script in a practical example
V2.0 - Complete rewrite. Adds support for JIP into disabled units/respawn
V2.1 - Fixed a bug in task creation notifications
V2.2 - Fixed a bug in task creation notification (for real this time). Thanks to FortuN for pointing this out.

Feedback welcome.

Download:
FriedenHQ
Armaholic

Edited by Varanon, 21 January 2014 - 13:25.
Added link to modified version

Posted ImagePosted Image
Missions: FHQ Arma 3 Coop missions | FHQ Coop Pack Arma 2: #1 #2
Join CUP for a unified Arma2 asset porting: Forum Website

foxhound
foxhound

    Retired Moderator

  • Members
  • 11360 posts

#2

Posted 26 March 2013 - 21:37

Release frontpaged on the Armaholic homepage.

Posted Image
FHQ TaskTracker [ALPHA]


Visit Armaholic.com | Visit Carriercommandaholic.com
Posted Image
Public FTP available, just check the Armaholic.com FAQ.

HMM........wonder what it is huh?

Thread Starter
Varanon
Varanon

    Master Gunnery Sergeant

  • Members
  • 1289 posts

#3

Posted 26 March 2013 - 21:59

Great, thanks Foxhound
Posted ImagePosted Image
Missions: FHQ Arma 3 Coop missions | FHQ Coop Pack Arma 2: #1 #2
Join CUP for a unified Arma2 asset porting: Forum Website

Phantom Six
Phantom Six

    Master Sergeant

  • Members
  • 689 posts

#4

Posted 27 March 2013 - 05:15

I highly recommend this script for people who want to create task and briefing a fool-proof way without JIP problems of people not being able to see briefings and tasks. It's not that hard to use either.
Join CUP, the Commmunity Upgrade Project, or spread the word today. Help port over Arma 1/2 assets over to Arma 3 in high quality. http://forums.bistud...Upgrade-Project
Portfolio Site
Join CiA Coop Nights

rundll.exe
rundll.exe

    Master Gunnery Sergeant

  • Members
  • 1194 posts

#5

Posted 27 March 2013 - 10:36

Congrats on the release, I hope that we will see proper briefings and properly ordered tasks in missions from now on!
Join the CiA coop nights!

ArmA II’s interface, while powerful, is as intuitive as shitting in a wind tunnel. Immense reserves of patience are required to get the most out of it.


dirty haz
dirty haz

    Master Sergeant

  • Members
  • 613 posts

#6

Posted 27 March 2013 - 15:04

I am stuck even after reading through the .pdf file, can you upload a example mission please ?

Dirty Haz

Edited by Dirty Haz, 02 May 2013 - 09:12.


Alwarren
Alwarren

    Warrant Officer

  • Members
  • 2640 posts

#7

Posted 27 March 2013 - 15:11

I am stuck even after reading through the .pdf file, can you upload a example mission please ?


What are you stuck with?
Posted Image Posted Image
Join the Community Upgrade Project (thread website)

dirty haz
dirty haz

    Master Sergeant

  • Members
  • 613 posts

#8

Posted 27 March 2013 - 16:24

Setting up the tasks... I learn better from example missions.

Dirty Haz

Edited by Dirty Haz, 02 May 2013 - 09:13.


Thread Starter
Varanon
Varanon

    Master Gunnery Sergeant

  • Members
  • 1289 posts

#9

Posted 27 March 2013 - 16:52

I'm about to make a new release (with the new A3 notification mechanism) and I'll include a sample mission.

You may also want to look at Phantom's site (see his signature), ha has a tutorial on creating missions and his examples use the TaskTracker
Posted ImagePosted Image
Missions: FHQ Arma 3 Coop missions | FHQ Coop Pack Arma 2: #1 #2
Join CUP for a unified Arma2 asset porting: Forum Website

Phantom Six
Phantom Six

    Master Sergeant

  • Members
  • 689 posts

#10

Posted 27 March 2013 - 22:24

http://phantommissio...riefingsqf.html there ya go. That page is still incomplete though, I still need to add more. I'm trying to make it newbie friendly as possible. I'll continue work on it next week when I'm finally on spring break.
Join CUP, the Commmunity Upgrade Project, or spread the word today. Help port over Arma 1/2 assets over to Arma 3 in high quality. http://forums.bistud...Upgrade-Project
Portfolio Site
Join CiA Coop Nights

TalTsinth
TalTsinth

    Private First Class

  • Members
  • 28 posts

#11

Posted 28 March 2013 - 01:25

It's pretty helpful but could you possible provide the briefing.sqf you talk about and show off in your little tutorial Phantom as I'm finding it difficult setting up one myself correctly.

Alwarren
Alwarren

    Warrant Officer

  • Members
  • 2640 posts

#12

Posted 28 March 2013 - 01:31

It's pretty helpful but could you possible provide the briefing.sqf you talk about and show off in your little tutorial Phantom as I'm finding it difficult setting up one myself correctly.


Huh? It's all there:

/*
 * some comments you see on the picture
 */
[
  west,
     ["Mission", 
           "Kill everything that moves"],
     ["Situation",
          "If it moves, shoot it!"]
] call FHQ_TT_addBriefing;

Just create a briefing.sqf, put the code from the tutorial page in it, and that's it.
Posted Image Posted Image
Join the Community Upgrade Project (thread website)

Phantom Six
Phantom Six

    Master Sergeant

  • Members
  • 689 posts

#13

Posted 28 March 2013 - 01:33

http://phantommissio.../tutorials.html if you want to download the template, the main page of the tutorial got it. I'll probably upload another template later too, not that the template here is outdated, but just to change a few things (not the briefing part though)
Join CUP, the Commmunity Upgrade Project, or spread the word today. Help port over Arma 1/2 assets over to Arma 3 in high quality. http://forums.bistud...Upgrade-Project
Portfolio Site
Join CiA Coop Nights

Thread Starter
Varanon
Varanon

    Master Gunnery Sergeant

  • Members
  • 1289 posts

#14

Posted 28 March 2013 - 01:34

It's pretty helpful but could you possible provide the briefing.sqf you talk about and show off in your little tutorial Phantom as I'm finding it difficult setting up one myself correctly.


You can basically retype it from Phantom's page. I don't understand what the problem is and what should be difficult to set up ?

/* Briefing
 * The briefing can be defined by calling FHQ_TT_addBriefing.
 * The array is built like this.
 * The first element should be a filter (side, group, faction, or a piece of script)
 * This is followed by pairs of strings, a head line, and an actual text.
 * Briefings are added in the order in which they appear for any unit that matches
 * the last filter.
 */
[
	west, 
		["Mission",
			"*** Describe the player's mission in few words ***"],
			
		["Situation",
			"*** Describe the situation, what lead to the current mission, and the current theatre of war ***"],
			
		["Execution",
			"*** Describe the intended way the mission should be carried out ***"],
			
		["Allied forces",
			"*** Describe additional stuff, like allied forces, intel, etc ***"],
			
		["Weather",
			"*** Describe the current and expected weather ***"],
			
		["Credits",
			"Mission by    <br/>"],
           
        ["Current Settings",
        	_currentMissionSettings]
] call FHQ_TT_addBriefing;

[
	FHQ_playerGroup,
   		["taskDestroy", "Got to two things", "Go to two things", ""],
        [["taskTarget1", "taskDestroy"], "Thing #1", "Thing #1", "", getMarkerPos "markTarget1", "assigned"],
        [["taskTarget2", "taskDestroy"], "Thing #2", "Thing #2", "", getMarkerPos "markTarget2"],
        ["taskExfil", "Get out", "Get out", "", getMarkerPos "markExfil"]        
] call FHQ_TT_addTasks;

Posted ImagePosted Image
Missions: FHQ Arma 3 Coop missions | FHQ Coop Pack Arma 2: #1 #2
Join CUP for a unified Arma2 asset porting: Forum Website

LSHD
LSHD

    Private First Class

  • Members
  • 12 posts

#15

Posted 28 March 2013 - 15:49

A quick question. Sorry if it has been answered before.
Does this script need to be installed on all clients to work?
Just double checking.



Sent from my phone

Thread Starter
Varanon
Varanon

    Master Gunnery Sergeant

  • Members
  • 1289 posts

#16

Posted 28 March 2013 - 16:34

No, it's not an addon. You copy it into your mission folder. When you're done with the mission and want to publish it, you save with "export to Multiplayer" or "Export to singleplayer", and it will become part of the .pbo file that you created in the process. So there is no need to distribute it, it will become part of the mission.
Posted ImagePosted Image
Missions: FHQ Arma 3 Coop missions | FHQ Coop Pack Arma 2: #1 #2
Join CUP for a unified Arma2 asset porting: Forum Website

TalTsinth
TalTsinth

    Private First Class

  • Members
  • 28 posts

#17

Posted 28 March 2013 - 17:10

Now that I've got the hang off using it I'd like to thank you Varanon and you too Phantom for the script and help respectively. It's fantastically easy now to set up those briefings and tasks for someone like me who's new to the scripting side of Arma. I do have one question though if your willing to help me out.

I'm trying to detect if if task2 has been Assigned and if so to complete it. As I mentioned I'm new to this so forgive me if it's something easy or I'm simply going about this the wrong way. I've read various resources and tutorials but just can't find anything detailed on 'if' checks.

	//Escaped in the Zodiac.
	_res = ["task2"] call FHQ_TT_getTaskState;
	if (toString _res == "Assigned") then
	{
		["task2", "Succeeded"] call FHQ_TT_setTaskState; 
	}
	else
	{
		""
	};


Thread Starter
Varanon
Varanon

    Master Gunnery Sergeant

  • Members
  • 1289 posts

#18

Posted 28 March 2013 - 18:21

Now that I've got the hang off using it I'd like to thank you Varanon and you too Phantom for the script and help respectively.


Good to hear!

Regarding your problem:

You don't need the "toString", the result of FHQ_TT_getTaskState is a string already. Note though that it's always all lower case, so the following would work:

if ( (["task2"] call FHQ_TT_getTaskState) == "assigned") then 
{
    ["task2", "succeeded"] call FHQ_TT_setTaskState;
};

I don't understand, though, why you want to make completion depend on the "assigned" state, though. Usually, you'd use a trigger and/or other checks for that.
Posted ImagePosted Image
Missions: FHQ Arma 3 Coop missions | FHQ Coop Pack Arma 2: #1 #2
Join CUP for a unified Arma2 asset porting: Forum Website

TalTsinth
TalTsinth

    Private First Class

  • Members
  • 28 posts

#19

Posted 28 March 2013 - 19:29

Good to hear!

Regarding your problem:

You don't need the "toString", the result of FHQ_TT_getTaskState is a string already. Note though that it's always all lower case, so the following would work:

if ( (["task2"] call FHQ_TT_getTaskState) == "assigned") then 
{
    ["task2", "succeeded"] call FHQ_TT_setTaskState;
};

I don't understand, though, why you want to make completion depend on the "assigned" state, though. Usually, you'd use a trigger and/or other checks for that.


Thank you that work's perfectly. The reason I'm checking for assignment of the task is due to being an optional, hidden, task. It will only appear if you've hit the right trigger for it. I want to move it to succeeded once you've hit another trigger. So I check to make sure the player has it, and if so, to complete it. If that make's sense.

Thread Starter
Varanon
Varanon

    Master Gunnery Sergeant

  • Members
  • 1289 posts

#20

Posted 28 March 2013 - 20:51

Note also that I just uploaded a new version featuring Arma 3 notification, as well as a demo mission to illustrate the use of the script (plus, the demo mission also illustrates some way of handling slightly more complex tasks with game logics, tiggers and waypoints without too much scripting involved)
Posted ImagePosted Image
Missions: FHQ Arma 3 Coop missions | FHQ Coop Pack Arma 2: #1 #2
Join CUP for a unified Arma2 asset porting: Forum Website