Jump to content

Search the Community

Showing results for tags 'remoteExec'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Server tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Chernarus
  • TKO's Livonia
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 18 results

  1. While I am no beginner at programming in general, I am relatively new to SQF scripting for Arma 3. After 1000 hours I decided to finally toy around with the scripting side of things and I've already completely broken my first script. I apologize for any mistakes I may have made in advance, I am really new to this and I need some help solving this problem. At the moment the script is executing, however, it is not displaying the kills in the chat as it should be. I am realizing more and more that the YouTube video I learned this from is very inaccurate and riddled with errors. ----------initClient.sqf---------- // Executes all client scripts remotely and globally (with restrictions to client only if set in the script itself). [] remoteExec ["killFeedClient", 0]; ----------initServer.sqf---------- // Executes all client scripts remotely and server-sided. [] remoteExec ["killFeedServer", 2]; ----------killFeedClient.sqf---------- // Creates "killFeedClient" function to be executed in "initClient.sqf." killFeedClient = { { // Adding an event handler for the "Killed" action to every unit. _x addEventHandler ["Killed", { // Initializes all of the variables used in the formatting of the kill-feed statement. _unit = (_this select 0); _killedBy = (_this select 1); // Organizing and grouping all of the variables into a single array. deathInfo = [_unitName, _killedBy]; // Creating the "killFeedUpdate" public variable event handler. publicVariableServer "killFeedUpdate"; }]; } forEach allUnits; }; ----------killFeedServer.sqf---------- // Creates "killFeedServer" function to be executed in "initServer.sqf." killFeedServer = { // Only runs this script if the machine executing it is the server. if (isServer) then { // Listens for updates from the "killFeedUpdate" public variable event handler. "killFeedUpdate" addPublicVariableEventHandler { // Initalizes "_deathInfo" private array and sets it's value from the previously mentioned event handler. private "_deathInfo"; _deathInfo = (_this select 1); // If you are confused by why we used 1 and not 0 refer to "addPublicVariableEventHandler" documentation on the wiki. // Extracts each variable from the "_deathInfo" private array. _unit = (_deathInfo select 0); _killedBy = (_deathInfo select 1); // Grabs some more data by passing the previously mentioned variables through a variety of functions. _unitName = name _unit; _killedByName = name _killedBy; _distance = _unit distance _killedBy; // Formats the kill-feed statement to be displayed in the game chat. _killFeedStatement = format ["%1 was killed by %2. (%3m)", _unitName, _killedByName, _distance]; // Displays the kill-feed statement in the game chat as if it were being called in by the killer. _killedBy globalChat _killFeedStatement; }; }; };
  2. I have a decent understanding of locality. And I've read the Biki pages on BIS_fnc_MP and remoteExec. I understand that remoteExec is the newer, preferred approach, but that the other still works too. But I have not been able to wrap my head around the syntax/usage of either of these. So I'm asking for someone who really does understand them to expand on what the Biki has and explain the usage -not just syntax, but how to use it in different situations. A variety of examples (and why it's done the way it's done in each example, and the effects of the variations) would be awesome. Anyone able to do this? It'd be a real benefit to all of us who make multiplayer missions!
  3. I have searched both google and the forums for this and see a couple answers to this question that do not make sense to me. I have a couple different firing ranges for my unit that are run via script. They work correctly in both hosted and on the dedi with one small exception. The rangemaster - which is a recording of one of our members played in the script - only executes on the player that activated the firing range, even though the range itself is working for every player on the server. I am 100% sure that it is a locality issue, as the addAction that calls the sqf is located in the init.sqf of the mission. I keep finding answers that have things like this: [Computadora1, ['Disparar a Barco',{<your code here>}] ] remoteExec ["addAction",0,true]; But I do not understand exactly what it all means as most people just provide a script and not an explanation of why it fixes the issues. My question is: how do I execute the addAction in game via remoteExec so that all players can both see the range and hear the rangemaster? Below is a snippet of my range code that involves the recordings - just to ensure that I haven't made a boneheaded error. init.sqf range4.sqf (partial) Thank you all in advance for the help!
  4. I really need some help here guys, this script has been keeping me up for the last 6 days and nothing seems to make it work correctly when called by Clients connected the my Hosted Server (No errors thou): The first part when executed on the server (host player) works perfectly, I left it in inside the If (isServer) as a reference to the simplest version that works for the server. Then under the If (!isServer) is the reworked script that I made for the clients. Lots of options that I tried are now with // just as reference to what I tried with no success.
  5. Hello guys. I need your help once again. I have this line of code working perfectly for the Server Host: openMap true; MapClicked = false; onMapSingleClick "HHH setPos [_pos select 0,_pos select 1, 0] ;(group transportHeli) move _pos; MapClicked = true; onMapSingleClick ''; true;"; Where HHH is the name of a Helipad placed on the Eden Editor. That previous line does not work in MP of course since when a client calls the script the helicopter with crew (also placed via Editor) nor the Helipad move to the onMapSingleClick location. I've tried the following remoteExec code: onMapSingleClick "[HHH,[_pos select 0,_pos select 1, 0]] remoteExec ["setPos", HHH]; [(group transportHeli),[_pos]] remoteExec ["move", (group transportHeli)]; MapClicked = true; onMapSingleClick ''; true;"; But I get this error: Error SETPOS: TYPE ANY , EXPECTED OBJECT. If I remove: "[HHH,[_pos select 0,_pos select 1, 0]] remoteExec ["setPos", HHH]; And just leave: [(group transportHeli),[_pos]] remoteExec ["move", (group transportHeli)]; Then the error is: Error MOVE: TYPE ANY , EXPECTED OBJECT. But I double checked and the location of both the SetPos and Move commands on the remoteExec are in the correct location and should be working... BIS BUG? Any ideas on how I can solve this issue and/or any other method to get the client to move the server placed helicopter on command? Thanks in advanced.
  6. Last content update: 6/13/2018 showing how to use the radius for addAction, using params instead of select, adding to arrays with various commands, altering arrays with various commands, get/setUnitLoadout Last content update: 6/10/2018 going through config files and getting details to sort what you want, using radius with addAction, params, and altering arrays with resize, pushBack, pushBackUnique, set, and append and going over to assist with resize count. Last content update: 5/27/2018 added GUI tutorial for how to make a weapon selector using cfgWeapon Last content update: 5/24/2018 added sector control tutorial Last content update: 5/21/2018 This is my arma 3 scripting tutorial series which is aimed to help both people getting into making their own scripts with fairly detailed simple tutorials as well as for the intermediate person looking to create their own features for their missions. The plans for this series is to almost fully cover everything behind the arma 3 missions that people play on a daily basis and have enough content provided in the videos where people can go off and make their own vision for their mission with the knowledge gained. Most of these videos are made on the fly at 1AM-4AM without any pretesting which should give someone the idea of what goes into finding syntax errors and narrowing down a bug that's causing your feature to not function properly. It is also an excuse for you to cut me some slack if you see mistakes :) . A lot of these tutorials are made with multiplayer in mind since I think most people want to play their missions online with their friends(which is why publicVariable has been utilized so much so new people can get a good grasp on the power those commands have). New videos are added to the playlist almost every day so if your stuck with something, maybe it has been covered in a video. If you have any requests on what you would like to see made then please suggest it here. topics covered so far Scripting tutorial playlist Database tutorials with INIDBI2 playlist GUI/Dialog tutorials playlist
  7. Hey, I have a dialog that opens in the target player (You execute the createDialog and the player see it) but i don't know how to use ctrlSetText with that
  8. Good evening, I have been looking into remoteExec as a mean to create a random loadout generator that would work in MP. This would be the code to execute: The initplayerlocal.sqf file contains this code: From the BI wiki I understood that the target could be an object, so i understand player or player would receive a unit ID and the script would only execute this on the client where initplayerlocal was initialized. I have no means to test this atm (with another client or dedicated server) - could someone advise if i use this correctly? thanks a ton! vd
  9. Hello, i have a problem in inserting my progress bar in my code made for capturing a zone. The problem is that only players inside the list of the trigger need to see the progress bar and for that i used the remoteExec command. But when testing on server the code crash. But it works fine in the editor. I have put some //// where commands from the progress bar are. The variable barLayer = [1,2,3,4]; I have this : private ["_sideunits", "_sidegroup", "_trgCapture", "_trgBlock", "_sideBlock"]; _done = false; _resMarker = _this select 4; _posMarker = getPos (_this select 5); _tower = _this select 5; _resGroup = _this select 6; _attackMarker = _this select 7; _towerStatus = _tower getVariable "side"; //////////////////////////////// _layer = barLayer select 0; barLayer = barLayer - [_layer]; /////////////////////////////// if (_this select 0 == east) then { _sideunits = side_east; _sidegroup = east; _sideBlock = independent; _trgBlock = _this select 1; _trgCapture = _this select 2; }; if (_this select 0 == independent) then { _sideunits = side_independent; _sidegroup = independent; _sideBlock = east; _trgBlock = _this select 2; _trgCapture = _this select 1; }; if (_tower getVariable "side" == _sidegroup) exitWith {}; disableSerialization; //// _timer = [_trgCapture, _trgBlock, _layer] spawn { private "_txt"; _trg = _this select 0; _trgB = _this select 1; _layer = _this select 2; //// _cp = time_capture; /////////////////////////////////////////////////////////////////// [_layer,["myProgressBar","PLAIN"]] remoteExec ["cutRsc", list _trg]; waitUntil {!isNull (uiNameSPace getVariable "myProgressBar")}; _display = uiNameSpace getVariable "myProgressBar"; _bar = _display displayCtrl 2; _cpBar = 0; _barTime = 1/time_capture; /////////////////////////////////////////////////////////////////// while {_cp > 1} do { if (!triggerActivated _trgB) then { _txt = format ["Captured in %1 sec", _cp]; _cp = _cp - 1; //// _cpBar = _cpBar + _barTime; _bar progressSetPosition _cpBar; //// } else { _txt = format ["Captured in %1 sec\n\nBLOCKED !", _cp]; [["ATTACKED !", "PLAIN DOWN"]] remoteExec ["cutText", list _trgB]; }; [[_txt, "PLAIN DOWN"]] remoteExec ["cutText", list _trg]; sleep 1; }; [_layer,["default","PLAIN"]] remoteExec ["cutRsc", list _trg]; //// barLayer pushBack _layer; }; if (_tower getVariable "side" == _sideBlock) then { deleteMarker _resMarker; _attackMarker setMarkerAlpha 1; [_sideblock, _tower] call msg_attack; }; while {triggerActivated _trgCapture and !_done} do { if (scriptDone _timer and !triggerActivated _trgBlock) then { _tower setvariable ["side", _sidegroup]; [] spawn fn_spawnMission; [_sidegroup, _towerStatus] call countCapture; [_sideunits, _sidegroup] execVM (_this select 3); [_sidegroup, _tower, _sideunits] execVM "ai\ai_upgrade.sqf"; _done = true; }; }; if (!triggerActivated _trgCapture) then { ///////////////////////////////// _layer cutRsc ["default","PLAIN"]; barLayer pushBack _layer; //////////////////////////////// */ terminate _timer; if (_tower getVariable "side" == _sideBlock) then { createMarker [_resMarker, _posMarker]; _resMarker setMarkerShape "ICON"; _resMarker setMarkerType "hd_dot"; _resMarker setMarkerAlpha 0; _attackMarker setMarkerAlpha 0; }; };
  10. HI All, I've read remoteExec and CfgRemoteExec but yet I still cannot get my function, fn_sectorDistances.sqf, to display for the host or all players that join. fn_sectorDistances is supposed to show the distance from the player to the sector... description.ext class CfgRemoteExec { // List of script functions allowed to be sent from client via remoteExec class Functions { file = "functions\SetUp"; class sectorDistances {}; // allowedTargets = 0 can target only clients }; }; and in initPlayerLocal.sqf //show distances to all sectors for all players remoteExec ["fn_sectorDistances", 0, true]; I've stored fn_sectorDistances.sqf in a sub-folder folder in: functions>>SetUp Am I executing it from the right location? Have I set up class CfgRemoteExec correctly?
  11. Alright. Welcome everyone. I have a very interesting problem, and I couldn't find a solution for it. I have been really trying to get past this but I can't solve this riddle. I have this small code snippet inside the initPlayerLocal.sqf: if (didJIP) then { [getPlayerUID player] remoteExecCall ["CHAB_fnc_jipcam",[-2,-(clientOwner)],false]; }; And here is the CHAB_fnc_jipcam: _uid = _this select 0; private "_player"; private "_local"; private "_localID"; { if ((getPlayerUID _x) isEqualTo _uid) then{_player = _x;}; } forEach allPlayers; _local = ???; _localID = ???; As you can see, I clearly have no clue who is the owner of machine ? In my mind's eye remoteExec sends a message to every player that they have to run this script with the given parameters. Here is what I tried so far: Create a global variable (not public) for each player and give it the playerUID -> Result is that inside the jipcam the returned value is "any" on each PC. Create a missionnamespace variable (global but not public) and give it the playerUID -> same results as before I have completely run out of ideas, I tried mostly everything I could think of. Is there anyone who has more tricks up his sleeve?
  12. Hi! For building some kind of "dynamic headless client assignator" on which a unit spawning script can me called from any client to the idelest client, I have the issue that commands such as owner or groupOwner are server only. Which means only the server can know in real time which client is running more AIs and select the one with less of them. My workaround is to make some kind of server side scheduler which you remoteExec from any client, the scheduler checks the idlest client and sends the real script and params to the right client. So syntax could be something like: [arrayofParams,scriptVariableName] remoteExec ["scheduler",2] Example: [[targetPosition,numberOfGroups,typeOfAttack],spawningAttackScriptVarName] remoteExec ["scheduler",2] Got the idea? Ok, my doubt is related to the script variable name: what is passed through the network, just the var name or the whole code behind it? Because behind that variable I may have a thousand lines of code.... I ask you because I find very difficult to test this and know what's happening in the engine. Thanks in advance!
  13. Hi, i would like to addaction to object with remoteexec but i dont know how or where to place conditions of distance. I usually use addaction as this: this addAction ["Pick up INTEL","scripts\add_intel.sqf",[],1,false,true,"","_this distance _target < 2"]; And i would like to merge this with remoteexec addaction [this,["Pick up INTEL", {"scripts\add_intel.sqf"}]] remoteExec ["addAction",2]; Thanks for help!!
  14. Hello, I'm using this _costTable = compile preProcessFileLineNumbers "folder\costTable.sqf"; [[],_costTable] remoteExec ["spawn",zeusUnit,true]; (from initServer.sqf) to "send" a cost table from dedicated server to the player playing as Zeus. That little script works nicely at mission start: only units and other "Zeus assets" that are declared in the costTable.sqf are available to the Zeus (player). But for some reason the JIP functionality (which is declared with true) doesn't work. This leads to the point where a reconnecting Zeus player will have all the vanilla Arma 3 Zeus units and assets available since the server doesn't issue the cost table to this "JIP player" like it should. Or should it even? Any thoughts of a way to get the server to send the cost table to JIP Zeus player?
  15. Hi Guys, Scrawling the forums, I have been educating myself on Functions & Remote Exec in aid of spawning AI groups (LV Scripts from Spunoff) via a GUI (Local to Admins which I have created), I have followed the formats from the wiki and Various other posts but I cannot seem to get it to execute, here are the files below it would be great if someone could look over it. Thanks! Description.EXT GUI Extract : dialogs.hpp Fnc_AlesiaMilitia.sqf
  16. Hi all. I'm a total noob to Arma scripting (or scripting at all). I've read some tutorials, but still, nothing better than expirience. But, back to the point. I've been creating a MULTIPLAYER mission with Mobile HQ. I've done some testing with my friends, and generally most of things work, but there's this one issue I can't solve. Here's the code of the script I'm going to reference (the file name is mhq1.sqf and it is executed by execVM in init.sqf): MHQ1 is obviously a name of a marker I have set. mhq1 is the variable, name of object - SUV I have spawned in the editor. mhq1SpawnMarker is another marker I've put down in the base. The marker moving works fine. Now, when I am alone on the server and destroy the MHQ only one MHQ respawns. But then, when a friend of mine joins and we do the same, 2 of them spawn. If another friend join there are 3 vehicles spawning and so on. I've tried multiple variations of this code, including using remoteExec function, but no luck. I can't understand what's the issue, why this isn't working. I am aware that I could use a ready script from the net, but I'd like to learn scripting the way I'm doing it now instead of using other's work. Anyway, thans in advance for helping me out.
  17. Hi there, I'm looking for a way to attach an object to a building, in MP, remotely (from a client with a visual result for any client). Well, attachTo is a command supposed to be AG EG. So, where is the problem? If, as a client, my addon is able to attach an object thru an event Handler, the object is just attached locally (on client PC which triggered the EH). The other clients (or even hosted server) just can see the object on ground. Furthermore, if i try to attach this object on a vehicle, that works for every clients! On a building, only on the client PC performing the EH. I'm not sure there is a link with that: I remarked a difference between buildings and vehicles: The owner of (empty) vehicles is server ( owner returns 2), but buildings are just "remote" (owner returns 0). Any idea to attach an object to a building for any client?
  18. I d like to learn more about that command cause i ve to use it in near future i think. In another thread we stuck at the point where we d like to send one variable together with the command to the clients and tried to let the other variable get the Client itsself. this command should be executed on all clients: player reveal _desired_object; _desired_object should be sent from Server to all clients but player should be executed at the clients itsself to get the local player entity. EDIT: Could this be the solution?: _desired_object remoteExec ["player reveal", -2];
×