Jump to content
  • 0

Zsc single currency 3.0 disables my other scripts!


tasman

Question

Hello,

 

I am having an issue with my single currency when i put it in this form:

 

progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "init\compiles.sqf"; //Compile regular functions
call compile preprocessFileLineNumbers "init\compiles2.sqf"; //compile overrides
call compile preprocessFileLineNumbers "scripts\Buildables\Crafting_Compiles.sqf"; //Alchemy compiles
/*ZSC*/
call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf";
/*ZSC*/
 
it works fine but disables functions like advanced trader, towing, sirens,...
but when i put it like this:
 
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "init\compiles.sqf"; //Compile regular functions
/*ZSC*/
call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf";
/*ZSC*/
call compile preprocessFileLineNumbers "init\compiles2.sqf"; //compile overrides
call compile preprocessFileLineNumbers "scripts\Buildables\Crafting_Compiles.sqf"; //Alchemy compiles
 
all my other scripts work but now if i use the trader menu it does not affect my coins.
 
example: if i sell a gun in trader menu no coins will be added
               if i want to buy a gun it just buys it even without having money.
 
but when i am using advanced trader everything works fine.
Is there a way to fix this?
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Open compiles.sqf then open compiles2.sqf Merge Both files into 1

 

1. Free to use: Notepad++ go to plugins and install Compare

2. Trail: BeyondCompare

3. what Recon said use diffmerge

 

you must have set paths in compiles.sqf that compiles2.sqf is overwriting 

--------------------

This is my init layout

 

call compile preprocessFileLineNumbers "Scripts\Variables\Variables.sqf";
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "Scripts\Server_Compile\compiles.sqf";
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "Recover_Skin\compiles.sqf";
progressLoadingScreen 0.6;
call compile preprocessFileLineNumbers "logistic\init.sqf";
progressLoadingScreen 0.7;
call compile preprocessFileLineNumbers "baseJump\init.sqf";
progressLoadingScreen 0.8;
call compile preprocessFileLineNumbers "Scripts\Server_Traders\server_traders.sqf";
progressLoadingScreen 1.0;

 

--------------------

 

I use the main Compiles from dayz_code.pbo and build on it.

Link to comment
Share on other sites

  • 0

The issue here is that ZSC has it's own files, you can choose to use his or add his coding into your own.

Re-read the instructions again. Follow it step by step and make sure to tweak the

ZSC\gold\ZSCconfig.sqf

 

and disable the overwrites.

 

The issue you are probably running into is the selfactions being overwritten.

Link to comment
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
  • Discord

×
×
  • Create New...