Jump to content

[Release] Skin Trader 0.6 (Buy any arma skin)


boyd

Recommended Posts

Any errors in your logs?

Try different co-ordinates.

Just found this in my RPT

 

22:44:31 Error in expression <s\variables.sqf"
disableSerialization;
 
AllPlayers set [count AllPlayers, "Bandi>
22:44:31 Error position: <AllPlayers set [count AllPlayers, "Bandi>
22:44:31 Error Undefined variable in expression: allplayers
22:44:31 File mpmissions\DayZ_Epoch_24.Napf\custom\overrides\variables.sqf, line 3
22:44:32 Error in expression <;
_recompile = (count _this) > 0;
 
It's set to these like the post says
 
AllPlayers set [count AllPlayers, "Bandit1_DZ",

                    "Bandit2_DZ",

                    "BanditW1_DZ",

                    "BanditW2_DZ",

                    "Survivor2_DZ",

                    "SurvivorW2_DZ",

                    "Sniper1_DZ",

                    "Camo1_DZ",

                    "Soldier1_DZ",

                    "Rocket_DZ"];

 
Link to comment
Share on other sites

Logan - I have 2 guesses

 

1: In my variables.sqf I still have

//Model Variables
Bandit1_DZ =     "Bandit1_DZ";
Bandit2_DZ =     "Bandit2_DZ";
BanditW1_DZ =     "BanditW1_DZ";
BanditW2_DZ =     "BanditW2_DZ";
Survivor1_DZ =     "Survivor2_DZ";
Survivor2_DZ =     "Survivor2_DZ";
SurvivorW2_DZ = "SurvivorW2_DZ";
SurvivorW3_DZ = "SurvivorW2_DZ";
Sniper1_DZ =     "Sniper1_DZ";
Camo1_DZ =         "Camo1_DZ";
Soldier1_DZ =     "Soldier1_DZ";
Rocket_DZ =     "Rocket_DZ";

directly underneath

disableSerialization;

(And then it starts the AllPlayers set etc code.) Try adding that.

 

Next up would be to check your init.sqf where it calls your custom variables file.

Something like:

call compile preprocessFileLineNumbers "custom\variables.sqf";

Make sure there's no quotation marks missing or semi-colon missing etc.

Link to comment
Share on other sites

Logan - I have 2 guesses

 

1: In my variables.sqf I still have

//Model Variables
Bandit1_DZ =     "Bandit1_DZ";
Bandit2_DZ =     "Bandit2_DZ";
BanditW1_DZ =     "BanditW1_DZ";
BanditW2_DZ =     "BanditW2_DZ";
Survivor1_DZ =     "Survivor2_DZ";
Survivor2_DZ =     "Survivor2_DZ";
SurvivorW2_DZ = "SurvivorW2_DZ";
SurvivorW3_DZ = "SurvivorW2_DZ";
Sniper1_DZ =     "Sniper1_DZ";
Camo1_DZ =         "Camo1_DZ";
Soldier1_DZ =     "Soldier1_DZ";
Rocket_DZ =     "Rocket_DZ";

directly underneath

disableSerialization;

(And then it starts the AllPlayers set etc code.) Try adding that.

 

Next up would be to check your init.sqf where it calls your custom variables file.

Something like:

call compile preprocessFileLineNumbers "custom\variables.sqf";

Make sure there's no quotation marks missing or semi-colon missing etc.

Changed to what you have and made sure variables were correct

 

call compile preprocessFileLineNumbers "custom\overrides\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
 
They were.
 
Still not working, going to try changing cords like you suggested earlier.
 
EDIT: Changed cords and still nothing. This is odd to say the least.
Link to comment
Share on other sites

1: Please use pastebin - it's much easier to scroll through and spot mistakes.

2: Your last line reads

"BAF_Soldier_EN_W",

You've put a comma after the last element in an array. It should work if you remove the comma.

made correction with same results

http://pastebin.com/QfvJHfEU

 

adding this has also made my playersetviewdistance to not work for players

Link to comment
Share on other sites

For those having trouble with the variables.sqf just add all the stuff from the clothing_men.sqf to the array from AllPlayers=[.....]

 

so that it looks like (DO NOT USE THIS, IT WONT WORK; ITS JUST AN EXAMPLE WHERE U HAVE TO ADD ALL THE SKINS!!!!):

 

disableSerialization;

//Model Variables
Bandit1_DZ = 	"Bandit1_DZ";
Bandit2_DZ = 	"Bandit2_DZ";
BanditW1_DZ = 	"BanditW1_DZ";
BanditW2_DZ = 	"BanditW2_DZ";
Survivor1_DZ = 	"Survivor2_DZ";
Survivor2_DZ = 	"Survivor2_DZ";
SurvivorW2_DZ = "SurvivorW2_DZ";
SurvivorW3_DZ = "SurvivorW2_DZ";
Sniper1_DZ = 	"Sniper1_DZ";
Camo1_DZ = 		"Camo1_DZ";
Soldier1_DZ = 	"Soldier1_DZ";
Rocket_DZ = 	"Rocket_DZ";

AllPlayers = ["Survivor2_DZ","SurvivorWcombat_DZ","SurvivorWdesert_DZ","SurvivorWurban_DZ","SurvivorWsequishaD_DZ","SurvivorWsequisha_DZ","SurvivorWpink_DZ","SurvivorW3_DZ","SurvivorW2_DZ","Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ","Rocker1_DZ","Rocker2_DZ","Rocker3_DZ","Rocker4_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ","RU_Policeman_DZ","pz_policeman","pz_suit1","pz_suit2","pz_worker1","pz_worker2","pz_worker3","pz_doctor","pz_teacher","pz_hunter","pz_villager1","pz_villager2","pz_villager3","pz_priest","Soldier_TL_PMC_DZ","Soldier_Sniper_PMC_DZ","Soldier_Bodyguard_AA12_PMC_DZ","Drake_Light_DZ","CZ_Special_Forces_GL_DES_EP1_DZ","TK_INS_Soldier_EP1_DZ","TK_INS_Warlord_EP1_DZ","FR_OHara_DZ","FR_Rodriguez_DZ","CZ_Soldier_Sniper_EP1_DZ","Graves_Light_DZ","GUE_Soldier_MG_DZ","GUE_Soldier_Sniper_DZ","GUE_Soldier_Crew_DZ","GUE_Soldier_CO_DZ","GUE_Soldier_2_DZ","TK_Special_Forces_MG_EP1_DZ","TK_Soldier_Sniper_EP1_DZ","TK_Commander_EP1_DZ","RU_Soldier_Crew_DZ","INS_Lopotev_DZ","INS_Soldier_AR_DZ","INS_Soldier_CO_DZ","INS_Bardak_DZ","INS_Worker2_DZ","USMC_Soldier2","Herrera",
"Pierce",
"Pierce_Light",
"US_Delta_Force_Air_Controller_EP1",
"US_Delta_Force_MG_EP1",
"US_Delta_Force_Assault_EP1",
"US_Delta_Force_M14_EP1",
"US_Delta_Force_Marksman_EP1",
"US_Delta_Force_Night_EP1",
"US_Delta_Force_TL_EP1",
"US_Delta_Force_Undercover_Takistani06_EP1",
"US_Soldier_AR_EP1",
"US_Soldier_AT_EP1",
"US_Soldier_AA_EP1",
"US_Soldier_HAT_EP1",
"US_Soldier_MG_EP1",
"US_Soldier_AMG_EP1",
"US_Soldier_AAR_EP1",
"US_Soldier_AAT_EP1",
"US_Soldier_AHAT_EP1",
"US_Soldier_EP1",
"US_Soldier_B_EP1",
"US_Soldier_Crew_EP1",
"US_Soldier_Engineer_EP1",
"US_Soldier_GL_EP1",
"US_Soldier_LAT_EP1",
"US_Pilot_Light_EP1",
"US_Soldier_Light_EP1",
"US_Soldier_MG_EP1",
"US_Soldier_Marksman_EP1",
"US_Soldier_Officer_EP1",
"US_Soldier_Pilot_EP1",
"US_Soldier_SL_EP1",
"US_Soldier_SniperH_EP1",
"US_Soldier_Sniper_EP1",
"US_Soldier_Sniper_NV_EP1",
"US_Soldier_Spotter_EP1",
"US_Soldier_TL_EP1",
"CZ_Soldier_AT_DES_EP1",
"CZ_Soldier_DES_EP1",
"CZ_Soldier_AMG_DES_EP1",
"CZ_Soldier_B_DES_EP1",
"CZ_Soldier_Light_DES_EP1",
"CZ_Soldier_MG_DES_EP1",
"CZ_Soldier_Office_DES_EP1",
"CZ_Soldier_Pilot_DES_EP1",
"CZ_Soldier_SL_DES_EP1",
"CZ_Soldier_Sniper_DES_EP1",
"CZ_Special_Forces_DES_EP1",
"CZ_Special_Forces_GL_DES_EP1",
"CZ_Special_Forces_Scout_DES_EP1",
"CZ_Special_Forces_TL_DES_EP1",
"GER_Soldier_EP1",
"GER_Soldier_MG_EP1",
"GER_Soldier_Medic_EP1",
"GER_Soldier_Scout_EP1",
"GER_Soldier_TL_EP1",
"BAF_crewman_DDPM",
"BAF_Soldier_FAC_DDPM",
"BAF_Soldier_N_DDPM",
"BAF_Soldier_AT_DDPM",
"BAF_Soldier_HAT_DDPM",
"BAF_Soldier_MG_DDPM",
"BAF_Soldier_AR_DDPM",
"BAF_Soldier_AAT_DDPM",
"BAF_Soldier_AHAT_DDPM",
"BAF_Soldier_AHAT_DDPM",
"BAF_Soldier_AMG_DDPM",
"BAF_Soldier_Marksman_DDPM",
"BAF_Soldier_Officer_DDPM",
"BAF_Soldier_L_DDPM",
"BAF_Soldier_DDPM",
"BAF_ASoldier_DDPM",
"BAF_Soldier_Medic_DDPM",
"BAF_Soldier_SL_DDPM",
"BAF_Pilot_DDPM",
"BAF_Soldier_GL_DDPM",
"BAF_Soldier_EN_DDPM",
"BAF_Soldier_AA_DDPM",
"BAF_Soldier_TL_DDPM",
"BAF_Soldier_SniperH_MTP",
"BAF_Soldier_SniperN_MTP",
"BAF_Soldier_spotterN_MTP",
"BAF_Soldier_Sniper_MTP",
"TK_Aziz_EP1",
"TK_Soldier_AT_EP1",
"TK_Soldier_Officer_EP1",
"TK_Soldier_Pilot_EP1",
"TK_Soldier_SniperH_EP1",
"TK_Soldier_Sniper_EP1",
"TK_Soldier_Sniper_Night_EP1",
"TK_Special_Forces_TL_EP1",
"TK_INS_Bonesetter_EP1",
"TK_INS_Soldier_2_EP1",
"TK_INS_Soldier_3_EP1",
"TK_INS_Soldier_4_EP1",
"TK_INS_Soldier_AT_EP1",
"TK_INS_Soldier_AAT_EP1",
"TK_INS_Soldier_AA_EP1",
"TK_INS_Soldier_AR_EP1",
"TK_INS_Soldier_EP1",
"TK_INS_Soldier_MG_EP1",
"TK_INS_Soldier_Sniper_EP1",
"TK_INS_Soldier_TL_EP1",
"TK_INS_Soldier_Warlord_EP1",
"TK_GUE_Bonesetter_EP1",
"TK_GUE_Soldier_2_EP1",
"TK_GUE_Soldier_3_EP1",
"TK_GUE_Soldier_4_EP1",
"TK_GUE_Soldier_AT_EP1",
"TK_GUE_Soldier_AAT_EP1",
"TK_GUE_Soldier_AA_EP1",
"TK_GUE_Soldier_AR_EP1",
"TK_GUE_Soldier_EP1",
"TK_GUE_Soldier_HAT_EP1",
"TK_GUE_Soldier_MG_EP1",
"TK_GUE_Soldier_TL_EP1",
"TK_GUE_Soldier_Warlord_EP1",
"TK_GUE_Soldier_Warlord_EP1",
"UN_CDF_Soldier_Guard_EP1",
"UN_CDF_Soldier_Light_EP1",
"UN_CDF_Soldier_Officer_EP1",
"UN_CDF_Soldier_SL_EP1",
"Soldier_Bodyguard_AA12_PMC",
"Soldier_Medic_PMC",
"Soldier_AT_PMC",
"Soldier_Engineer_PMC",
"Soldier_M4A3_PMC",
"Soldier_PMC",
"Soldier_Crew_PMC",
"Soldier_Pilot_PMC",
"Soldier_AA_PMC",
"Poet_PMC",
"Dixon_PMC",
"Ry_PMC",
"Functionay1_EP1",
"Functionay2_EP1",
"Haris_Press_EP1",
"Profiteer1_EP1",
"FR_Miles",
"FR_Ohara",
"FR_Rodriguez",
"FR_AC",
"FR_AR",
"FR_Assault_GL",
"FR_Commander",
"FR_GL",
"FR_Light",
"FR_Marksman",
"FR_R",
"FR_Sapper",
"FR_TL",
"USMC_LHD_Crew_Blue",
"USMC_LHD_Crew_Brown",
"USMC_LHD_Crew_Green",
"USMC_LHD_Crew_Purple",
"USMC_LHD_Crew_Red",
"USMC_LHD_Crew_White",
"USMC_LHD_Crew_Yellow",
"USMC_Soldier",
"USMC_Soldier2",
"USMC_SoldierM_Marksman",
"USMC_SoldierS",
"USMC_SoldierS_Sniper",
"USMC_SoldierS_SniperH",
"USMC_SoldierS_Spotter",
"USMC_Soldier_AA",
"USMC_Soldier_AR",
"USMC_Soldier_AT",
"USMC_Soldier_Crew",
"USMC_Soldier_GL",
"USMC_Soldier_HAT",
"USMC_Soldier_LAT",
"USMC_Soldier_Light",
"USMC_Soldier_MG",
"USMC_Soldier_Medic",
"USMC_Soldier_Officer",
"USMC_Soldier_Pilot",
"USMC_Soldier_SL",
"USMC_Soldier_TL",
"CDF_Soldier",
"CDF_Commander",
"CDF_Soldier_AR",
"CDF_Soldier_Crew",
"CDF_Soldier_Engineer",
"CDF_Soldier_GL",
"CDF_Soldier_Light",
"CDF_Soldier_MG",
"CDF_Soldier_Marksman",
"CDF_Soldier_Medic",
"CDF_Soldier_Militia",
"CDF_Soldier_Officer",
"CDF_Soldier_Pilot",
"CDF_Soldier_RPG",
"CDF_Soldier_Sniper",
"CDF_Soldier_Spotter",
"CDF_Soldier_Strela",
"CDF_Soldier_TL",
"RU_Commander",
"RU_Soldier",
"RU_Soldier2",
"RU_Soldier_Crew",
"RU_Soldier_GL",
"RU_Soldier_Light",
"RU_Soldier_MG",
"RU_Soldier_Marksman",
"RU_Soldier_Officer",
"RU_Soldier_Sniper",
"RU_Soldier_SniperH",
"RU_Soldier_Spotter",
"RU_Soldier_TL",
"RUS_Soldier1",
"MVD_Soldier",
"MVD_Soldier_Sniper",
"INS_Bardak",
"INS_Commander",
"INS_Soldier_1",
"INS_Soldier_2",
"INS_Soldier_AA",
"INS_Soldier_AT",
"INS_Soldier_CO",
"INS_Soldier_Crew",
"INS_Soldier_MG",
"INS_Soldier_Pilot",
"INS_Soldier_Sab",
"INS_Soldier_Sniper",
"Assistant",
"RU_Assistant",
"Priest",
"RU_Priest",
"Pilot",
"RU_Pilot",
"Policeman",
"RU_Policeman",
"Teacher",
"RU_Teacher"
];
 

 

works like a charm for me

Link to comment
Share on other sites

It's odd but I got it working, Purchased a skin...and the trader vanished after I got the skin...(as in he dissapeared as I was moved to debug and skin changed)

No errors in RPT etc, restarted the server...and he's still gone...0_o

 

I'm using WAI if that makes a difference...I'll keep trouble shooting but yeah...odd.

Also I see you need to have the exact amount on you and it won't make change from say a briefcase etc, can that be fixed? I think I know how so I'll take a look and see if I can get that in as I had the same issue with Axecops Service Points. (needed a function call when checking costs etc)

Link to comment
Share on other sites

Guys, you can just disable cheking if the skin is in the variable:

 

Delete this from dayz_server/compile/server_playerLogin.sqf:

	if (!(_model in AllPlayers)) then {
		_model = "Survivor2_DZ";
	};

It checks if the db variable skin is in the list. If not then he give default.

 

Just comment out the check and all skins are allowed.

Link to comment
Share on other sites

Guys, you can just disable cheking if the skin is in the variable:

 

Delete this from dayz_server/compile/server_playerLogin.sqf:

	if (!(_model in AllPlayers)) then {
		_model = "Survivor2_DZ";
	};

It checks if the db variable skin is in the list. If not then he give default.

 

Just comment out the check and all skins are allowed.

 

not exactly the best idea to disable the default skin ... what happends when the playerdata becomes corrupted and skin name is "Survivør2_DZ"?  :rolleyes:

 

just do as it has been suggested a hundred times before and add the skin names into allplayers array with CaSe correct spelling and it will work!

Link to comment
Share on other sites

has there been a solution to this error im getting ??

 

AllPlayers set [count AllPlayers, "Bandi>
10:20:23   Error position: <AllPlayers set [count AllPlayers, "Bandi>
10:20:23   Error Undefined variable in expression: allplayers
10:20:23 File mpmissions\__cur_mp.Napf\custom\variables.sqf, line 5
Link to comment
Share on other sites

For those having trouble with the variables.sqf just add all the stuff from the clothing_men.sqf to the array from AllPlayers=[.....]

 

so that it looks like (DO NOT USE THIS, IT WONT WORK; ITS JUST AN EXAMPLE WHERE U HAVE TO ADD ALL THE SKINS!!!!):

 

disableSerialization;

//Model Variables
Bandit1_DZ = 	"Bandit1_DZ";
Bandit2_DZ = 	"Bandit2_DZ";
BanditW1_DZ = 	"BanditW1_DZ";
BanditW2_DZ = 	"BanditW2_DZ";
Survivor1_DZ = 	"Survivor2_DZ";
Survivor2_DZ = 	"Survivor2_DZ";
SurvivorW2_DZ = "SurvivorW2_DZ";
SurvivorW3_DZ = "SurvivorW2_DZ";
Sniper1_DZ = 	"Sniper1_DZ";
Camo1_DZ = 		"Camo1_DZ";
Soldier1_DZ = 	"Soldier1_DZ";
Rocket_DZ = 	"Rocket_DZ";

AllPlayers = ["Survivor2_DZ","SurvivorWcombat_DZ","SurvivorWdesert_DZ","SurvivorWurban_DZ","SurvivorWsequishaD_DZ","SurvivorWsequisha_DZ","SurvivorWpink_DZ","SurvivorW3_DZ","SurvivorW2_DZ
 

works like a charm for me

 

thankz worked for my error

Link to comment
Share on other sites

not sure if this script broke it but now when I click on  wear clothes (any clothes that I find) 

nothing happens 

may be another script doing it though....

 

 

As Boyd mentioned in the first post:

"once you bought a skin you can no longer use the epoch skins to change into any other skin you need to buy the skin on top of the list to do this again."

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...