Jump to content

mcnools

Member
  • Content Count

    1148
  • Joined

  • Last visited

  • Medals

Community Reputation

58 Excellent

About mcnools

  • Rank
    Master Gunnery Sergeant

core_pfieldgroups_3

  • Interests
    Music, movies, people, good food, good drink, games,
  • Occupation
    Life.

Profile Information

  • Gender
    Male
  • Location
    Sweden

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Well, it seems I might have managed to solve it in the end. I "simply" mashed the scripts together and added the skill-level stuff into the loadout script and it seems to be working (might have faults that will appear later though). Figured I'd post it all here so it's available to anyone looking to do the same thing. Big thanks to Larrow, couldn't have done it without you! initserver.sqf onTrackerSpawn.sqf customizeTrackerLoadout.sqf (also sets the skill)
  2. Unfortunately that didn't help. You have my thanks for trying to help! The most important thing is the skill-level anyway, the rest is just cosmetics/details. I'll try asking around some more in the SOG Prairie Fire Discord and see if anyone can help out. Thank you again for helping!
  3. Thanks for taking the time trying to help me, unfortunately once again it doesn't work, this time neither the loadouts nor the skill level seems to set correctly. Strangely enough I don't get any error messages at all. If I change initserver.sqf to just init.sqf (just took a chance) I get the error message "Could not get tracker FSM from module TrackerModule1" though. Not sure if that can be a clue or if it's just because the script doesn't work properly in init.sqf.
  4. Unfortunately it doesn't work. The loadouts are correct but the skill levels are 1.0 instead of 0.30 for some reason. Is something in the customizeTrackerLoadout.sqf overriding the other script somehow maybe?
  5. So, of course I have to go complicate things now, I hope you can help out with this issue too. The skill-script works perfectly but now I also wanted to look into changing the loadout of the spawned groups using the script from the same page. So, I went ahead and added the customizeTrackerLoadout.sqf to my mission and then added _handle = [] execVM "customizeTrackerLoadout.sqf"; to my initserver.sqf. However, that seems to override the skill-level script so they spawn with the new loadouts I've given them but with max skill. Of course I have no idea why. Currently my initserver sqf looks like this: customizeTrackerLoadout.sqf looks like this: and onTrackerSpawn.sqf looks like this:
  6. That did the trick! Thank you so much, very much appreciated!
  7. Thanks for replying! I really appreciate you helping out man. I've tried it but it gives me this error message: I'm guessing for some reason it doesn't recognize the vet_fnc_onTrackerSpawn-command but I have no idea why. I've tested in both SP and MP (but not on a dedicated server) and it gives me the same error each time. EDIT: if I include all the code from onTrackerSpawn.sqf in my initserver.sqf it seems to work fine, so I'm guessing the issue is that onTrackerSpawn.sqf isn't being included properly? Are there any downsides to having all the code in initserver.sqf or is it mostly just to keep things neat and tidy? In my missions folder I have: initServer.sqf with the code: //initServer.sqf //include function [] execVM "onTrackerSpawn.sqf"; //Function to call when new units are spawned TAG_fnc_setTrackerGroupSkill = { params[ "_group", "_module" ]; { _x params[ "_unit" ]; _unit setSkill 0.5; }forEach units _group; }; //Tell the monitoring function the Module to monitor, the Function to call when new units are spawned by the module [ TrackerModule1, TAG_fnc_setTrackerGroupSkill ] call vet_fnc_onTrackerSpawn; and onTrackerSpawn.sqf with the code: /* Author: veteran29 Description: Execute custom callback on groups spawned by the Tracker Area module. Parameter(s): _module - Tracker Area module [OBJECT] _fnc_callback - Function to execute on newly created groups, arguments passed to the callback are: [_group, _module] [CODE] _interval - How often to check for new groups [NUMBER, defaults to 3] */ vet_fnc_onTrackerSpawn = { if (!canSuspend) exitWith {_this spawn vet_fnc_onTrackerSpawn}; params [ ["_module", objNull, [objNull]], ["_fnc_callback", {}, [{}]], ["_interval", 3, [0]] ]; private _fsmId = _module getVariable ["vn_fsm", -1]; if (_fsmId == -1) exitWith { diag_log text format ["Could not get Tracker FSM from module: %1", _module]; }; private _handledGroups = []; private _fsmGroups = []; while {true} do { waitUntil { sleep _interval; // last element always contains all Overlord managed groups _fsmGroups = _fsmId call vn_ms_fnc_tracker_overlord_getGroups; reverse _fsmGroups; _fsmGroups = _fsmGroups select 0; _handledGroups isNotEqualTo _fsmGroups }; private _newGroups = _fsmGroups - _handledGroups; _handledGroups = _fsmGroups; {[_x, _module] call _fnc_callback} foreach _newGroups; }; };
  8. EDIT: Updating my initial post with a probable solution. Well, it seems I might have managed to solve it in the end. I "simply" mashed the scripts together and added the skill-level stuff into the loadout script and it seems to be working (might have faults that will appear later though). Figured I'd post it all here so it's available to anyone looking to do the same thing. Big thanks to Larrow, couldn't have done it without you! initserver.sqf onTrackerSpawn.sqf customizeTrackerLoadout.sqf (also sets the skill) ORIGINAL POST:
  9. mcnools

    KLPQ Music Radio

    Me and my group are just starting a campaign where we use this mod, however, we can't get the server-side CBA Settings to save for some reason. When I press "OK" they just revert to the default settings. Anyone had the same issue and managed to solve it?
  10. Thank you for your reply, I'll look into this!
  11. I'm working on a vietnam-campaign using SOG Prairie Fire for my group, and for different missions I want different insignias on the left arm and chest (like an Aircav-patch for example). However, when playing the missions with my friend on his dedicated server I can only see the insignias on my own character model, not on my friends (and he cannot see them on my character either). Same goes for AI Characters, however, when testing it in SP the insignias show up on AI characters. Chest insignias chosen in the arsenal show up fine for both me and my friend after exiting the arsenal so my guess is the insignias aren't applied properly on mission start on dedicated for some reason. Anyone know any solution to this? Our unit insignia (on the right arm) works fine. I've added the insignias/patches using the options in the editor. If my friend instead hosts the mission himself without a dedicated server, he can see my insignias but I cannot see his. Picture showing what insignias/patches I'm talking about (note, having the aircav-patch all around is just an example! haha): and the editor options:
  12. mcnools

    Niakala

    This looks really really good, nice work!
  13. mcnools

    Unsung Redux

    Just wanted to say I love that this is happening. I've been hyped to make a campaign with Prairie Fire but I miss a lot of the stuff from Unsung. Thanks for doing this!
  14. Looks truly amazing. Always nice to see actual new buildings in ArmA.
  15. mcnools

    Sunset over Takistan

    Looks very good! Love 80s/90s stuff. Also happy to see my old Hazar-Kot terrain being featured in the screenshots. 🙂
×