Jump to content
  • 0

editing trader cities


dodget90

Question

is it possible to edit the trader cities, I can add to the trader cities just fine using custom map folder but I want to move around objects that are already there or remove them like the tents, I have tried by editing my @DayZ_Epoch\addons\dayz_code\system\mission\chernarus11.sqf in the editor but when I go in to play the game everything is just normal

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
  On 11/22/2017 at 10:34 PM, dodget90 said:

is it possible to edit the trader cities, I can add to the trader cities just fine using custom map folder but I want to move around objects that are already there or remove them like the tents, I have tried by editing my @DayZ_Epoch\addons\dayz_code\system\mission\chernarus11.sqf in the editor but when I go in to play the game everything is just normal

Expand  

You got the right file to edit/modify, but you should never modify the dayz_code pbo directly, doing so would mean you would need to run your server with verifySignatures in your config.cfg off which is NOT good.

You need to move that file to your mission file (i.e place it in a folder called dayz_code\system\mission in your mission file) and modify it how you like

Then you need to modify your init.sqf and change the directory for how you reference that file:

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf#L101

Change it to:

call compile preprocessFileLineNumbers "dayz_code\system\mission\chernarus11.sqf"; //Add trader city objects locally on every machine early

obviously if you put that file elsewhere in your mission folder you should change that directory.

Link to comment
Share on other sites

  • 0
  On 11/23/2017 at 10:23 AM, dodget90 said:

thank you that worked for me, another trader related question I tried to add a custom trader but he didn't show up, I don't think the tutorials I can find are for the latest epoch, by any chance can you point me in the direction of one please

Expand  

trader agents are in your dayz_server.pbo as referenced here: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf#L112

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_server/traders/chernarus11.sqf

If you add a trader, you will also need to add the categories to your server_traders file

this is referenced here: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf#L100

This file points to an included file: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/server_traders.sqf

which you would also copy to your mission file as you did the trader city objects file I helped you with first of all: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/system/mission/server_traders/chernarus11.sqf

Worth noting, my version of ZSC (coins https://github.com/oiad/ZSC) moves the trader files to your mission folder anyway 

Link to comment
Share on other sites

  • 0

il give this a try later on thanks again, I'm using your ZSC is there a way disable wallet check for players but not ai as ai is good money source but my brother dupes his coins from his body I also can't figure out how to reset his money as Heidi SQL doesn't save my edits with coins and he is a billionaire just now

Link to comment
Share on other sites

  • 0
  On 11/23/2017 at 9:26 AM, salival said:

You got the right file to edit/modify, but you should never modify the dayz_code pbo directly, doing so would mean you would need to run your server with verifySignatures in your config.cfg off which is NOT good.

You need to move that file to your mission file (i.e place it in a folder called dayz_code\system\mission in your mission file) and modify it how you like

Then you need to modify your init.sqf and change the directory for how you reference that file:

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf#L101

Change it to:

call compile preprocessFileLineNumbers "dayz_code\system\mission\chernarus11.sqf"; //Add trader city objects locally on every machine early

obviously if you put that file elsewhere in your mission folder you should change that directory.

Expand  

i am getting this error in my RPT 

12:19:58 Error in expression <[11449.3,11348.9,9.15527e-005],133.16]
]],true,false,true] call fnc_spawnObjects>
12:19:58   Error position: <],true,false,true] call fnc_spawnObjects>
12:19:58   Error Missing ;
12:19:58 File mpmissions\DayZ_Epoch_11.Chernarus\dayz_code\system\mission\chernarus11.sqf, line 211

the objects aren't loading in

Link to comment
Share on other sites

  • 0
  On 11/23/2017 at 12:46 PM, dodget90 said:

i am getting this error in my RPT 

12:19:58 Error in expression <[11449.3,11348.9,9.15527e-005],133.16]
]],true,false,true] call fnc_spawnObjects>
12:19:58   Error position: <],true,false,true] call fnc_spawnObjects>
12:19:58   Error Missing ;
12:19:58 File mpmissions\DayZ_Epoch_11.Chernarus\dayz_code\system\mission\chernarus11.sqf, line 211

the objects aren't loading in

Expand  

Check whether all line has ; because the rpt says "Error Missing ;".

And, check the number of [ and ], they must be the same, I can see too many ] on your sqf here:
[11449.3,11348.9,9.15527e-005],133.16]
]],true,false,true]

(If you can't find error, please upload your sqf in spoiler)

Link to comment
Share on other sites

  • 0
  On 11/23/2017 at 1:57 PM, Schalldampfer said:

Check whether all line has ; because the rpt says "Error Missing ;".

And, check the number of [ and ], they must be the same, I can see too many ] on your sqf here:
[11449.3,11348.9,9.15527e-005],133.16]
]],true,false,true]

(If you can't find error, please upload your sqf in spoiler)

Expand  

here is the original file

  Reveal hidden contents
 

and here is my edited file

  Reveal hidden contents
 

also here is what my RPT shows about this just now

  Reveal hidden contents
 
 

 

Link to comment
Share on other sites

  • 0
  On 11/23/2017 at 2:28 PM, dodget90 said:

here is the original file

  Reveal hidden contents
 

and here is my edited file

  Reveal hidden contents
 

also here is what my RPT shows about this just now

  Reveal hidden contents
 
 

 

Expand  


    ["SKODAWreck",[6304.9468,7807.4624,3.0517578e-005],

at 10th line don't have the direction setting. this may be 

    ["SKODAWreck",[6304.9468,7807.4624,3.0517578e-005],0],

 

Link to comment
Share on other sites

  • 0
  On 11/23/2017 at 2:34 PM, Schalldampfer said:


    ["SKODAWreck",[6304.9468,7807.4624,3.0517578e-005],

at 10th line don't have the direction setting. this may be 

    ["SKODAWreck",[6304.9468,7807.4624,3.0517578e-005],0],

Expand  
 

thank you there was two errors the " ["SKODAWreck",[6304.9468,7807.4624,3.0517578e-005]," that you mentioned and "  ["HeliHEmpty",[6293,7806.44,0],359.994],359.994]," on line 72 had two DIR , i went over this file countless times with my text editor and found no errors only when i looked manually i found them , lesson learned for me thanks 

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
  • Discord

×
×
  • Create New...