Jump to content

Robert Tyburne

Member
  • Content Count

    26
  • Joined

  • Last visited

  • Medals

Posts posted by Robert Tyburne


  1. Over a year and a half later and I'm having a hard time not using Hearts and Minds as a starting point for all my mission needs.

     

    I'm going to be starting a new one in the next few weeks, and one of the things I'd like to do is manually set up the hideouts in preselected spots. The random location generation has been great, but this campaign I'd like to assume direct control.

     

    Placing stuff down in the editor is easy enough, but what I need help with is telling the mission that the places I have made are the hideouts to be destroyed. Which to be more specific, since an ammo box is the hideout destroy objective, is there a way to assign that variable manually to an object and disable the hideout generation scripting?


  2. 15 minutes ago, Korda said:

     

    Thank you for your quick response and for the enemies who are also in the base despite the marker that delimits a distance (safe)? how can i do to avoid this? thank you in advance

     

    Did you first uncomment the script (remove the /* and */)?

    Additionally, the newer safe area scripting looks like

    Quote

            //if you want a safe area
            if ((getMarkerPos "safe_zone") inArea [_position, 500, 500, 0, false]) exitWith {};

     

    Where the area defined needs to overlap the zone(s) nearby to prevent the area from being created as a legal zone for AI to spawn. So for your base, check the distance from the center of the marker you're using for your safe zone to the nearby villages/towns/cities/airports that are going to create zones for AI to spawn. You can use the debug tool in parameters to see where zones are populating on the map.

    • Thanks 1

  3. On 4/22/2020 at 11:10 AM, Vdauphin said:

    They should as H&M add interaction to class name (https://github.com/Vdauphin/HeartsAndMinds/blob/master/%3DBTC%3Dco%4030_Hearts_and_Minds.Altis/core/fnc/int/add_actions.sqf#L89-L109). So even with Zeus or other script, civilians interaction are available.

     

    The actions are not getting assigned, hence why I'm asking the questions I am 😀

     

    Quote

     

    I rock density to max, but there are two things I think that are preventing population given how the H&M script is set up, and why I'm using an alternate script to augment the number of civilians.

     

    First is that the map I'm using, G.O.S. Al Rayak, has several large cities which cause civilian spawns to clump up. I'm pretty sure this is a result of the location getting pulled, then the distance for positions of where those civilians like to hang out just not being that far out in relation to the city. I've tried expanding the zone in the H&M script, but to no avail. I'm aware that additional locations can be defined within the framework, but I would rather not go that route unless I really, really have to.

     

    Second is what the H&M script thinks is a house. The cities on the map I'm using I don't think fall into the usual category of house, and thus don't provide the script with meaningful data for creating the civ population. If there's a means of adding to the definition of 'house', or including additional object types found on the map that can tell the script that it's a legal entity to take into consideration for spawning the civ population, I'd be all sorts of interested in learning that.

     

    As for the interactions not spawning on civs, I'm not sure what to say. The civs I'm spawning with the script are not getting the actions they are supposed to have. I have the ability to run code on them, which is why I'm asking if there's an array to add them to or variable to assign them in order to force those actions.


  4. 6 hours ago, Vdauphin said:

    I don't understand what you are trying to talk about, sorry

     

    Civilians:
    I'm using another script to augment the number of civilians present in the scenario, however they are not gaining the same ACE interact options for asking reputation and information on the whereabouts of the insurgents. So there's a function, variable, array, or combination of the three I have to apply to new units being created, and I'm asking what that is.

     

    Similar to how creating a contaminated object outside of the task framework was done, where the object was put in an array then the object was broadcast across the network publicly with 'publicVariable'. I'm not sure how practical that would be with potentially a dozen or so civilians, but I'm eager to give it a shot.

     

    Quote

    Well, those already have intel interaction...

    Opfor insurgents of the same faction config do from what's picked inside the parameters.hpp, which has worked out great. But, I'm looking to include units from other factions as well to add some diversity to the insurgent side. I'm just unclear again on what variable or array needs to be applied to get the intel and interrogate options on the other NPCs that are not of the same faction config as that which is chose in the parameters.hpp.

    The workaround for opfor insurgents where I'm including additional members of other factions has been to bump the 'actual' faction from the paramaters.hpp intel drop chance to 100% so they're always giving the players info. But I'd like to be able to apply those ACE interactions across the board instead.


  5. Thanks for the help!

     

    Unrelated to chemical stuff, there's two additional systems I'd like to apply manually to other units.

     

    First is the civilian interaction. Specifically how to add reputation and info asks. Is this something I should be able to apply via their init? I've tried pulling out the various parts of the unit create sqf, but to no avail.

     

    And then for opfor units I have, adding intel interaction to them.

     

    Thanks!


  6. 15 hours ago, Vdauphin said:

    Use this: btc_chem_contaminated pushBackUnique _your_object;

     

    Yes, just need to pass the object you want to contaminate

     

     

    Yep, that's done the trick. Many thanks!

    Follow-up, I'm imagining the reverse for decontaminating an object, just removing it from that array? Reason I ask is that my unit makes extensive use of helis, and the big vehicle shower isn't exactly designed for a helicopter to pass through. If I can engineer say a trigger area that removes it from the array, that should decontaminate the heli?


  7. Hey @Vdauphin, hope you're well in these times.

     

    I'm looking to set up some persistently contaminated zones, but I'm unclear on what I need to call in order to get an object set up as being contaminated.

    setVariable btc_chem_contaminated being set to true or 1 didn't seem to do anything. Is there a variable that can be set or function we can call?

     

    EDIT: Additionally, is it possible to apply the effect to a marker or trigger area?


  8. Trying to use GRAD to save a variable, which is to be referenced after the mission is restarted to be used as part of an if-then statement to simply delete the zone since it's already been cleared by players.

     

    The effect I'm going for is simple, which is a progression of clearing sectors by deleting marker areas (EOS zones) and planting a flag marker saying it's secure once the players destroy an object (like a transmitter). That so far has been simple enough:

     

    Quote

    safyrah_north_switch = createMarker ["safyrah_north_safe", getMarkerPos "safyrah_north_sector"];
    safyrah_north_switch setMarkerType "hd_flag";
    safyrah_north_switch setMarkerColor "ColorIndependent";
    safyrah_north_switch setMarkerText "Al Safyrah North Sector: SECURE";
     

    sleep 0.5;


    missionNamespace setvariable ["safyrahnorth", 1, true];

    if (missionNamespace getvariable "safyrahnorth" == 1) then {deleteMarker "safyrah_north_sector"};

    ["Al Safyrah North Sector: SECURE"] remoteexec ["hint", 0];


    I'm attempting to set a public variable in the missionNameSpace, as that's what I think GRAD wants in order to save it properly.

     

    GRAD Config:

    Quote

    class CfgGradPersistence {
             missionTag = "breath";
             loadOnMissionStart = 1;
             missionWaitCondition = "true";
             playerWaitCondition = "true";

     

             saveUnits = 0;
             saveVehicles = 3;
             saveContainers = 3;
             saveStatics = 0;
             saveMarkers = 3;
             saveTasks = 0;
             saveTriggers = 0;

       

             savePlayerInventory = 1;
             savePlayerDamage = 0;
             savePlayerPosition = 1;
             savePlayerMoney = 1;

             saveTeamAccounts = 0;
        
             class customVariables {
                  class safyrah_north_var {
                     varName = "safyrahnorth";
                     varNamespace = "mission";
                     public = 1;
               };

        };   
    };


    For reference, the config is saving vehicles, containers, and markers created during the mission. Player position and inventory is also saved, in addition to credit count as I'm also using GRAD money menu.

    I use a remoteexeccall to get the save function to go, which hasn't failed yet with all the other data.
     

    Once the mission restarts, the following code is run from a separate .sqf called from the initServer.sqf

    Quote

    if (missionNamespace getvariable "safyrahnorth" == 1) exitWith {deleteMarker "safyrah_north_sector"};

     

    I've also tried combinations of "safyrahnorth" == 1 and safyrahnorth == 1, but the error is that the variable is undefined. If I run the same scripts in the same session, it all executes fine. It's as if the variable "safyrahnorth" is getting destroyed as soon as the server shuts down, which makes me think I'm not executing the GRAD variable save correctly.


    I'm unclear on where I'm going wrong, and some extra eyeballs would be greatly appreciated. Or suggestions on approaching this differently.

    • Like 1

  9. Gotcha, so all the saving is actually being triggered specifically on player disconnect. Is there a way to call those saves through say an addaction script instead? I have a save script that's calling the particular save functions of two other systems that I'm using, and being able to save Simple Shops vehicles through that same way would make for better flow to ensure all the things that need saving are synced in some way. Ideally without using the garage at all, as I'd like to physically limit the amount of space in the motorpool.

     

    For instance, if players clear a place then disconnect but forget to hit the save button back at base, and the server restarts, I wouldn't want their vehicles to stay in what would be an active AO again.


  10. Looking to use this system in an upcoming campaign, but I don't know how the persistent saving is called. I'd like to use the profle save type since I don't have to fiddle around with an external database.

     

    Is there a function I can call manually to save Simple Shops stuff?

     

    EDIT: Specifically looking to ensure that bought vehicles that aren't stored in a garage are saved where they are currently sitting in the world.

     


  11. I'm pumped for all the new additions, especially the chemical and electronic stuff!

     

    Here's one for V and the masses. Is there a way to put the side mission request on a NPC? I'd like to instead have players speak to a NPC, say a ranking officer in the AO, through an add action to receive a side mission.

     

     

    • Like 1

  12. Hey @Vdauphin, still loving and enjoying Hearts and Minds.

     

    New issue has manifested though, currently using the latest version. ACE Advanced Throwing is acting like it's disabled, displaying a red hand with a crossed out sign next to it despite it being enabled. Tried the usual disabling of mods and such to narrow this down, but the only place that this isn't working so far is the framework. Any insights?

     

    Thanks.


  13. 9 minutes ago, Vdauphin said:

    Hello,

    Looks like the map doesn't follow BI standard as there is only NameCity

    H&M hideouts system looks for "NameLocal", "Hill", "NameVillage", "Airport". You should add in the array the "NameCity" here: /core/fnc/mil/create_hideout.sqf#L43

    Good luck

     

    I am unworthy. All working as it should now.

     

    @JD Wang @otarius-big if you guys are interested in making Leskovets work, here's the fix.

    • Like 1

  14. 9 hours ago, Vdauphin said:

    Hello,

    May it is just the btc_hideout_safezone check the last tips here: Change-MAP-of-Hearts-and-Minds#Tips

    Cheers

     

    Values ranging from 1 to 100000 are not generating different results, though I'm now seeing the colored markers in debug. Probably were there before, but couldn't see them because of fatigue. To be clear, the city name marker texts were there before.

     

    Here's a screenshot for you of what I'm getting: 20190401170623_1.jpg

     

    EDIT:

    Shot of the whole map: 20190401171200_1.jpg


  15. Don't suppose anyone had any luck more recently with Leskovets? Searching through the thread it looked like @JD Wang and @otarius-big both were lamenting GOS maps back in June.

     

    I'm not having the same issue as Otarius, where things just go to a black screen. Rather it's appearing as though the framework is having a hard time fetching city names, the error coming up with the create_hideout.sqf at line 59, which looks like this is where the meat of setting up the city position markers where hideouts will spawn (go figure in the create_hideout.sqf). The _city variable keeps coming back as undefined, which is odd since I can see the city names when I flip to debug, just none of the usual markers.

     

    I did try to do a btc_custom_loc array, but that didn't seem to do anything.

    Quote

    Example of what I had for one location in the array:
    [[14833.6,2350.12,0],"NameCity","Barzia",500,500,true],

     

    Am I doing the custom location incorrectly, or is this map just not configured correctly?

     

    I did note as well an earlier potential solution to another G.O.S. map from you @Vdauphin, suggesting to edit core\fnc\city\init.sqf to increase the size of cities in order to ensure civilians aren't spawning in a clump. Could something like that also be causing an issue for city locations that's keeping the markers for the hideouts to spawn?


  16. Always obliged for your help @Vdauphin. Got another problem for you.

     

    I've ported the mission to another map, and I've come across the error. The map in question is from The Unsung Vietnam War Mod. You are of course not responsible for other mods, but I figured I'd run it by you.

     

    Quote

    'safePositionAnchor/' is not a class ('type' accessed)

     

    That pops up upon starting up the mission.

     

    Any ideas?


  17. Much appreciated the help with the loadout bit. Got another question for you, which is how to edit the objective/task texts. I found the create.sqf and can see the "STR_BTC_HAM_MISSION_X_X" strings in there, but I'm afraid I'm having a hard time finding where these actually reside to edit them. There's text behind comments in these lines in the create.sqf that would seem to indicate these are what to edit, but nothing occurs when I do.


  18. Love the mission, but have been running into difficulty with keeping custom player gear when editing in eden. I customize the player units in the editor, but when it comes to playing the mission they are forced back into using standard 2035 NATO gear. I've gone through the documentation and did a search through this topic, but have been unable to find a solution. I'm assuming that I need to edit part of a .sqf somewhere?


  19. 292lf.png

     

    292nd Parachute Regiment "Lion's Fury"

     

    Created recently (Sept. 2018), the 292nd PR is a modern, German Fallschirmjäger unit. While themed as paratroopers, the 292nd does offer a variety of roles within infantry, vehicles, and a small air group. If you're looking for a unit that's on that line of casual and semi-realism, we're it!

     

    Website: https://292lf.enjin.com/

    Discord: https://discordapp.com/invite/JT8dggd

    When: Operations currently on Saturdays at 3pm US Eastern (second op day in the works)

    Language: English

    Ages: 16+

     

    What We're Looking For

    People that want to have fun playing Arma 3 in a semi-realism environment that appreciate detailed and engaging storylines.

     

    What We Offer

    • Story driven campaigns and operations, where just about anyone can run their own campaign as a Zeus as a part of the unit on our dedicated server.

     

    • Training on a more personal level (not huge classes), scheduled with your own instructor for a variety of ribbons and certifications. 

     

    • Operational roles as infantry, ground vehicle crew, or as a pilot (pending operational needs).

     

    • Avenues for advancement that directly help run the unit.

     

     

×