gonzai

Cup Weapons Attachment List Problem

16 posts in this topic

I installed my server CUP weapons. but does not seem attachments list. Only Magazines listed. Why?

yRarpN.jpg

Edited by gonzai

Share this post


Link to post
Share on other sites

We have same issues... I keep trying different variations in start up with no luck.

 

Running Mas weapons, cup weapons and cba = no arma 3 or cup weapons work, mas weapon do

Running Mas weapons, cup weapons and asdg = no arma 3 or cup weapons work, mas weapon do

Running Mas Weapons, cup weapons (No asdg or cba) = arma 3 and mas weapons work, cup does not

Share this post


Link to post
Share on other sites
Advertisement

if it helps, I spent days working on this one, firstly loads of download of the mods showed broken files almost every time from the site, A3 and especially steam (which got things in the wrong folders for a start like @folder with @folderinside and addons inside cfgs outside).I then also had to play with the order of loading.Our start line if it helps is: -mod=@Exile;@CBA_A3;@mas;@ASDG_JR;@CUP_Weapons;@CUP_Units;@CUP_Vehicles; and does seem to be working.

I have spent ages getting them into the traders too and last several hours getting into the loot tables.

Share this post


Link to post
Share on other sites

Ok... Here is the fix. Whether it is the correct way of not... It works!!!

"-servermod=@ExileServer;" "-mod=@Exile;@Bornholm;@mas;@NATO_Rus_Vehicle;@CUP_Units;@CUP_Vehicles;@CUP_Weapons;@CBA_A3;"

In mission "config.cpp" at class "CfgExileCustomCode" add:

	ExileClient_util_gear_getCompatibleWeaponItems							= 		"Exile_Client_edits\ExileClient_util_gear_getCompatibleWeaponItems.sqf";
	ExileClient_util_item_getCompatibleWeaponItems							= 		"Exile_Client_edits\ExileClient_util_item_getCompatibleWeaponItems.sqf";

 

Create a new file "ExileClient_util_gear_getCompatibleWeaponItems.sqf"

/**
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_weaponClassName","_weaponConfig","_compatibleItems","_getcompatibleItems"];
_weaponClassName = _this;
_weaponConfig = configFile >> "CfgWeapons" >> _weaponClassName;
_compatibleItems = getArray (_weaponConfig >> "magazines");
/*
{
	if (isClass (_weaponConfig >> "WeaponSlotsInfo" >> _x)) then
	{
		_compatibleItems append getArray (_weaponConfig >> "WeaponSlotsInfo" >> _x >> "compatibleItems");
	};
}
forEach ["CowsSlot", "PointerSlot", "MuzzleSlot", "UnderBarrelSlot"];
*/

{
	_getcompatibleItems = [_weaponClassName, _x] call CBA_fnc_compatibleItems;
	_compatibleItems append _getcompatibleItems;

}forEach [101,201,301,302];

{
	if !(_x isEqualTo "this") then
	{
		_compatibleItems append getArray (_weaponConfig >> _x >> "magazines");
	};
}
forEach getArray (_weaponConfig >> "muzzles");
{
	_compatibleItems set [_forEachIndex, toLower _x];
}
forEach _compatibleItems;
_compatibleItems

Create a new file "ExileClient_util_item_getCompatibleWeaponItems.sqf"

/**
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_weaponClassName","_weaponConfig","_compatibleItems","_getcompatibleItems"];
_weaponClassName = _this;
_weaponConfig = configFile >> "CfgWeapons" >> _weaponClassName;
_compatibleItems = getArray (_weaponConfig >> "magazines");
/*
{
	if (isClass (_weaponConfig >> "WeaponSlotsInfo" >> _x)) then
	{
		_compatibleItems append getArray (_weaponConfig >> "WeaponSlotsInfo" >> _x >> "compatibleItems");
	};
}
forEach ["CowsSlot", "PointerSlot", "MuzzleSlot", "UnderBarrelSlot"];
*/

{
	_getcompatibleItems = [_weaponClassName, _x] call CBA_fnc_compatibleItems;
	_compatibleItems append _getcompatibleItems;

}forEach [101,201,301,302];

{
	if !(_x isEqualTo "this") then
	{
		_compatibleItems append getArray (_weaponConfig >> _x >> "magazines");
	};
}
forEach getArray (_weaponConfig >> "muzzles");
_compatibleItems

 

6 people like this

Share this post


Link to post
Share on other sites
On 17.11.2015 07:13:28, Mr.Pig said:

Ok... Here is the fix. Whether it is the correct way of not... It works!!!


"-servermod=@ExileServer;" "-mod=@Exile;@Bornholm;@mas;@NATO_Rus_Vehicle;@CUP_Units;@CUP_Vehicles;@CUP_Weapons;@CBA_A3;"

In mission "config.cpp" at class "CfgExileCustomCode" add:


	ExileClient_util_gear_getCompatibleWeaponItems							= 		"Exile_Client_edits\ExileClient_util_gear_getCompatibleWeaponItems.sqf";
	ExileClient_util_item_getCompatibleWeaponItems							= 		"Exile_Client_edits\ExileClient_util_item_getCompatibleWeaponItems.sqf";

 

Create a new file "ExileClient_util_gear_getCompatibleWeaponItems.sqf"


/**
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_weaponClassName","_weaponConfig","_compatibleItems","_getcompatibleItems"];
_weaponClassName = _this;
_weaponConfig = configFile >> "CfgWeapons" >> _weaponClassName;
_compatibleItems = getArray (_weaponConfig >> "magazines");
/*
{
	if (isClass (_weaponConfig >> "WeaponSlotsInfo" >> _x)) then
	{
		_compatibleItems append getArray (_weaponConfig >> "WeaponSlotsInfo" >> _x >> "compatibleItems");
	};
}
forEach ["CowsSlot", "PointerSlot", "MuzzleSlot", "UnderBarrelSlot"];
*/

{
	_getcompatibleItems = [_weaponClassName, _x] call CBA_fnc_compatibleItems;
	_compatibleItems append _getcompatibleItems;

}forEach [101,201,301,302];

{
	if !(_x isEqualTo "this") then
	{
		_compatibleItems append getArray (_weaponConfig >> _x >> "magazines");
	};
}
forEach getArray (_weaponConfig >> "muzzles");
{
	_compatibleItems set [_forEachIndex, toLower _x];
}
forEach _compatibleItems;
_compatibleItems

Create a new file "ExileClient_util_item_getCompatibleWeaponItems.sqf"


/**
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_weaponClassName","_weaponConfig","_compatibleItems","_getcompatibleItems"];
_weaponClassName = _this;
_weaponConfig = configFile >> "CfgWeapons" >> _weaponClassName;
_compatibleItems = getArray (_weaponConfig >> "magazines");
/*
{
	if (isClass (_weaponConfig >> "WeaponSlotsInfo" >> _x)) then
	{
		_compatibleItems append getArray (_weaponConfig >> "WeaponSlotsInfo" >> _x >> "compatibleItems");
	};
}
forEach ["CowsSlot", "PointerSlot", "MuzzleSlot", "UnderBarrelSlot"];
*/

{
	_getcompatibleItems = [_weaponClassName, _x] call CBA_fnc_compatibleItems;
	_compatibleItems append _getcompatibleItems;

}forEach [101,201,301,302];

{
	if !(_x isEqualTo "this") then
	{
		_compatibleItems append getArray (_weaponConfig >> _x >> "magazines");
	};
}
forEach getArray (_weaponConfig >> "muzzles");
_compatibleItems

 

Not Work! :/

Share this post


Link to post
Share on other sites

Does work.

 

Maybe you did something wrong or you have copied my start parameters and you don't need some.... Post rpt or explain what does or doesnt happen....

 

Saying not work is a terrible answer and no one can help you solve it

Share this post


Link to post
Share on other sites

yes this work thanks heaps but i had a player ask my why cant he stick a LRPS on a Zafir?

so im wondering if thats normal? 

Share this post


Link to post
Share on other sites

still works this script ? 

i try but for me dont work ....

Thanx <3

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.