Gamers logo

DayZ Console Modding V2.9

How To setup Custom .JSON Files

By L.RPublished 11 months ago 3 min read
1
(image source: https://store.steampowered.com/agecheck/app/221100/)

In this edition of my DayZ modding write-ups I would like to go through the process of spawning objects and buildings via custom .JSON files on your console servers. The method I'm going to describe can be done without needing to use the DayZ editor on PC. This for the most part is because I am aware that not everyone can or wants to pay out for another copy of the game on a different platform to the one they normally play on.

If you haven't already done so you will need to ensure the enable cfggameplay.json option is ticked under Nitrado settings as shown in the image below.

(Image captured from Nitrado settings page.)

With that out of the way it's time to start a new file and save it with a recognisable name, ensuring it ends with .JSON (CustomSpawn.JSON for example) Inside of this new file is where the data for your custom spawn objects needs to go. So here is an example template with added notes so you can see what is required to make the new file work. If you want to add more entries to the file make sure to include a comma between them as noted in the image below.

(Template of what is needed inside the custom .JSON files used to spawn objects)

For each "name" you'll need the name of the object you are wanting to spawn. Then as noted in the image above, the first and third set of coordinates for each entry can be pulled from the Izurvive map, but the middle value (height) will need to be taken from server logs. To do this I recommend heading to the locations you want to set something to spawn and crafting a campfire there. Once you've done that go to your server logs on Nitrado and you will be able to see an entry giving the location you placed the campfire, including the height off of the ground. The "ypr" stands for yaw, pitch and roll. These values determine which way round the object will spawn at the location you have set. Generally they can be left at 0 unless the terrain is uneven or the object doesn't spawn facing the way you had hoped. There is no shortcut I can offer for this other than the editor mod for PC DayZ which i'm trying to avoid pushing you towards in this article. Chances are it'll take a few server restarts and adjustments to get those values set the way you want/need them to be. For the "scale" value simply use one of the ones from the example above or replace with a "1". I haven't tried using higher values than that and I'm not sure it would be all that useful to do so.

With your new customSpawn.JSON now created the next step is to upload it to the "custom folder" on Nitrado. After that open cfggameplay.json and find the line that looks like this:

"objectSpawnersArr": []

Inside of the [and] is where you need to place the folder and file names. If using just the one file it will look something like this:

"objectSpawnersArr": ["custom/customSpawn.JSON"]

If you have multiple .json files you want to make use of you simply add them in the same place and format as shown above but with a comma inbetween each extra entry to tell the server these are indeed separate files to be read.With this step completed make sure you save, upload and restart your server to at last see your custom spawned objects placed on the map.

If you found the information in this guide beneficial or have any questions please join my Discord : https://discord.gg/pp5JJDu

Just in case you missed them, here are the previous parts to the series:

https://vocal.media/gamers/day-z-console-modding-v2-1

https://vocal.media/gamers/day-z-console-modding-v2-2

https://vocal.media/gamers/day-z-console-modding-v2-3

https://vocal.media/education/day-z-console-modding-v2-4

https://vocal.media/gamers/day-z-console-modding-v2-5

https://vocal.media/gamers/day-z-console-modding-v2-6

https://vocal.media/gamers/day-z-console-modding-v2-7

https://vocal.media/gamers/day-z-console-modding-v2-8

Now then, although simply reading this article does help support me in my efforts to make coding Dayz XML easier for all. It doesn't help keep the lights on! ;) So if you found this or any of my other articles have helped you and you feel you can do so, please donate to the cause via the link below:

http://paypal.me/mrflyingbiscuits

how to
1

About the Creator

L.R

I mostly find myself here to release creative flair, but also like to pass on what knowledge I can, so the odd tutorial and/or guide worms it's way to the forefront of my mind along the way =)

Reader insights

Be the first to share your insights about this piece.

How does it work?

Add your insights

Comments (1)

Sign in to comment
  • Novel Allen5 months ago

    So I have no idea what you ae talking about, not being a gamer. But your article is well written, where are the gamers on Vocal? Wish I could vote more than once.

Find us on social media

Miscellaneous links

  • Explore
  • Contact
  • Privacy Policy
  • Terms of Use
  • Support

© 2024 Creatd, Inc. All Rights Reserved.