Jump to content

puzzola

Member
  • Content Count

    186
  • Joined

  • Last visited

  • Medals

Posts posted by puzzola


  1. The moveInCargo thing is this:

    {_x moveInCargo vehicle} forEach units group this;

    Thank you Kylania.

    Is it not possible make something similar for the task?

    tskWestObj1 = {name createSimpleTask ["#1 Incursori: Distruggere lo Shilka"];} forEach units group this;

    ---------- Post added at 11:35 AM ---------- Previous post was at 11:31 AM ----------

    ruebe already gave you the answer. Add and maintain tasks for all playable/switchable units. Taskmaster does that, so no need to reinvent the wheel.

    Example: http://derfel.org/arma2/_puzzola_taskteamswitch.utes.rar

    Whats the correct syntax? _all_ playable/switchable

    I'll study taskmaster but it is a little bit more complicated than a wheel :p

    Thank you very much for the demo mission.


  2. createSimpleTask takes an object, not a group, as the argument so you'd have to loop through the group.

    Today I read a way to moveincargo a group named by its leader.

    I don't find it anymore.

    Can you please find it for me?

    Upgrade:

    Now I have:

    Init.sqf:

    //begin init.sqf
    
    //Add briefing
    execVM "briefing.sqf";
    
    //Add tasks
    onTeamSwitch {execVM "tasks.sqf";};

    Briefing.sqf:

    player createDiaryRecord["Diary", ["Info", "<br/>Author - Puzzola<br/>Version 2.0<br/>"]];
    player createDiaryRecord["Diary", ["Forze nemiche", "<br/>Alcune unita' di fanteria e blindati dell' SLA col supporto di alcuni agenti OMON russi."]];
    player createDiaryRecord["Diary", ["Forze amiche", "<br/>A capo di una unita' mista di para' della Folgore e incursori del Col Moschin."]];
    player createDiaryRecord["Diary", ["Missione", "<br/>Parti a bordo di un C-27 Spartan dell'aereonautica italiana. Una volta raggiunta la LZ a NE di Bagango, paracadutati e distruggi lo Shilka che assicura protezione antiaerea alla citta' e dai il via libera all'assalto elitrasportato dei bersaglieri. Resisti e aspetta che le unita' alleate prendano posizione. A questo punto incursori o bersaglieri devono distruggere l'antenna radar che e' protetta da regolari dell'SLA. Una volta distrutta saranno disponibili i comandi radio per richiedere l'esfiltrazione degli incursori a nord e delle unita' di bersaglieri, nel frattempo riunite in una unica unita', a Ovest-sud-ovest. Una volta rientrati alla base fare rapporto agli ufficiali in attesa."]];
    player createDiaryRecord["Diary", ["Situazione", "<br/>Quattro AB212 con a bordo altrettante squadre aspettano il nostro ok via radio per iniziare l'assalto."]];
    player createDiaryRecord["Diary", ["Suggerimenti", "<br/>Utilizza il tempo sul C-27 per scegliere il tuo equipaggiamento. Controlla ogni tanto la radio 0-0."]];
    
    // Finale
    tskWestObj6 = player createSimpleTask ["Finale: Bisboccia"]; 
    tskWestObj6 setSimpleTaskDescription ["Raggiungi le ragazze sul bus"];
    // Conclusione missione
    tskWestObj5 = player createSimpleTask ["Conclusione: Fare rapporto"]; 
    tskWestObj5 setSimpleTaskDescription ["Raggiungi gli ufficiali agli hangar per fare rapporto"];
    tskWestObj5 setSimpleTaskDestination (getMarkerPos "Rapporto");
    // Obiettivo secondario Incursori
    tskWestObj4 = player createSimpleTask ["#2 Inc.: Rimanere in vita ed esfiltrare"]; 
    tskWestObj4 setSimpleTaskDescription ["Una volta certi che la postazione radar sia distrutta e che i bersaglieri siano in rotta verso la base, portarsi in zona di esfiltrazione e chiamare il recupero. "];
    tskWestObj4 setSimpleTaskDestination (getMarkerPos "Esfiltrare_inc");
    // Obiettivo secondario Bersaglieri
    tskWestObj3 = player createSimpleTask ["#2 Bers.: Congiungere le squadre"]; 
    tskWestObj3 setSimpleTaskDescription ["Prendi sotto il tuo comando tutte le squadre di Bersaglieri"];
    tskWestObj3 setSimpleTaskDestination (getMarkerPos "raggruppamento");
    // Obiettivo principale Bersaglieri
    tskWestObj2 = player createSimpleTask ["Distruggere il radar"]; 
    tskWestObj2 setSimpleTaskDescription ["Distruggi l'antenna radar nell'atrio del municipio"];
    tskWestObj2 setSimpleTaskDestination (getMarkerPos "Radar");
    // Obiettivo principale Incursori
    tskWestObj1 = player createSimpleTask ["#1 Incursori: Distruggere lo Shilka"]; 
    tskWestObj1 setSimpleTaskDescription ["Elimina lo Shilka e dai il via libera all'eliassalto"];
    tskWestObj1 setSimpleTaskDestination (getMarkerPos "Shilka");
    //>---------------------------------------------------------<

    tasks.sqf

    // Finale
    if (!isnil ("tskWestObj6")) then {player removeSimpleTask tskWestObj6};
    tskWestObj6 = player createSimpleTask ["Finale: Bisboccia"]; 
    tskWestObj6 setSimpleTaskDescription ["Raggiungi le ragazze sul bus"];
    // Conclusione missione
    if (!isnil ("tskWestObj5")) then {player removeSimpleTask tskWestObj5};
    tskWestObj5 = player createSimpleTask ["Conclusione: Fare rapporto"]; 
    tskWestObj5 setSimpleTaskDescription ["Raggiungi gli ufficiali agli hangar per fare rapporto"];
    tskWestObj5 setSimpleTaskDestination (getMarkerPos "Rapporto");
    // Obiettivo secondario Incursori
    if (!isnil ("tskWestObj4")) then {player removeSimpleTask tskWestObj4};
    tskWestObj4 = player createSimpleTask ["#2 Inc.: Rimanere in vita ed esfiltrare"]; 
    tskWestObj4 setSimpleTaskDescription ["Una volta certi che la postazione radar sia distrutta e che i bersaglieri siano in rotta verso la base, portarsi in zona di esfiltrazione e chiamare il recupero. "];
    tskWestObj4 setSimpleTaskDestination (getMarkerPos "Esfiltrare_inc");
    // Obiettivo secondario Bersaglieri
    if (!isnil ("tskWestObj3")) then {player removeSimpleTask tskWestObj3};
    tskWestObj3 = player createSimpleTask ["Bers.: Congiungere le squadre"]; 
    tskWestObj3 setSimpleTaskDescription ["Prendi sotto il tuo comando tutte le squadre di Bersaglieri"];
    tskWestObj3 setSimpleTaskDestination (getMarkerPos "raggruppamento");
    // Obiettivo principale Bersaglieri
    if (!isnil ("tskWestObj2")) then {player removeSimpleTask tskWestObj2};
    tskWestObj2 = player createSimpleTask ["Distruggere il radar"]; 
    tskWestObj2 setSimpleTaskDescription ["Distruggi l'antenna radar nell'atrio del municipio"];
    tskWestObj2 setSimpleTaskDestination (getMarkerPos "Radar");
    // Obiettivo principale Incursori
    if (!isnil ("tskWestObj1")) then {player removeSimpleTask tskWestObj1};
    tskWestObj1 = player createSimpleTask ["#1 Incursori: Distruggere lo Shilka"]; 
    tskWestObj1 setSimpleTaskDescription ["Elimina lo Shilka e dai il via libera all'eliassalto"];
    tskWestObj1 setSimpleTaskDestination (getMarkerPos "Shilka");
    //>---------------------------------------------------------<

    Mission status as "succedeed" in the OnAct field of opportune triggers and waypoints.

    At present status:

    All Tasks show on briefing and for the first unit in game.

    When I switch team I see tasks yet.

    If I go back to a unit I see tasks doubled over and over.

    If I complete a task, I have a message on HUD and the task becomes green.

    If they were doubled, only the new created are status updated.

    I can't show some task for a group and some for another.

    ---------- Post added at 03:28 AM ---------- Previous post was at 03:12 AM ----------

    i'm going to sleep.

    Here are 3:00 AM

    See you tomorrow


  3. Try adding this to init.sqf BEFORE executing tasks.sqf

    waitUntil {!isNull player};

    Thank you. I'll try.

    In the meanwhile i made some tests.

    With the onswitch command everytime i return on a unit the task adds, and adds and adds :p

    I have the taskstatus "succeeded" on the activation field of some triggers and they work, don't know if they are mantained on teamswitch.

    I'll see


  4. Ok, we are on the right path.

    I made a tasks.sqf where I put the tasks; and added in the init.sqf onTeamSwitch {execVM "tasks.sqf";};

    Now when I switch unit the tasks are still in display.

    But...If I delete the tasks from my briefing.sqf, they don't show for the first unit (default player) till I don't switch to another and go back to it.

    If I leave the tasks in the briefing.sqf, it starts ok, I have them if I switch but if I go back to the first unit, they are doubled :p

    Now I'm tinking about a command to set the tasks once at start and then onteamswitch.

    Suggestions?


  5. Another option would be to maintain your tasks for _all_ playable/switchable units simulatiously and from the beginning, instead of maintaining only the current players character.

    This approach might be more robust or less complicated in the end, than simply execVM'ing tasks.sqf onTeamSwitch. What happens if you switch back to a unit?

    On the otherhand, you can't simply add new units to this list - or, you again end up with the need to run some special onTeamSwitch init script to catch up with all your stuff... and then you eventually need to keep track of all diary/task stuff by yourself, building your own diary/task-layer ontop of the existing commands.

    I can try this too.

    I wouldn't that assigning the tasks to the playable units makes them invisible to player.


  6. Kylania has probably had a lot more experience dealing with team switch than me so I will default to his assessment, but you might want to try using onTeamSwitch.

    This is what you would need to do:

    1) Put your task code in a separate script (not in briefing.sqf), for this example let's call it tasks.sqf.

    2) In your init.sqf, execute your briefing.sqf AND tasks.sqf.

    3) In your init.sqf, place the following line of code:

    onTeamSwitch {execVM "tasks.sqf";};

    The above code will cause tasks.sqf to execute every time a player team switches (it is like an event handler for team switching). I have not use onTeamSwitch with tasks, but I have used it with other code I need ensure is run when a player team switches.

    The only thing I do not see in your code, is how you setTaskState "SUCCEEDED". You will need to be careful with that so that completed tasks are not overridden every time you team switch. Hope this helps...good luck!

    It's worth a try. Thank you very much.

    About tasks status, I forget it. Thank you again for remembering.


  7. Hi, I read a lot of topics but non solved yet.

    I have a SP mission with team switch possible.

    The briefing works fine but when I switch player, tasks don't show up anymore.

    How I set again tasks for the player, whatever role he takes?

    Maybe something in the init.sqf?

    Thank you ;)

    Here's my briefing.sqf

    player createDiaryRecord["Diary", ["Info", "<br/>Author - Puzzola<br/>Version 2.0<br/>"]];

    player createDiaryRecord["Diary", ["Forze nemiche", "<br/>Alcune unita' di fanteria e blindati dell' SLA col supporto di alcuni agenti OMON russi."]];

    player createDiaryRecord["Diary", ["Forze amiche", "<br/>A capo di una unita' mista di para' della Folgore e incursori del Col Moschin."]];

    player createDiaryRecord["Diary", ["Missione", "<br/>Parti a bordo di un C-27 Spartan dell'aereonautica italiana. Una volta raggiunta la LZ a NE di Bagango, paracadutati e distruggi lo Shilka che assicura protezione antiaerea alla citta' e dai il via libera all'assalto elitrasportato dei bersaglieri. Resisti e aspetta che le unita' alleate prendano posizione. A questo punto incursori o bersaglieri devono distruggere l'antenna radar che e' protetta da regolari dell'SLA. Una volta distrutta saranno disponibili i comandi radio per richiedere l'esfiltrazione degli incursori a nord e delle unita' di bersaglieri, nel frattempo riunite in una unica unita', a Ovest-sud-ovest. Una volta rientrati alla base fare rapporto agli ufficiali in attesa."]];

    player createDiaryRecord["Diary", ["Situazione", "<br/>Quattro AB212 con a bordo altrettante squadre aspettano il nostro ok via radio per iniziare l'assalto."]];

    player createDiaryRecord["Diary", ["Suggerimenti", "<br/>Utilizza il tempo sul C-27 per scegliere il tuo equipaggiamento. Controlla ogni tanto la radio 0-0."]];

    // Finale

    tskWestObj6 = player createSimpleTask ["Finale: Bisboccia"];

    tskWestObj6 setSimpleTaskDescription ["Raggiungi le ragazze sul bus"];

    // Conclusione missione

    tskWestObj5 = player createSimpleTask ["Conclusione: Fare rapporto"];

    tskWestObj5 setSimpleTaskDescription ["Raggiungi gli ufficiali agli hangar per fare rapporto"];

    tskWestObj5 setSimpleTaskDestination (getMarkerPos "Rapporto");

    // Obiettivo secondario Incursori

    tskWestObj4 = player createSimpleTask ["#2 Inc.: Rimanere in vita ed esfiltrare"];

    tskWestObj4 setSimpleTaskDescription ["Una volta certi che la postazione radar sia distrutta e che i bersaglieri siano in rotta verso la base, portarsi in zona di esfiltrazione e chiamare il recupero. "];

    tskWestObj4 setSimpleTaskDestination (getMarkerPos "Esfiltrare_inc");

    // Obiettivo secondario Bersaglieri

    tskWestObj3 = player createSimpleTask ["#2 Bers.: Congiungere le squadre"];

    tskWestObj3 setSimpleTaskDescription ["Prendi sotto il tuo comando tutte le squadre di Bersaglieri"];

    tskWestObj3 setSimpleTaskDestination (getMarkerPos "raggruppamento");

    // Obiettivo principale Bersaglieri

    tskWestObj2 = player createSimpleTask ["#1 Bersaglieri: Distruggere il radar"];

    tskWestObj2 setSimpleTaskDescription ["Distruggi l'antenna radar nell'atrio del municipio"];

    tskWestObj2 setSimpleTaskDestination (getMarkerPos "Radar");

    // Obiettivo principale Incursori

    tskWestObj1 = player createSimpleTask ["#1 Incursori: Distruggere lo Shilka"];

    tskWestObj1 setSimpleTaskDescription ["Elimina lo Shilka e dai il via libera all'eliassalto"];

    tskWestObj1 setSimpleTaskDestination (getMarkerPos "Shilka");

    //>---------------------------------------------------------<


  8. If the aircraft doesn't have line of sight to the laser, he won't drop the bomb. Make sure that the impact point isn't obscured by hills or buildings.

    Hi maturin thank you for the answer.

    It was my first doubt.

    But I tried setting the approach rout from everywhere.

    I light the target from the same position ever and the plane looks and make another run.

    I noticed that it choices ever the same rout to engage, and tried to set it as the first run.

    But the plane turns, and make another attempt from the same way.

    How much free LoS does it need to lock the target.

    The shilka is in a football camp in Bagango (map of Sahrani - Arma1 with Caa1 mod), and the city is surrounded by hills, but not from everywhere and the rout the plane choices passes over the hill where I point with the laser.


  9. Hi all, I read a lot of posts about laser designation.

    I have it working yet.

    But a problem remains.

    The aircraft I call by radio trigger fly over the target without bombing, then make a turn and bombs on the second run.

    I tried all insertion directions, set the waypoint as normal, fast or slow.

    Also the behavior from stealth to "fool" (don't know english version).

    The target is a Shilka and the plane never ends alive the second run.

    Some suggestion?

    Problem with the spot where I place the laser beam? (turret, hull, ground).

    Thank you very much


  10. Made some bench.

    In all 1.09 gives me some FPS more.

    I benched with stock Arma2 Bench mission, with ArmaMark 2.0 and with some missions made by myself on Chernarus.

    All with the same Armaconfig file.

    I gained about 4 FPS in most situations from 20 to 24 with gain in lowest and highest FPS.

    It's seams faster to load the game and the textures too.

    Only features worst in the absence of dust clouds around tanks when firing with the main gun and the realignement of the rifles after all shot (but this is more realisic).


  11. Made the first tests.

    1.05 and 1.09 seams very similar in performance.

    Need some more test but maybe 1.09 have little less FPS but load a little faster.

    In 1.09 there are different shouts when reloading or throwing granades, fixed wing fly better but tanks don't recoil and don't have dust cloud when firing with the main cannon.

    Tanks are firmer when turning at speed.

    Some minor features better in 1.09 in menus.

    And about Xp32 bit or 7 64 bit, the grafic is better in 7.

    More light effect on surfaces, brighter colors.

    On 7 the game and maps load faster.


  12. Although I couldn't say for sure (because I have never tried it) I expect you can do it this way:

    Copy your 1.05 install to a new location and rename it to something appropriate. Then copy it back so that you have two installs side by side, one folder might be called "Bohemia Interactive" and the other folder "Bohemia Interactive 105".

    Then patch the game to 1.09.

    Playing the game at this stage will give you your 109 gameplay.

    Now, if you wish to play the other version, first rename the "Bohemia Interactive" folder to "Bohemia Interactive 109", and rename the "Bohemia Interactive 105" folder to "Bohemia Interactive".

    Now you can play the game patched to 1.05. So each time you wish to change games, you just rename the folders. Always rename the "Bohemia Interactive" folder first.

    *edit*

    And, just to be on the safe side, do the same with the ArmA2 folder in your My Documents location.

    I tried, now from "Arma Launcher" I can launch a version or the other.

    Not made performance test yet, but the tank recoil and dust cloud is still missing.

    Stay tuned ;)


  13. Although I couldn't say for sure (because I have never tried it) I expect you can do it this way:

    Copy your 1.05 install to a new location and rename it to something appropriate. Then copy it back so that you have two installs side by side, one folder might be called "Bohemia Interactive" and the other folder "Bohemia Interactive 105".

    Then patch the game to 1.09.

    Playing the game at this stage will give you your 109 gameplay.

    Now, if you wish to play the other version, first rename the "Bohemia Interactive" folder to "Bohemia Interactive 109", and rename the "Bohemia Interactive 105" folder to "Bohemia Interactive".

    Now you can play the game patched to 1.05. So each time you wish to change games, you just rename the folders. Always rename the "Bohemia Interactive" folder first.

    *edit*

    And, just to be on the safe side, do the same with the ArmA2 folder in your My Documents location.

    Sounds good.

    I'll try and let you know.

    Thank you all.


  14. Copy the a2 folder to have it twice and apply the patch now to your original a2 folder.

    And so, if I don't like 1.09, can I cancel 1.09 folders and copy again 1.05 Pbos?

    Have I to change some other file like arma.exe, armaconfig or other to have 1.05 working again?

    Thank you very much


  15. Hi, thank you for answering.

    I have ArmA2 from the release and spent so much time to set it to run properly that I won't ruin it.

    I started playing it with satisfaction only in January.

    When I tried patch 1.07 and 1.08 I had some bug and loss in performance and had to reinstall to 1.05.

    So I would like to try 1.09 without overwriting my present installation.

    And then, I hate the loss of tank recoil and dust effect, but for some reason no one can tell me if BIS solved the issue.


  16. Hi, sorry for posting in two section.

    Does anyone know if I can have 2 Arma2 version installed.

    I would like 1.09 patch without overwriting my installation.

    Can I install again the game in another folder?

    What with registry keys and config files?

    Can I instead copy all the folder and files elsewhere and patch this copy.

    Please help me because I'm stuck with 1.05 having bugs and some performance drop with 1.08 and 1.07.

    Thank you.


  17. there is huge amount of fixes including in data of 1.09 so staying on 1.05 is mostly suicidal ...

    I see, but my rig does not agree.

    I like the game very much but for month I had to spent time to set it and now I'm scared to unbalance it.

    Any suggestion about XP 32 bit or Seven 64 bit?

    If you don't mind, can please highlight some improvement about FPS or grafic since 1.05.

    Thank you very much :)

    ---------- Post added at 06:55 PM ---------- Previous post was at 06:47 PM ----------

    Another question:

    Can I play MP with someone with different version?

    I.e 1.05 with 1.09?


  18. You will need to have 1.09 installed in order to use this beta.

    Ok, I saw now they changed the specs in the Armaholic site.

    What can you tell me about the tank question?

    I tried 1.07 and 1.08 but performance decreased a bit so I reinstalled 1.05.

    I spent month to set ArmA2 well and saw no real improvement with newer patches.

    Something important I'm missing?

    I have an E6400 dual core 2,14 overclocked to 2,25

    GPU Ati Radeon HD5670 1 gig DDR5

    Xp pro 32 bit, 4 gig ram DDR3, Pbos on a dedicated HDD sorted by full path.

    The bottleneck is the CPU but I can play all maxed 1280x1024 (render 1600x1280) AA medium AF medium. Wiew distance 2600. FPS 20 for the most.

    I have Seven too and the grafic is a little better but with less FPS

×