XmarksTheScot
Member-
Content Count
18 -
Joined
-
Last visited
-
Medals
Everything posted by XmarksTheScot
-
Remote Execution, passing variable to reskin vehicle for all players
XmarksTheScot posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Ok so i stumbled across the setobjecttexture command for vehicles and decided reskin all the vehicles in our domination server. so i placed the commands in the vehicles init in editor and also in the re-spawn script. OFC i then realized that its a local command. so i decided to try the remote execution using the MPF. and then i got stuck. So just to be clear i have made arrays of vehicles types of, which required different surfaces skined so my script checks the array and skins the correct surfaces with the correct skin. so heres my codes can some one please tell me how i pass the vehicle the script is working on to the remote executed code on the clients machines just to be clear i am trying to do this in 3 places, the x_vehrespawn2.sqf, x_helirespawn2.sqf, and our own clan vehicle creator script. so i have a few version of teh script to call dependant on where i call it but they all need to pass the vehicle its working on to a script so should all work same way. init.sqf //SOG reskining array surface0array = ["Ka52","Ka52Black","Su25_CDF","Su34","Mi24_D","BMP3","M1A1","M1A2_TUSK_MG","Mi17_Ins","Mi17_CDF","A10","T34","T72_Gue","T90","ZSU_INS","LAV25","2S6M_Tunguska","AAV","BMP2_CDF","BRDM2_ATGM_CDF","BRDM2_CDF","BTR90","HMMWV_Armored","HMMWV_M2","HMMWV_MK19","HMMWV_TOW","Offroad_DSHKM_Gue","Offroad_SPG9_Gue","UAZ_AGS30_INS","UAZ_MG_CDF","Ural_ZU23_CDF","ZSU_INS","MTVR","MtvrReammo","MtvrRefuel","MtvrRepair","HMMWV_Ambulance","Mi17_Civilian","HMMWV","LAV25_HQ"]; surface1array = ["Ka52","Ka52Black","Su25_CDF","Su34","Mi24_D","BMP3","M1A1","M1A2_TUSK_MG","GAZ_Vodnik_HMG","T34","T72_Gue","T90","ZSU_INS","MTVR","MtvrReammo","MtvrRefuel","MtvrRepair"]; surface2array = ["Mi17_Ins","Mi17_CDF","GAZ_Vodnik_HMG","LAV25","T34","T90","2S6M_Tunguska","Mi17_Civilian","LAV25_HQ"]; surface3array = ["M1A2_TUSK_MG","MTVR","MtvrReammo","MtvrRefuel","MtvrRepair"]; respawn / creator script _plane = _planeName createVehicle (getMarkerPos _place); [nil, nil, "per", rEXECVM, "SOG\vehskinc.sqf", _plane] call RE; if (typeOf _plane in surface0array) then { _plane setObjectTexture [0,"texture\camoclan.paa"]; }; if (typeOf _plane in surface1array) then { _plane setObjectTexture [1,"texture\camoclan.paa"]; }; if (typeOf _plane in surface2array) then { _plane setObjectTexture [2,"texture\camoclan.paa"]; }; called script _veh = _this select 1; if (typeOf _veh in surface0array) then { _veh setObjectTexture [0,"texture\camoclan.paa"]; }; if (typeOf _veh in surface1array) then { _veh setObjectTexture [1,"texture\camoclan.paa"]; }; if (typeOf _veh in surface2array) then { _veh setObjectTexture [2,"texture\camoclan.paa"]; }; Currently when a vehicle respawns / or is created it only shows skin to person creating it or when its a respawn, no1 as its local to server only :( And before i forget yes i placed a functions module in the editor and its domination 2.61 A2 only. Not that the domi is relevant but ... Anyway, anyone spot my mistake or am i doin something really stupid or is what im doin impossible or what? -
B.E.C. "Battleye Extended Controls" - Admin Tool
XmarksTheScot replied to nuxil's topic in ARMA 2 & OA - Servers & Administration
mmm but both files work fine in 1.47 unless have some commands been removed / changed in 1.48 -
B.E.C. "Battleye Extended Controls" - Admin Tool
XmarksTheScot replied to nuxil's topic in ARMA 2 & OA - Servers & Administration
Ok now on the new 1.48 version i try to get it to login to a remote server and i have disabled the server pid check, but it just runs, checks bec version and closes. -
B.E.C. "Battleye Extended Controls" - Admin Tool
XmarksTheScot replied to nuxil's topic in ARMA 2 & OA - Servers & Administration
Strange becuase it still seems to be using my badnames and badwords files ok -
B.E.C. "Battleye Extended Controls" - Admin Tool
XmarksTheScot replied to nuxil's topic in ARMA 2 & OA - Servers & Administration
I can now confirm the --dsc switch now means that this doesnt need to run on the server itself, i currently have it setup to login to a slotted rented server. so just AWESOME NESSS Cheers mate EDIT It appears the scheduler wont work.. all the other option block stuff seems fine, just cant get scheduler to work. which is weird as the same scheduler file seems to work fine on a server on teh same box, but if i run BEC and give it remote info in the IP and port and disable the PID check, it logs in fine and commands work and stuff, but it just wont run scheduler to "chat" with server. -
Remote Execution, passing variable to reskin vehicle for all players
XmarksTheScot replied to XmarksTheScot's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
so whats the differences then? which is the best to use, or is it 6 and half a dozen? -
Remote Execution, passing variable to reskin vehicle for all players
XmarksTheScot replied to XmarksTheScot's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
yeah but im doin it on a Domination server on all bonus vehicles , all support vehicles and 2 different types of created vehicles. how would your solution of setvehilceinit / processinitcommands handle JIP players? -
Multiplayer setObjectTexture?
XmarksTheScot replied to d0nar's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
use the MPF framework mate and call the command using remote execution, i had a similar issue in this thread here so use this line to call the script on all clients and your local machine [nil,nil,"loc" + "per",rSETOBJECTTEXTURE,_object,0,"circular_target.paa"] call RE; -
Remote Execution, passing variable to reskin vehicle for all players
XmarksTheScot replied to XmarksTheScot's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
i had tried the setvehicleinit but it still didnt work, the texture was only shown on the machine local to the script. And as cuel says, was this not the very reason setobjecttexture command was added to the RE command library? -
Remote Execution, passing variable to reskin vehicle for all players
XmarksTheScot replied to XmarksTheScot's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Ok so i tried your suggestion but no luck mate ---------- Post added at 01:27 ---------- Previous post was at 00:03 ---------- ok so i realized that i had used the wrong variable name when i copied your example, but even correcting it didn't work so, i check my rpt file to find this Error in expression <; _texture = _this select 4; _tObject setObjectTexture [_tIndex, _texture]; > Error position: <setObjectTexture [_tIndex, _texture]; > Error Type String, expected Number So i unpbo'd the modules.pbo and loked into the MP folder to find all teh scripts it calls when you use MPF, and looked at teh setobjecttexture.sqf and it contained this scriptName "MP\data\scriptCommands\setObjectTexture.sqf"; _caller = _this select 0; _target = _this select 1; _tObject = _this select 2; _tIndex = _this select 3; _texture = _this select 4; //textLogFormat ["MPF_ %1 setDir %2", _target, _dir]; _tObject setObjectTexture [_tIndex, _texture]; So i realsied that it was simply that you had put " " round the surface index :D so i placed this into my code [nil,nil,"per",rSETOBJECTTEXTURE,_plane,0,"texture\camoclan.paa"] call RE; AND...... I works a treat. so we now have custom skined vehicles on our domination server and best of all it even executes the code on players when they join so skinned vehicles remain skinned for everyone all the time. So thanks mate your help made me at least rethink it a bit :P -
Remote Execution, passing variable to reskin vehicle for all players
XmarksTheScot replied to XmarksTheScot's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
CBA aint an option as we run a public arma 2 free server and have no addons. ill try your code you quoted and see how it goes mate. i would ofc have to do it like so ? _plane = _planeName createVehicle (getMarkerPos _place); if (typeOf _plane in surface0array) then { _plane setObjectTexture [0,"texture\camoclan.paa"]; [nil,nil,"per",rSETOBJECTTEXTURE,_veh,"0","texture\camoclan.paa"] call RE; }; if (typeOf _plane in surface1array) then { _plane setObjectTexture [1,"texture\camoclan.paa"]; [nil,nil,"per",rSETOBJECTTEXTURE,_veh,"1","texture\camoclan.paa"] call RE; }; if (typeOf _plane in surface2array) then { _plane setObjectTexture [2,"texture\camoclan.paa"]; [nil,nil,"per",rSETOBJECTTEXTURE,_veh,"2","texture\camoclan.paa"] call RE; }; Yeah? -
User Monetization of BI's games Audio&Video content(YoutTube,Twitch Partnership etc.)
XmarksTheScot replied to Dwarden's topic in BOHEMIA INTERACTIVE: Web-Pages
So would we need this is we wanted to use screens from the game on custom products from zazzle.com? we are a clan and any funds generated this way go back into funding our game servers -
Tracking down hacks (pre script.log) Arma 2
XmarksTheScot posted a topic in ARMA 2 & OA - Servers & Administration
Hi there ladies and gents as you may doubt realize from the thread title im trying to gain some info on how to actually find out who hacked the server when looking over logs. Currently we run an Arma 2 server which ofc being 1.11 doesn't support the lovely new BE script.txt feature (get your finger out BI). So how then do i find out who hacked the server and what files should i be looking in. I currently have BEC running logging console and chat, and also have the server logfile specified in the config too. Any help would be appreciated as currently we just have to restart and hope that next time we can spot him and ban but with very little way of seeing who hacks the server even if your on at the time its hard goin. -
Tracking down hacks (pre script.log) Arma 2
XmarksTheScot replied to XmarksTheScot's topic in ARMA 2 & OA - Servers & Administration
Its a Windows server mate Are these programs i run onthe server then? -
hosted mission security available?
XmarksTheScot replied to twisted's topic in ARMA 2 & OA - Servers & Administration
Cool or not he was a hacker and should be BANNED, and IMHO have his genitals removed so he cant reproduce! As for anticheat on no dedi mate im not sure tbh, i think the script loggin etc only works on dedis -
Tracking down hacks (pre script.log) Arma 2
XmarksTheScot replied to XmarksTheScot's topic in ARMA 2 & OA - Servers & Administration
Nearly 50 views and no1 even replies with a "sorry cant help" PFFT!!!!!!! -
Introducing Server-side Event Logging/Blocking
XmarksTheScot replied to $able's topic in ARMA 2 & OA - Servers & Administration
Yet again new features that us Arma 2 only server managers have to cross fingers and hope that they finally get round to patching us to. Meanwhile we suffer constant hacking and script kiddies attacking our servers because BI make it SOOOOO easy just to DL a new copy of A2free with a brand spanking new GUID so they can carry on after you ban them. -
B.E.C. "Battleye Extended Controls" - Admin Tool
XmarksTheScot replied to nuxil's topic in ARMA 2 & OA - Servers & Administration
Hey folks just thot id finally jump in on a thread here as it seems no1 has come back to him. Your LogDir is wrong mate, it shoudl just be the dir not the file as BEC creates the files with timestamps etc so just change it to LogDir = c:\ServerTools\Bec\Log and all your logs will be created in that folder.