• 0
Maybe^

Problem with traders

Question

Hi all, 

I am trying to add trader cities to my map but they dont seem to be spawning, here is the code for the Aircraftcustoms trader 


///////////////////////////////////////////////////////////////////////////
// Aircraft Customs Trader 
///////////////////////////////////////////////////////////////////////////
[
    
    "Exile_Trader_AircraftCustoms",
     "GreekHead_A3_07",
    ["HubStandingUC_idle1"],
    [13806.8,11454.4, -0.158813],
    177.727


]
call ExileClient_object_trader_create;

Thanks in advance for any help!

Share this post


Link to post
Share on other sites

16 answers to this question

  • 1

So this is from your Client RPT

Spoiler

13:48:22 Error in expression <982],179.465,0,0,true],
170,
_workBench
]
call ExileClient_object_trader_create;>
13:48:22   Error position: <]
call ExileClient_object_trader_create;>
13:48:22   Error Missing ;
13:48:22 File mpmissions\__CUR_MP.Sara_dbe1\initPlayerLocal.sqf, line 24

 

Looking at the initPlayerLocal.sqf, this is the block of code I found. 

Spoiler

_workBench = "Land_Workbench_01_F" createVehicleLocal [0,0,0];
_workBench setDir 45.4546;
_workBench setPosATL [14587.8, 16758.7, 0.0938587];
 
[
    "Exile_Trader_Hardware",
    "WhiteHead_17",
    ["InBaseMoves_sitHighUp1"],
    [14284.4,12372.4,-1.25982],179.465,0,0,true],
    170,
    _workBench
]
call ExileClient_object_trader_create;

 

This line is what the issue is. [14284.4,12372.4,-1.25982],179.465,0,0,true], which looks like someone copy pasted the entire line from M3Editor.

The below code *should* work.

Spoiler

_workBench = "Land_Workbench_01_F" createVehicleLocal [0,0,0];
_workBench setDir 45.4546;
_workBench setPosATL [14587.8, 16758.7, 0.0938587];

[
    "Exile_Trader_Hardware",
    "WhiteHead_17",
    ["InBaseMoves_sitHighUp1"],
    [0, 0, -0.5],
    170,
    _workBench
]
call ExileClient_object_trader_create;

 

Since we already are creating a object for the trader to be attached to, the POS line needs to be relative to the local object. Hence the [0, 0, -0.5]. For these, just assign the POS of where you want the trader to be, on this line. _workBench setPosATL [X,Y,Z];

Biggest thing is whenever you have an issue with your server, to check your Client and Server RPT logs for errors.

 

I also found this in there, you may want to re-run through the installation steps for bAdmin and make sure you got everything. I won't be able to help you much more on it because I've never used it. 

Spoiler

16:38:07 "ExileClient - Saved you a Script Thread"
16:38:20 Warning Message: Resource AdminMenu not found
16:38:20 Error in expression <yer Management",
"Player Markers"
];
 
{
_adminSelect lbAdd _x;
} forEach _panelO>
16:38:20   Error position: <_adminSelect lbAdd _x;
} forEach _panelO>
16:38:20   Error Undefined variable in expression: _adminselect
16:38:20 File mpmissions\__CUR_MP.Sara_dbe1\badmin\client\systems\adminPanel\loadModeratorMenu.sqf, line 27
16:38:20 Error in expression <yer Management",
"Player Markers"
];
 
{
_adminSelect lbAdd _x;
} forEach _panelO>
16:38:20   Error position: <_adminSelect lbAdd _x;
} forEach _panelO>
16:38:20   Error Undefined variable in expression: _adminselect
16:38:20 File mpmissions\__CUR_MP.Sara_dbe1\badmin\client\systems\adminPanel\loadModeratorMenu.sqf, line 27
16:38:20 Error in expression <getVariable "AdminMenu";
_adminSelect = _displayAdmin displayCtrl 50001;
 
_panel>
16:38:20   Error position: <_displayAdmin displayCtrl 50001;
 
_panel>
16:38:20   Error Undefined variable in expression: _displayadmin
16:38:20 File mpmissions\__CUR_MP.Sara_dbe1\badmin\client\systems\adminPanel\loadModeratorMenu.sqf, line 20

 

 

Edited by WolfkillArcadia
1 person likes this

Share this post


Link to post
Share on other sites
  • 1
31 minutes ago, NMAUS2019 said:

That fixed it! Thanks a lot man :)

You are welcome. Make sure you mark my answer as the solution. 

2 people like this

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Which map is this for? 

Also, your Z coord is below sealevel, so that would cause the traders feet to sink into the ground.

 

Share this post


Link to post
Share on other sites
  • 0

This is for united Sahrani, so if i change it to 

 

[13806.8,11454.4, 0.158813]

it should fix it? i got the coordinates through m3editor.

@WolfkillArcadi

Share this post


Link to post
Share on other sites
  • 0
9 minutes ago, Maybe^ said:

This is for united Sahrani, so if i change it to 

 


[13806.8,11454.4, 0.158813]

it should fix it? i got the coordinates through m3editor.

@WolfkillArcadi

I would just set it to 0. Please try this and let us know.

Only really change the Z if the AI is anywhere other than standing on the ground. Other than that, the code looks fine. Are you receiving any errors on your client RPT?

Share this post


Link to post
Share on other sites
  • 0
4 minutes ago, WolfkillArcadi said:

I would just set it to 0. Please try this and let us know.

Only really change the Z if the AI is anywhere other than standing on the ground. Other than that, the code looks fine. Are you receiving any errors on your client RPT?

Trying now, heres my rpt

http://pastebin.com/zGddZpdM

just a note all the spam from mas cars was fixed a few moments ago

 

Share this post


Link to post
Share on other sites
  • 0

Sorry about the delay. Your pastebin link is broken. Also, I loaded into United Sahrani in the Editor and ran your code. It worked fine. 

85b0372a07.png

Please repost your Client RPT and your initPlayerLocal.sqf or your init.sqf. Wherever your trader spawns are. 

1 person likes this

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, WolfkillArcadia said:

Sorry about the delay. Your pastebin link is broken. Also, I loaded into United Sahrani in the Editor and ran your code. It worked fine. 

85b0372a07.png

Please repost your Client RPT and your initPlayerLocal.sqf or your init.sqf. Wherever your trader spawns are. 

Hey im one of the moderators from the same server but have not done much work on configuring the server. Maybe went away for a while and i will try fix this while he is gone. Could you please help my by telling me the directory of where initPlayerLocal.sqf and init.sqf are located?

 

Pretty sure this is our initPlayerLocal.sqf

http://pastebin.com/HpvnLBgc

Edited by NMAUS2019

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, NMAUS2019 said:

Hey im one of the moderators from the same server but have not done much work on configuring the server. Maybe went away for a while and i will try fix this while he is gone. Could you please help my by telling me the directory of where initPlayerLocal.sqf and init.sqf are located?

 

Pretty sure this is our initPlayerLocal.sqf

http://pastebin.com/HpvnLBgc

That's your entire initPlayerLocal.sqf? It's in the root of your Exile.MAPNAME.pbo

1 person likes this

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.