Jump to content

[Release] Advanced Trading 2.1 !UPDATED!


Zupa

Recommended Posts

 

Zupa, hello.
After the change:
Anyway it does not display information about weapons, magazines and backpacks with the purchase of cars and weapons and magazines, when buying a backpack.
Can I fix it? All screenshots attached.
 
Configs:

z_at_displayVehicleInfo.sqf:

if ( isText (configFile >> 'CfgVehicles' >> _class >> 'transportMaxWeapons')) then {
	_transportMaxWeapons = getNumber (configFile >> 'CfgVehicles' >> _class >> 'transportMaxWeapons');
};

if ( isText (configFile >> 'CfgVehicles' >> _class >> 'transportMaxMagazines')) then {
	_transportMaxMagazines  = getNumber (configFile >> 'CfgVehicles' >> _class >> 'transportMaxMagazines');
};

if ( isText (configFile >> 'CfgVehicles' >> _class >> 'transportMaxBackpacks')) then {
	_transportmaxBackpacks  = getNumber (configFile >> 'CfgVehicles' >> _class >> 'transportMaxBackpacks');
};

z_at_displayBackpackInfo.sqf:

if ( isText (configFile >> 'CfgVehicles' >> _class >> 'transportMaxWeapons')) then {
	_transportMaxWeapons = getNumber (configFile >> 'CfgVehicles' >> _class >> 'transportMaxWeapons');
};

if ( isText (configFile >> 'CfgVehicles' >> _class >> 'transportMaxMagazines')) then {
	_transportMaxMagazines  = getNumber (configFile >> 'CfgVehicles' >> _class >> 'transportMaxMagazines');
};

and cfgVehicles.hpp (any example)^

    class Fishing_Boat: Ship
	{
        displayName = "Fishing boat";
		maxSpeed = 40;
        transportMaxMagazines = 400;
        transportMaxWeapons = 40;
        transportMaxBackpacks = 8;
	};
class UralOpen_Base;
class UralCivil2_DZE : UralOpen_Base {
	displayName = "Ural (Civil 2)";
	model = "\ca\wheeled\Ural_Open";
	accuracy = 0.22;
	scope = 2;
	side = 3;
	faction = "CIV";
	vehicleClass = "Car";
	crew = "";
	typicalCargo[] = {};
	class TransportMagazines{};
	class TransportWeapons{};
	picture = "\Ca\wheeled\data\ico\ural_civil1_CA.paa";
	rarityUrban = 0.22;
	hiddenSelectionsTextures[] = {
		"\ca\wheeled\data\ural_kabina_civ2_co.paa",
		"\ca\wheeled\data\ural_korba_civ2_co.paa"
	};
};
class Mi17_Civilian;
class Mi17_Civilian_DZ: Mi17_Civilian	 {
	displayname = "Mi-17 (Civilian)";
	displaynameshort = "Mi-17 (Civ)";
	scope = 2;
	side = 3;
	crew = "";
	typicalCargo[] = {};
	class TransportMagazines{};
	class TransportWeapons{};
	commanderCanSee = 2+16+32;
	gunnerCanSee = 2+16+32;
	driverCanSee = 2+16+32;
	transportMaxWeapons = 10;
	transportMaxMagazines = 50;
	transportmaxbackpacks = 10;
};
class DZ_CivilBackpack_EP1: Bag_Base_EP1    
{
	scope = 2;
	displayName = $STR_EPOCH_PACK_CZECH;
	picture = "\ca\weapons_e\data\icons\backpack_ACR_CA.paa";
	icon = "\ca\weapons_e\data\icons\mapIcon_backpack_CA.paa";
	mapsize = 2;
	model = "\ca\weapons_e\AmmoBoxes\backpack_acr.p3d";
	transportMaxWeapons = 4;
	transportMaxMagazines = 40;
	class eventHandlers
	{
		init="[(_this select 0),'CfgVehicles','DZ_CivilBackpack_EP1'] execVM '\z\addons\dayz_code\init\object_BackpackAction.sqf';";
	};
};

 

all images:

This is the normal display and sale:

ak.md.png

 

There are always slots = 0:

alice.md.png

acu.md.png

 
There are always slots = 0:
mi17.md.png
There are always slots not= 0:
mi17gear.md.png
 
There are always slots = 0:
ural.md.png
There are always slots not= 0:

uralgear.md.png

 

Here the seller of boats. Do not display the names and general weirdness:

boats.md.png

boatstrade.md.png

 

In none of these examples does not display information about the capacity of the weapons and magazines.

As I understand it, for the Urals is no information on roominess? Then how does it come into play?

 

 

 

Well, that transport can not buy is as it should be, as I understand it?)

 

 

Update from 2.0 to 2.1 to solve this.

 

Buying of vehicles is not in yet.

Link to comment
Share on other sites

My players cant see any items inside the menu. I can however and i am an admin. I put the number in the infistar config file. Do you think infistar is blocking them from being able to see it.

 

Do they have a scroll on the list?

 

This sounds strange cus the dialog is actual open? 

 

Is it overpoch and they don't have overwatch perhaps  in launnch parameters

Link to comment
Share on other sites

Do they have a scroll on the list?

 

This sounds strange cus the dialog is actual open? 

 

Is it overpoch and they don't have overwatch perhaps  in launnch parameters

Yes it is overpoch and they have overwatch in the parameters, I believe this is being caused by the anti hack because admins can use them but regular players cannot, even though i have added the exception i have added the exception to the infistar config under allowed custom dialogs.

No they dont have a scroll bar for the shop.

They can open the menu but when they try to buy anything or sell the items/list wont appear.

Also they can select sell all and get the amount that they can sell it for and sell it just fine but they still will be unable to see it.

All the Admins on my server can use the traders just fine.

I added the exception and even tried turning off the close dialog option in infistar.

Heres the exception I made in infistar :

 

/*  ALLOWED Custom Dialogs are only used if you have  _CUD =  true; */
/*  If you want install custom scripts using dialog windows, you can add IDD numbers */
/*  from the custom script's desc.h file included through MPMIssions/description.ext */
/*  ALLOWED Dialogs       */ _ALLOWED_Dialogs = [-1,106,2200,6900,6901,6902,6903,420420,41144,55510,711197];
 
The one at the end is the exception for advanced trading.
Link to comment
Share on other sites

Installed the update. Seems to be ok, can sell items without issue.

 

Buying items to gear (player) it always says that there isn't enough room even tho i've emptied the gear completely from my player.

 

I can buy items directly to backpack, just not to player. 

 

Any ideas?

 

 

 

**Edit, appears to be related to the skin, spawns in with the extra items on restart.... map etc. was showing -1 in the tools area. Once i got rid of the map, i could buy to gear.

Link to comment
Share on other sites

Yea Im still having the problem Admins Can use the traders just fine while players without Admin cannot, I added the exception in the Allowed Dialogs. 

 

The Player can open the menu but when they select buy they cannot see any of the guns in the shop while admins can also the trader will say the line "I will accept.... from your gear" and it shows the numers on the top of things he will buy but as far as the actual items they wont show up and the entire system works fine for admins but not for players.

 

Heres with Admin: http://steamcommunity.com/sharedfiles/filedetails/?id=488391933

And Heres without Admin: http://puu.sh/jdj9g/a6f7d26055.jpg

Link to comment
Share on other sites

/*  ALLOWED Dialogs       */ _ALLOWED_Dialogs = [-1,106,2200,6900,6901,6902,6903,420420,41144,711197];

 

C:\Program Files (x86)\ArmA 2\@DayZ_Epoch_Server\addons\dayz_server\init\AH.sqf

C:\Program Files (x86)\ArmA 2\@DayZ_Epoch_Server\addons\dayz_server\init\AHconfig.sqf

 

class AdvancedTrading
{
        idd = 711197;      failed tests
                
or
class AdvancedTrading
{
        idd = -1;               failed tests
not working menu      defaut players
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...