• 0
Sign in to follow this  
rolecraft

Trader menu's entirely empty. Help :)

Question

I added the default traders on my custom tanoa map(using 3DEN), i editted their loadout abit so they look simply nicer. Then i put the Trader object names in Initplayerlocal.sqf like the spoiler below. * Ignore the // 76 npcs * Not added by me, it's default

 

It is worth adding here that i have several of the same traders across the map on different locations, they are exacly the same related to thei're name, appearance could vary. This way i have more traders across the map in different zones making it globally more balanced

 

Spoiler
/**
 * Created with Exile Mod 3DEN Plugin
 * www.exilemod.com
 */
if (!hasInterface || isServer) exitWith {};
// 76 NPCs
private _npcs = [
 ["Exile_Trader_Vehicle",[7917.23,9155.13,0.000900269],110.566,"Exile_Trader_Vehicle","WhiteHead_19"],
 ["Exile_Trader_VehicleCustoms",[7919.29,9158.08,0.00156975],135.961,"Exile_Trader_VehicleCustoms","WhiteHead_17"],
 ["Exile_Trader_WasteDump",[7944.19,9156.81,0.00063324],192.113,"Exile_Trader_WasteDump","WhiteHead_10"],
 ["Exile_Trader_Aircraft",[8000.75,9165.77,0.0064106],216.039,"Exile_Trader_Aircraft","WhiteHead_21"],
 ["Exile_Trader_AircraftCustoms",[7967.93,9117.49,0.00855637],18.0167,"Exile_Trader_AircraftCustoms","WhiteHead_21"],
 ["Exile_Trader_Office",[7921.83,9172.95,0.00354767],0,"Exile_Trader_Office","WhiteHead_03"],
 ["Exile_Trader_Hardware",[7914.67,9178,0.004076],56.1452,"Exile_Trader_Hardware","WhiteHead_13"],
 ["Exile_Trader_Equipment",[7918.97,9192.8,0.00328255],171.983,"Exile_Trader_Equipment","AfricanHead_03"],
 ["Exile_Trader_SpecialOperations",[7924,9190.4,0.00315285],200.22,"Exile_Trader_SpecialOperations","AfricanHead_02"],
 ["Exile_Trader_Armory",[7930.67,9186.11,0.00288773],220.972,"Exile_Trader_Armory","GreekHead_A3_05"],
 ["Exile_Trader_Diving",[6629.57,13469.4,0.00219053],295.308,"Exile_Trader_Diving","WhiteHead_09"],
 ["Exile_Trader_Boat",[6622.52,13469.5,0.00139701],47.679,"Exile_Trader_Boat","WhiteHead_03"],
 ["Exile_Trader_Vehicle",[4591.36,5223.69,0.220899],110.58,"Exile_Trader_Vehicle","WhiteHead_16"],
 ["Exile_Trader_Boat",[4524.85,5226.64,6.49056],116.926,"Exile_Trader_Boat","WhiteHead_01"],
 ["Exile_Trader_Diving",[4523.74,5224.74,6.33663],108.06,"Exile_Trader_Diving","WhiteHead_05"],
 ["Exile_Trader_Food",[4620.47,5208.37,0.238467],300.975,"Exile_Trader_Food","GreekHead_A3_06"],
 ["Exile_Trader_Hardware",[4612.27,5207.05,0.244805],36.4621,"Exile_Trader_Hardware","WhiteHead_15"],
 ["Exile_Trader_Equipment",[4608.23,5214.54,0.457108],107.782,"Exile_Trader_Equipment","WhiteHead_03"],
 ["Exile_Trader_Office",[4603.86,5215.48,3.32119],113.775,"Exile_Trader_Office","WhiteHead_11"],
 ["Exile_Trader_Armory",[4626.75,5232.47,0.00543022],239.333,"Exile_Trader_Armory","WhiteHead_18"],
 ["Exile_Trader_SpecialOperations",[4621.95,5240.6,-2.43187e-005],224.016,"Exile_Trader_SpecialOperations","AfricanHead_02"],
 ["Exile_Trader_WasteDump",[4590.33,5257.55,0.00143886],167.343,"Exile_Trader_WasteDump","WhiteHead_13"],
 ["Exile_Trader_Aircraft",[4583.35,5202.16,0.00489831],24.818,"Exile_Trader_Aircraft","GreekHead_A3_06"],
 ["Exile_Trader_Aircraft",[11326.8,3338.61,-0.000833511],313.559,"Exile_Trader_Aircraft","WhiteHead_05"],
 ["Exile_Trader_AircraftCustoms",[11326,3337.87,-0.000835419],316.952,"Exile_Trader_AircraftCustoms","WhiteHead_08"],
 ["Exile_Trader_Armory",[11312.7,3332.93,-0.00136757],28.1489,"Exile_Trader_Armory","WhiteHead_16"],
 ["Exile_Trader_Food",[11304.1,3339.45,0.000234604],40.9221,"Exile_Trader_Food","WhiteHead_15"],
 ["Exile_Trader_Armory",[14448.7,10512,0.00143814],4.30772,"Exile_Trader_Armory","AfricanHead_03"],
 ["Exile_Trader_Equipment",[14441.1,10517.6,0.00143814],56.5369,"Exile_Trader_Equipment","WhiteHead_21"],
 ["Exile_Trader_Vehicle",[14452.6,10546.7,0.00143814],170.046,"Exile_Trader_Vehicle","GreekHead_A3_07"],
 ["Exile_Trader_WasteDump",[14431,10534.7,0.00143814],125.119,"Exile_Trader_WasteDump","AfricanHead_02"],
 ["Exile_Trader_Food",[14464.4,10522.8,0.00157166],355.092,"Exile_Trader_Food","GreekHead_A3_09"],
 ["Exile_Trader_Hardware",[14454.2,10514.7,0.00143814],323.032,"Exile_Trader_Hardware","WhiteHead_09"],
 ["Exile_Trader_SpecialOperations",[14450.4,10511.9,0.00143814],0,"Exile_Trader_SpecialOperations","AfricanHead_01"],
 ["Exile_Trader_Food",[7913.78,9188.62,0.00331688],121.543,"Exile_Trader_Food","WhiteHead_07"]
];
{
 private _trader = [
  _x select 0,
  _x select 4,
  ["HubStanding_idle1"],
  _x select 1,
  _x select 2
 ] call ExileClient_object_trader_create;
 _trader setVariable ["ExileTraderType", _x select 3];
} forEach _traders;
];
{
    private _logic = "Logic" createVehicleLocal [0, 0, 0];
    private _trader = (_x select 0) createVehicleLocal [0, 0, 0];
    private _animations = _x select 1;
   
    _logic setPosWorld (_x select 5);
    _logic setVectorDirAndUp [_x select 6, _x select 7];
   
    _trader setVariable ["BIS_enableRandomization", false];
    _trader setVariable ["BIS_fnc_animalBehaviour_disable", true];
    _trader setVariable ["ExileAnimations", _animations];
    _trader setVariable ["ExileTraderType", _x select 2];
    _trader disableAI "ANIM";
    _trader disableAI "MOVE";
    _trader disableAI "FSM";
    _trader disableAI "AUTOTARGET";
    _trader disableAI "TARGET";
    _trader disableAI "CHECKVISIBLE";
    _trader allowDamage false;
    _trader setFace (_x select 3);
    _trader setUnitLoadOut (_x select 4);
    _trader setPosWorld (_x select 5);
    _trader setVectorDirAndUp [_x select 6, _x select 7];
    _trader reveal _logic;
    _trader attachTo [_logic, [0, 0, 0]];
    _trader switchMove (_animations select 0);
    _trader addEventHandler ["AnimDone", {_this call ExileClient_object_trader_event_onAnimationDone}];
}
forEach _npcs;

 

 

I did not adjust any other config files, as i figured considering the traders have the same name, they should be automatically seen my the config.cpp and thus server. Did i make a mistake here? Although it seems Obvious that i actually made a mistake, i can't really figur out what mistake it is. Could use some help on this issue. 

 

(Traders show up ingame, you can interact with them, but all their menu's are simply empty. As in it only shows 'ALL' which is empty as well. You can sell your vehicle at the Dump Trader and get the respect/poptabs, you just cant buy anything at any trader anywhere on the map...?)

 

 

*Edit: I also cannot find any error related to traderzones items or traders itself in the console, the default traders on the default tanoa map all had the option to trade, then i switched to my custom tanoa, and added these traders and thei're all empty for some reason regardless of the adjustments stated on the top of this post*

Arma3_x64 2017-05-13 10-40-08-91.jpg

 

 

 

I think i posted in the right section as well, if not.. Please move my post to the right one. Thanks

Edited by rolecraft

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Thanks viper.

request to close topic, issue fixed. Issue itself was using otudated / no plugins for 3den, and therefor using a old trader copy system

Edited by rolecraft

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.