DayZ
DayZOresAndGems
 This topic has been pinned, so it's probably important
fragility  [developer] Sep 22, 2020 @ 1:08pm
SPAWN COORD CREATION
To create a custom/better experience for your server, you can create your own spawn coords for ore veins. We will provide 3 different methods for you to do this - maybe you find other solutions ;)

______________________________________________________


1. Using an online map (not very accurate)

You can open an online map like izurvive.com and figure out coords. You then need to add them manually to cfgeventspawns.xml like:

<pos x="4372" z="8356" a="0" />

-----

2. Using an ingame admin tool

Use an admin tool like Community-Online-Tools or VPP and go where ever you want to create a spawn point - then read out your player position via the admin tool. You then also need to add them manually to cfgeventspawns.xml like in the first example.

-----

3. Using Community Offline Mode (COM) or DayZ Editor

Community Offline Mode GitHub[github.com]
DayZ Editor

3.1 Placeholder items

You place the ores or some other items on every location where you want to have a spawn point -> then you export all those coords. You should get something like this:

SpawnObject( "SulfurOre", "8155.150879 29.173599 1326.638672", "14.999999 0.000000 0.000000" ); SpawnObject( "SulfurOre", "8154.051270 29.320499 1322.537842", "104.999496 0.000000 0.000000" ); SpawnObject( "SulfurOre", "8151.589844 28.650005 1327.020630", "171.022995 1.704550 0.816209" ); SpawnObject( "SulfurOre", "8154.049805 28.690800 1328.449951", "1.000000 0.000000 0.000000" ); SpawnObject( "SulfurOre", "8151.700195 29.152901 1328.690308", "6.000009 0.000000 0.000000" ); SpawnObject( "SulfurOre", "8156.136719 29.066700 1323.148193", "-84.999977 0.000000 0.000000" ); SpawnObject( "SulfurOre", "8155.220215 29.015301 1325.619995", "17.000000 0.000000 0.000000" ); SpawnObject( "SulfurOre", "8196.900391 19.852800 1305.939941", "-42.000000 0.000000 0.000000" ); SpawnObject( "SulfurOre", "8196.679688 20.932199 1296.900024", "105.000000 0.000000 0.000000" );


3.2 Converting into the correct format
  1. You copy the "spawnobject list" into a new file and open it with Notepad++ (or something similar).
  2. Then you press CTRL+H to open Search+Replace.
  3. You insert the following line into the "search for" input field:
    SpawnObject\(\s*".*", "(.*) (.*) (.*)", "(.*) .* .*"\s*\);
  4. You insert the following line into the "replace with" input field:
    <pos x="$1" y="$2" z="$3" a="$4" />
  5. You switch the search mode to "regular expressions".
  6. You press "replace all".

Everything should be converted now.
Last edited by fragility; Oct 30, 2020 @ 5:08am