Jump to content

Recommended Posts

Ah okay, great. Thank you Shuko.

Cheers,

=ADG=Valixx

---------- Post added at 10:25 ---------- Previous post was at 10:03 ----------

Got a quick question though.

The task is not updating if i do it this way:

private ["_task01"];

_task01 = ['Task1','succeeded',['Task2','Kill Johns Brother.','Kill Johns Brother. He is a HVT.', true, ['mrktask2', getPos _taskTrigger02, 'hd_objective', 'ColorRed', 'Enemy 2'], 'assigned', getPos _taskTrigger02]] call SHK_Taskmaster_upd;

_taskTrigger01 setTriggerStatements ["!alive John01", "_task01" , ""];

These are only the bits of code that are relevant, i think.

Cheers,

=ADG=Valixx

Share this post


Link to post
Share on other sites

Sorry for the offtopic, but there's no other place I can ask this. Shuko, you are one of my favorite mission makers. Is there any chance we will see more missions from you for Arma 2 or 3?

Share this post


Link to post
Share on other sites

Updated version frontpaged on the Armaholic homepage.

===================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

_taskTrigger01 setTriggerStatements ["!alive John01", "_task01" , ""];[/php]

You are using a local variable, which will be empty as it's going to be on the trigger. Make it global.

---------- Post added at 08:05 PM ---------- Previous post was at 08:03 PM ----------

Sorry for the offtopic, but there's no other place I can ask this. Shuko, you are one of my favorite mission makers. Is there any chance we will see more missions from you for Arma 2 or 3?

Who knows. It's not like I've made a decision either way. I just live day by day with whatever fancies me. Currently, I don't have much interest or motivation for Arma.

Share this post


Link to post
Share on other sites

Hi Shuko

This is my init.sqf

//MISSION START

[[

["Task5","Neochori","Take The Town of Neochori From the OPFOR"],

["Task4","Alikampos","Take The Town of Alikampos From the OPFOR"],

["Task3","Katalaki","Take The Town of Katalaki From the OPFOR"],

["Task2","Poliakko","Take The Town of Poliakko From the OPFOR"],

["Task1","Therisa","Take The Town of Therisa From the OPFOR"]

],[

["Situation","We have Intel on 5 Towns on the lower end of Altis",WEST],

["Mission Briefing","Examine all of the highlighted areas of recent activity on your map (in red)",WEST],

["Credits","Made by: Gazac"]

]]

execvm "shk_taskmaster.sqf";

Now the problem

The Tasks work great & shows up in list,

"Situation" & "Mission Briefing" does not show up in list

"Credits" works & show up in list

Now this only happen in the new Altis map,

this same code works great with no problems in Stratis map

Looks like they have changed something in the Altis map

Share this post


Link to post
Share on other sites
http://derfel.org/arma3/arma3%202013-09-20%2017-18-33-01.png (400 kB)

Didn't change anything except:

execvm "shk_taskmaster.sqf";

to

call compile preprocessfilelinenumbers "shk_taskmaster.sqf";

Thanks Shuko

It works great now, did not think to try that :mad:

Funny that execvm "shk_taskmaster.sqf";

worked OK with a mission in Stratis that i did.

Again many Thanks to you

Share this post


Link to post
Share on other sites

is shk_taskmaster reliable while using on dev build?

I get a "#define FACTIONLIST..." error while launching the script with "call compile preprocessfilelinenumbers "shk_taskmaster.sqf";" in the editor. unable to figure out what's wrong.

Share this post


Link to post
Share on other sites

Maybe put it in the init.sqf?

call compile preprocessfilelinenumbers "shk_taskmaster.sqf";

Share this post


Link to post
Share on other sites

I don't have dev build, but seems a bit weird they would break, on purpose, their preprocessor at this point. You can edit the script by replacing the FACTION text in line 311 with the array list and removing the define line.

---------- Post added at 04:09 PM ---------- Previous post was at 04:03 PM ----------

Downloaded the dev build and yes, the script works fine.

Share this post


Link to post
Share on other sites

Has anyone managed to get this working on a dedicated server?

I am ok with the briefing (diary notes) but as soon as I try to assign tasks to a group nothing happens.

I can't even force a task (["task1","test","TESTING"] call shk_taskmaster_add; ) to be created on the server using the debug console (enabledebugconsole=1 in description.ext and logged in as admin)

I have tried execvm, call compile preprocessfilelinenumbers and the way shown in the readme at the top of the script and none seem to work.

thanks for any help you can offer...

I believe its a current bug with tasks on dedicated but would like confirmation.

Edited by KevsnoTrev

Share this post


Link to post
Share on other sites

Did you add it to the init.sqf?

---------- Post added at 08:08 AM ---------- Previous post was at 08:07 AM ----------

Tested, works fine for me.

Share this post


Link to post
Share on other sites

Thanks for the response Cuel - yes I have the call to taskmaster in the init.sqf

I forgot some important info - the missions works completely when hosted....

from my init.sqf---------

waituntil{SHK_Taskmaster_initDone};

   ["Mission Objective","Your job is to find and kill the Journalist. Exspect security escorts with him.",EAST] call shk_taskmaster_addnote;sleep 0.5;
   ["Mission Objective","Your team is tasked with the saftey of a Journalist that is tasked with reporting on the insurgent uprising here on Wamako. If he Dies, the mission is done!",independent] call shk_taskmaster_addnote;sleep 0.5;


sleep 3;
["OpFTask1","Kill Journalist","Kill the touring Journalist so he can't get his photo's published. Get him before he returns to the airfield to catch his plane",east] call shk_taskmaster_add;sleep 0.5;
["IndTask","Protect Journalist","Protect the Journalist on a tour of the island. We have information that an OPFOR team may be in the area with the intention of taking him out. Take him where he wants to go and return him to the airfield to catch his plane",independent] call shk_taskmaster_add;sleep 0.5;

then I have a per side setup for the tasks for the attack and defend sides of the mission

these tasks below the sleep 3; never show up!!

- I have changed debug to true in shk_taskmaster and no sign of the task being created in the rpt file either.

I get the initialisation -->

"SHK_Taskmaster> Tasks received first time: []"

and then

"SHK_Taskmaster> typename condition: SIDE"

but no task given to the player no matter which side I test on.

Edited by KevsnoTrev

Share this post


Link to post
Share on other sites

I have [] execvm "shk_taskmaster.sqf";sleep 1; near the top of my init.sqf.

I separated out the notes while testing the compile preprocess... way and didn't put it back, but no change either way.

my Init.sqf - (pastebin)

hope you can find the issue - as I said it all works on a hosted game - I suspect locality issues.

This is an 8 vs 8 TvT with an AI to escort (journalist named VIP) - It is played on Wamako (Sweedish forces pack Island, but Not sure if that makes any difference at all)

Share this post


Link to post
Share on other sites

I'm at work and don't have my trusty Notepad++. So, I'll just do a quick example so you can see the idea. You are supposed to give the tasks and notes as parameters. The _add function is meant to be during mission to add a single task at the time.

[[
 ["OpFTask1","Kill Journalist","Kill the touring Journalist so he can't get his photo's published. Get him before he returns to the airfield to catch his plane",EAST],
 ["IndTask","Protect Journalist","Protect the Journalist on a tour of the island. We have information that an OPFOR team may be in the area with the intention of taking him out. Take him where he wants to go and return him to the airfield to catch his plane",RESISTANCE]
],[
 ["Mission Objective","Your job is to find and kill the Journalist. Exspect security escorts with him.",EAST],
 ["Mission Objective","Your team is tasked with the saftey of a Journalist that is tasked with reporting on the insurgent uprising here on Wamako. If he Dies, the mission is done!",RESISTANCE]
]] execvm "shk_taskmaster.sqf";

The independent side in Arma is actually called "resistance" in the code/engine.

Your For loop with switch I dont really understand, because why have switch case if you are going to go through all the cases with For anyway?

Share this post


Link to post
Share on other sites

Well as you said it created tasks in the editor but not on a dedicated. I tried another mission that I've made that uses taskmaster and that one worked fine so there is not a bug with dedicated servers.

Try adding your tasks and notes to the default execVM as the examples show and then you can run the loop for indep tasks

---------- Post added at 11:16 AM ---------- Previous post was at 11:14 AM ----------

The independent side in Arma is actually called "resistance" in the code/engine.

It was added to cause even more confusion :), same with blufor and opfor

Share this post


Link to post
Share on other sites
It was added to cause even more confusion :), same with blufor and opfor

Oh I see. :) I've missed a lot of things being away for couple of years.

Share this post


Link to post
Share on other sites

thanks guys, I have tried everything for the sides from opfor, blufor, guer, east west - but missed resistance - I think it still evaluates out to GUER anyway so :confused:

Will report back if I get it fixed.

btw: the for with switch was just to get the different names of the tasks to go through on each 'visit'

Share this post


Link to post
Share on other sites

FIXED: I put the new tasks into triggers and there is no issue on a dedicated server. Just took a little better planning... thanks for the help and confirmation I wasn't going mad.... ;)

Share this post


Link to post
Share on other sites

In a mission of mine I had couple of tasks to do and then extract. However, if certain event happened before extraction, new tasks would appear. Once those were done, I noticed that the original extraction task was not set as current anymore. Being perfectionist, I can't have that!

So, here's a small addition to the script.

Version 0.36

   SHK_Taskmaster_setCurrentLocal
     Sets the given task as the current task.

     Example: "Task1" call SHK_Taskmaster_setCurrentLocal;
     Multiplayer Example: ["Task1","SHK_Taskmaster_setCurrentLocal",true,true] call BIS_fnc_MP

Share this post


Link to post
Share on other sites

New version frontpaged on the Armaholic homepage.

===================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

I cant figure out how to get the first task I create in the init as the assigned one and not the last one (it automatically assigns the last created task). Anyone help?

Here's what it looks like atm:

//Tasks and Briefing
[[
 ["Task2","Destory the Comms Tower","Assault the military base and destroy the Comms Tower located <marker name = comms>here</marker>.",true],
 ["Task1","Destroy the Solar Towers","Destroy the Solar Towers located <marker name = tower1>here</marker> and <marker name = tower2>here</marker>.",true]
],[
 ["Note1","Hello West",WEST],
 ["Note2","Hello East",EAST],
 ["Credits","Made by: Shuko of LDD Kyllikki<br />www.kyllikki.fi"]
]] call compile preprocessfilelinenumbers "shk_taskmaster.sqf";

Also the tasks dont appear in the briefing, they only show up once in-game, is there any way around that as well? Finally, I'm trying to use triggers to update a tasks state/create new tasks etc. Is this correct?

Thanks

Edited by eXpouk

Share this post


Link to post
Share on other sites

Shows up in briefing just fine and first task is first like it should be. Why create task2 before task1 if you want task1 to be the first task?

Share this post


Link to post
Share on other sites

Because otherwise the task order appears backwards.

For me, the tasks only show when you enter the game, really weird...

Edited by eXpouk

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

×