Search the Community
Showing results for tags 'json'.
Found 3 results
-
#Can someone explain why this wont work? { "dedicatedServerId": "ServerID", "region": "US-LA", "gameHostBindAddress": "xx.xx.xx.xx", "gameHostBindPort": 16000, "gameHostRegisterBindAddress": "xx.xx.xx.xx", "gameHostRegisterPort": 16001, "game": { "name": "Server Name Here", "password": "", "scenarioId": "{59AD59368755F41A}Missions/21_GM_Eden.conf", "playerCountLimit": 10, "visible": true, "gameMode": "", "gameProperties": { "serverMaxViewDistance": "800", "serverMinGrassDistance": "0", "networkViewDistance": "500", "battlEye": true, "disableThirdPerson": false }, "mods": [ { "modId": "5AAF6D5352E5FCAB", "name": "Project Redline - Core", "version": "" }, { "modId": "59B119F40203D491", "name": "Apartment_RXK", "version": "" }, { "modId": "5CCCC1DFB9C93581", "name": "AH-64D Apache", "version": "" }, { "modId": "5C7F3E319BE86A0C", "name": "Daniel Defense MK18", "version": "" }, { "modId": "5D968035B69FD43B", "name": "2nd Ranger Battalion Pack 2", "version": "" }, { "modId": "5AC2954C784671B3", "name": "Barrett M82", "version": "" }, { "modId": "5D931A33AEB81FA3", "name": "TalibanMod", "version": "" }, { "modId": "597D72161FD1ED1D", "name": "AttachmentsCompatibility", "version": "" }, { "modId": "5CA8F34E77DD532C", "name": "KOMRAD-12 Shotgun", "version": "" }, { "modId": "5D1880C4AD410C14", "name": "M1A1 Abrams", "version": "" }, { "modId": "5994AD5A9F33BE57", "name": "Game Master FX", "version": "" }, { "modId": "59B70A5A19E9B51E", "name": "Vergys Custom Clothing", "version": "" }, { "modId": "5AB890B71D748750", "name": "M4A1 Block ll and URG-I", "version": "" }, { "modId": "5CA6BA2F63DE1174", "name": "M17 Pistol", "version": "" }, { "modId": "5D8D003BC5D829EC", "name": "M2010 Enhanced Sniper Rifle", "version": "" }, { "modId": "59A30ACC02650E71", "name": "Night Vision System", "version": "" }, { "modId": "597F78639E6F65CE", "name": "AAC Honey BadgerSuppressed", "version": "" }, { "modId": "5B383D4CB27E0D54", "name": "bmp", "version": "" }, { "modId": "5C424C45BB14BC8A", "name": "3rd Ranger Vehicle Pack", "version": "" }, { "modId": "5D9114C702B0ADB0", "name": "2nd Ranger Battalion Pack 1", "version": "" }, { "modId": "5AD6FDAC65418DEA", "name": "CZ Scorpion EVO3 SMG", "version": "" }, { "modId": "5D0551624969C92E", "name": "Zeliks Character", "version": "" }, { "modId": "5ABD0CB57F7E9EB1", "name": "RIS Laser Attachments", "version": "" }, { "modId": "59BA0CE1B043CA92", "name": "Project Redline - MD500", "version": "" }, { "modId": "5B3ED33ADA805340", "name": "Task Force Mattock Weapons", "version": "" }, { "modId": "5CF0C3158\u0410B2337E", "name": "Task Force Mattock Uniforms", "version": "" }, { "modId": "5994614FB5AD35C2", "name": "RHIB", "version": "" }, { "modId": "59D64ADD6FC59CBF", "name": "Project Redline- UH60", "version": "" }, { "modId": "596D3D94153010B8", "name": "BWS - Modern Uniform", "version": "" }, { "modId": "5D5CDD82B55747B2", "name": "R3D_CORE Patch", "version": "" }, { "modId": "597D2A65AB73E657", "name": "BetterExplosives", "version": "" }, { "modId": "59664C0CB36501CD", "name": "BloodLust2", "version": "" }, { "modId": "5CA125536EE7430A", "name": "M110 DMR", "version": "" }, { "modId": "5A78300A9F2D7A65", "name": "HMAS Adelaide", "version": "" }, { "modId": "5AB301290317994A", "name": "Suppressor System", "version": "" }, { "modId": "5C721177A220B42F", "name": "Joint Light Tactical Vehicle", "version": "" }, { "modId": "596A46029747E4D5", "name": "Flare", "version": "" }, { "modId": "5CAB7D88BB567AD6", "name": "CH-47", "version": "" }, { "modId": "5B02128D896F7DE8", "name": "stryker", "version": "" }, { "modId": "596931F2BD5788B1", "name": "Mortars", "version": "" }, { "modId": "5C9AD9EF76F6B5EA", "name": "zu-23", "version": "" }, { "modId": "5D5A20A8AE33C21E", "name": "couger mrap", "version": "" }, { "modId": "59E756973590AC4C", "name": "PAK", "version": "" } ], "autoJoinable": false, "supportedGameClientTypes": [ "PLATFORM_PC", "PLATFORM_XBL" ] }, "a2sQueryEnabled": true, "steamQueryPort": 16001 }
-
ArmaWS Lastest Version : 0.2 by Code34 ____________________________________________________________________________________________________________________ Direct Download from Dropbox Github: https://github.com/code34/armaws_x64 ArmaWS is a json client extension that permits from Arma to exchange with remote host json files. Exemple1 Send a JSON file to httpbin server and retrieve a json file convert into an arma array private _armaws = "new" call OO_ARMAWS; private _params = [["username","code34"],["message","hello world"],["id", 103],["type","soldier"]]; ["setUrl", "https://httpbin.org/post"] call _armaws; _result = ["callWs", _params] call _armaws; hintc format["%1",_result]; Exemple2 Send a message to a chan text on Discord through a webhook private _armaws = "new" call OO_ARMAWS; private _params = [["username","R2D2"],["content","hello world"]]; ["setUrl", yourwebhookurl] call _armaws; ["callWs", _params] call _armaws; README DOCUMENTATION Have fun 🙂
-
How to add player ID's automatically in loadout.sqf
bohemia_kaiten posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I was wondering if there is any way to require data from .json files inside q .sqf file. Or anything that covers that functionallity. The thing is: when a player buy a new custom loadout on the website, a post request is made with his ID to a file. Then, the if statemant checks the json file to watch for the player ID instead to watch for it on the array. the execVM function can do this? there is other way? Thank you all. //Default way for doing this if ((getPlayerUID player) in ["456789123"]) then { //Donators: Nobody DefaultMagazines = [{custom_items}]; DefaultWeapons = [{custom_items}]; DefaultBackpack = "{custom_item}"; DefaultBackpackWeapon = "{custom_item}"; }; //Exepected way loadout.sqf if ((getPlayerUID player) in {file.json} ) then { //Donators: Nobody DefaultMagazines = [{custom_items}]; DefaultWeapons = [{custom_items}]; DefaultBackpack = "{custom_item}"; DefaultBackpackWeapon = "{custom_item}"; }; //JSON with the buyers ID's file.json {[ '123456789','987654321', '159753468',..... ]}