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

Altis Life RPG

Recommended Posts

Okay, so I'm not exactly new to running arma servers, but this mod I am very new to.

I've started learning the scripting language, and building off of what I already know, but I do have a few questions.

First of all, a few of my traders are killable if you have a gun, or can get to them with a vehicle. I was wondering if anybody knew exactly how to fix this. Scratch this one, I figured out the NPC's were missing the this allowDamage false; in the initialization

Second, I've got a general Idea of how to setup things, but I was wondering if anybody might give a quick explanation of setting up a whitelisted rebel system

similar to the cops.

Otherwise great mod, cant wait for 3.1.2

Also does anybody know of any good anti cheat plugins I can add. I had a player spawn a tank earlier.

Edited by .Ark

Share this post


Link to post
Share on other sites

Hey guys i have finally firgured out how to add the coplights to the cars and make them work. I l write a wuick tutorial later when i get home. its not that hard but alot of diffrent files.

also i was wondering anybody know how i can add an effect when people use heroin,cocaine or weed?

cuz right now it says this item is not usable. i would like to add this colour effect

so as soon as you press y and click your drug and press use that this starts.

thx.

i have a script already but idk how to make it work.

EDIT:

here is the code, i found this around the internet somewhere so credit to whoevers it is.

_smoke = "SmokeShell" createVehicle position player;
if (vehicle player != player) then {
_smoke attachTo [vehicle player, [0,-1,0]];
} else {
_smoke attachTo [player, [0,0,1]];
};

"colorCorrections" ppEffectEnable true;
"colorCorrections" ppEffectAdjust [1, 1, 0, [0,0,0,0.5], [random 5 - random 5,random 5 - random 5,random 5 - random 5,random 1], [random 5 - random 5,random 5 - random 5,random 5 - random 5, random 1]];
"colorCorrections" ppEffectCommit 1;
"chromAberration" ppEffectEnable true;
"chromAberration" ppEffectAdjust [0.01,0.01,true];
"chromAberration" ppEffectCommit 1;
sleep 2.25;	

private["_force"];
for "_i" from 0 to 20 do {
"colorCorrections" ppEffectEnable true;
"colorCorrections" ppEffectAdjust [1, 1, 0, [0,0,0,0.5], [random 5 - random 5,random 5 - random 5,random 5 - random 5,random 1], [random 5 - random 5,random 5 - random 5,random 5 - random 5, random 1]];
"colorCorrections" ppEffectCommit 1;	
sleep 2.25;
};

"chromAberration" ppEffectEnable false;
"colorCorrections" ppEffectEnable false;

thx

-v3

---------- Post added at 11:15 ---------- Previous post was at 10:51 ----------

Hi guys, i would like to know what file must be edited to add e new vehicle on the shop car and the cop shop car?

hey man, i can help you with that.

first of all make backups of your files so if it doesnt work you still have a backup.

go into your mision file and go Altis_Life_RPG.Altis\core\config

on the bottom you wil see fn_vehicleListCfg

open it up with any text editor. i personlly use sublime text 2 or notepad++

than you wanna know what vehicle you wanna add

like a hatchback sport for this short tut.

hatchback sports classname is:C_Hatchback_01_sport_F

do you wanna scroll down until you see the cases

cop_car_1

cop_car_2

cop_car_3

cop_car_5

dont worry there is no cop_car_4.

il take case one for instance:

	case "cop_car_1":
{
	_return set[count _return,
	["C_Offroad_01_F",5000]];
	_return set[count _return,
	["C_SUV_01_F",20000]];
	if(life_coplevel > 4) then
	{
		_return set[count _return,
		["B_MRAP_01_F",30000]];

	};
};

now if you wanna add the hatchback to the cop store for higher ranks than you add it to the if statement:

if(life_coplevel > 4) then

{

_return set[count _return,

["B_MRAP_01_F",30000]];

};

if you want it for every cop. you add it to the top:

_return set[count _return,

["C_Offroad_01_F",5000]];

_return set[count _return,

["C_SUV_01_F",20000]];.

to add the hatchbacksport to higher cop ranks you want to add this:

	case "cop_car_1":
{
	_return set[count _return,
	["C_Offroad_01_F",5000]];
	_return set[count _return,
	["C_SUV_01_F",20000]];
	if(life_coplevel > 4) then
	{
		_return set[count _return,
		["B_MRAP_01_F",30000]];
		_return set[count _return,
		["C_Hatchback_01_sport_F",10000]];
	};
};

dont forget the:_return set[count _return,

in he section ["C_Hatchback_01_sport_F",10000]];

the first thing is the classname of the car the second one is the price.

now to add the car to all ranks you do this:

	case "cop_car_1":
{
	_return set[count _return,
	["C_Offroad_01_F",5000]];
	_return set[count _return,
	["C_SUV_01_F",20000]];
	_return set[count _return,
	["C_Hatchback_01_sport_F",10000]];
	if(life_coplevel > 4) then
	{
		_return set[count _return,
		["B_MRAP_01_F",30000]];
	};
};

and just save your file put it in your server and test it out!

if you have any questions you can ask :D

-v3

Edited by v3n0mou5

Share this post


Link to post
Share on other sites

thanks man, do you think there's a method to add a car of another mod?

Hey guys i have finally firgured out how to add the coplights to the cars and make them work. I l write a wuick tutorial later when i get home. its not that hard but alot of diffrent files.

also i was wondering anybody know how i can add an effect when people use heroin,cocaine or weed?

cuz right now it says this item is not usable. i would like to add this colour effect

so as soon as you press y and click your drug and press use that this starts.

thx.

i have a script already but idk how to make it work.

EDIT:

here is the code, i found this around the internet somewhere so credit to whoevers it is.

_smoke = "SmokeShell" createVehicle position player;
if (vehicle player != player) then {
_smoke attachTo [vehicle player, [0,-1,0]];
} else {
_smoke attachTo [player, [0,0,1]];
};

"colorCorrections" ppEffectEnable true;
"colorCorrections" ppEffectAdjust [1, 1, 0, [0,0,0,0.5], [random 5 - random 5,random 5 - random 5,random 5 - random 5,random 1], [random 5 - random 5,random 5 - random 5,random 5 - random 5, random 1]];
"colorCorrections" ppEffectCommit 1;
"chromAberration" ppEffectEnable true;
"chromAberration" ppEffectAdjust [0.01,0.01,true];
"chromAberration" ppEffectCommit 1;
sleep 2.25;	

private["_force"];
for "_i" from 0 to 20 do {
"colorCorrections" ppEffectEnable true;
"colorCorrections" ppEffectAdjust [1, 1, 0, [0,0,0,0.5], [random 5 - random 5,random 5 - random 5,random 5 - random 5,random 1], [random 5 - random 5,random 5 - random 5,random 5 - random 5, random 1]];
"colorCorrections" ppEffectCommit 1;	
sleep 2.25;
};

"chromAberration" ppEffectEnable false;
"colorCorrections" ppEffectEnable false;

thx

-v3

---------- Post added at 11:15 ---------- Previous post was at 10:51 ----------

hey man, i can help you with that.

first of all make backups of your files so if it doesnt work you still have a backup.

go into your mision file and go Altis_Life_RPG.Altis\core\config

on the bottom you wil see fn_vehicleListCfg

open it up with any text editor. i personlly use sublime text 2 or notepad++

than you wanna know what vehicle you wanna add

like a hatchback sport for this short tut.

hatchback sports classname is:C_Hatchback_01_sport_F

do you wanna scroll down until you see the cases

cop_car_1

cop_car_2

cop_car_3

cop_car_5

dont worry there is no cop_car_4.

il take case one for instance:

	case "cop_car_1":
{
	_return set[count _return,
	["C_Offroad_01_F",5000]];
	_return set[count _return,
	["C_SUV_01_F",20000]];
	if(life_coplevel > 4) then
	{
		_return set[count _return,
		["B_MRAP_01_F",30000]];

	};
};

now if you wanna add the hatchback to the cop store for higher ranks than you add it to the if statement:

if(life_coplevel > 4) then

{

_return set[count _return,

["B_MRAP_01_F",30000]];

};

if you want it for every cop. you add it to the top:

_return set[count _return,

["C_Offroad_01_F",5000]];

_return set[count _return,

["C_SUV_01_F",20000]];.

to add the hatchbacksport to higher cop ranks you want to add this:

	case "cop_car_1":
{
	_return set[count _return,
	["C_Offroad_01_F",5000]];
	_return set[count _return,
	["C_SUV_01_F",20000]];
	if(life_coplevel > 4) then
	{
		_return set[count _return,
		["B_MRAP_01_F",30000]];
		_return set[count _return,
		["C_Hatchback_01_sport_F",10000]];
	};
};

dont forget the:_return set[count _return,

in he section ["C_Hatchback_01_sport_F",10000]];

the first thing is the classname of the car the second one is the price.

now to add the car to all ranks you do this:

	case "cop_car_1":
{
	_return set[count _return,
	["C_Offroad_01_F",5000]];
	_return set[count _return,
	["C_SUV_01_F",20000]];
	_return set[count _return,
	["C_Hatchback_01_sport_F",10000]];
	if(life_coplevel > 4) then
	{
		_return set[count _return,
		["B_MRAP_01_F",30000]];
	};
};

and just save your file put it in your server and test it out!

if you have any questions you can ask :D

-v3

Share this post


Link to post
Share on other sites
thanks man, do you think there's a method to add a car of another mod?

yes there is a way.

requirments are:

mod

mod server key

first you install the mod on your pc'

open up the editor

1:check if mod works.

2: write down class names of the vehicles you wanna add.

uninstall mod on your pc.

upload to your server.

upload the key to your kys folder in the root directory of your server.

upload the @MOD to your root next to @life_server.

change startup parameters to include @MOD next to your amra2net and life_server.

edit the shop so that it contains the classnames of custom vehicles.

and test it out ingame, should work.

-v3

---------- Post added at 14:22 ---------- Previous post was at 14:21 ----------

Hey guys,

where I put the folders mod?

there is three:

@life_server

oth@x_altis-life-rpg_v3-1-0.altis

arma3life.sql

where should I put each of them?

Thanks.

@life_server.

put it in the root directory

also change startup paramters to include @life_server note: put it after your @arma2NET

-----------

the: oth@x_altis-life-rpg_v3-1-0.altis

first of all change the name to altis_life_RPG.altis

and put it in MP missions.

go to your server.cfg. and in mission file put the name in so thats: "altis_life_RPG.altis"

-------------------

arma3life.sql should also be in the root directory.

---

if it still doesnt work send me a pm, il help you

Share this post


Link to post
Share on other sites

Okay, so I think I've got the general idea of creating the spawns for rebels.

I'd setup the markers in the editor, and the spawn configs in the server files.

But how would I go about making them whitelisted, and checking against the DB?

I'm assuming I would create a new initRebel file basing it off the cop files.

Share this post


Link to post
Share on other sites

Good morning,

First excuse me for the poor english ....

I am setting up a server and I am having many problems, I have some questions for everyone.

What is the ideal windows?

What version of @ arma2NET and arma2MYQSLplugin you use?

Thanks in advance for your help!

even more

Share this post


Link to post
Share on other sites
Okay, so I think I've got the general idea of creating the spawns for rebels.

I'd setup the markers in the editor, and the spawn configs in the server files.

But how would I go about making them whitelisted, and checking against the DB?

I'm assuming I would create a new initRebel file basing it off the cop files.

you should add a variable to yourdatabase, called rebel_level.

and in your game rename some classed named rebel-whitelisted

than in script check if the player thats in that variable is whitelisted.

if not mission end " loser"

note:

this is just me telling how to do it. it does take some more and its pretty hard to do.

-v3

---------- Post added at 14:49 ---------- Previous post was at 14:48 ----------

Good morning,

First excuse me for the poor english ....

I am setting up a server and I am having many problems, I have some questions for everyone.

What is the ideal windows?

What version of @ arma2NET and arma2MYQSLplugin you use?

Thanks in advance for your help!

even more

idk what the ideal windows is

and i use the newest versions of the @arma2NET

but i use a 5.5 sql database with strict mode disabled

Share this post


Link to post
Share on other sites
you should add a variable to yourdatabase, called rebel_level.

and in your game rename some classed named rebel-whitelisted

than in script check if the player thats in that variable is whitelisted.

if not mission end " loser"

note:

this is just me telling how to do it. it does take some more and its pretty hard to do.

-v3

---------- Post added at 14:49 ---------- Previous post was at 14:48 ----------

idk what the ideal windows is

and i use the newest versions of the @arma2NET

but i use a 5.5 sql database with strict mode disabled

Many thanks for the help

Apparently my server is set up, but I'm having this problem now:

Info: 11:32:52 - Arma2NETMySQL Plugin Started.

Info: 11:32:52 - Version number: 0.1.0.0

Info: 11:32:52 - Loading databases...

Error: 11:32:52 - Unable to parse line: mysql,arma3life,localhost,3306,dayz,dayz in Databases.txt file.

Info: 11:32:52 - Received - Database: arma3life MySQL Command: CALL resetLifeVehicles();

Warning: 11:32:52 - The database: arma3life is not loaded in through the Databases.txt file.

Info: 11:32:52 - Received - Database: arma3life MySQL Command: CALL deleteDeadVehicles();

Warning: 11:32:52 - The database: arma3life is not loaded in through the Databases.txt file.

Info: 11:32:58 - Received - Database: arma3life MySQL Command: SELECT playerid, name, cash, bankacc, coplevel, cop_licenses, cop_gear, adminlevel, blacklist, donatorlvl FROM players WHERE playerid='76561197996374776'

Warning: 11:32:58 - The database: arma3life is not loaded in through the Databases.txt file.

Info: 11:32:59 - Received - Database: arma3life MySQL Command: SELECT name, aliases FROM players WHERE playerid='76561197996374776'

Warning: 11:32:59 - The database: arma3life is not loaded in through the Databases.txt file.

Info: 11:32:59 - Received - Database: arma3life MySQL Command: INSERT INTO players (playerid, name, cash, bankacc, cop_gear, aliases) VALUES('76561197996374776', 'Dilu', '0', '7000', '"[``,`hgun_P07_snds_F`,[`16Rnd_9x21_Mag`],`U_Rangemaster`,`V_Rangemaster_belt`,``,[`ItemMap`,`ItemCompass`],[],[],[`muzzle_snds_L`,``,``],[`16Rnd_9x21_Mag`,`16Rnd_9x21_Mag`],[`16Rnd_9x21_Mag`,`16Rnd_9x21_Mag`,`16Rnd_9x21_Mag`],[]]"', '"[`Dilu`]"')

Warning: 11:32:59 - The database: arma3life is not loaded in through the Databases.txt file.

Share this post


Link to post
Share on other sites
Many thanks for the help

Apparently my server is set up, but I'm having this problem now:

Info: 11:32:52 - Arma2NETMySQL Plugin Started.

Info: 11:32:52 - Version number: 0.1.0.0

Info: 11:32:52 - Loading databases...

Error: 11:32:52 - Unable to parse line: mysql,arma3life,localhost,3306,dayz,dayz in Databases.txt file.

Info: 11:32:52 - Received - Database: arma3life MySQL Command: CALL resetLifeVehicles();

Warning: 11:32:52 - The database: arma3life is not loaded in through the Databases.txt file.

Info: 11:32:52 - Received - Database: arma3life MySQL Command: CALL deleteDeadVehicles();

Warning: 11:32:52 - The database: arma3life is not loaded in through the Databases.txt file.

Info: 11:32:58 - Received - Database: arma3life MySQL Command: SELECT playerid, name, cash, bankacc, coplevel, cop_licenses, cop_gear, adminlevel, blacklist, donatorlvl FROM players WHERE playerid='76561197996374776'

Warning: 11:32:58 - The database: arma3life is not loaded in through the Databases.txt file.

Info: 11:32:59 - Received - Database: arma3life MySQL Command: SELECT name, aliases FROM players WHERE playerid='76561197996374776'

Warning: 11:32:59 - The database: arma3life is not loaded in through the Databases.txt file.

Info: 11:32:59 - Received - Database: arma3life MySQL Command: INSERT INTO players (playerid, name, cash, bankacc, cop_gear, aliases) VALUES('76561197996374776', 'Dilu', '0', '7000', '"[``,`hgun_P07_snds_F`,[`16Rnd_9x21_Mag`],`U_Rangemaster`,`V_Rangemaster_belt`,``,[`ItemMap`,`ItemCompass`],[],[],[`muzzle_snds_L`,``,``],[`16Rnd_9x21_Mag`,`16Rnd_9x21_Mag`],[`16Rnd_9x21_Mag`,`16Rnd_9x21_Mag`,`16Rnd_9x21_Mag`],[]]"', '"[`Dilu`]"')

Warning: 11:32:59 - The database: arma3life is not loaded in through the Databases.txt file.

there is something wrong with your connection to the database.

try connection it.

do you also have a arma 3 database there? and also a arma3life.sql in the root fo your server?

EDIT:

i see your error. are you adding it to dayz or something?

Error: 11:32:52 - Unable to parse line: mysql,arma3life,localhost,3306,dayz,dayz in Databases.txt file.

it should be as following:

mysql,arma3life,serverip,port,user,databasepass

Share this post


Link to post
Share on other sites
there is something wrong with your connection to the database.

try connection it.

do you also have a arma 3 database there? and also a arma3life.sql in the root fo your server?

EDIT:

i see your error. are you adding it to dayz or something?

Error: 11:32:52 - Unable to parse line: mysql,arma3life,localhost,3306,dayz,dayz in Databases.txt file.

it should be as following:

mysql,arma3life,serverip,port,user,databasepass

With navicat I normally access the database already has a bank arma3life configured with the tables.

I do not know what I do not know if it can be a problem in @ arma2net, which version did you use?

Thank you

Share this post


Link to post
Share on other sites

try reinstalling it first.

i use the latest arma2NET. and version 5.5 sql server with strict modedisabled.

BUT: my SQL server is dedicated and not hosted locally like yours. because your ip is localhost.

Share this post


Link to post
Share on other sites
try reinstalling it first.

i use the latest arma2NET. and version 5.5 sql server with strict modedisabled.

BUT: my SQL server is dedicated and not hosted locally like yours. because your ip is localhost.

I will install Windows Server 2012 and redo all settings.

thank you

Share this post


Link to post
Share on other sites

I just wanted to enjoy some Arma 3 warfare passively via Twitch.tv. 5 channels are online and they were all Altis life.

I feel sad now. Arma is best known for zombies and Altis life. Big sigh.

Share this post


Link to post
Share on other sites

I have a vanilla server setup and working on a dedicated box and was just looking for some help to spice up the server a bit.

I'm looking to hire a scripter who can help with the following:

Change skins(vehicles, clothes, etc)

Relocate and edit shops including inventory

Add medic slots

Custom commands like hands behind back, etc

I have the basebuilding down, but those things I could really use help on and obviously will pay from a verified paypal account for your time.

Please PM me if interested

Share this post


Link to post
Share on other sites
I have a vanilla server setup and working on a dedicated box and was just looking for some help to spice up the server a bit.

I'm looking to hire a scripter who can help with the following:

Change skins(vehicles, clothes, etc)

Relocate and edit shops including inventory

Add medic slots

Custom commands like hands behind back, etc

I have the basebuilding down, but those things I could really use help on and obviously will pay from a verified paypal account for your time.

Please PM me if interested

I can help you with some of those issues, I sent you a PM.

Share this post


Link to post
Share on other sites
I can help you with some of those issues, I sent you a PM.

Responded! thanks for the quick reply

Share this post


Link to post
Share on other sites

Adding textures is so easy man, Along with changing locations of things on the map. 2 of the easiest parts of this script in particular.

Share this post


Link to post
Share on other sites

Alright, I sent you a PM. What about the Arma2Net and pluguin? Can you give me some coors where should I put those files? I already config the database.txt to my sql database.

Share this post


Link to post
Share on other sites

Greetings,

i got two problems, would be great if you have some advise!

first i want to add custom uniforms (vehicles is no problem) in my core/init.sqf

case west:

{

_handle = [] spawn life_fnc_initCop;

waitUntil {scriptDone _handle};

if(__GETC__(life_coplevel) > 3) then

{

player setObjectTextureGlobal [0,"police_shirt.paa"];

[[player,[0,'police_shirt.paa']], "fn_objecttexture",nil,true] spawn BIS_fnc_MP;

};

if(__GETC__(life_coplevel) == 3) then

{

player setObjectTextureGlobal [0,"police_shirt.paa"];

[[player,[0,'police_shirt.paa']], "fn_objecttexture",nil,true] spawn BIS_fnc_MP;

};

};

but with those additions, it says "finishing up client procedure" if i spawn as a cop.

my second problem is somewhat more complicated (eventually someone could help me via pm), i want to add independent i think i didnt forget something, but after a week of editing this mod my brain is pretty out of business...

i get a session creation error only if i chose independent, i guess its some failure in the sessioncreate.sqf

	case independent:
{
	[] call life_fnc_indepDefaultGear;
	_packet set[count _packet,life_is_arrested];
};
};

but this seems fine too.

i adapted the indepdefaultgear from the copdefault gear... any tips?

thanks in advance!

Edited by djules

Share this post


Link to post
Share on other sites

Still looking for a scripter for hire, among other things i need:

A better admin menu with actual tools

player functions like holstering and hands behind their back

thanks

Share this post


Link to post
Share on other sites

Does annyone actually know where to get the sevrice truck shop?

like the cases are in the scripts. i just cant find him ingame.

any ideas?

Share this post


Link to post
Share on other sites

Hi Tonic

I'm not sure if this is the right place to ask but here goes - I've been playing your mod a lot lately and I don't want to sound like a love sick puppy that constantly praises you on how great your work is, you probably already get a lot of that. I'll just say that myself and many of my clan members really enjoy it. I'm an avid gamer and I've been looking into many games that are worthy of mine and my clans time - I can say with such appreciation that, I truly believe I have finally found it, Altis Life - your work.

Unfortunately I am simple minded, not very illiterate when it comes to setting up an Altis Life server -it seems like a very complex process but it's probably a basic job for the people in the know. I am not a kid waiting to be spoon fed the answers, I am willing to put in the time and effort that is required to properly see to it that your work, Altis Life, is enjoyed to it's maximum by myself, my clan and our very large Visitor base/Followers.

Now to my questions - Will you teach me how to setup Altis Life for us to enjoy? And if not, can you tell me who can teach me? If that is not an option either, can you provide the information I need to get the process started and finished? I realize your time is valuable so I can pay you for your efforts.

I have made a donation to you and your work - in appreciation for the amount of thought that went into making Altis Life such fun.

I look forward to your reply. Best regards!

Share this post


Link to post
Share on other sites
Does annyone actually know where to get the sevrice truck shop?

like the cases are in the scripts. i just cant find him ingame.

any ideas?

Where do you see the service truck stuff? What files? And I'll see what I can do on my spare time to explain setting it up for you if I can.

Hi Tonic

I'm not sure if this is the right place to ask but here goes - I've been playing your mod a lot lately and I don't want to sound like a love sick puppy that constantly praises you on how great your work is, you probably already get a lot of that. I'll just say that myself and many of my clan members really enjoy it. I'm an avid gamer and I've been looking into many games that are worthy of mine and my clans time - I can say with such appreciation that, I truly believe I have finally found it, Altis Life - your work.

Unfortunately I am simple minded, not very illiterate when it comes to setting up an Altis Life server -it seems like a very complex process but it's probably a basic job for the people in the know. I am not a kid waiting to be spoon fed the answers, I am willing to put in the time and effort that is required to properly see to it that your work, Altis Life, is enjoyed to it's maximum by myself, my clan and our very large Visitor base/Followers.

Now to my questions - Will you teach me how to setup Altis Life for us to enjoy? And if not, can you tell me who can teach me? If that is not an option either, can you provide the information I need to get the process started and finished? I realize your time is valuable so I can pay you for your efforts.

I have made a donation to you and your work - in appreciation for the amount of thought that went into making Altis Life such fun.

I look forward to your reply. Best regards!

Your best bet is to ask someone who is creating or has created a server. For example... I started a server last week with a friend of mine and we started from the ground and are working our way up, I can link you tutorials we've used, Editing techniques and other various things like that, But I don't honestly think there is any one person that can or will teach you everything you need to know, Most of it is Hands on testing and debugging honestly.

Edited by BTNGaming

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  

×