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

Altis Life RPG

Recommended Posts

I have combed through the entire thread....yes i started 3 days ago reading......I must say....venom and btn....you guys know your crap...lol

My question is i've made some custom clothing for the civs on our server, I need to add them into the mod obviously

1. I have the textures in a root file \textures\"item of mention"\"item.paa"

2. I know where to put them in the Bruce.sqf

3. I dont know the proper syntax to make the two see each other......

4. I have put default arma skins already into the shops on our server....I just wanted to add more custom ones.

Please help

THANKS!

Unfortunately, I haven't messed with clothing skins and such yet, As soon as I do I'll post in here.

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

Read my answer above, If I mess with the skins on mines, I'll post it in this forum thread, Might even make a thread called something like... "Altis Life - Ask for help here" to help get things taken care of so we can see 3.1.2 get released sooner.

As far as the 3d sound thing.

In description.ext you need something like this:

class car_lock

{

name = "car_lock";

sound[] = {"\sounds\car_lock.ogg", 1.0, 1};

titles[] = {};

};

class unlock

{

name = "unlock";

sound[] = {"\sounds\unlock.ogg", 1.0, 1};

titles[] = {};

};

};

the unlock part is only if you use a different sound for unlocking.

Then add the \core\functions\fn_keyHandler.sqf

In your lock script, After the

[[_veh,0], "life_fnc_lockVehicle",_veh,false] spawn life_fnc_MP;

};

and

[[_veh,2], "life_fnc_lockVehicle",_veh,false] spawn life_fnc_MP;

};

You need something like...

systemChat "You have unlocked your vehicle.";

player say3D "car_lock";

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

Trying to get this to work. I can reward.

Added.

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!

No need to be hostile man, Everyone needs to learn somewhere. And we all needed help at one point or another.

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 ;)

I can honestly say, I've shared this about 3-5 times in this thread, So people need to read through a bit more and look for a solution before posting the question.

https://drive.google.com/file/d/0B1PKSbYDsvcxaW45ZklVaDl0MzA/edit?usp=sharing

https://drive.google.com/file/d/0B1PKSbYDsvcxb2JzRXp4NkhuVW8/edit?usp=sharing

There is the save fix for civilians.

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

You need to make a backup of your PBO and try a default NON MODIFIED copy of altis life and see if it works.

hi the market on my server have no items?

This means you modified your market items and messed up something, such as a Syntax error, Can you post your code of your market file in here? In a

manner?

Share this post


Link to post
Share on other sites
This means you modified your market items and messed up something, such as a Syntax error, Can you post your code of your market file in here? In a
manner?

is the fn_virt_shops.sqf the market file?

Share this post


Link to post
Share on other sites

You need to make a backup of your PBO and try a default NON MODIFIED copy of altis life and see if it works.

Oh i think you misunderstood me. Its a client problem. I don't have a server i just cant play the game when i join a server(any).

Share this post


Link to post
Share on other sites
Oh i think you misunderstood me. Its a client problem. I don't have a server i just cant play the game when i join a server(any).

Reinstall Arma 3 from scratch, Be that's part of the issue. one of your files is corrupt and your arma/steam isn't recognizing it.

Share this post


Link to post
Share on other sites
Reinstall Arma 3 from scratch, Be that's part of the issue. one of your files is corrupt and your arma/steam isn't recognizing it.

Well.. ok i'll do that. with my 350 kbit/s :dance1:

Share this post


Link to post
Share on other sites

@BTNGaming ok here is the code from fn_virt_shops.sqf

/*

File: fn_virt_shops.sqf

Author: Bryan "Tonic" Boardwine

Description:

Config for virtual shops.

*/

private["_shop"];

_shop = _this select 0;

switch (_shop) do

{

case "market": {["Altis Markt",["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach"]]};

case "wongs": {["Wong's",["turtlesoup","turtle","froglegs"]]};

case "coffee": {["Altis Kaffee Club",["coffee","donuts"]]};

case "heroin": {["Drogendealer",["cocainep","heroinp","marijuana","froglsd"]]};

case "oil": {["Ölhandel",["oilp","pickaxe","fuelF"]]};

case "fishmarket": {["Altis Fischmarkt",["salema","ornate","mackerel","mullet","tuna","catshark"]]};

case "glass": {["Altis Glashandel",["glass"]]};

case "iron": {["Altis Industriehandel",["iron_r","copper_r"]]};

case "diamond": {["Diamantenhandel",["diamond","diamondc"]]};

case "salt": {["Salzhandel",["salt_r"]]};

case "cop": {["Polizei Shop",["donuts","coffee","spikeStrip","water","rabbit","apple","redgull","fuelF"]]};

case "cement": {["Zementhandel",["cement"]]};

case "gold": {["Goldhandel",["gold","goldr"]]};

case "atom": {["Illegale Entsorgung",["atom"]]};

case "pirate": {["Piratenlounge",["donuts","coffee","whiskey","rabbit","apple","redgull","tbacon","marijuana"]]};

case "uran": {["Waffenforschung",["uran"]]};

};

that says the server lo

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]

Error: Object(2 : 171) not found

c:\w\c_branch\poseidon\futura_stable\lib\network\networkserver.cpp NetworkServer::OnClientStateChanged:NOT IMPLEMENTED - briefing!

Error in expression <d_list = [];

client_session_list = [];

bank_obj setVariable["rob_in_sess",false>

Error position: <bank_obj setVariable["rob_in_sess",false>

Error Undefined variable in expression: bank_obj

File life_server\init.sqf, line 35

"Server Time: Jip Var set and synced"

Edited by stalker69

Share this post


Link to post
Share on other sites

I am about to give up. Somehow it still doesn't work, i've tried multiple versions of Arma2NET - Arma2NETMySQL .. If someone please, could upload his @Arma2NET Folder, it would be a dream for me!

Thank you guys for your help

Share this post


Link to post
Share on other sites

@ BTNGaming : Thx alot man and yes you are a good man !!!! really!!! :bounce3:

Really this guy is so hostile cause he is pissed of something

More Guys like you less guys like Trulz and the world would be a great place

thx a lot mate

---------- Post added at 20:22 ---------- Previous post was at 20:10 ----------

Unfortunately, I haven't messed with clothing skins and such yet, As soon as I do I'll post in here.

Read my answer above, If I mess with the skins on mines, I'll post it in this forum thread, Might even make a thread called something like... "Altis Life - Ask for help here" to help get things taken care of so we can see 3.1.2 get released sooner.

As far as the 3d sound thing.

In description.ext you need something like this:

the unlock part is only if you use a different sound for unlocking.

Then add the \core\functions\fn_keyHandler.sqf

In your lock script, After the

[[_veh,0], "life_fnc_lockVehicle",_veh,false] spawn life_fnc_MP;

};

and

[[_veh,2], "life_fnc_lockVehicle",_veh,false] spawn life_fnc_MP;

};

You need something like...

systemChat "You have unlocked your vehicle.";

player say3D "car_lock";

Added.

No need to be hostile man, Everyone needs to learn somewhere. And we all needed help at one point or another.

I can honestly say, I've shared this about 3-5 times in this thread, So people need to read through a bit more and look for a solution before posting the question.

https://drive.google.com/file/d/0B1PKSbYDsvcxaW45ZklVaDl0MzA/edit?usp=sharing

https://drive.google.com/file/d/0B1PKSbYDsvcxb2JzRXp4NkhuVW8/edit?usp=sharing

There is the save fix for civilians.

You need to make a backup of your PBO and try a default NON MODIFIED copy of altis life and see if it works.

This means you modified your market items and messed up something, such as a Syntax error, Can you post your code of your market file in here? In a

manner?

Great Man ^^ Thx a lot

maybe you can help me a bit with retexturing the Police Uniforms

I know that you have to write a own Script with setObjecttexture an so but i am really new at the modding community but understand the most

maybe a tip where to make the scruipt , how to mname it and where to bind it in that would be great

Share this post


Link to post
Share on other sites
I am about to give up. Somehow it still doesn't work, i've tried multiple versions of Arma2NET - Arma2NETMySQL .. If someone please, could upload his @Arma2NET Folder, it would be a dream for me!

Thank you guys for your help

Accept me on steam. (sensityy)

Share this post


Link to post
Share on other sites

I went thru this entire thread last night and pulled out most of the relevant stuff and put it into a google doc, I would like to post it here so we can avoid having the same questions asked over and over again. Any suggestions on the best way to go about doing this?

I got my server all setup last night as well, been having an issue where I am spawning in without a map or compass sometimes, but otherwise everything is running great and the DB is syncing perfect, I cant wait to get it all dialed in.

Share this post


Link to post
Share on other sites
@BTNGaming ok here is the code from fn_virt_shops.sqf

that says the server lo

read line 37 in your init.sqf

case "oil": {["Ölhandel",["oilp","pickaxe","fuelF"]]};

Try removing the O and use it like this Olhandel, some scripts can be buggy with custom letters.

c:\w\c_branch\poseidon\futura_stable\lib\network\n etworkserver.cpp NetworkServer::OnClientStateChanged:NOT IMPLEMENTED - briefing!

It's calling for n etworkserver.cpp not networkserver.cpp

Try fixing the SPACE bug. That could be your main issue.

I went thru this entire thread last night and pulled out most of the relevant stuff and put it into a google doc, I would like to post it here so we can avoid having the same questions asked over and over again. Any suggestions on the best way to go about doing this?

I got my server all setup last night as well, been having an issue where I am spawning in without a map or compass sometimes, but otherwise everything is running great and the DB is syncing perfect, I cant wait to get it all dialed in.

When you implement the save gear functions i posted all over the thread That will fix the VAST MAJORITY of it, you'll still do it occasionally, but very rare.

Share this post


Link to post
Share on other sites
When you implement the save gear functions i posted all over the thread That will fix the VAST MAJORITY of it, you'll still do it occasionally, but very rare.

Cool, I have those files saved that you posted, I will add those into my server later. Thanks for the heads up on that! I am gonna shoot ya a PM with a link to the google doc, we should post it somewhere as a FAQ or something for the people coming in.

PM sent.

Share this post


Link to post
Share on other sites
Quote Originally Posted by stalker69 View Post

@BTNGaming ok here is the code from fn_virt_shops.sqf

that says the server lo

read line 37 in your init.sqf

case "oil": {["Ölhandel",["oilp","pickaxe","fuelF"]]};

Try removing the O and use it like this Olhandel, some scripts can be buggy with custom letters.

c:\w\c_branch\poseidon\futura_stable\lib\network\n etworkserver.cpp NetworkServer::OnClientStateChanged:NOT IMPLEMENTED - briefing!

It's calling for n etworkserver.cpp not networkserver.cpp

Try fixing the SPACE bug. That could be your main issue.

where can i change it

c:\w\c_branch\poseidon\futura_stable\lib\network\n etworkserver.cpp NetworkServer::OnClientStateChanged:NOT IMPLEMENTED - briefing!

Share this post


Link to post
Share on other sites

@ALL

Hello guys!

I'm very afraid because I translated the hall mod and could see at the end, that all special chars are HIDDEN!!!

This is big shit because I finished translation.

That couldn't be a bug because I saw the special chars on other servers.

HOW ENABLE / SHOW SPECIAL CHARS???

Really I need your help!!!

The didn't work in dialogs, in _hint functions and so on...

Share this post


Link to post
Share on other sites

BTN thanks for the reply man, I feel i'm onto something and would like to compare notes and knowledge...

The theory: "inject a new model into the configs, replace the "U_Rangemaster" in the cop config file to instance. Re-texture your new model using the hiddentextures and baam! done..."

My problem:

1. newb to coding

2. learning as I go so trial and error is my best friend.

With that in mind; Here is the trial ; edited the config.ccp in the @life_sever\addons\life_server\

class DefaultEventhandlers;

{

class life_server

{

units[] = {"C_man_1"};

weapons[] = {};

requiredAddons[] = {"A3_Data_F","A3_Soft_F","A3_Soft_F_Offroad_01","A3_Characters_F","A3_Characters_F_BLUFOR"};

fileName = "life_server.pbo";

author[]= {"TAW_Tonic"};

};

class CfgFunctions

{

class STS_DB

{

tag = "DB";

class MySQL

{

file = "\life_server\core\DB";

class insert{};

class query{};

class update{};

class numberSafe {};

class formatArray {};

class mresArray {};

class mresToArray {};

class addQueue {};

class processQueue {};

class queueManagement {};

class insertVehicle {};

class queryVehicle {};

class queryVehicles {};

class bool{};

};

};

class Life_System

{

tag = "life";

class Wanted_Sys

{

file = "\life_server\core\wantedsys";

class wantedFetch {};

class wantedPerson {};

class wantedBounty {};

class wantedTicket {};

class wantedPardon {};

class wantedRemove {};

class wantedAdd {};

class wantedPunish {};

};

class Jail_Sys

{

file = "\life_server\core\jail";

class jailSys {};

};

class Client_Code

{

file = "\life_server\core\clientside";

class safeOpen {};

class safeInventory {};

class safeTake {};

class safeStore {};

};

};

class STS_System

{

tag = "STS";

class System

{

file = "\life_server\core\system";

class query {};

class add {};

class update {};

class managesc {};

class cleanup {};

class timeStamp {};

class huntingZone {};

class getID {};

class vehicleCreate {};

class vehicleDead {};

class spawnVehicle {};

class addVehicle2Chain {};

class getVehicles {};

class vehicleStore {};

class vehicleDelete {};

class spikeStrip {};

class robReserve {};

class robberyState {};

class logIt {};

class federalUpdate {};

class isUIDActive {};

class chopShopSell {};

};

};

};

class CfgVehicles

{

class Car_F;

class CAManBase;

class Civilian;

class Civilian_F : Civilian

{

class EventHandlers;

};

class C_man_1 : Civilian_F

{

class EventHandlers: EventHandlers

{

init = "(_this select 0) execVM ""\life_server\fix_headgear.sqf""";

};

};

class Offroad_01_base_F: Car_F

{

class EventHandlers;

};

class Hatchback_01_base_F: Car_F

{

class EventHandlers;

};

class SUV_01_base_F: Car_F

{

class EventHandlers;

};

class C_Hatchback_01_sport_F: Hatchback_01_base_F

{

author = "$STR_A3_Bohemia_Interactive";

_generalMacro = "C_Hatchback_01_sport_F";

scope = 2;

crew = "C_man_1";

side = 3;

faction = "CIV_F";

displayName = "$STR_A3_CfgVehicles_C_car_sport0";

hiddenSelectionsTextures[] = {"\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_SPORT01_CO.paa"};

class EventHandlers: EventHandlers

{

init = "(_this select 0) execVM ""\life_server\cars\hatchback\color.sqf""";

};

};

class C_SUV_01_F: SUV_01_base_F

{

author = "$STR_A3_Bohemia_Interactive";

_generalMacro = "C_SUV_01_F";

scope = 2;

crew = "C_man_1";

typicalCargo[] = {"C_man_1"};

side = 3;

faction = "CIV_F";

accuracy = 1.25;

hiddenSelectionsTextures[] = {"\A3\Soft_F_Gamma\SUV_01\Data\SUV_01_ext_CO.paa"};

class EventHandlers: EventHandlers

{

init = "(_this select 0) execVM ""\life_server\cars\SUV\color.sqf""";

};

};

class C_Hatchback_01_F: Hatchback_01_base_F

{

author = "$STR_A3_Bohemia_Interactive";

_generalMacro = "C_Hatchback_01_F";

scope = 2;

crew = "C_man_1";

side = 3;

faction = "CIV_F";

hiddenSelectionsTextures[] = {"\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_CO.paa"};

class EventHandlers: EventHandlers

{

init = "(_this select 0) execVM ""\life_server\cars\hatchback\color.sqf""";

};

};

class C_Offroad_01_F: Offroad_01_base_F

{

author = "$STR_A3_Bohemia_Interactive";

_generalMacro = "C_Offroad_01_F";

scope = 2;

crew = "C_man_1";

side = 3;

faction = "CIV_F";

accuracy = 1.25;

class Turrets{};

class EventHandlers: EventHandlers

{

init = "(_this select 0) execVM ""\life_server\cars\offroad\color.sqf""";

};

};

class B_Soldier_base_F;

class Example_Soldier_F : B_Soldier_base_F

{

_generalMacro = "B_Soldier_F"; //unsure what this does

scope = 2;

displayName = "Uniform Test Soldier";

nakedUniform = "U_BasicBody"; //class for "naked" body

uniformClass = "Example_CombatUniform_mcam"; //the uniform item

hiddenSelections[] = {"Camo"};

hiddenSelectionsTextures[] = {"texture\police_shirt.paa"};

};

};

class cfgWeapons

{

class Uniform_Base;

class UniformItem;

class Example_CombatUniform_mcam : Uniform_Base

{

scope = 2;

displayName = "Example Mcam uniform";

picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa";

model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";

class ItemInfo : UniformItem

{

uniformModel = "-";

uniformClass = "Example_Soldier_F"; //would be same as our made soldier class

containerClass = "Supply20"; //how much it can carry

mass = 80; //how much it weights

};

};

};

};

and here is the error: Error

Share this post


Link to post
Share on other sites

good evening guys need some assistance

When i pull Cars out of the Garage i can unlock them and lock them

But i cant sit in the cars

Whole Server has that problem need help can´t find the error

Share this post


Link to post
Share on other sites

Hey Guys,

I read the whole Thread and now after 4 hours i write this message.

i have a Problem with my adding SUV-Textures. I use the a Mod File of Armaholic, than i used the PBO-Manager to extract the *.pbo File. That i copy the "police_suv.paa". I put the "police_suv.paa" to the root-directory.

Than i add these to Lines.

File: fn_vehicleColorCfg

case "C_SUV_01_F":

{

_ret =

[

["\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_co.paa","civ"],

["\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_02_co.paa","cop"],

["\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_03_co.paa","civ"],

["\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_04_co.paa","civ"],

["#(ai,64,64,1)Fresnel(1.3,7)","cop"],

["police_suv.paa","cop"]

];

};

File: fn_vehicleColorStr

case "C_SUV_01_F":

{

switch (_index) do

{

case 0: {_color = "Dark Red";};

case 1: {_color = "Black";};

case 2: {_color = "Silver";};

case 3: {_color = "Orange";};

case 4: {_color = "Cop";};

case 5: {_color = "Police";};

};

};

Now i have the issue that my car is invisible, but i can choose the "Color" -> Police.

Can somebody help me?

Best Regards

exo#

Share this post


Link to post
Share on other sites

So, trying to add proper cop weapon choices,, but my shops are empty. I can select the proper rank, but the stores are empty. I don't see the error, maybe one of you might?

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

Description:
Master configuration file for the weapon shops.

Return:
String: Close the menu
Array: 
[shop Name,
[ //Array of items to add to the store
	[classname,Custom Name (set nil for default),price]
]]
*/
private["_shop"];
_shop = [_this,0,"",[""]] call BIS_fnc_param;
if(_shop == "") exitWith {closeDialog 0}; //Bad shop type passed.

[color="#FF0000"]switch(_shop) do
{
// Police Equipment for all cops
// old case "cop_basic":
case "police_equipment":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};	
		default
		{
			["Police Equipment",
				[
					["ToolKit",nil,250],
					["FirstAidKit",nil,150],
					["Medikit",nil,1000],
					["Binocular",nil,150],
					["NVGoggles_OPFOR",nil,2000],
					["ItemGPS",nil,0],
					["ItemMap",nil,0],
					["ItemCompass",nil,0],
					["ItemWatch",nil,0],
					["hgun_P07_snds_F","Stun Pistol",2000],
					["16Rnd_9x21_Mag",nil,50]
				]
			];
		};
	};
};
//officer
case "cop_patrol":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};
		case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer rank!"};
		default
		{
			["Police Officer Standard Issue",
				[
					["arifle_MX_F",nil,20000],
					["arifle_MXC_Black_F",nil,100000],
					["30Rnd_65x39_caseless_mag",nil,500],
					["30Rnd_65x39_caseless_mag_Tracer","6.5mm 30Rnd Rubber",500],
					["hgun_P07_snds_F",nil,5000],
					["16Rnd_9x21_Mag","9mm 16Rnd Rubber",250],
					["arifle_sdar_F",nil,35000],
					["20Rnd_556x45_UW_mag",nil,500],
					["optic_Aco_smg",nil,1000],
					["optic_MRCO",nil,3500],
					["optic_Hamr",nil,5000],
					["acc_pointer_IR",nil,5000]
				]
			];
		};
	};
};
//sergeant
case "cop_sergeant":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};
		case (__GETC__(life_coplevel) < 3): {"You are not a Sergeant, back in line!"};
		default
		{
			["Sergeant",
				[

					["arifle_MXC_Black_F",nil,100000],
					["arifle_MX_Black_F",nil,150000],
					["arifle_MXM_Black_F",nil,250000],
					["30Rnd_65x39_caseless_mag",nil,500],
					["30Rnd_65x39_caseless_mag_Tracer","6.5mm 30Rnd Rubber",500],
					["hgun_P07_snds_F",nil,5000],
					["16Rnd_9x21_Mag","9mm 16Rnd Rubber",250],
					["optic_Aco",nil,1000],
					["optic_MRCO",nil,3500],
					["optic_Hamr",nil,5000],
					["acc_pointer_IR",nil,5000]
				]
			];
		};
	};
};
//Lieutenant
case "cop_lieutenant":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};
		case (__GETC__(life_coplevel) < 4): {"You are not a Lieutenant, back in line!"};
		default
		{
			["Lieutenant",
				[
					["arifle_MXC_Black_F",nil,100000],
					["arifle_MX_Black_F",nil,150000],
					["arifle_MXM_Black_F",nil,250000],
					["srifle_DMR_01_F",nil,50000],
					["LMG_Mk200_F",nil,35000],
					["30Rnd_65x39_caseless_mag",nil,500],
					["30Rnd_65x39_caseless_mag_Tracer","6.5mm 30Rnd Rubber",500],
					["hgun_P07_snds_F",nil,5000],
					["16Rnd_9x21_Mag","9mm 16Rnd Rubber",250],
					["hgun_Pistol_heavy_01_F",nil,25000],
					["11Rnd_45ACP_Mag",nil,200],
					["10Rnd_762x51_Mag",nil,500],
					["200Rnd_65x39_cased_Box",nil,1000],
					["optic_Aco",nil,1000],
					["optic_MRCO",nil,3500],
					["optic_Hamr",nil,5000],
					["optic_MRD",nil,2500],
					["acc_pointer_IR",nil,5000],
					["MiniGrenade","Flashbang",1000]
				]
			];
		};
	};
};
//Captain
case "cop_captain":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};
		case (__GETC__(life_coplevel) < 5): {"You are not a Captain, back in line!"};
		default
		{
			["Captain",
				[
					["arifle_MXC_Black_F",nil,100000],
					["arifle_MX_Black_F",nil,150000],
					["arifle_MXM_Black_F",nil,250000],
					["LMG_Mk200_F",nil,35000],
					["srifle_DMR_01_F",nil,50000],
					["30Rnd_65x39_caseless_mag",nil,500],
					["30Rnd_65x39_caseless_mag_Tracer","6.5mm 30Rnd Rubber",500],
					["hgun_P07_snds_F",nil,5000],
					["16Rnd_9x21_Mag","9mm 16Rnd Rubber",250],
					["hgun_Pistol_heavy_01_F",nil,25000],
					["11Rnd_45ACP_Mag",nil,200],
					["10Rnd_762x51_Mag",nil,500],
					["200Rnd_65x39_cased_Box",nil,1000],
					["optic_Aco",nil,1000],
					["optic_MRCO",nil,3500],
					["optic_Hamr",nil,5000],
					["optic_MRD",nil,2500],
					["acc_pointer_IR",nil,5000],
					["MiniGrenade","Flashbang",1000]
				]
			];
		};
	};
};[/color]
case "rebel":
{
	switch(true) do
	{
		case (playerSide != civilian): {"You are not a cop!"};
		case (!license_civ_rebel): {"You don't have a Rebel training license!"};
		default
		{
			["Mohammed's Jihadi Shop",
				[
					["arifle_TRG20_F",nil,25000],
					["arifle_Katiba_F",nil,30000],
					["srifle_DMR_01_F",nil,50000],
					["arifle_SDAR_F",nil,20000],
					["LMG_Zafir_F"],nil,35000],
					["LMG_Mk200_F",nil,35000],
					["srifle_EBR_F",nil,50000],
					["optic_ACO_grn",nil,3500],
					["optic_Holosight",nil,3600],
					["acc_flashlight",nil,1000],
					["optic_Hamr",nil,7500],
					["30Rnd_9x21_Mag",nil,200],
					["20Rnd_556x45_UW_mag",nil,125],
					["30Rnd_556x45_Stanag",nil,300],
					["10Rnd_762x51_Mag",nil,500],
					["20Rnd_762x51_Mag",nil,1000],
					["30Rnd_65x39_caseless_green",nil,275],
					["150Rnd_762x51_Box",nil,2000],
					["200Rnd_65x39_cased_Box",nil,2500]
				]
			];
		};
	};
};

case "gun":
{
	switch(true) do
	{
		case (playerSide != civilian): {"You are not a cop!"};
		case (!license_civ_gun): {"You don't have a Firearms license!"};
		default
		{
			["Billy Joe's Firearms",
				[
					["hgun_Rook40_F",nil,6500],
					["hgun_Pistol_heavy_02_F",nil,9850],
					["hgun_ACPC2_F",nil,11500],
					["hgun_PDW2000_F",nil,20000],
					["V_Rangemaster_belt",nil,4500],
					["16Rnd_9x21_Mag",nil,25],
					["9Rnd_45ACP_Mag",nil,45],
					["6Rnd_45ACP_Cylinder",nil,50],
					["30Rnd_9x21_Mag",nil,75],
					["optic_ACO_grn_smg",nil,2500],
					["optic_Aco",nil,1000],
					["optic_Holosight",nil,2000]
				]
			];
		};
	};
};

case "donator":
{
	switch(true) do
	{
		case (__GETC__(life_donator) == 0): {"You are not a donator!"};
		case (__GETC__(life_donator) == 1):
		{
			["STS Donator Shop Tier 1",
				[
					["hgun_Rook40_F",nil,750],
					["hgun_PDW2000_F",nil,6500],
					["optic_ACO_grn_smg",nil,750],
					["ToolKit",nil,50],
					["itemgps",nil,50],
					["16Rnd_9x21_Mag",nil,25],
					["30Rnd_9x21_Mag",nil,75]
				]
			];
		};

		case (__GETC__(life_donator) == 2):
		{
			["STS Donator Shop Tier 2",
				[
					["hgun_Rook40_F",nil,750],
					["hgun_PDW2000_F",nil,6500],
					["arifle_MK20C_plain_F",nil,25000],
					["optic_ACO_grn_smg",nil,750],
					["NVGoggles",nil,350],
					["ToolKit",nil,50],
					["itemgps",nil,50],
					["16Rnd_9x21_Mag",nil,25],
					["30Rnd_9x21_Mag",nil,75],
					["30Rnd_556x45_Stanag",nil,125]
				]
			];
		};

		case (__GETC__(life_donator) >= 3):
		{
			["STS Donator Shop Tier 3",
				[
					["hgun_Rook40_F",nil,500],
					["hgun_PDW2000_F",nil,6500],
					["hgun_pistol_heavy_01_F",nil,5850],
					["arifle_Mk20C_plain_F",nil,25000],
					["optic_ACO_grn_smg",nil,750],
					["optic_MRCO",nil,10000],
					["NVGoggles",nil,350],
					["ToolKit",nil,50],
					["itemgps",nil,50],
					["FirstAidKit",nil,25],
					["16Rnd_9x21_Mag",nil,25],
					["30Rnd_9x21_Mag",nil,75],
					["11Rnd_45ACP_Mag",nil,85],
					["30Rnd_556x45_Stanag",nil,125]
				]
			];
		};
	};
};

case "genstore":
{
	["Altis General Store",
		[
			["Binocular",nil,150],
			["ItemCompass",nil,100],
			["ItemWatch",nil,100],
			["ItemGPS",nil,100],
			["ToolKit",nil,250],
			["FirstAidKit",nil,150],
			["Medikit",nil,300],
			["NVGoggles",nil,2000],
			["Chemlight_red",nil,300],
			["Chemlight_yellow",nil,300],
			["Chemlight_green",nil,300],
			["Chemlight_blue",nil,300]
		]
	];
};
};

I also added the new addActions in my mission.sqm here

init="this enableSimulation false;   this allowDamage false; this addAction[""Cop Item Shop"",life_fnc_virt_menu,""cop""]; this addAction[""Cop Clothing Shop"",life_fnc_clothingMenu,""cop""];[color="#FF0000"]  this addAction[""Police Equipment"",life_fnc_weaponShopMenu,""police_equipment""];[/color]  this addAction[""Police Officer"",life_fnc_weaponShopMenu,""cop_patrol""];  this addAction[""Sergeant"",life_fnc_weaponShopMenu,""cop_sergeant""]; [color="#FF0000"] this addAction[""Lieutenant"",life_fnc_weaponShopMenu,""cop_lieutenant""];  this addAction[""Captain"",life_fnc_weaponShopMenu,""cop_captain""];[/color] this addAction[format[""%1 ($%2)"",[""license_cop_air""] call life_fnc_varToStr,[([""cair""] call life_fnc_licensePrice)] call life_fnc_numberText],life_fnc_buyLicense,""cair"",0,false,false,"""",' !license_cop_air && playerSide == west '];";

Am I missing anything else?

Share this post


Link to post
Share on other sites

hi i use a altis life pbo from a other server but now i have no items in the market! car shop,clothing shop works only market and wongs turtle shop is buggy!

Share this post


Link to post
Share on other sites
Hey Guys,

I read the whole Thread and now after 4 hours i write this message.

i have a Problem with my adding SUV-Textures. I use the a Mod File of Armaholic, than i used the PBO-Manager to extract the *.pbo File. That i copy the "police_suv.paa". I put the "police_suv.paa" to the root-directory.

Than i add these to Lines.

File: fn_vehicleColorCfg

case "C_SUV_01_F":

{

_ret =

[

["\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_co.paa","civ"],

["\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_02_co.paa","cop"],

["\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_03_co.paa","civ"],

["\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_04_co.paa","civ"],

["#(ai,64,64,1)Fresnel(1.3,7)","cop"],

["police_suv.paa","cop"]

];

};

File: fn_vehicleColorStr

case "C_SUV_01_F":

{

switch (_index) do

{

case 0: {_color = "Dark Red";};

case 1: {_color = "Black";};

case 2: {_color = "Silver";};

case 3: {_color = "Orange";};

case 4: {_color = "Cop";};

case 5: {_color = "Police";};

};

};

Now i have the issue that my car is invisible, but i can choose the "Color" -> Police.

Can somebody help me?

Best Regards

exo#

Where is your "police_suv.paa" stored? The easiest way would be to create a folder in the "root directory"(Where folders like core, dialog, icons, etc. are) of the mission. Then you have to give the script the path to your .paa. It should look like this: ["textures\police_suv.paa","cop"]

So, trying to add proper cop weapon choices,, but my shops are empty. I can select the proper rank, but the stores are empty. I don't see the error, maybe one of you might?

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

Description:
Master configuration file for the weapon shops.

Return:
String: Close the menu
Array: 
[shop Name,
[ //Array of items to add to the store
	[classname,Custom Name (set nil for default),price]
]]
*/
private["_shop"];
_shop = [_this,0,"",[""]] call BIS_fnc_param;
if(_shop == "") exitWith {closeDialog 0}; //Bad shop type passed.

[color="#FF0000"]switch(_shop) do
{
// Police Equipment for all cops
// old case "cop_basic":
case "police_equipment":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};	
		default
		{
			["Police Equipment",
				[
					["ToolKit",nil,250],
					["FirstAidKit",nil,150],
					["Medikit",nil,1000],
					["Binocular",nil,150],
					["NVGoggles_OPFOR",nil,2000],
					["ItemGPS",nil,0],
					["ItemMap",nil,0],
					["ItemCompass",nil,0],
					["ItemWatch",nil,0],
					["hgun_P07_snds_F","Stun Pistol",2000],
					["16Rnd_9x21_Mag",nil,50]
				]
			];
		};
	};
};
//officer
case "cop_patrol":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};
		case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer rank!"};
		default
		{
			["Police Officer Standard Issue",
				[
					["arifle_MX_F",nil,20000],
					["arifle_MXC_Black_F",nil,100000],
					["30Rnd_65x39_caseless_mag",nil,500],
					["30Rnd_65x39_caseless_mag_Tracer","6.5mm 30Rnd Rubber",500],
					["hgun_P07_snds_F",nil,5000],
					["16Rnd_9x21_Mag","9mm 16Rnd Rubber",250],
					["arifle_sdar_F",nil,35000],
					["20Rnd_556x45_UW_mag",nil,500],
					["optic_Aco_smg",nil,1000],
					["optic_MRCO",nil,3500],
					["optic_Hamr",nil,5000],
					["acc_pointer_IR",nil,5000]
				]
			];
		};
	};
};
//sergeant
case "cop_sergeant":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};
		case (__GETC__(life_coplevel) < 3): {"You are not a Sergeant, back in line!"};
		default
		{
			["Sergeant",
				[

					["arifle_MXC_Black_F",nil,100000],
					["arifle_MX_Black_F",nil,150000],
					["arifle_MXM_Black_F",nil,250000],
					["30Rnd_65x39_caseless_mag",nil,500],
					["30Rnd_65x39_caseless_mag_Tracer","6.5mm 30Rnd Rubber",500],
					["hgun_P07_snds_F",nil,5000],
					["16Rnd_9x21_Mag","9mm 16Rnd Rubber",250],
					["optic_Aco",nil,1000],
					["optic_MRCO",nil,3500],
					["optic_Hamr",nil,5000],
					["acc_pointer_IR",nil,5000]
				]
			];
		};
	};
};
//Lieutenant
case "cop_lieutenant":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};
		case (__GETC__(life_coplevel) < 4): {"You are not a Lieutenant, back in line!"};
		default
		{
			["Lieutenant",
				[
					["arifle_MXC_Black_F",nil,100000],
					["arifle_MX_Black_F",nil,150000],
					["arifle_MXM_Black_F",nil,250000],
					["srifle_DMR_01_F",nil,50000],
					["LMG_Mk200_F",nil,35000],
					["30Rnd_65x39_caseless_mag",nil,500],
					["30Rnd_65x39_caseless_mag_Tracer","6.5mm 30Rnd Rubber",500],
					["hgun_P07_snds_F",nil,5000],
					["16Rnd_9x21_Mag","9mm 16Rnd Rubber",250],
					["hgun_Pistol_heavy_01_F",nil,25000],
					["11Rnd_45ACP_Mag",nil,200],
					["10Rnd_762x51_Mag",nil,500],
					["200Rnd_65x39_cased_Box",nil,1000],
					["optic_Aco",nil,1000],
					["optic_MRCO",nil,3500],
					["optic_Hamr",nil,5000],
					["optic_MRD",nil,2500],
					["acc_pointer_IR",nil,5000],
					["MiniGrenade","Flashbang",1000]
				]
			];
		};
	};
};
//Captain
case "cop_captain":
{
	switch(true) do
	{
		case (playerSide != west): {"You are not a cop!"};
		case (__GETC__(life_coplevel) < 5): {"You are not a Captain, back in line!"};
		default
		{
			["Captain",
				[
					["arifle_MXC_Black_F",nil,100000],
					["arifle_MX_Black_F",nil,150000],
					["arifle_MXM_Black_F",nil,250000],
					["LMG_Mk200_F",nil,35000],
					["srifle_DMR_01_F",nil,50000],
					["30Rnd_65x39_caseless_mag",nil,500],
					["30Rnd_65x39_caseless_mag_Tracer","6.5mm 30Rnd Rubber",500],
					["hgun_P07_snds_F",nil,5000],
					["16Rnd_9x21_Mag","9mm 16Rnd Rubber",250],
					["hgun_Pistol_heavy_01_F",nil,25000],
					["11Rnd_45ACP_Mag",nil,200],
					["10Rnd_762x51_Mag",nil,500],
					["200Rnd_65x39_cased_Box",nil,1000],
					["optic_Aco",nil,1000],
					["optic_MRCO",nil,3500],
					["optic_Hamr",nil,5000],
					["optic_MRD",nil,2500],
					["acc_pointer_IR",nil,5000],
					["MiniGrenade","Flashbang",1000]
				]
			];
		};
	};
};[/color]
case "rebel":
{
	switch(true) do
	{
		case (playerSide != civilian): {"You are not a cop!"};
		case (!license_civ_rebel): {"You don't have a Rebel training license!"};
		default
		{
			["Mohammed's Jihadi Shop",
				[
					["arifle_TRG20_F",nil,25000],
					["arifle_Katiba_F",nil,30000],
					["srifle_DMR_01_F",nil,50000],
					["arifle_SDAR_F",nil,20000],
					["LMG_Zafir_F"],nil,35000],
					["LMG_Mk200_F",nil,35000],
					["srifle_EBR_F",nil,50000],
					["optic_ACO_grn",nil,3500],
					["optic_Holosight",nil,3600],
					["acc_flashlight",nil,1000],
					["optic_Hamr",nil,7500],
					["30Rnd_9x21_Mag",nil,200],
					["20Rnd_556x45_UW_mag",nil,125],
					["30Rnd_556x45_Stanag",nil,300],
					["10Rnd_762x51_Mag",nil,500],
					["20Rnd_762x51_Mag",nil,1000],
					["30Rnd_65x39_caseless_green",nil,275],
					["150Rnd_762x51_Box",nil,2000],
					["200Rnd_65x39_cased_Box",nil,2500]
				]
			];
		};
	};
};

case "gun":
{
	switch(true) do
	{
		case (playerSide != civilian): {"You are not a cop!"};
		case (!license_civ_gun): {"You don't have a Firearms license!"};
		default
		{
			["Billy Joe's Firearms",
				[
					["hgun_Rook40_F",nil,6500],
					["hgun_Pistol_heavy_02_F",nil,9850],
					["hgun_ACPC2_F",nil,11500],
					["hgun_PDW2000_F",nil,20000],
					["V_Rangemaster_belt",nil,4500],
					["16Rnd_9x21_Mag",nil,25],
					["9Rnd_45ACP_Mag",nil,45],
					["6Rnd_45ACP_Cylinder",nil,50],
					["30Rnd_9x21_Mag",nil,75],
					["optic_ACO_grn_smg",nil,2500],
					["optic_Aco",nil,1000],
					["optic_Holosight",nil,2000]
				]
			];
		};
	};
};

case "donator":
{
	switch(true) do
	{
		case (__GETC__(life_donator) == 0): {"You are not a donator!"};
		case (__GETC__(life_donator) == 1):
		{
			["STS Donator Shop Tier 1",
				[
					["hgun_Rook40_F",nil,750],
					["hgun_PDW2000_F",nil,6500],
					["optic_ACO_grn_smg",nil,750],
					["ToolKit",nil,50],
					["itemgps",nil,50],
					["16Rnd_9x21_Mag",nil,25],
					["30Rnd_9x21_Mag",nil,75]
				]
			];
		};

		case (__GETC__(life_donator) == 2):
		{
			["STS Donator Shop Tier 2",
				[
					["hgun_Rook40_F",nil,750],
					["hgun_PDW2000_F",nil,6500],
					["arifle_MK20C_plain_F",nil,25000],
					["optic_ACO_grn_smg",nil,750],
					["NVGoggles",nil,350],
					["ToolKit",nil,50],
					["itemgps",nil,50],
					["16Rnd_9x21_Mag",nil,25],
					["30Rnd_9x21_Mag",nil,75],
					["30Rnd_556x45_Stanag",nil,125]
				]
			];
		};

		case (__GETC__(life_donator) >= 3):
		{
			["STS Donator Shop Tier 3",
				[
					["hgun_Rook40_F",nil,500],
					["hgun_PDW2000_F",nil,6500],
					["hgun_pistol_heavy_01_F",nil,5850],
					["arifle_Mk20C_plain_F",nil,25000],
					["optic_ACO_grn_smg",nil,750],
					["optic_MRCO",nil,10000],
					["NVGoggles",nil,350],
					["ToolKit",nil,50],
					["itemgps",nil,50],
					["FirstAidKit",nil,25],
					["16Rnd_9x21_Mag",nil,25],
					["30Rnd_9x21_Mag",nil,75],
					["11Rnd_45ACP_Mag",nil,85],
					["30Rnd_556x45_Stanag",nil,125]
				]
			];
		};
	};
};

case "genstore":
{
	["Altis General Store",
		[
			["Binocular",nil,150],
			["ItemCompass",nil,100],
			["ItemWatch",nil,100],
			["ItemGPS",nil,100],
			["ToolKit",nil,250],
			["FirstAidKit",nil,150],
			["Medikit",nil,300],
			["NVGoggles",nil,2000],
			["Chemlight_red",nil,300],
			["Chemlight_yellow",nil,300],
			["Chemlight_green",nil,300],
			["Chemlight_blue",nil,300]
		]
	];
};
};

I also added the new addActions in my mission.sqm here

init="this enableSimulation false;   this allowDamage false; this addAction[""Cop Item Shop"",life_fnc_virt_menu,""cop""]; this addAction[""Cop Clothing Shop"",life_fnc_clothingMenu,""cop""];[color="#FF0000"]  this addAction[""Police Equipment"",life_fnc_weaponShopMenu,""police_equipment""];[/color]  this addAction[""Police Officer"",life_fnc_weaponShopMenu,""cop_patrol""];  this addAction[""Sergeant"",life_fnc_weaponShopMenu,""cop_sergeant""]; [color="#FF0000"] this addAction[""Lieutenant"",life_fnc_weaponShopMenu,""cop_lieutenant""];  this addAction[""Captain"",life_fnc_weaponShopMenu,""cop_captain""];[/color] this addAction[format[""%1 ($%2)"",[""license_cop_air""] call life_fnc_varToStr,[([""cair""] call life_fnc_licensePrice)] call life_fnc_numberText],life_fnc_buyLicense,""cair"",0,false,false,"""",' !license_cop_air && playerSide == west '];";

Am I missing anything else?

init="this enableSimulation false; this allowDamage false; [color="#FF0000"]this addAction[""Cop Item Shop"",life_fnc_virt_menu,""cop""]; this addAction[""Cop Clothing Shop"",life_fnc_clothingMenu,""cop""];[/color] this addAction[""Police Equipment"",life_fnc_weaponShopMenu,""police_equipment""];[/color]  this addAction[""Police Officer"",life_fnc_weaponShopMenu,""cop_patrol""];  this addAction[""Sergeant"",life_fnc_weaponShopMenu,""cop_sergeant""]; this addAction[""Lieutenant"",life_fnc_weaponShopMenu,""cop_lieutenant""];  this addAction[""Captain"",life_fnc_weaponShopMenu,""cop_captain""]; this addAction[format[""%1 ($%2)"",[""license_cop_air""] call life_fnc_varToStr,[([""cair""] call life_fnc_licensePrice)] call life_fnc_numberText],life_fnc_buyLicense,""cair"",0,false,false,"""",' !license_cop_air && playerSide == west '];";

If I'm not mistaken the two marked addAction-calls are not in use anymore. I can't say for sure but maybe this crashes something in someway.

Edited by Trulz

Share this post


Link to post
Share on other sites

Hello,

I add clothing for police, but when I SYNC DATA and I left the clothes are not saved in the database.

I think there is a restriction but I think not.

Have you any idea?

thank you very much

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  

×