Jump to content

[Outdated] ZSC for Epoch 1.0.6.2 (And OverWatch 0.25)


Recommended Posts

  • 3 weeks later...
  • 2 weeks later...

Hi guys.

I'm having quite an odd problem vir my ZSC installation.

Background: I've just installed a clean copy of Dayz Epoch Panthera 1.0.6.2 and only added admin tools. Everything is running as expected. Only notable change that I made is to move the server_traders.sqf from the root of the mission file to the scripts\traders (backing up the default Chernarus sqf), as the Panthera *.sqf isn't supplied with ZSC. This all works fine with the standard Gold currency.

The Problem: As soon as I add ZSC to the server, the traders "lose" most their inventory. Only certain inventory items remain such as "Attacments" at the weapons dealer. No weapons are displayed.

 

I've even recreated the Epoch database and verified the IDs in the database match those specified in the server_traders.sqf.

 

Any ideas on where I might start searching for the cause of the problem?

Link to comment
Share on other sites

  On 3/23/2018 at 8:04 PM, Wurmsous said:

Hi guys.

I'm having quite an odd problem vir my ZSC installation.

Background: I've just installed a clean copy of Dayz Epoch Panthera 1.0.6.2 and only added admin tools. Everything is running as expected. Only notable change that I made is to move the server_traders.sqf from the root of the mission file to the scripts\traders (backing up the default Chernarus sqf), as the Panthera *.sqf isn't supplied with ZSC. This all works fine with the standard Gold currency.

The Problem: As soon as I add ZSC to the server, the traders "lose" most their inventory. Only certain inventory items remain such as "Attacments" at the weapons dealer. No weapons are displayed.

 

I've even recreated the Epoch database and verified the IDs in the database match those specified in the server_traders.sqf.

 

Any ideas on where I might start searching for the cause of the problem?

Expand  

ZSC Needs to have its own configs for traders, the server_traders.sqf file you moved from the root to scripts will have overridden the zsc defaults.

This is what loads your trader categories: https://github.com/oiad/ZSC/blob/master/init.sqf#L103

Those categories nthen need to match up to your cfgTraders files: https://github.com/oiad/ZSC/tree/master/dayz_code/configs

Unfortunately there are no trader category files for panthera, there was never really any people wanting me to do them

Link to comment
Share on other sites

  On 3/29/2018 at 8:22 PM, victorks said:

erro how to fix ??

 

Sem título.png

Expand  

You missed this step:

Download the stringTable.xml file linked below from the Community Localization GitHub and copy it to your mission folder, it is a community based localization file and contains translations for major community mods including this one.

https://github.com/oiad/communityLocalizations/blob/master/stringtable.xml

Link to comment
Share on other sites

  On 3/23/2018 at 8:58 PM, salival said:

ZSC Needs to have its own configs for traders, the server_traders.sqf file you moved from the root to scripts will have overridden the zsc defaults.

This is what loads your trader categories: https://github.com/oiad/ZSC/blob/master/init.sqf#L103

Those categories nthen need to match up to your cfgTraders files: https://github.com/oiad/ZSC/tree/master/dayz_code/configs

Unfortunately there are no trader category files for panthera, there was never really any people wanting me to do them

Expand  

@salival Ok, so my stubbornness got the better of me and I decided to persue my dream of a Panthera map with ZSC. (whilst my Napf server is entertaining a couple of people in the mean time)

Would you be willing to guide me while I "Frankenstein" it together?

I've done the following thus far:

1.  Created a server_traders.sqf derived from \z\addons\dayz_code\system\mission\server_traders\panthera2.sqf and verified the "tid" in my database traders_data table

2. Backed up scripts\traders\server_traders.sqf and replaced it with my new server_traders.sqf

3. call compile preprocessFileLineNumbers "scripts\traders\server_traders.sqf"; in the mission  init.sqf

4. execVM "\z\addons\dayz_server\traders\panthera2.sqf";  to add the trader agents

I haven't bothered editing anything in the dayz_code\configs\cfgServerTrader.hpp and Category headers, as they seem to be common to all maps.

 

Now I get a "Sctrip server_traders.sqf not found" warning before entering the game and the inventory of som traders are still empty... <-- This seems to be the big clue

(side note: this is for me alone and I do not intend to distribute it at all without due permission from the original authors)

Link to comment
Share on other sites

  On 4/3/2018 at 7:03 PM, Wurmsous said:

@salival Ok, so my stubbornness got the better of me and I decided to persue my dream of a Panthera map with ZSC. (whilst my Napf server is entertaining a couple of people in the mean time)

Would you be willing to guide me while I "Frankenstein" it together?

I've done the following thus far:

1.  Created a server_traders.sqf derived from \z\addons\dayz_code\system\mission\server_traders\panthera2.sqf and verified the "tid" in my database traders_data table

2. Backed up scripts\traders\server_traders.sqf and replaced it with my new server_traders.sqf

3. call compile preprocessFileLineNumbers "scripts\traders\server_traders.sqf"; in the mission  init.sqf

4. execVM "\z\addons\dayz_server\traders\panthera2.sqf";  to add the trader agents

I haven't bothered editing anything in the dayz_code\configs\cfgServerTrader.hpp and Category headers, as they seem to be common to all maps.

 

Now I get a "Sctrip server_traders.sqf not found" warning before entering the game and the inventory of som traders are still empty... <-- This seems to be the big clue

(side note: this is for me alone and I do not intend to distribute it at all without due permission from the original authors)

Expand  

Hey,

That's definitely the file that needs modifying, basically all you need to do is make sure the  categoryIDS match the .hpp files that come with ZSC (some are different) and then some are different again for overpoch.

Panthera hero vendor: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/system/mission/server_traders/panthera2.sqf#L4-L8

ZSC Chernarus hero vendor: https://github.com/oiad/ZSC/blob/master/scripts/traders/server_traders.sqf#L8-L12

That's all i'm doing when I'm converting them to ZSC, as long as they read the same category number for each vendor, they will work

The server_traders.sqf not found error is from this file: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_server/init/mission_check.sqf#L8

Link to comment
Share on other sites

Thanks again for the rapid reply.

Still no joy... I'll double-check my server_traders.sqf against the Category header files and get back to you. Thanks for the help.

Update: IT WORKS!! Still getting that script not found message though after removing it from my _files = [......] list in mission_check.sqf

Thanks for the pointers salival. The guys are going to love this.

Link to comment
Share on other sites

  • 3 weeks later...
  On 3/29/2018 at 9:08 PM, salival said:

You missed this step:

Download the stringTable.xml file linked below from the Community Localization GitHub and copy it to your mission folder, it is a community based localization file and contains translations for major community mods including this one.

https://github.com/oiad/communityLocalizations/blob/master/stringtable.xml

Expand  

didnt change anything to me/:

Link to comment
Share on other sites

  • 3 weeks later...

I must ask now.

I'm usually not that stupid when it comes to arma scripting, but I ran out of ideas on my problem.

I debugged it as far as I could and what I found out is, that when I open a safe to access the band dialog

it does not transfer the coins from the locked safe to the unlocked one.

my debug lines tell me this:

0 coins in safe:

14:13:01 "TLR_DEBUG: zsc_server_handeSafeGear: Z_singleCurrency = true, Z_MoneyVariable = cashMoney"
14:13:01 "TLR_DEBUG: zsc_server_handeSafeGear: unlock: VaultStorageLocked coins = 0"
14:13:01 "TLR_DEBUG: zsc_server_handeSafeGear: unlock: VaultStorage coins = any"

tested with added 501 coins to safe via database:

14:27:18 "TLR_DEBUG: zsc_server_handeSafeGear: Z_singleCurrency = true, Z_MoneyVariable = cashMoney"
14:27:18 "TLR_DEBUG: zsc_server_handeSafeGear: unlock: VaultStorageLocked coins = 501"
14:27:18 "TLR_DEBUG: zsc_server_handeSafeGear: unlock: VaultStorage coins = any"

locking the safe throws me this:

14:13:27 "TLR_DEBUG: zsc_server_handeSafeGear: Z_singleCurrency = true, Z_MoneyVariable = cashMoney"
14:13:27 "TLR_DEBUG: zsc_server_handeSafeGear: lock: VaultStorage coins = any"
14:13:27 "TLR_DEBUG: zsc_server_handeSafeGear: lock: VaultStorageLocked coins = any"

this is the debug code:

switch (_status) do {
	case 0: { //Unlocking
		_unlockedClass = getText (configFile >> "CfgVehicles" >> _type >> "unlockedClass");
		_weapons = _obj getVariable ["WeaponCargo",[]];
		_magazines = _obj getVariable ["MagazineCargo",[]];
		_backpacks = _obj getVariable ["BackpackCargo",[]];
		if (Z_singleCurrency) then {_coins = _obj getVariable [Z_MoneyVariable,0];};
		diag_log format ["TLR_DEBUG: zsc_server_handeSafeGear: Z_singleCurrency = %1, Z_MoneyVariable = %2", Z_singleCurrency, Z_MoneyVariable];
		diag_log format ["TLR_DEBUG: zsc_server_handeSafeGear: unlock: %1 coins = %2", typeof _obj, _obj getVariable [Z_MoneyVariable,0]];
		// Create new unlocked safe, then delete old locked safe
		//_holder = createVehicle [_unlockedClass,_pos,[],0,"CAN_COLLIDE"];
		_holder = _unlockedClass createVehicle [0,0,0];
		_holder setDir _dir;
		_holder setVariable ["memDir",_dir,true];
		_holder setVectorDirAndUp _vector;
		_holder setPosATL _pos;
		_holder setVariable ["CharacterID",_charID,true];
		_holder setVariable ["ObjectID",_objectID,true];
		_holder setVariable ["ObjectUID",_objectUID,true];
		_holder setVariable ["OEMPos",_pos,true];
		if (DZE_permanentPlot) then {_holder setVariable ["ownerPUID",_ownerID,true];};
		if (Z_singleCurrency) then {_holder setVariable [Z_MoneyVariable,_coins,true];};
		diag_log format ["TLR_DEBUG: zsc_server_handeSafeGear: unlock: %1 coins = %2", typeof _holder, _holder getVariable [Z_MoneyVariable,0]];
		deleteVehicle _obj;
		
		[_weapons,_magazines,_backpacks,_holder] call fn_addCargo;
	};

does anyone have a clue what I could have missed? it seems like setvar throws an error when setting it on the unlocked safe.

Im using the latest zsc version. server_handleSafeGear is 100% like the provided .sqf file.

Link to comment
Share on other sites

So I followed the instructions to the letter. I used only the files provided, not really anything too extreme in terms of other mods running...I can get the coins on my character, spawn the bankers but the check wallet, banker dialog and safe storage dialog just never come up. I've considered just putting in the code to keep coins after death but I hate having things not working correctly.

  Reveal hidden contents
  Reveal hidden contents

 

Link to comment
Share on other sites

  On 5/13/2018 at 12:06 AM, BufordTJustice said:

So I followed the instructions to the letter. I used only the files provided, not really anything too extreme in terms of other mods running...I can get the coins on my character, spawn the bankers but the check wallet, banker dialog and safe storage dialog just never come up. I've considered just putting in the code to keep coins after death but I hate having things not working correctly.

  Reveal hidden contents
  Reveal hidden contents

 

Expand  

Hello,

You missed this step:

  1. Download the stringTable.xml file linked below from the Community Localization GitHub and copy it to your mission folder, it is a community based localization file and contains translations for major community mods including this one.

>> Download stringTable.xml <<

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...