Jump to content

[Tutorial] Overpoch - Custom traders, all weapons/ammo/vehicles in menus


Recommended Posts

  • 2 weeks later...

@raymix (or anyone!)

hello so i followed everything but when i get in the server the trader is not there but the others traders are still working and all that

(using overpoch)

check that you have new trader added in your mission.sqf

 

also I found that I can only spawn new traders on the ground

if you placed him in a building check on the roof

or use your admin tool esp to see if you can see the new trader

 

mission.sqf

_unit_666 = objNull;
if (true) then
{
  _this = createAgent ["MVD_Soldier", [11678.2,15217.6, 0], [], 0, "CAN_COLLIDE"];
  _unit_666 = _this;
  _this setDir -50.854939;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};
Link to comment
Share on other sites

check that you have new trader added in your mission.sqf

 

also I found that I can only spawn new traders on the ground

if you placed him in a building check on the roof

or use your admin tool esp to see if you can see the new trader

 

mission.sqf

 

_unit_666 = objNull;
if (true) then
{
  _this = createAgent ["MVD_Soldier", [11678.2,15217.6, 0], [], 0, "CAN_COLLIDE"];
  _unit_666 = _this;
  _this setDir -50.854939;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

ty for the fast reply this is my traders here so idk whats wrong!  and sorry dont know how to use spoiler

 unit_666 = objNull;

if (true) then
{
  _this = createAgent ["gsc_scientist1", [6306,46,7807.15,0], [], 0, "CAN_COLLIDE"];
  _unit_666 = _this;
  _this setDir 290;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
};
 
unit_667 = objNull;
if (true) then
{
  _this = createAgent ["gsc_scientist1", [11454.4,11336.1,0], [], 0, "CAN_COLLIDE"];
  _unit_667 = _this;
  _this setDir 350;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
};
 
unit_668 = objNull;
if (true) then
{
  _this = createAgent ["gsc_scientist1", [4020.35,11660,0], [], 0, "CAN_COLLIDE"];
  _unit_668 = _this;
  _this setDir 45;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;

  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};

Link to comment
Share on other sites

@raymix (or anyone!)

hello so i followed everything but when i get in the server the trader is not there but the others traders are still working and all that

(using overpoch)

bump

 

Really noone?

 

 

ok just notice this i assume this is a big part of it?!? 

17:26:33 Error in expression <666 = objNull;

if (true) then

{

_this = createAgent ["MVD_Soldier", [6306,46,780>

17:26:33 Error position: <createAgent ["MVD_Soldier", [6306,46,780>

Edited by clarkycal
Link to comment
Share on other sites

 

I have a problem with my traders, I hope somebody can help......

 

I have added new traders with this tutorial may times and had issues but solved them.

 

I just set up a new server . I used the same files since its same map and mod

 

but now  my overpoch trader has stuff that database does not show for that trader. some catagories are fine while others are grabbing items from other traders.

like my ACR has ACR // no problem

but when I click heavy machine guns (1004) it shows pistols, I restart server now it shows mini guns like mp5

my  hk416 catagory shows knife, gps  (tools)

 

however when I look in database it shows correct items for that catagory.......

 

Im VERY confused here......

 

I even had a RHIB boat in one of the catagories. but database shows only at 2 correct traders.....

Link to comment
Share on other sites

  • 2 weeks later...

Raymix or anyone I need help! The other coder added the whole overpoch trader except for the vehicles, so I created another trader inside it for vehicles. I have everything right, the version of the items is 2 (e.x. ["BAF_Jackal2_L2A1_D",2]), hes in server_traders.sqf and database entry, and also has a trader_tids entry. Everything is perfect in game, menu, position, I added a HeliHCivil about 5 meters infront of him. But everytime I trade with him it quickly says Traded 1 Briefcase for 1 BTR40, or anything else I buy, and then says Need 1 more Briefcase but doesnt spawn the vehicle... I don't know whats wrong. I know that the message I get is not correct so I'm thinking its something I missed about vehicle traders specifically.

 

http://imgur.com/KcLUoCs

Link to comment
Share on other sites

Raymix or anyone I need help! The other coder added the whole overpoch trader except for the vehicles, so I created another trader inside it for vehicles. I have everything right, the version of the items is 2 (e.x. ["BAF_Jackal2_L2A1_D",2]), hes in server_traders.sqf and database entry, and also has a trader_tids entry. Everything is perfect in game, menu, position, I added a HeliHCivil about 5 meters infront of him. But everytime I trade with him it quickly says Traded 1 Briefcase for 1 BTR40, or anything else I buy, and then says Need 1 more Briefcase but doesnt spawn the vehicle... I don't know whats wrong. I know that the message I get is not correct so I'm thinking its something I missed about vehicle traders specifically.

 

http://imgur.com/KcLUoCs

think it's the helipad, as far as I remember there were 2 copies of civil helipad, only one worked tho. This means vehicle is spawned, but elsewhere, you can check that using This will let you teleport vehicle to you when you buy it, if it does, then you are using wrong helipad... think you can find proper one in either of mission.sqm or mission.sqf files

Link to comment
Share on other sites

think it's the helipad, as far as I remember there were 2 copies of civil helipad, only one worked tho. This means vehicle is spawned, but elsewhere, you can check that using This will let you teleport vehicle to you when you buy it, if it does, then you are using wrong helipad... think you can find proper one in either of mission.sqm or mission.sqf files

Thanks I'll try to use a different one.

Link to comment
Share on other sites

think it's the helipad, as far as I remember there were 2 copies of civil helipad, only one worked tho. This means vehicle is spawned, but elsewhere, you can check that using This will let you teleport vehicle to you when you buy it, if it does, then you are using wrong helipad... think you can find proper one in either of mission.sqm or mission.sqf files

I tried the other helipad (HeliHEmpty) and it didn't work either. I noticed cause I have ESP from InfiSTAR, that the vehicles aren't spawning at all. Maybe I missed something about vehicle traders?

Link to comment
Share on other sites

think it's the helipad, as far as I remember there were 2 copies of civil helipad, only one worked tho. This means vehicle is spawned, but elsewhere, you can check that using This will let you teleport vehicle to you when you buy it, if it does, then you are using wrong helipad... think you can find proper one in either of mission.sqm or mission.sqf files

I tried the other Helipad (HeliHEmpty) and it didn't work either. I noticed that its not displaying the right message at the bottom center of the screen. It's displaying a message like I bought something that belongs in my inventory. Like "Traded 1 Briefcase for 1 BTR40" then it will say "Need 1 More Briefcase."

Link to comment
Share on other sites

I tried the other Helipad (HeliHEmpty) and it didn't work either. I noticed that its not displaying the right message at the bottom center of the screen. It's displaying a message like I bought something that belongs in my inventory. Like "Traded 1 Briefcase for 1 BTR40" then it will say "Need 1 More Briefcase."

Alright I figured it out. For any future readers. I started off with cloning a baked beans and added vehicles. I had everything right but I forgot to change the end from trade_item to trade_any_vehicle. Everyone make sure you really check what you added in. I didn't, I assumed it was okay because I had the 2 after the vehicle name.

Link to comment
Share on other sites

I have a problem with my traders, I hope somebody can help......

 

I have added new traders with this tutorial may times and had issues but solved them.

 

I just set up a new server . I used the same files since its same map and mod

 

but now  my overpoch trader has stuff that database does not show for that trader. some catagories are fine while others are grabbing items from other traders.

like my ACR has ACR // no problem

but when I click heavy machine guns (1004) it shows pistols, I restart server now it shows mini guns like mp5

my  hk416 catagory shows knife, gps  (tools)

 

however when I look in database it shows correct items for that catagory.......

 

Im VERY confused here......

 

I even had a RHIB boat in one of the catagories. but database shows only at 2 correct traders.....

 

 

 

did u find out the problem cos im having the exact same problem items from other traders are going into the new traders for some reason and the whole ammo sql that i added didnt add but its showing up on traders in sql which is strange checked over all sql no errors so no idea wots happened now any ideas people?

Link to comment
Share on other sites

  • 2 weeks later...

did u find out the problem cos im having the exact same problem items from other traders are going into the new traders for some reason and the whole ammo sql that i added didnt add but its showing up on traders in sql which is strange checked over all sql no errors so no idea wots happened now any ideas people?

my problem was trade from vehicle and backpack script...

after last update is when it started to happen.

so I went back to older version

 

sorry so late reply.....

Link to comment
Share on other sites

  • 1 month later...

Ok i am haveing issues with my trader the custom trader spawned in. but all of my traders are broken. help please.

 

 

_unit_777 = objNull;
if (true) then
{
  _this = createAgent ["Hooker1", [6306.01,7808.24,0.00140381], [], 0, "CAN_COLLIDE"];
  _unit_133 = _this;
  _this setDir 312.879;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
  
 
// Over Poch neutral
menu_Hooker1 = [
[["Assault Rifle",693],["Light Machine Gun",694],["Pistols",695],["Shotguns and Single-shot",696],["Sniper Rifle",697],["Submachine Guns",698]],
[],
"neutral"
];

 

Link to comment
Share on other sites

 

Ok i am haveing issues with my trader the custom trader spawned in. but all of my traders are broken. help please.

 

 

_unit_777 = objNull;
if (true) then
{
  _this = createAgent ["Hooker1", [6306.01,7808.24,0.00140381], [], 0, "CAN_COLLIDE"];
  _unit_133 = _this;
  _this setDir 312.879;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
  
 
// Over Poch neutral
menu_Hooker1 = [
[["Assault Rifle",693],["Light Machine Gun",694],["Pistols",695],["Shotguns and Single-shot",696],["Sniper Rifle",697],["Submachine Guns",698]],
[],
"neutral"
];

 

 

This should be in your day_server.pbo

under missions (for that map you are running)

_unit_777 = objNull;

if (true) then
{
  _this = createAgent ["Hooker1", [6306.01,7808.24,0.00140381], [], 0, "CAN_COLLIDE"];
  _unit_777 = _this;

  _this setDir 312.879;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
 };

The unit numbers were different =  133/777

Also no closing brackets under it =)

This would also break the file. That is why your traders would not show up.

 

This should be in you MPMissions in the server_traders.sqf

 

// Over Poch neutral

menu_Hooker1 = [
[["Assault Rifle",693],["Light Machine Gun",694],["Pistols",695],["Shotguns and Single-shot",696],["Sniper Rifle",697],["Submachine Guns",698]],
[],
"neutral"
];
Link to comment
Share on other sites

Ok i made those changes and the Traders are spawned in but no menus are popping up

 

here is my rpt file

 

14:25:57 "DEBUG VEIN: on road [4473.04,8828.63]"
14:26:02 Server: Object 5:6 not found (message 94)
14:26:02 "TIME SYNC: Local Time set to [2013,8,3,14,26]"
14:26:28 Server: Object 5:12 not found (message 99)
14:26:28 Server: Object 5:13 not found (message 91)
14:26:28 Server: Object 5:14 not found (message 98)
14:26:28 Server: Object 5:15 not found (message 91)
14:26:28 Server: Object 5:16 not found (message 98)
14:26:28 Server: Object 5:17 not found (message 91)
14:26:28 Server: Object 5:18 not found (message 99)
14:26:28 Server: Object 5:19 not found (message 91)
14:26:28 Server: Object 5:20 not found (message 70)
14:26:28 Server: Object 5:21 not found (message 70)
14:26:28 Server: Object 5:22 not found (message 70)
14:26:28 Server: Object 5:23 not found (message 94)
14:26:28 Server: Object 5:24 not found (message 98)
14:26:28 Server: Object 5:25 not found (message 91)
14:26:28 Server: Object 5:27 not found (message 91)
14:26:28 Server: Object 5:26 not found (message 99)
14:26:28 Server: Object 5:28 not found (message 98)
14:26:28 Server: Object 5:29 not found (message 91)
14:26:28 Server: Object 5:31 not found (message 91)
14:26:28 Server: Object 5:30 not found (message 99)
14:26:28 Server: Object 5:32 not found (message 70)
14:26:28 Server: Object 5:34 not found (message 70)
14:26:28 Server: Object 5:33 not found (message 70)
14:26:28 Server: Object 5:35 not found (message 70)
14:26:28 Server: Object 5:37 not found (message 70)
14:26:28 Server: Object 5:36 not found (message 70)
14:26:28 Server: Object 5:41 not found (message 91)
14:26:28 Server: Object 5:38 not found (message 94)
14:26:28 Server: Object 5:39 not found (message 70)
14:26:28 Server: Object 5:40 not found (message 98)
14:26:28 Server: Object 5:42 not found (message 70)
14:26:28 Server: Object 5:43 not found (message 70)
14:26:28 Server: Object 5:45 not found (message 70)
14:26:28 Server: Object 5:44 not found (message 94)
14:26:28 Server: Object 5:47 not found (message 91)
14:26:28 Server: Object 5:46 not found (message 99)
14:26:28 Server: Object 5:49 not found (message 91)
14:26:28 Server: Object 5:48 not found (message 99)
14:26:28 Server: Object 5:50 not found (message 70)

 

 

 Functionary1","RU_Citizen3","Rocker4">

0:33:48 Error Missing ]
0:33:48 File mpmissions\__cur_mp.chernarus\server_traders.sqf, line 2
0:33:48 Error in expression <.sqf"

serverTraders = ["Gsc_scientist1"RU_Functionary1","RU_Citizen3","Rocker4">
0:33:48 Error position: <RU_Functionary1","RU_Citizen3","Rocker4">
0:33:48 Error Missing ]
0:33:48 File mpmissions\__cur_mp.chernarus\server_traders.sqf, line 2
0:33:48 "Res3tting B!S effects..."
0:33:49 "\z\addons\dayz_code\system\REsec.sqf:Monitoring Remote Exe..."

Link to comment
Share on other sites

0:33:48 Error Missing ]
0:33:48 File mpmissions\__cur_mp.chernarus\server_traders.sqf, line 2

Looks like there's a typo..

 

// DayZ Epoch TRADERS for 11
serverTraders = ["Hooker1"RU_Functionary1","RU_Citizen3","Rocker4","Profiteer4","Rita_Ensler_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","TK_GUE_Soldier_5_EP1","GUE_Soldier_MG","Worker2","Worker3","Woodlander1","UN_CDF_Soldier_Pilot_EP1","RU_WorkWoman1","Dr_Annie_Baker_EP1","RU_Citizen4","RU_WorkWoman5","RU_Citizen1","RU_Villager3","TK_CIV_Takistani04_EP1","Pilot_EP1","RU_Profiteer4","Woodlander3","Dr_Hladik_EP1","Doctor","HouseWife1","GUE_Woodlander2"];
 
 
 
Rpt log for the server again
 

16:32:29 "infiSTAR.de - ADDING PublicVariableEventHandlers"

16:32:29 "infiSTAR.de - AntiHack FULLY LOADED"

16:32:30 Error in expression <traders.sqf"

serverTraders = ["Hooker1"RU_Functionary1","RU_Citizen3","Rocker4">

16:32:30 Error position: <RU_Functionary1","RU_Citizen3","Rocker4">

16:32:30 Error Missing ]

16:32:30 File mpmissions\__cur_mp.chernarus\server_traders.sqf, line 2

16:32:30 Error in expression <traders.sqf"

serverTraders = ["Hooker1"RU_Functionary1","RU_Citizen3","Rocker4">

16:32:30 Error position: <RU_Functionary1","RU_Citizen3","Rocker4">

16:32:30 Error Missing ]

16:32:30 File mpmissions\__cur_mp.chernarus\server_traders.sqf, line 2

16:32:30 "Res3tting B!S effects..."

16:32:30 Error in expression <Speed 0;_this enableSimulation false;};

};

processInitCommands;

>

16:32:30 Error position: <};

processInitCommands;

>

16:32:30 Error Missing {

16:32:30 File z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf, line 1800

16:32:30 "\z\addons\dayz_code\system\REsec.sqf:Monitoring Remote Exe..."

16:32:30 "HIVE: Starting"

16:32:30 "HIVE: trying to get objects"

16:32:30 "HIVE: attempt to kill.. HiveExt response:["PASS"]"

16:32:30 "HIVE: trying to get objects"

16:32:30 "HIVE: found 300 objects"

16:32:30 "HIVE: Commence Object Streaming..."

16:32:30 "HIVE: got 0 Epoch Objects and 300 Vehicles"

16:32:33 "infiSTAR.de - remExServer modified: {}"

16:32:35 AH6X_DZ: FLIR_turret - unknown animation source FLIR_turret

16:32:35 AH6X_DZ: FLIR_gun - unknown animation source FLIR_gun

16:32:37 UH1Y_DZE: ObsTurret - unknown animation source ObsTurret

16:32:37 UH1Y_DZE: ObsGun - unknown animation source ObsGun

 
line 1800
 
_unit_777 = objNull;
 
if (true) then
{
  _this = createAgent ["Hooker1", [6306.01,7808.24,0.00140381], [], 0, "CAN_COLLIDE"];
  _unit_777 = _this;
 
  _this setDir 312.879;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
 };
 
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...