Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - humbleuk

Pages: [1]
1
Armed Assault 2 / Overwriting config.bin for servers.? (wall of text)
« on: July 29, 2012, 04:04:51 am »
Hello.

I am stuck, currently i have a "private" version of DayZ mod which saves to my own sql server and of course at night it's pitch black, i would like to get the lights turned back on.
In the files for dayz client side is a file called dayz_code which i unpack and then view the config.bin file.

I use Unrap to open up the files for editing.
Now inside the file is the config.cpp which has a line to #include confignonAIvehicles.
He (rocket) lists the lights in this confignonAIvehicles file, so all i do is remove the #include line from the config.

After this i repack it, and the lights work,  but only for me as i am only changing the local file.
Is there anyway i can get my server to overide the config.bin - maybe i can light up the lights somewhere else through the mission file?

any help please..?

I have also been trying the same for banned vehicles in day z but with no luck, i was able to find some vehicles that rocket didn't ban, but i would of course like to have a few extras in there.
I could tell my  players to use my modified dayz_code.pbo.
I could create a tiny addon that reverts DayZ' light config and tell my players to install it. (but again no-one wants to install more addons)
I modify the server code and spawn players with some custom loadouts once they spawn they have certain items already

So i am basically looking how i can make my server overwrite the banned classes at load.
Any ideas?

I know this is a cheat site, but there are obviously alot of coders here for vanilla arma2 and of course dayz :P  - i'd appreciate any help at all.



2
Armed Assault 2 / Re: Vehicles,players map mark
« on: June 14, 2012, 09:32:49 am »
Hi all, i have tried this code:

Code: [Select]
vehicleList = vehicles;
j = count vehicleList;
i = 0;
markPosVeh = true;

while {markPosVeh} do
{
vehicleList = vehicles;
j = count vehicleList;
i = 0;

for "i" from 0 to j do
{
veh = vehicleList select i;

deleteMarkerLocal ("VehMarker"+ (str i));
marker2 = "VehMarker" + (str i);
marker2 = createMarkerLocal [marker2,getPos veh];
marker2 setMarkerTypeLocal "mil_dot";
marker2 setMarkerPosLocal (getPos veh);
marker2 setMarkerColorLocal("ColorGreen");
marker2 setMarkerTextLocal format ["%1",typeOf veh];
};
sleep 20;
};
hint "VehMarkings Stopping";
i = 0;
for "i" from 0 to j do
{
veh = vehicleList select i;
deleteMarkerLocal ("VehMarker"+ (str i));
};

which worked for some time, then it stopped working so i removed the local out of the equation.
After that it stopped working this morning on my usual server.

So i have been putting variable names that are random and trying different methods for other functions, still detected.
Anyone kind enough to help.

On a server i run i know all this is now blocked for scripts:

Code: [Select]
5 Bo_Mk82
5 Loki
5 Gerk
5 (vehicle player) addEventHandler ["handleDamage", { false }];
5 player addEventHandler ["handleDamage", { false }];
5 GodMode
5 God mode
5 Infammo
5 InfiniteAmmo
5 Infinite Ammo
5 Killplayer
5 OwnageMenu
5 EjectPlayer
1 setVehicleInit
5 MrMedic
5 U-NO-WHO
5 Alex
5 Darky
5 Alexenderpack
5 Alexenderp$ck
5 Troopman
5 Troopmon
5 mod-apps
5 U-NO-
5 onMapSingleClick
5 gau
5 aa12
5 bomblauncher
5 azp85
5 m1a1
5 M1A2_TUSK_MG
1 createMarker
1 setMarkerPos
5 Teleport
5 teled
1 vehicle player setPos
1 (vehicle player) setPos
1 addWeapon
5 createLocation
1 private ["_dummy"]; _dummy
5 Vojtec
5 hint format ["A %1 has been added", gun]
5 vehicle player setpos _pos;
5 marker2 setMarkerPosLocal (getPos veh)
5 marker2 = createMarkerLocal [marker2,getPos veh];
5 marker2 = "VehMarker" + (str i);
5 onDoubleClick
5 _markerMirador
5 TKCV1_0\TKCOWNS.sqf
5 [_this,"players"] execVM "\ca\ui\scripts\dedicatedServerInterface.sqf";
5 _v addweapon "A"+"A1"+"2_PM"+"C"; _v addmagazine "20R"+"nd
5 [_this,"login"] execVM
5 addWeaponCargo ["M14_EP1"
5 addWeaponCargo ["Remington870_lamp"
5 addWeaponCargo ["M4A3_CCO_EP1"
5 addWeaponCargo ["M4A1_AIM_SD_camo"
5 addWeaponCargo ["BAF_L85A2_RIS_CWS"
5 addWeaponCargo ["BAF_AS50_scoped"
5 addWeaponCargo ["Winchester1866"
5 addWeaponCargo ["LeeEnfield"
5 addWeaponCargo ["revolver_EP1"
5 addWeaponCargo ["FN_FAL"
5 addWeaponCargo ["FN_FAL_ANPVS4"
5 addWeaponCargo ["m107"
5 addWeaponCargo ["Mk_48_DZ"
5 addWeaponCargo ["M249_DZ"
5 addWeaponCargo ["DMR"
5 addWeaponCargo ["M16A2"
5 addWeaponCargo ["M16A2GL"
5 addWeaponCargo ["AK_47_M"
5 addWeaponCargo ["AK_74"
5 addWeaponCargo ["M4A1_Aim"
5 addWeaponCargo ["AKS_74_kobra"
5 addWeaponCargo ["AKS_74_U"
5 addWeaponCargo ["AK_47_M"
5 addWeaponCargo ["M24"
5 addWeaponCargo ["M1014"
5 addWeaponCargo ["M4A1"
5 addWeaponCargo ["MP5SD"
5 addWeaponCargo ["MP5A5"
5 addWeaponCargo ["huntingrifle"
5 addWeaponCargo ["glock17_EP1"
5 addWeaponCargo ["M9"
5 addWeaponCargo ["M9SD"
5 addWeaponCargo ["Colt1911"
5 addWeaponCargo ["UZI_EP1"
5 addMagazineCargo ["30Rnd_556x45_Stanag"
5 addMagazineCargo ["30Rnd_556x45_StanagSD"
5 addMagazineCargo ["20Rnd_762x51_DMR"
5 addMagazineCargo ["30Rnd_762x39_AK47"
5 addMagazineCargo ["5Rnd_762x51_M24"
5 addMagazineCargo ["10Rnd_127x99_m107"
5 addMagazineCargo ["8Rnd_B_Beneli_74Slug"
5 addMagazineCargo ["1Rnd_HE_M203"
5 addMagazineCargo ["FlareWhite_M203"
5 addMagazineCargo ["FlareGreen_M203"
5 addMagazineCargo ["1Rnd_Smoke_M203"
5 addMagazineCargo ["200Rnd_556x45_M249"
5 addMagazineCargo ["8Rnd_B_Beneli_Pellets"
5 addMagazineCargo ["30Rnd_9x19_MP5"
5 addMagazineCargo ["30Rnd_9x19_MP5SD"
5 addMagazineCargo ["100Rnd_762x51_M240"
5 addMagazineCargo ["15Rnd_W1866_Slug"
5 addMagazineCargo ["5x_22_LR_17_HMR"
5 addMagazineCargo ["10x_303"
5 addMagazineCargo ["15Rnd_9x19_M9"
5 addMagazineCargo ["15Rnd_9x19_M9SD"
5 addMagazineCargo ["7Rnd_45ACP_1911"
5 addMagazineCargo ["17Rnd_9x19_glock17"
5 addMagazineCargo ["8Rnd_9x18_Makarov"
5 addMagazineCargo ["6Rnd_45ACP"
5 addMagazineCargo ["8Rnd_9x18_Makarov"
5 addWeaponCargo ["Binocular_Vector"
5 addWeaponCargo ["NVGoggles"
5 addWeaponCargo ["ItemGPS"
5 addWeaponCargo ["ItemMap"
5 addWeaponCargo ["ItemCompass"
5 addWeaponCargo ["ItemWatch"
5 addWeaponCargo ["ItemKnife"
5 addWeaponCargo ["ItemMatchbox"
5 addMagazineCargo ["PipeBomb"
5 addMagazineCargo ["HandGrenade_west"
5 addMagazineCargo ["ItemBandage"
5 addMagazineCargo ["ItemPainkiller"
5 addMagazineCargo ["ItemMorphine"
5 addMagazineCargo ["ItemEpinephrine"
5 addMagazineCargo ["ItemAntibiotic"
5 addMagazineCargo ["ItemBloodbag"
5 addMagazineCargo ["PartEngine"
5 addMagazineCargo ["PartGeneric"
5 addMagazineCargo ["PartVRotor"
5 addMagazineCargo ["ItemJerrycan"
5 addBackpackCargo ["DZ_ALICE_Pack_EP1"
5 addBackpackCargo ["DZ_Backpack_EP1"

which limits me alot due to my small knowledge, any help with a vehicle map marker script please?

Pages: [1]