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

Altis Life RPG

Recommended Posts

Hi midget,

I tried what you suggested and Im still not getting Siren Lights ON when pulling the hunter or offroad out of the garage, whether its day or night. I also noticed that I didn't have the SunMoon line in the setupactions function in anycase. Siren lights work when purchasing new during the day or night still. Very strange behaviour...has had me stumped for days...

Share this post


Link to post
Share on other sites

I tried what you suggested and Im still not getting Siren Lights ON when pulling the hunter or offroad out of the garage, whether its day or night. I also noticed that I didn't have the SunMoon line in the setupactions function in anycase. Siren lights work when purchasing new during the day or night still. Very strange behaviour...has had me stumped for days...

This is how I fixed it, its a dirty fix but it worked use this in your fn_copLights.sqf Script in the cop Folder

/*

@Version: 1.0

@Author: Tonic, [bWG] Joe

@Edited: 28.08.2013

*/

private ["_vehicle","_lightRed","_lightBlue","_lightleft","_lightright","_leftRed","_brightness","_attach"];

_vehicle = _this select 0;

if (isNil "_vehicle" || isNull _vehicle || !(_vehicle getVariable "lights")) exitWith {};

switch (typeOf _vehicle) do {

case "C_Hatchback_01_F": { _attach = [[-0.6, 2, -0.95], [0.6, 2, -0.95]]; };

case "C_Offroad_01_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "C_SUV_01_F": { _attach = [[-0.4, 2.3, -0.55], [0.4, 2.3, -0.52]]; };

case "B_Heli_Light_01_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "B_Heli_Transport_01_F": { _attach = [[-0.5, 0.0, 0.96], [0.5, 0.0, 0.96]]; };

case "I_Heli_light_03_unarmed_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "I_MRAP_03_hmg_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "I_MRAP_03_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "B_MRAP_01_hmg_F": { _attach = [[-1, -2.8, 0.55], [1, -2.8, 0.55]]; };

case "B_MRAP_01_F": { _attach = [[-1, -2.8, -0.55], [1, -2.8, -0.55]]; };

};

_lightRed = [20, 0.1, 0.1];

_lightBlue = [0.1, 0.1, 20];

_lightleft = createVehicle ["#lightpoint", getPos _vehicle, [], 0, "CAN_COLLIDE"];

sleep 0.2;

_lightleft setLightColor _lightRed;

_lightleft setLightBrightness 0;

_lightleft lightAttachObject [_vehicle, _attach select 0];

_lightleft setLightAttenuation [0.181, 0, 1000, 130];

_lightleft setLightIntensity 20;

_lightleft setLightFlareSize 0.38;

_lightleft setLightFlareMaxDistance 150;

_lightleft setLightUseFlare true;

_lightleft setLightDayLight true;

_lightright = createVehicle ["#lightpoint", getPos _vehicle, [], 0, "CAN_COLLIDE"];

sleep 0.2;

_lightright setLightColor _lightBlue;

_lightright setLightBrightness 0;

_lightright lightAttachObject [_vehicle, _attach select 1];

_lightright setLightAttenuation [0.181, 0, 1000, 130];

_lightright setLightIntensity 20;

_lightright setLightFlareSize 0.38;

_lightright setLightFlareMaxDistance 150;

_lightright setLightUseFlare true;

_lightright setLightDayLight true;

if (sunOrMoon < 1) then {

_brightness = 6;

} else {

_brightness = 50;

};

_leftRed = true;

while {(alive _vehicle)} do {

if (!(_vehicle getVariable "lights")) exitWith {};

if (_leftRed) then {

_leftRed = false;

_lightright setLightBrightness 0;

sleep 0.05;

_lightleft setLightBrightness _brightness;

} else {

_leftRed = true;

_lightleft setLightBrightness 0;

sleep 0.05;

_lightright setLightBrightness _brightness;

};

sleep 0.22;

};

deleteVehicle _lightleft;

deleteVehicle _lightright;

And Once you have that use this to add the action in the fn_setupActions.sqf keep in mind I havent been able to get it too work with more than two vehicles but you will see that and it works only glitch i found is if you spam the lights on button it turns the lights pink

//lights?

life_actions = life_actions + [player addAction["Siren Lights ON",{[[vehicle player,0.22],"life_fnc_copLights",true,false] spawn BIS_fnc_MP; vehicle player setVariable["lights",true,true];},"",0,false,false,"",' vehicle player != player && (((typeOf vehicle player) == "C_Offroad_01_F") OR (typeOf vehicle player) == "B_MRAP_01_F"))) && !isNil {vehicle player getVariable "lights"} && ((driver vehicle player) == player) && !(vehicle player getVariable "lights") && sunOrMoon < 1']];

life_actions = life_actions + [player addAction["Siren Lights OFF",{vehicle player setVariable["lights",false,true];},"",0,false,false,"", ' vehicle player != player && (((typeOf vehicle player) == "C_Offroad_01_F") OR (typeOf vehicle player) == "B_MRAP_01_F"))) && !isNil {vehicle player getVariable "lights"} && ((driver vehicle player) == player) && (vehicle player getVariable "lights") ']];

//lights??

life_actions = life_actions + [player addAction["Siren Lights ON",{[[vehicle player,0.22],"life_fnc_copLights",true,false] spawn BIS_fnc_MP; vehicle player setVariable["lights",true,true];},"",0,false,false,"",' vehicle player != player && (((typeOf vehicle player) == "C_Hatchback_01_F") OR (typeOf vehicle player) == "C_SUV_01_F"))) && !isNil {vehicle player getVariable "lights"} && ((driver vehicle player) == player) && !(vehicle player getVariable "lights") && sunOrMoon < 1']];

life_actions = life_actions + [player addAction["Siren Lights OFF",{vehicle player setVariable["lights",false,true];},"",0,false,false,"", ' vehicle player != player && (((typeOf vehicle player) == "C_Hatchback_01_F") OR (typeOf vehicle player) == "C_SUV_01_F"))) && !isNil {vehicle player getVariable "lights"} && ((driver vehicle player) == player) && (vehicle player getVariable "lights") ']];

Share this post


Link to post
Share on other sites

Hi Tonic, hi everyone,

thank you all for your constructive posts!

Any chance someone is going to add a guide how to change textures for uniforms? Would appreciate it!

Edited by grimfi
minor

Share this post


Link to post
Share on other sites
Hi Tonic, hi everyone,

thank you all for your constructive posts!

Any chance someone is going to add a guide how to change textures for uniforms? Would appreciate it!

Yeah that would be great if someone can tell it to us

---------- Post added at 10:15 ---------- Previous post was at 08:27 ----------

This is how I fixed it, its a dirty fix but it worked use this in your fn_copLights.sqf Script in the cop Folder

/*

@Version: 1.0

@Author: Tonic, [bWG] Joe

@Edited: 28.08.2013

*/

private ["_vehicle","_lightRed","_lightBlue","_lightleft","_lightright","_leftRed","_brightness","_attach"];

_vehicle = _this select 0;

if (isNil "_vehicle" || isNull _vehicle || !(_vehicle getVariable "lights")) exitWith {};

switch (typeOf _vehicle) do {

case "C_Hatchback_01_F": { _attach = [[-0.6, 2, -0.95], [0.6, 2, -0.95]]; };

case "C_Offroad_01_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "C_SUV_01_F": { _attach = [[-0.4, 2.3, -0.55], [0.4, 2.3, -0.52]]; };

case "B_Heli_Light_01_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "B_Heli_Transport_01_F": { _attach = [[-0.5, 0.0, 0.96], [0.5, 0.0, 0.96]]; };

case "I_Heli_light_03_unarmed_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "I_MRAP_03_hmg_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "I_MRAP_03_F": { _attach = [[-0.37, 0.0, 0.56], [0.37, 0.0, 0.56]]; };

case "B_MRAP_01_hmg_F": { _attach = [[-1, -2.8, 0.55], [1, -2.8, 0.55]]; };

case "B_MRAP_01_F": { _attach = [[-1, -2.8, -0.55], [1, -2.8, -0.55]]; };

};

_lightRed = [20, 0.1, 0.1];

_lightBlue = [0.1, 0.1, 20];

_lightleft = createVehicle ["#lightpoint", getPos _vehicle, [], 0, "CAN_COLLIDE"];

sleep 0.2;

_lightleft setLightColor _lightRed;

_lightleft setLightBrightness 0;

_lightleft lightAttachObject [_vehicle, _attach select 0];

_lightleft setLightAttenuation [0.181, 0, 1000, 130];

_lightleft setLightIntensity 20;

_lightleft setLightFlareSize 0.38;

_lightleft setLightFlareMaxDistance 150;

_lightleft setLightUseFlare true;

_lightleft setLightDayLight true;

_lightright = createVehicle ["#lightpoint", getPos _vehicle, [], 0, "CAN_COLLIDE"];

sleep 0.2;

_lightright setLightColor _lightBlue;

_lightright setLightBrightness 0;

_lightright lightAttachObject [_vehicle, _attach select 1];

_lightright setLightAttenuation [0.181, 0, 1000, 130];

_lightright setLightIntensity 20;

_lightright setLightFlareSize 0.38;

_lightright setLightFlareMaxDistance 150;

_lightright setLightUseFlare true;

_lightright setLightDayLight true;

if (sunOrMoon < 1) then {

_brightness = 6;

} else {

_brightness = 50;

};

_leftRed = true;

while {(alive _vehicle)} do {

if (!(_vehicle getVariable "lights")) exitWith {};

if (_leftRed) then {

_leftRed = false;

_lightright setLightBrightness 0;

sleep 0.05;

_lightleft setLightBrightness _brightness;

} else {

_leftRed = true;

_lightleft setLightBrightness 0;

sleep 0.05;

_lightright setLightBrightness _brightness;

};

sleep 0.22;

};

deleteVehicle _lightleft;

deleteVehicle _lightright;

And Once you have that use this to add the action in the fn_setupActions.sqf keep in mind I havent been able to get it too work with more than two vehicles but you will see that and it works only glitch i found is if you spam the lights on button it turns the lights pink

//lights?

life_actions = life_actions + [player addAction["Siren Lights ON",{[[vehicle player,0.22],"life_fnc_copLights",true,false] spawn BIS_fnc_MP; vehicle player setVariable["lights",true,true];},"",0,false,false,"",' vehicle player != player && (((typeOf vehicle player) == "C_Offroad_01_F") OR (typeOf vehicle player) == "B_MRAP_01_F"))) && !isNil {vehicle player getVariable "lights"} && ((driver vehicle player) == player) && !(vehicle player getVariable "lights") && sunOrMoon < 1']];

life_actions = life_actions + [player addAction["Siren Lights OFF",{vehicle player setVariable["lights",false,true];},"",0,false,false,"", ' vehicle player != player && (((typeOf vehicle player) == "C_Offroad_01_F") OR (typeOf vehicle player) == "B_MRAP_01_F"))) && !isNil {vehicle player getVariable "lights"} && ((driver vehicle player) == player) && (vehicle player getVariable "lights") ']];

//lights??

life_actions = life_actions + [player addAction["Siren Lights ON",{[[vehicle player,0.22],"life_fnc_copLights",true,false] spawn BIS_fnc_MP; vehicle player setVariable["lights",true,true];},"",0,false,false,"",' vehicle player != player && (((typeOf vehicle player) == "C_Hatchback_01_F") OR (typeOf vehicle player) == "C_SUV_01_F"))) && !isNil {vehicle player getVariable "lights"} && ((driver vehicle player) == player) && !(vehicle player getVariable "lights") && sunOrMoon < 1']];

life_actions = life_actions + [player addAction["Siren Lights OFF",{vehicle player setVariable["lights",false,true];},"",0,false,false,"", ' vehicle player != player && (((typeOf vehicle player) == "C_Hatchback_01_F") OR (typeOf vehicle player) == "C_SUV_01_F"))) && !isNil {vehicle player getVariable "lights"} && ((driver vehicle player) == player) && (vehicle player getVariable "lights") ']];

ok it worked that they have it and i see turn on turn off but nothing happens when i push tunr on

they not working in sunlight

Share this post


Link to post
Share on other sites

Hey Guys,

My Altis Life server jsut gets stuck on 'creating'.

Pretty sure I've done everything correctly..

If someone could reply to this thread if they know the answer or add me on skype: sighofrelief1

I can offer a 'Award' for some help!

Thanks.

Share this post


Link to post
Share on other sites

Hello,

i find this mod good. However, I am annoyed, as service providers about which one can embed any good police uniforms.

Why is there no instructions to use other skins? This is something disappointing for me. Want because no other player police uniforms?

thx

Share this post


Link to post
Share on other sites

we all want i ask for it now 3 days long but no one answers

---------- Post added at 11:11 ---------- Previous post was at 10:38 ----------

Thx alot mate :yay:

---------- Post added at 09:07 ---------- Previous post was at 09:06 ----------

Can someone give me a little tutorial for adding the lightbars to other police cars

no the sound thing i thx too is not working the say3d "yourlock.ogg" is not working maybe someone has another solution for me

Share this post


Link to post
Share on other sites

Anyone with a working server could you contact me please; skype - sighofrelief1

Trying to get this to work. I can reward.

Share this post


Link to post
Share on other sites

hi guys! i would like to know how to save the guns on database? by default this script don't do this job, thanks in advance

Share this post


Link to post
Share on other sites

Thanks to the Day0 Community I was finally able to get the numbers on the performance changes that I made by scrapping the addActions and replacing it with a interaction key system along with other various optimizations. Client performance has increased dramatically. From what I have personally seen / experienced.

Server player count: 50+

Run time: 1hr+

CPU settings (client): stock clock 3.6Ghz

GPU settings(client): stock 4x780ti

Kavala Area: around 45-60FPS (Kavala is one of the major regions always heavily populated)

Outside of major towns: 60+FPS

Estimated performance gain by overclocking CPU to 4.2+Ghz (15-25%).

Server performance (which was unplanned / unintended) has also received a boost by around 5% or more, with proper changes to server-side it is in hopeful wishes that it increases by 12-15%

All around the main issue that was causing the performance loss was the mass list of addAction's being created on the player himself (not objects like the ATM/NPC's) and so by getting rid of them entirely It has brought fourth a huge performance gain and by further optimizing a few other things it will be a great change for Altis Life RPG. I wish I knew about addAction conditions earlier but never bothered looking at them fully in the past.

I will also be getting my own dedicated box sometime today so further debugging of performance issues (client & server) will be possible for me :)

Share this post


Link to post
Share on other sites
Thanks to the Day0 Community I was finally able to get the numbers on the performance changes that I made by scrapping the addActions and replacing it with a interaction key system along with other various optimizations. Client performance has increased dramatically. From what I have personally seen / experienced.

Server player count: 50+

Run time: 1hr+

CPU settings (client): stock clock 3.6Ghz

GPU settings(client): stock 4x780ti

Kavala Area: around 45-60FPS (Kavala is one of the major regions always heavily populated)

Outside of major towns: 60+FPS

Estimated performance gain by overclocking CPU to 4.2+Ghz (15-25%).

Server performance (which was unplanned / unintended) has also received a boost by around 5% or more, with proper changes to server-side it is in hopeful wishes that it increases by 12-15%

All around the main issue that was causing the performance loss was the mass list of addAction's being created on the player himself (not objects like the ATM/NPC's) and so by getting rid of them entirely It has brought fourth a huge performance gain and by further optimizing a few other things it will be a great change for Altis Life RPG. I wish I knew about addAction conditions earlier but never bothered looking at them fully in the past.

I will also be getting my own dedicated box sometime today so further debugging of performance issues (client & server) will be possible for me :)

Hi Tonic nice nice

So when i can catch you up plz would you tell me 2 things : how i get the beep sound for lock and unlock the cars

and second where do i find the uniforms and how can i retexture them

i allready retextured the cars and stuff but the uniforms and beep sound

plz would be great when you answer me

Share this post


Link to post
Share on other sites
we all want i ask for it now 3 days long but no one answers

---------- Post added at 11:11 ---------- Previous post was at 10:38 ----------

no the sound thing i thx too is not working the say3d "yourlock.ogg" is not working maybe someone has another solution for me

You don't just call the yourlock.ogg. You have to "register" it first in your description.ext and then call it with say3d from the script. And don't ask how to do that now. Fucking google it.

Etwas mehr Selbstständigkeit!

Edited by Trulz

Share this post


Link to post
Share on other sites

Oh glaub mir hab genug gegoogelt die letzten 6 tage nur gelsen und gegooglet alles selbst gemacht retexturing alles also das mit dem register wusste ich nicht danke dir aber trotzdem

Sei doch nicht so unfreundlich ^^

In English : I dont know that i have to register him but i done it know and it works thx a lot mate

other things i worked all out alone only wiht forums and google it is only this two things the Beep sound ( done thx mate ) and where to find the retexturing of the uniforms cant find them allready split the whole mod and search for days now but i cant find it

:)

but thx for all help till now

Edited by derLandvogt

Share this post


Link to post
Share on other sites
§13) Write in English

Please write only in English on the public forums. Avoid writing in any other language or any kind of slang or txt speak since the majority of the members most likely won't understand. In private messages you are of course welcome to write in any language you wish.

If you must add a German translation to your posts, fine, but please don't write exclusively in German.

Share this post


Link to post
Share on other sites

Good afternoon,

On my server when a civilian to buy a car in Rebel Outpost near the Athira, the car does not appear and is discounted. Is anyone having the same problem?

The owners of servers you are using against hackers?

Thank you

Share this post


Link to post
Share on other sites

Anyone able to help me out?

I can't quite get it right..

Skype: sighofrelief1

I'm happy to reward you.

Share this post


Link to post
Share on other sites

Its really hard to find someone that can tell us where to retexture the police uniforms

i dont know how much forums i searched now 20 maybe

all tipps are not for altis life

plz someone bring us the Light ^^

Share this post


Link to post
Share on other sites

First step to get your answer: Stop spamming this thread.

I think every active user in this thread has already read what you need/want. It doesn't help in any way to post it every 30 - 60 minutes.

From what I've seen in Tonics scripts there's no parameter like with the vehicles to assign a texture to clothing.

Google for setObjectTexture and try around with that. Also, have a look at this: Link

@derLandvogt: I'm rude to you because you keep spamming this thread. If no one answers it means that either way people don't want to help you or they don't know it either. Like I said at the beginning of this post, it doesn't help if you post your request every 30 - 60 minutes.

Share this post


Link to post
Share on other sites

Hey, i would like to save all equipment for players on our server aswell! i have tried to find it in the files but i couldn't get it to work yet :/

Does anyone know how to make the game save all Civilian gear aswell (weapons magazines and so on :)

It would be really cool if someone could help ;)

Btw: Thanks Tonic for this awesome MAP! You rock man :)

Thanks in advance ;)

Share this post


Link to post
Share on other sites
First step to get your answer: Stop spamming this thread.

I think every active user in this thread has already read what you need/want. It doesn't help in any way to post it every 30 - 60 minutes.

From what I've seen in Tonics scripts there's no parameter like with the vehicles to assign a texture to clothing.

Google for setObjectTexture and try around with that. Also, have a look at this: Link

@derLandvogt: I'm rude to you because you keep spamming this thread. If no one answers it means that either way people don't want to help you or they don't know it either. Like I said at the beginning of this post, it doesn't help if you post your request every 30 - 60 minutes.

First of all my friend is this is a forum and i write what i want

Second of all is i wrote it 4 times the last 6 days search the forum this is no spamming

If you dont like that i ask for help go to another forum or better idea make your own one where you can sit alone

OMFG what is wrong with you guy get a girlfriend or something else

this is a help / support forum to the mod and what i asked for is help UNDERSTAND

If your pissed go get a bike and drive trough the world maybe it helps against your rude Art

meine Güte was ein Spackn

Ich danke den Forumsinhabern für die Ignore Funktion

Share this post


Link to post
Share on other sites

Hallo Dear´s

i have a problem with altis serverfile. He said: " 'bin\config.bin/CfgWorlds.EU'. " who can i found this file for upload to this ?

Share this post


Link to post
Share on other sites

I have the problem that the synch button doesn't work, it says "synching wait 20s" but after i wait and then rejoin everything is as if i've never clicked synch.

Its the same bug as Bug #100 in the bugtracker but even when using the default profile(i also deleted the standard folder so it resets the default profile) it doesnt work :( it would be really nice to find some help because i can't play altis life until it gets fixed(i know that it's already in the bugtracker but it was posted in december and isn't resolved yet).

thanks

Share this post


Link to post
Share on other sites
I have the problem that the synch button doesn't work, it says "synching wait 20s" but after i wait and then rejoin everything is as if i've never clicked synch.

Its the same bug as Bug #100 in the bugtracker but even when using the default profile(i also deleted the standard folder so it resets the default profile) it doesnt work :( it would be really nice to find some help because i can't play altis life until it gets fixed(i know that it's already in the bugtracker but it was posted in december and isn't resolved yet).

thanks

Does this happen with your own server or are you joining somewhere as a client? Do you use special characters in your name?

Share this post


Link to post
Share on other sites
Does this happen with your own server or are you joining somewhere as a client? Do you use special characters in your name?

Im not using any special characters (it's "Alexander") and it happens on all servers

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  

×