Jump to content
tonic-_-

Virtual Ammobox System (VAS)

Recommended Posts

I can not get the VAS weapons to be limited by the config. I have:

//Allow player to respawn with his loadout? If true unit will respawn with all ammo from initial save! Set to false to disable this and rely on other scripts!
vas_onRespawn = true;
//Preload Weapon Config?
vas_preload = true;
//If limiting weapons its probably best to set this to true so people aren't loading custom loadouts with restricted gear.
vas_disableLoadSave = false;
//Amount of save/load slots
vas_customslots = 9; //9 is actually 10 slots, starts from 0 to whatever you set, so always remember when setting a number to minus by 1, i.e 12 will be 11.
//Disable 'VAS hasn't finished loading' Check !!! ONLY RECOMMENDED FOR THOSE THAT USE ACRE AND OTHER LARGE ADDONS !!!
vas_disableSafetyCheck = false;


//If the arrays below are empty (as they are now) all weapons, magazines, items, backpacks and goggles will be available
//Want to limit VAS to specific weapons? Place the classnames in the array!
vas_weapons = ["arifle_MX_GL_Hamr_pointer_F"];
//Want to limit VAS to specific magazines? Place the classnames in the array!
vas_magazines = ["30Rnd_65x39_caseless_mag"];
//Want to limit VAS to specific items? Place the classnames in the array!
vas_items = ["ItemMap","ItemGPS","NVGoggles"];
//Want to limit backpacks? Place the classnames in the array!
vas_backpacks = [""];
//Want to limit goggles? Place the classnames in the array!
vas_glasses = [""];



//Below are variables you can use to restrict certain items from being used.
//Remove Weapon
vas_r_weapons = [];
vas_r_backpacks = [];
//Magazines to remove from VAS
vas_r_magazines = [];
//Items to remove from VAS
vas_r_items = [];
//Goggles to remove from VAS
vas_r_glasses = [];

Share this post


Link to post
Share on other sites
I can not get the VAS weapons to be limited by the config.

I had to add this line to my init.sqf:

call compile preprocessFile "VAS\config.sqf";

Share this post


Link to post
Share on other sites

Since back in October our clan has suffered from one main issue. No matter which server company we use we always have issues where players are having "Vas is not finished loaded yet" .... There is no pattern, those of us with awesome machines and 100+ MBPS connections may not have the issue but then again some times we do.. while people who have slower machines get right in.... So I can't seem to point it to our server, our players etc...

Everyone typically makes pre-saved loadouts locally first before joining the server and really they just need to access their presaved loadouts.... its rare that we ever really need to get to the vas to change weapons within the server.... What is our best options here?

Share this post


Link to post
Share on other sites

I have setup over 32 VAS clothing and equipment configs and I am wondering where exactly the files are saved so I can backup all my efforts? Thank you!

Share this post


Link to post
Share on other sites
I have setup over 32 VAS clothing and equipment configs and I am wondering where exactly the files are saved so I can backup all my efforts? Thank you!

I know that they are located in your C:\Users\(pc name)\Documents\Arma 3 - Other Profiles\(your profile name)\(profile name).vars.Arma3Profile, while i love VAS it needs its own spot or file rather to save to.

Share this post


Link to post
Share on other sites

unfortunately, ***********.vars.Arma3Profile is a binarized, unreadable file. I wish you could back up your VAS saves somewhere :/

Share this post


Link to post
Share on other sites

Thanks for the reply. it's a shame!

Share this post


Link to post
Share on other sites

Hey Tonic

I don't think the VAS_preload setting works as you intended it to. The following piece of code, even when VAS_preload = true, does nothing:

if(VAS_preload) then
{
if(!isNil {VAS_pre_weapons} && !isNil {VAS_pre_magazines} && !isNil {VAS_pre_items} && !isNil {VAS_pre_backpacks} && !isNil {VAS_pre_glasses}) exitWith {}; //Exit since preload is completed and shouldn't be called again.
//If it is called again then why is that? Are you not happy with what I supplied you? I supplied you with wonderful candy! Y U NO LIKE MY CANDY?!?!?
};

Why ? Because exitWith will only exit the current scope, which in this case is "if(VAS_preload) then" so the code that follows will be executed regardless. A solution would be using scopeName together with breakOut, another would be wrapping all the preload code under these conditions, or combining the conditions into a single if:

if (VAS_preload && !isNil {VAS_pre_weapons} && !isNil {VAS_pre_magazines} && !isNil {VAS_pre_items} && !isNil {VAS_pre_backpacks} && !isNil {VAS_pre_glasses}) exitWith {};

It's a mistake I caught myself do often, using exitWith then adding another scope on top of it and not realizing it's not going to work as intended anymore.

Hope it solves the unwanted candy mistery :)

Edited by Robalo

Share this post


Link to post
Share on other sites

I Think this attachment restriction need another config or line because this we have to place all magazine and attachment classname for short cut menu and it caused vas has not loaded.

Of-course This could be our problem that we might have too much Addons for VAS but it could be really appreciate if you separate config of restrict for the attachment and magazine.

Or atleast give us choice to also restrict the short cut menu

---------- Post added at 12:41 ---------- Previous post was at 12:06 ----------

I have issues with the use of extra load slots, i have them set to 30 slots and when the mission is loaded and VAS is accessed, only 10 slots are available, I've had this issue for a while. This is what my config looks like.

vas_onRespawn = true;

vas_preload = true;

vas_disableLoadSave = false;

vas_customslots = 29; //9 is actually 10 slots, starts from 0 to whatever you set, so always remember when setting a number to minus by 1, i.e 12 will be 11.

vas_disableSafetyCheck = false;

It cause because of MCC, MCC has VAS too and that thing making this, it's a bit annoying but you have to change number in mcc's vas

Edited by kgino1045

Share this post


Link to post
Share on other sites

Hi,

I m building missions for PvP and try to configure VAS per side, but i think i have found a problem. (maybe known, but i seen nothing about it on the thread so i post it)

in config.sqf, we can read

......
											Example for side specific (TvT)
switch(playerSide) do
{
	//Blufor
	case west:
	{
		vas_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
		vas_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; 
		vas_goggles = ["G_Diving"]; //Remove diving goggles from VAS
	};
	//Opfor
	case west:
	{
		vas_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
		vas_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; 
		vas_goggles = ["G_Diving"]; //Remove diving goggles from VAS
	};
};
*/

//If the arrays below are empty (as they are now) all weapons, magazines, items, backpacks and goggles will be available
//Want to limit VAS to specific weapons? Place the classnames in the array!
vas_weapons = [];
//Want to limit VAS to specific magazines? Place the classnames in the array!
vas_magazines = [];
//Want to limit VAS to specific items? Place the classnames in the array!
vas_items = [];
//Want to limit backpacks? Place the classnames in the array!
vas_backpacks = [];
//Want to limit goggles? Place the classnames in the array!
vas_glasses = [];

/*
NOTES ON EDITING:
THIS IS THE SAME AS THE ABOVE VARIABLES, YOU NEED TO KNOW THE CLASS NAME OF THE ITEM YOU ARE RESTRICTING. THIS DOES NOT WORK IN 
CONJUNCTION WITH THE ABOVE METHOD, THIs IS ONLY FOR RESTRICTING / LIMITING ITEMS FROM VAS AND NOTHING MORE

													EXAMPLE
vas_r_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
vas_r_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; //Removes suppressors from VAS
vas_r_goggles = ["G_Diving"]; //Remove diving goggles from VAS

											Example for side specific (TvT)
switch(playerSide) do
{
	//Blufor
	case west:
	{
		vas_r_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
		vas_r_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; //Removes suppressors from VAS
		vas_r_goggles = ["G_Diving"]; //Remove diving goggles from VAS
	};
	//Opfor
	case east:
	{
		vas_r_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
		vas_r_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; //Removes suppressors from VAS
		vas_r_goggles = ["G_Diving"]; //Remove diving goggles from VAS
	};
};

.....

When i use this part :

	switch(playerSide) do
{
	//Blufor
	case west:
	{
		vas_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
		vas_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; //Removes suppressors from VAS
		vas_goggles = ["G_Diving"]; //Remove diving goggles from VAS
	};
	//Opfor
	case east:
	{
		vas_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
		vas_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; //Removes suppressors from VAS
		vas_goggles = ["G_Diving"]; //Remove diving goggles from VAS
	};
};

All is ok, only weapons/items/goggles selected are displayed in VAS depending your side.

But if i m using the restriction part (it is the part, i want to set !!:rolleyes:):

	switch(playerSide) do
{
	//Blufor
	case west:
	{
		vas_r_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
		vas_r_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; //Removes suppressors from VAS
		vas_r_goggles = ["G_Diving"]; //Remove diving goggles from VAS
	};
	//Opfor
	case east:
	{
		vas_r_weapons = ["srifle_EBR_F","arifle_MX_GL_F"];
		vas_r_items = ["muzzle_snds_H","muzzle_snds_B","muzzle_snds_L","muzzle_snds_H_MG"]; //Removes suppressors from VAS
		vas_r_goggles = ["G_Diving"]; //Remove diving goggles from VAS
	};
};

Nothing appear on VAS box, it is EMPTY (black screen on left side), everything is disable ! :confused:

I think something is broken here !

***

Other little thing, i notice a typo mistake (i have change it on my above exemple) in config.sqf : :p

	//Opfor
	case west:

should be

	//Opfor
	case east:

Greats. :)

Edited by Soldat_Ryan

Share this post


Link to post
Share on other sites
My arma 3 crashes when I load my saved gear?? any way to fix this??
Yep I suffered the same fate.

My only resolution was to delete the your-ArmA3-name.vars.Arma3Profile in Arma 3 or Arma 3 - Other Profiles directory./

You lose any single player/showcases/mission/campaign progress you've made though.

And for next time, back it up and regularly.

Share this post


Link to post
Share on other sites

Todays update fucked up VAS. Can't add backpacks.

Edited by bux578

Share this post


Link to post
Share on other sites

NOT only did it destroy VAS........ ATM airdrop is also ruined maybe the changed the classnames or something without telling us ??? :mad::mad: :nono::coop:

PROBLEM SOLVED NEVERMIND

Edited by EvilHomer

Share this post


Link to post
Share on other sites
PROBLEM SOLVED NEVERMIND

Would you please tell us how you solved your problem.

I still am not able to add Backpacks via the VAS, even after bringing everything related to arma (steam, launcher, server, etc.) up to date.

The only thing I got is this:

arma32014-05-3002-17-mhs8g.jpg

Problem solved. Just updated TASK FORCE ARROWHEAD RADIO

Edited by Gerippe

Share this post


Link to post
Share on other sites

Looking for some help with VAS using MCC. I have tried every possible solution and am still unable to get VAS to work with a scenario mission a buddy of mine created. When he hosts the server with his mission, the VAS will work just fine. When i host the server with his mission, I can drop a VAS, even selected it as an option but when I or anyone else clicks it, nothing happens. Does anyone have any insight into this issue? VAS works for me as well as anyone elses missions, its just this one mission it doesn't work, no error msg either. The mission is running Farooqs revive script and tak civis. I have updated MCC too. Thanks guys.

Edited by Fubar5812

Share this post


Link to post
Share on other sites

I saw the saved files from http://forums.bistudio.com/showthread.php?174953-Character-Loadout-Customizer-(Paper-Doll-Gear-menu-amp-VAS-Virtual-Ammobox-Combined)/page4 and they are huge...5mb, and too much script to filter the equipment used in the VAS. I would like to use the equipment listed in text format for another file, like description.ext using respawn loadouts without a VAS.

I wonder if these files can be depbo like a pbo file for easier editing or something similar?

does anyone know how I can extract the equipment only text neatly from the VAS saved file?

Edited by BEAKSBY

Share this post


Link to post
Share on other sites

Is there a way to blacklist specific uniforms and headgear from the Virtual Ammobox through the "VAS\config.sqf" or somewhere else? I am trying to blacklist European and African rebel uniforms and headgear from VAS added by Aggressors add-on pack, as well as the Go-Kart uniforms and headgear. Thanks!

Share this post


Link to post
Share on other sites

Guy's in my unit are getting constant crashes with VAS but I do not. We all have the same mods. Not sure what the hell is causing it. Trying to find an alternative to VAS (LEA wouldn't work for some of us). I liked the VTS Shop option.

Share this post


Link to post
Share on other sites

If anyone is interested I wrote a small script to make the use of VAS easier when using it with Zeus. It scans near the player for objects that are logical sources of gear and enables the VAS action if any are nearby.

Thread here: link

Edited by mrCurry

Share this post


Link to post
Share on other sites
Anyone been having problem with VAS taking a while to load for people?

Only one person on my team has this issue and he is the only person using an AMD processor. The rest of is (6 other people) do not have the issue and we are all running Intel CPUs.

If the one AMD user goes through the preload instructions with VAS then when he joins or dedicated server mission the VAS comes right up for him.

Share this post


Link to post
Share on other sites

My question is pretty simple. I found a ton of guns for Arma 3, mostly from armaholic and as I've grown bored of the basic Katibas and MX-Series guns, I was wondering if I could somehow import the guns into the VAS system? Another, probably very simple task but seems to be mind reaping for me is that I can't get VAS to work in Dynamic Universal War mod. VAS seems to be working for me only in Patrol Operations mod which already has the boxes placed next to the HQ. Help me Obi-Wan Kenobis, you are my only hope.

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

×