Jump to content
Sign in to follow this  
tonic-_-

Altis Life RPG

Recommended Posts

Since the update ARMA 3, my Altis Life server crash regularly you have a solution ?

Share this post


Link to post
Share on other sites

im trying to give the random cop ranks to various coplevels, so if a player got not the exact for the cop player slot, he will get the "not whitelisted" message and will be move back to the lobby. Because at coplevel 0, he cant join any of other ranks than the cop 1-4. But im setting it to level 1, he can join every cop slot without the right permissions :s

#include <macro.h>
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine

Description:
Cop Initialization file.
*/
private["_end"];
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
_end = false;
if(life_blacklisted) exitWith
{
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};
/*
[] spawn {
while {true} do {
	_clear = nearestObjects [player,["Rangemaster_Suit","U_Rangemaster"],500];
	for "_i" from 0 to count _clear - 1 do {
		deleteVehicle (_clear select _i);
		sleep 0.1;
	};
	sleep 30;
};
};
*/

if ((str(player) in ["cop_1","cop_2","cop_3","cop_4"])) then
{
[] call life_fnc_spawnMenu;
}
else
{
if ((str(player) in ["cop_5","cop_6","cop_7","cop_8","cop_9","cop_10"])) then
{
	if(__GETC__(life_coplevel) > 1) then
	{
		[] call life_fnc_spawnMenu;
	}
	else
	{
		["NotWhitelisted",false,true] call BIS_fnc_endMission;
		sleep 35;
	};
}
else
{
	if ((str(player) in ["cop_11","cop_12","cop_13","cop_14","cop_15"])) then
	{
		if(__GETC__(life_coplevel) > 2) then
		{
			[] call life_fnc_spawnMenu;
		}
		else
		{
			["NotWhitelisted",false,true] call BIS_fnc_endMission;
			sleep 35;
		};
	};
}
else
{
	if ((str(player) in ["cop_16","cop_17","cop_18"])) then
	{
		if(__GETC__(life_coplevel) > 3) then
		{
			[] call life_fnc_spawnMenu;
		}
		else
		{
			["NotWhitelisted",false,true] call BIS_fnc_endMission;
			sleep 35;
		};
	};
}
else
{
	if ((str(player) in ["cop_19"])) then
	{
		if(__GETC__(life_coplevel) > 4) then
		{
			[] call life_fnc_spawnMenu;
		}
		else
		{
			["NotWhitelisted",false,true] call BIS_fnc_endMission;
			sleep 35;
		};
	};
};
};


waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
//execVM "core\spawnMessage.sqf";

will this work?

Edited by wrongbottle

Share this post


Link to post
Share on other sites

Normal operation: 7000-10000kbs

Since update: 7000-10000kbs but very fequently spiking to 20-50k!!

Someone has found an exploit to ddos the servers?

Edit: Even higher, sometimes 100k :/

notnormal.jpg

---------- Post added at 17:09 ---------- Previous post was at 16:12 ----------

Something is utterly smashing the bandwidth in the latest mod, either by our change or by default. Will run some tests.

Other server owners if you could report back with full server stats that would be helpful.

Edited by ToejaM

Share this post


Link to post
Share on other sites
Normal operation: 7000-10000kbs

Since update: 7000-10000kbs but very fequently spiking to 20-50k!!

Someone has found an exploit to ddos the servers?

Edit: Even higher, sometimes 100k :/

http://s27.postimg.org/445dkofgj/notnormal.jpg

---------- Post added at 17:09 ---------- Previous post was at 16:12 ----------

Something is utterly smashing the bandwidth in the latest mod, either by our change or by default. Will run some tests.

Other server owners if you could report back with full server stats that would be helpful.

Has to be caused by the new ARMA 3 Update. Because what changed mostly was client-side stuff in the regards of accessing stuff that was add-action based.. Or possibly one of your modifications.

Share this post


Link to post
Share on other sites

Unless there is an issue in your mission, I would say its an Arma issue and I'll detail why:

3 people on the server

Test 1) Your vanilla files (1mb mission file) - Bandwidth ingame for all players = 1k-1.6k ish

Test 2) Our merged files, (17mb mostly textures) - All bandwidths of 15-16K!

Test 3) Your vanilla files + our textures folder (16ish meg) - All bandwidths on the server of 15-16k!!

Baring in mind in test three all I did was, was copy the texture folder into the mission folder and then boot the server.

There is an issue with the latest MP build as I'm pretty sure this is not normal!!

Is there a setting or something that has been overlooked server side for us, something A3 has introduced in the latest patch?

Relogging: Fixes it.. but if you dont relog it takes ages for the numbers to come down, on a full server this takes absolutely ages!

I'd say definately an arma3 update issue

Edited by ToejaM

Share this post


Link to post
Share on other sites

Hello, i have Problem ! Me Shop Inventory is Empty !!

Share this post


Link to post
Share on other sites
Hello, i have Problem ! Me Shop Inventory is Empty !!

hello my car makes funny sounds, i don't know from where and my car is in my garage so no1 can look into it.....

Share this post


Link to post
Share on other sites

Okey, in what for files is this define the Shop Buys?

Share this post


Link to post
Share on other sites
Okey, in what for files is this define the Shop Buys?

Ignoring your horrible grammar. How old are you again? No sorry, going off topic.

The file you want is

\core\config\fn_weaponShopCfg.sqf

Make SURE the tables are PROPERLY formatted. For instance

["hgun_P07_snds_F","Stun Pistol",2000],
					["arifle_MX_F",nil,20000],
					["hgun_P07_F",nil,7500],
					["Binocular",nil,150],
					["ItemGPS",nil,100],
					["ToolKit",nil,250],
					["muzzle_snds_L",nil,650],
					["FirstAidKit",nil,150],
					["Medikit",nil,1000],
					["NVGoggles",nil,2000],
					["16Rnd_9x21_Mag",nil,50],
					["30Rnd_65x39_caseless_mag",nil,130]

Works

["hgun_P07_snds_F","Stun Pistol",2000],
					["arifle_MX_F",nil,20000],
					["hgun_P07_F",nil,7500],
					["Binocular",nil,150],
					["ItemGPS",nil,100],
					["ToolKit",nil,250],
					["muzzle_snds_L",nil,650],
					["FirstAidKit",nil,150],
					["Medikit",nil,1000],
					["NVGoggles",nil,2000],
					["16Rnd_9x21_Mag",nil,50],
					["30Rnd_65x39_caseless_mag",nil,130],

Does not.

Share this post


Link to post
Share on other sites

Can someone tell me where the police white list file is i couldn't join the police because it was whitelisted please help much appreciated if someone could help me. Thanks and keep up the good work Tonic-_-

Share this post


Link to post
Share on other sites

Hey guys i need help i didn´t find the "life_fnc_weaponShopMenu" where its this file :(

Share this post


Link to post
Share on other sites

Ok i have a Porblem in my normal CIV car shop i only can buy the Service truck.

The other Offroaders are gone all of them just the service truck is in there

plz help me

Share this post


Link to post
Share on other sites
Can someone tell me where the police white list file is i couldn't join the police because it was whitelisted please help much appreciated if someone could help me. Thanks and keep up the good work Tonic-_-

You have to change it in your database. The column should be "cop_lvl" with the default value 0. Change it to a value between 1 - 7(1 = Cadet & 7 = Chief of Police).

Share this post


Link to post
Share on other sites

@Lofty my grammar ... i am not Englisch !!

And 20y. old ... for your info

And thanks i look in the script now with String finder

Share this post


Link to post
Share on other sites

Restraint players can still exit vehicles any chance there is a fix to this? 3.0.0 had this I think but it never worked properly

Share this post


Link to post
Share on other sites
Hey guys i need help i didn´t find the "life_fnc_weaponShopMenu" where its this file :(

It's in the missionpbo/core/config folder! You will find other handy ones in there too

---------- Post added at 13:35 ---------- Previous post was at 13:34 ----------

Ok i have a Porblem in my normal CIV car shop i only can buy the Service truck.

The other Offroaders are gone all of them just the service truck is in there

plz help me

Did you make any edits? If so, you may have left out a comma or quote or something silly, it happens.

Also, check the file, maybe they are not in there, otherwise you could add them

---------- Post added at 13:40 ---------- Previous post was at 13:35 ----------

Can someone tell me where the police white list file is i couldn't join the police because it was whitelisted please help much appreciated if someone could help me. Thanks and keep up the good work Tonic-_-

It's managed via the database under the column cop_lvl

---------- Post added at 13:47 ---------- Previous post was at 13:40 ----------

Try this, you don't need the big else statements, just if after if.

#include <macro.h>
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine

Description:
Cop Initialization file.
*/
private["_end"];
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
_end = false;
if(life_blacklisted) exitWith
{
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};
/*
[] spawn {
while {true} do {
	_clear = nearestObjects [player,["Rangemaster_Suit","U_Rangemaster"],500];
	for "_i" from 0 to count _clear - 1 do {
		deleteVehicle (_clear select _i);
		sleep 0.1;
	};
	sleep 30;
};
};
*/

if ((str(player) in ["cop_5","cop_6","cop_7","cop_8","cop_9","cop_10"])) then
	{
		if(__GETC__(life_coplevel) > 1) then
		{
			[] call life_fnc_spawnMenu;
		}
		else
		{
			["NotWhitelisted",false,true] call BIS_fnc_endMission;
			sleep 35;
		};
	}

	if ((str(player) in ["cop_11","cop_12","cop_13","cop_14","cop_15"])) then
	{
		if(__GETC__(life_coplevel) > 2) then
		{
			[] call life_fnc_spawnMenu;
		}
		else
		{
			["NotWhitelisted",false,true] call BIS_fnc_endMission;
			sleep 35;
		};
	};

	if ((str(player) in ["cop_16","cop_17","cop_18"])) then
	{
		if(__GETC__(life_coplevel) > 3) then
		{
			[] call life_fnc_spawnMenu;
		}
		else
		{
			["NotWhitelisted",false,true] call BIS_fnc_endMission;
			sleep 35;
		};
	};


	if ((str(player) in ["cop_19"])) then
	{
		if(__GETC__(life_coplevel) > 4) then
		{
			[] call life_fnc_spawnMenu;
		}
		else
		{
			["NotWhitelisted",false,true] call BIS_fnc_endMission;
			sleep 35;
		};
	};
};


waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
//execVM "core\spawnMessage.sqf";

I use this to make sure my SWAT slots only go to high ranking officers like this

#include <macro.h>
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine

Description:
Cop Initialization file.
*/
private["_end"];
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
_end = false;
if(life_blacklisted) exitWith
{
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};

if((str(player) in ["cop_1","cop_2","cop_3","cop_4","cop_5","cop_6","cop_7","cop_8","cop_9","cop_10","cop_11","cop_12","cop_13","cop_14","cop_15"])) then {
if((__GETC__(life_coplevel) < 1) && (__GETC__(life_adminlevel) < 1)) then {
	["NotWhitelisted",false,true] call BIS_fnc_endMission;
	sleep 35;
};
};
if((str(player) in ["cop_16","cop_17","cop_18","cop_19"])) then {
   if((__GETC__(life_coplevel) < 5) && (__GETC__(life_adminlevel) < 1)) then {
       ["NotWhitelisted",false,true] call BIS_fnc_endMission;
       sleep 35;
   };

};
[] call life_fnc_spawnMenu;
waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.

Share this post


Link to post
Share on other sites

Ty Tonic for your great Job!

Greetz

Xeretic

Edited by xeretic

Share this post


Link to post
Share on other sites

whats with a nice battleye config? are they required? Someone got one for me?

Share this post


Link to post
Share on other sites

hi guys, when my server have about 50 players, fetching vehicle, spawn vehicle, spawn players and other functions that require the sql connection don't work fast, but very very slow, do you know if there's a trick to fix that?

Share this post


Link to post
Share on other sites

Hello,

I want a script to put the hand behind the head.

I'd find it but not functioned.

Did you?

Can we save the inventory of the vehicle when the garage?

thank you

Share this post


Link to post
Share on other sites

Hey,

I've already searched this thread but didn't find a solution for my problem :(

I'd like to delete everything in the civ_gear / cop_gear database if a player dies, but don't know how to do it.

Is somebody out there who can tell me?

Thanks

edit: solved

Edited by Somma1986

Share this post


Link to post
Share on other sites
Combed all 920 posts on this thread, but there still is not an answer on how to swap the textures for the police uniforms (not the cars). We have tried everything. "setObjectTexture" (both this and Global attached at the end) and command "spawn BIS_fnc_MP" in multiple areas with multiple sqfs, and still nothing unfortunately.

By that, we have used player setObjectTexture [0, "texture\police_uni.paa"]; creating a separate file in the functions folder with a call function in the fn_initCop.sqf. As well as various other things. Still nothing.

Has anyone figured it out, and would be an awesome person on here and tell us exactly how? I am sure that a ton of people would be extremely grateful for the information.

Thanks.

I used a texture that replaces U_B_CombatUniform_mcam. I disabled the cop clothing shop and removed everyone's cop_gear.

In core\config\fn_copDefault.sqf I set the cop's uniform to "U_B_CombatUniform_mcam".

In core\fn_initCop.sqf I added:

player setObjectTextureGlobal [0, "textures\mytexture.paa"];

before

[] call life_fnc_spawnMenu;

And then in core\jip.sqf I added at the end:

{
   if (side _x == west) then {
       _x setObjectTexture [0, "textures\mytexture.paa"];
   };
} foreach playableUnits;

It's surely not perfect, and I have no idea if the loop in jip.sqf is superfluous (I don't know if setObjectTextureGlobal handles JIP by default).

Generally, I just tell my cops not to change their uniform at all and it works fine.

Share this post


Link to post
Share on other sites

Restraint players can still exit vehicles any chance there is a fix to this? 3.0.0 had this I think but it never worked properly

Share this post


Link to post
Share on other sites

Hello all,

I am looking for help with:

Re-Skinning Hunter for Cops,

&

Civ weapon saving,

Any help would be great, Can you please inbox me if you are able to help.

-TeamOldSkool

ts3.teamoldskool.com

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×