Welcome to Epoch Mod Community

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

salival

ZSC for Epoch 1.0.6+ (And OverWatch 0.25)

386 posts in this topic

I'm getting error mpmissions\DayZ_Overpoch11.Chernarus\scripts\traders\server_traders.sqf, line 1: '.':"" encountered instead '='

 

serverTraders = [
"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",
"RU_Functionary1","GUE_Soldier_MG"];

Share this post


Link to post
Share on other sites
37 minutes ago, Wulfer said:

I'm getting error mpmissions\DayZ_Overpoch11.Chernarus\scripts\traders\server_traders.sqf, line 1: '.':"" encountered instead '='

 

serverTraders = [
"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",
"RU_Functionary1","GUE_Soldier_MG"];

can you put the whole file in a spoiler pls

Share this post


Link to post
Share on other sites

Please

Spoiler

serverTraders = [
"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",
"RU_Functionary1", // hero
"GUE_Soldier_MG" // bandit
];

// Hero Vendor
menu_RU_Functionary1 = [
    [["Attachments",693],["Ammunition",478],["Currency and gems",1100],["Clothes",476],["Helicopter Armed",493],["Military Armed",562],["Trucks Armed",479],["Weapons",477],["LMG Variants",1008],["Sniper Variants",1001]],
    [],
    "hero"
];

// Bandit Traders
menu_GUE_Soldier_MG = [
    [["Attachments",693],["Ammunition",577],["Currency and gems",1100],["Clothing",575],["Helicopter Armed",512],["Military Armed",569],["Trucks Armed",534],["Weapons",627],["LMG Variants",1008],["Sniper Variants",1001]],
    [],
    "hostile"
];

// Ammunition neutral
menu_RU_Citizen3 = [
    [["Assault Rifle Ammo",621],["Light Machine Gun Ammo",622],["Pistol Ammo",625],["Shotguns and Single-shot Ammo",623],["Sniper Rifle Ammo",624],["Submachine Gun Ammo",626]],
    [],
    "neutral"
];
// Weapons neutral
menu_Rocker4 = [
    [["Attachments",693],["HK416 Variants",1004],["HK417 Variants",1002],["AK Variants",1003],["G3 Variants",1007],["Masada Variants",1009],["SCAR Variants",1011],["Assault Rifle",485],["Light Machine Gun",486],["Pistols",489],["Shotguns and Single-shot",574],["Sniper Rifle",487],["Submachine Guns",488]],
    [],
    "neutral"
];
// neutral Vehicles
menu_Profiteer4 = [
    [["Bikes and ATV",608],["Buses and Vans",563],["Cargo Trucks",564],["Fuel Trucks",492],["Military Unarmed",491],["Trucks",495],["Used Cars",585],["Utility Vehicles",565],["Cop cars",1012],["Nissan 350z",1013]],
    [],
    "neutral"
];
// General Store
menu_Rita_Ensler_EP1 = [
    [["Backpacks",538],["Currency and gems",1100],["Clothes",628],["Cooked Meats",630],["Drinks",601],["Packaged Food",629]],
    [["ItemTinBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Tin Bar",101]],
    "neutral"
];
// Weapons neutral
menu_CIV_EuroMan01_EP1 = [
    [["Attachments",693],["HK416 Variants",1004],["HK417 Variants",1002],["AK Variants",1003],["G3 Variants",1007],["Masada Variants",1009],["SCAR Variants",1011],["Assault Rifle",485],["Light Machine Gun",486],["Pistols",489],["Shotguns and Single-shot",574],["Sniper Rifle",487],["Submachine Guns",488]],
    [],
    "neutral"
];
// Ammunition Neutral
menu_CIV_EuroMan02_EP1 = [
    [["Assault Rifle Ammo",621],["Light Machine Gun Ammo",622],["Pistol Ammo",625],["Shotguns and Single-shot Ammo",623],["Sniper Rifle Ammo",624],["Submachine Gun Ammo",626]],
    [],
    "neutral"
];
// Neutral Building/Parts
menu_TK_GUE_Soldier_5_EP1 = [
    [["Building Supplies",678],["Currency and gems",1100],["Tools",679],["Vehicle Parts",677]],
    [],
    "neutral"
];

// Aircraft Dealer
menu_Worker2 = [
    [["Airplanes",517],["Currency and gems",1100],["Helicopter Unarmed",519],["Overwatch Camels (Armed)",1014]],
    [],
    "neutral"
];
// Vehicles Neutral
menu_Worker3 = [
    [["Bikes and ATV",608],["Buses and Vans",563],["Cargo Trucks",564],["Fuel Trucks",492],["Military Unarmed",491],["Trucks",495],["Used Cars",585],["Utility Vehicles",565],["Cop cars",1012],["Nissan 350z",1013]],
    [],
    "neutral"
];
// neutral Building/Parts
menu_Woodlander1 = [
    [["Building Supplies",678],["Tools",679],["Vehicle Parts",677]],
    [],
    "neutral"
];
// neutral Vehicles 2
menu_UN_CDF_Soldier_Pilot_EP1 = [
    [["Bikes and ATV",608],["Buses and Vans",563],["Cargo Trucks",564],["Fuel Trucks",492],["Military Unarmed",491],["Trucks Unarmed",535],["Used Cars",585],["Utility Vehicles",565],["Cop cars",1012],["Nissan 350z",1013]],
    [],
    "neutral"
];
// General Store 2
menu_RU_WorkWoman1 = [
    [["Backpacks",538],["Clothes",628],["Cooked Meats",630],["Currency and gems",1100],["Drinks",601],["Packaged Food",629]],
    [["ItemTinBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Tin Bar",101]],
    "neutral"
];
// Medical Supplies
menu_Dr_Annie_Baker_EP1 = [
    [["Chem-lites/Flares",542],["Medical Supplies",541],["Smoke Grenades",543]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "neutral"
];
// East Wholesaler
menu_RU_Citizen4 = [
    [["Wholesale",675],["Currency and gems",1100]],
    [],
    "neutral"
];
// General Store 3
menu_RU_WorkWoman5 = [
    [["Backpacks",538],["Clothes",628],["Cooked Meats",630],["Currency and gems",1100],["Drinks",601],["Packaged Food",629]],
    [["ItemTinBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Tin Bar",101]],
    "neutral"
];
// West Wholesaler
menu_RU_Citizen1 = [
    [["Wholesale",675],["Currency and gems",1100]],
    [],
    "neutral"
];
// Boat Vendor
menu_RU_Villager3 = [
    [["Boats Armed",673],["Boats Unarmed",672]],
    [],
    "neutral"
];
// Weapons neutral 2
menu_TK_CIV_Takistani04_EP1 = [
    [["Attachments",693],["HK416 Variants",1004],["HK417 Variants",1002],["AK Variants",1003],["G3 Variants",1007],["Masada Variants",1009],["SCAR Variants",1011],["Assault Rifle",485],["Light Machine Gun",486],["Pistols",489],["Shotguns and Single-shot",574],["Sniper Rifle",487],["Submachine Guns",488]],
    [],
    "neutral"
];
// Ammunition Neutral 2
menu_Pilot_EP1 = [
    [["Assault Rifle Ammo",621],["Light Machine Gun Ammo",622],["Pistol Ammo",625],["Shotguns and Single-shot Ammo",623],["Sniper Rifle Ammo",624],["Submachine Gun Ammo",626]],
    [],
    "neutral"
];
// Vehicles Neutral 2
menu_RU_Profiteer4 = [
    [["Bikes and ATV",608],["Buses and Vans",563],["Cargo Trucks",564],["Fuel Trucks",492],["Military Unarmed",491],["Trucks",495],["Used Cars",585],["Utility Vehicles",565],["Cop cars",1012],["Nissan 350z",1013]],
    [],
    "neutral"
];
// Neutral Building/Parts
menu_Woodlander3 = [
    [["Building Supplies",678],["Tools",679],["Vehicle Parts",677]],
    [],
    "neutral"
];
// Medical Supplies 2
menu_Dr_Hladik_EP1 = [
    [["Chem-lites/Flares",542],["Medical Supplies",541],["Smoke Grenades",543]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "neutral"
];
// Medical Supplies 3
menu_Doctor = [
    [["Chem-lites/Flares",542],["Medical Supplies",541],["Smoke Grenades",543]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "neutral"
];
// Boat Trader 2
menu_HouseWife1 = [
    [["Boats Armed",673],["Boats Unarmed",672]],
    [],
    "neutral"
];
// Black market
menu_GUE_Woodlander2 = [
    [["Attachments",693],["Currency and gems",1100],["Overwatch Ammo",1006],["Black Market Ammo",527],["Black Market Weapons",526],["Explosives",529]],
    [],
    "neutral"
];
 

 

Share this post


Link to post
Share on other sites

and you're using overwatch traders yes? so, did you leave the call in the init to look like this:
 

call compile preprocessFileLineNumbers "scripts\traders\server_traders.sqf";

and then copy the contents of server_traders - overwatch.sqf into server_traders.sqf ?

Share this post


Link to post
Share on other sites

@salival

Hey I noticed you had at the end of the install instructions here a line of code to give players money either in their wallets or in the bank if they are new. Would you know to put a specific item on the player only when they are new ? I tried that method and putting in some code and it's not working for me. Not sure if I put it in the same spot or in the ESSV3 mod. 

Share this post


Link to post
Share on other sites
14 minutes ago, JohnnyBravo666 said:

@salival

Hey I noticed you had at the end of the install instructions here a line of code to give players money either in their wallets or in the bank if they are new. Would you know to put a specific item on the player only when they are new ? I tried that method and putting in some code and it's not working for me. Not sure if I put it in the same spot or in the ESSV3 mod. 

You would need to put it into ESS since it would fuck with the inventory of the player during spawning.

If you wanted to add it to the players body: https://github.com/ebayShopper/ESSV3/blob/master/spawn/main.sqf#L130

If you want to add it to the players backpack: https://github.com/ebayShopper/ESSV3/blob/master/spawn/main.sqf#L133-L138

You would need to check against:

PVCDZ_plr_Login select 8

to see if they are a new player or not. I do this on my server for starterkits for new players and it works great.

 

Share this post


Link to post
Share on other sites
9 minutes ago, salival said:

You would need to put it into ESS since it would fuck with the inventory of the player during spawning.

If you wanted to add it to the players body: https://github.com/ebayShopper/ESSV3/blob/master/spawn/main.sqf#L130

If you want to add it to the players backpack: https://github.com/ebayShopper/ESSV3/blob/master/spawn/main.sqf#L133-L138

You would need to check against:


PVCDZ_plr_Login select 8

to see if they are a new player or not. I do this on my server for starterkits for new players and it works great.

 

Hahaha that's exactly what I was using this for lol. Much easier than having to tp to the new player once they find their spot.

 

With checking against the PVCDZ_plr_Login select 8, would it be similar to this?

Spoiler

//Do Connection Attempt
_doLoop = 0;
while {_doLoop < 5} do {
    _key = format["CHILD:101:%1:%2:%3:",_playerID,dayZ_instance,_playerName];
    _primary = _key call server_hiveReadWrite;
    if (count _primary > 0) then {
        if ((_primary select 0) != "ERROR") then {
            _doLoop = 9;
        };
    };
    _doLoop = _doLoop + 1;
};

if (isNull _playerObj or !isPlayer _playerObj) exitWith {
    diag_log ("LOGIN RESULT: Exiting, player object null: " + str(_playerObj));
};

if ((_primary select 0) == "ERROR") exitWith {
    diag_log format ["LOGIN RESULT: Exiting, failed to load _primary: %1 for player: %2 ",_primary,_playerID];
};

//Process request
_newPlayer = _primary select 1;
_isNew = count _primary < 10; //_result select 1;
_charID = _primary select 2;
//diag_log ("LOGIN RESULT: " + str(_primary));
/* PROCESS */
_hiveVer = 0;

Sorry I'm not entirely sure how to check for something like this..

Share this post


Link to post
Share on other sites

This is one option i changed and I seem to load into the game better. I am also wondering, how do you add coins to new players when they join the server? I have never been able to figure this out.

Share this post


Link to post
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

  • Similar Content

    • By NateDayZ
      Epoch rezurrection is a server which aims to bring the old school feeling back to epoch. That being said we still offer many of the popular scripts and more. 
      We are open to any suggestions which will improve the server.
      We urge all players, old and new to come try Epoch Rezurrection.  
      Server ip: 181.215.47.12:2302
      Website: dayzrezurrection.com
      Teamspeak: dayzrezurrection.typefrag.com
       
      See you all ingame!
    • By Kovicson
      Hey guys!
      Trying to see about adding a anti Combat Log system, spawns a box from the disconnected players gear.
      Wondering if anyone's got a working setup going!
      Can post my server_onPLayerDisconnect and server_playerSync if it helps.
       
      Thank you :)
    • By Thug
      [SOLVED]
      Where do I add the namalsk zombies    NS_zombie1, NS_zombie2, NS_zombie3
      Would like to see how they act.
      Is it something like the following:
          zombieClass[] =     {
      "z_soldier",
      "z_soldier_heavy",
      "z_soldier",
      // "z_worker1",
      "z_NS_zombie1",
      //"z_worker2",
      "z_NS_zombie2",
      //"z_worker3" 
      "z_NS_zombie3"
          };
    • By Kovicson
      So my server just restarted without notice.. I see this on the logs
       
      20:17:16 "HIVE: WRITE: "CHILD:305:7263:[167.286072,[6345.802246,7775.371094,10.516449]]:0.907114:"" 20:17:21 "HIVE: WRITE: "CHILD:305:7351:[248.333481,[8957.224609,7453.366211,-0.00204468]]:0.875479:"" 20:17:21 "HIVE: WRITE: "CHILD:306:7351:[["glass1",0.386981],["glass2",0.58908],["glass3",0.235011],["motor",0.100239],["palivo",0],["wheel_1_1_steering",0.464592],["wheel_1_2_steering",0],["wheel_2_1_steering",0.260229],["wheel_2_2_steering",0],["sklo predni P",0],["sklo predni L",0],["karoserie",0.0813357],["wheel_1_4_steering",0],["wheel_2_4_steering",0],["wheel_1_3_steering",0],["wheel_2_3_steering",0],["glass4",0]]:0.019685:"" 20:17:22 "HIVE: WRITE: "CHILD:305:7348:[182.90657,[2659.122559,5516.836914,0.0137787]]:0.862692:"" 20:17:39 "HIVE: WRITE: "CHILD:305:0:[277.0662537,[2358.942139,4797.601563,170.153656]]:1:"" 20:17:39 Cannot load sound 'reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeuŭ߀"��̑z3˵' ======================================================= ------------------------------------------------------- Exception code: C0000005 ACCESS_VIOLATION at DEADA575 Any ideas??
    • By buttstuffman
      I am trying to setup an overpoch server, but starting as epoch because its first time. Now I got the server setup very easily. But, I can't get admin tools to install. I followed the very limited and outdated guide to the best of my ability and yeah.. its like I didn't even do anything. There are 0 guides, 0 tutorials, and 0 videos when it comes to arma 2 epoch and admintools. Unless its from 2013 and crap. I know there is someone out there that can help me with this so hopefully I'm in the right place. Really want to get my server up and running. I am a web developer so I'm not a scripting noob.
  • Latest Donations

  • Donation Box

    Please donate to support the community.
    We appreciate all donations!
  • Advertisement
  • Supporters
  • Advertisement
  • Forum Statistics

    • Total Topics
      26453
    • Total Posts
      244128
  • Member Statistics

    • Total Members
      29485
    • Most Online
      1497

    Newest Member
    -Pathfinder-
    Joined