Jump to content
pr9inichek

Tool for create new positions for spawn loot

Recommended Posts

I made this for my own purposes. What kind of format do you have the positions of the buildings saved?

Maybe I can build a Parser for that and add it to my Toolbox. You can find the current version in the Community Made Tools section. 

LBmaster

  • Like 1

Share this post


Link to post
Share on other sites
7 hours ago, lbmaster said:

I made this for my own purposes. What kind of format do you have the positions of the buildings saved?

Maybe I can build a Parser for that and add it to my Toolbox. You can find the current version in the Community Made Tools section. 

LBmaster

Need 3D Editor with possibility move, tilt, spin object, calculate her coords about buildings and save new coords in format for CLE.

Share this post


Link to post
Share on other sites

You can use the community offline Editor to Place the objects. My Parser then handles the exportet format and can convert it to the CLE format.

Share this post


Link to post
Share on other sites
21 hours ago, lbmaster said:

You can use the community offline Editor to Place the objects. My Parser then handles the exportet format and can convert it to the CLE format.

Big thx for info.

Now I know how to use Editor, but did you know that means range and height in mapGroupProto.xml?

It's need for CLE Editor?

Share this post


Link to post
Share on other sites

I think this is the "size" of the defined position. So if weapons are too big to spawn there, because they are too long and would clip through a wall, they can not spawn there. Not 100% sure, but would make sense. 

  • Like 1

Share this post


Link to post
Share on other sites

@pr9inichek Why don't you use Community Offline Mode Editor

https://github.com/Arkensor/DayZCommunityOfflineMode

It has the option to export the code in this syntax:

Object obj; 
obj = GetGame().CreateObject("Land_Container_1Mo", "2136.437500 6.034001 1534.474731");
obj.SetOrientation("0.000000 0.000000 -0.000000");
obj.SetPosition("2136.437500 6.034001 1534.474731");

Which you can just instantiate of mission load.

 

 

And for loot spawns the mapgrouppos.xml one line should look like this

<group name="Land_HouseBlock_1F3" pos="2135.05 10.0662 1545.49" rpy="0.000000 0.000000 0.257171" a="0" />

"group name" is the CLASSNAME of the building/object 

"pos" is the XZY coordinates of the building/object

"rpy" is the Roll,Pitch and Yall of the object i think.(might be in different order)

Share this post


Link to post
Share on other sites
22 hours ago, krcenov said:

@pr9inichek Why don't you use Community Offline Mode Editor

https://github.com/Arkensor/DayZCommunityOfflineMode

It has the option to export the code in this syntax:


Object obj; 
obj = GetGame().CreateObject("Land_Container_1Mo", "2136.437500 6.034001 1534.474731");
obj.SetOrientation("0.000000 0.000000 -0.000000");
obj.SetPosition("2136.437500 6.034001 1534.474731");

Which you can just instantiate of mission load.

 

 

And for loot spawns the mapgrouppos.xml one line should look like this

<group name="Land_HouseBlock_1F3" pos="2135.05 10.0662 1545.49" rpy="0.000000 0.000000 0.257171" a="0" />

"group name" is the CLASSNAME of the building/object 

"pos" is the XZY coordinates of the building/object

"rpy" is the Roll,Pitch and Yall of the object i think.(might be in different order)

Because i want to add new LOOT POSITION in building on the map.

This is mapGroupProto.xml

Share this post


Link to post
Share on other sites
5 hours ago, krcenov said:

So, you want to add a new loot location spawn in a building?

 

Yes

Share this post


Link to post
Share on other sites

DayZ Vanilla++ should be able to do what you want to do:

GitHub Link: https://github.com/Da0ne/DZMods

Steam Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=1567720365

Steam Mod discussion about that mod and loot spawning that may help you: https://steamcommunity.com/workshop/filedetails/discussion/1567720365/1744478429685466615/

 

Share this post


Link to post
Share on other sites
On 12/4/2018 at 10:09 PM, Salutesh said:

DayZ Vanilla++ should be able to do what you want to do:

GitHub Link: https://github.com/Da0ne/DZMods

Steam Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=1567720365

Steam Mod discussion about that mod and loot spawning that may help you: https://steamcommunity.com/workshop/filedetails/discussion/1567720365/1744478429685466615/

 

Thx for info

But in types.xml we can't change loot positions(coords)

Share this post


Link to post
Share on other sites
On 11/20/2018 at 10:51 AM, lbmaster said:

I think this is the "size" of the defined position. So if weapons are too big to spawn there, because they are too long and would clip through a wall, they can not spawn there. Not 100% sure, but would make sense. 

Something like this?

Spoiler

FNoNlkG.jpg

 

Share this post


Link to post
Share on other sites

I think need tool with which you could click on the building, then click on the button "Select all positions" or select only one or more subcategories.

After click on this button in selected building on all positions spawn items which we can move and save after changes.

Visually, the items in the positions should be visible the same way as when setting up the barrel/tent, that is, transparent.

mapGroupProto.xml need some improve for add point for each item.

Example:

<group name="Land_Garage_Big">
	<usage name="Industrial" />
  		<category name="clothes" />
  			<subcategory name="YellowGloves" />
  				<point pos="4.292608 -2.568088 13.710764" range="1.174561" height="2.000048" />
  				<point pos="-1.347758 -2.568088 -2.389275" range="1.199951" height="1.997532" />
  				<point pos="-5.131937 -2.568088 -1.933238" range="1.199951" height="1.981676" />
  			<subcategory name="BeigeGloves" />
  				<point pos="8.675704 -2.568088 4.205928" range="1.199951" height="2.005960" />
  				<point pos="2.010473 -2.568088 9.074028" range="1.199951" height="1.996803" />
  		<category name="vehiclesparts" />
  			...
  		<category name="containers" />
  			...
  		<category name="tools" />
  			...
</group>

 

Share this post


Link to post
Share on other sites

Letting loot spawn in custom placed objects, is much much much easier!!!

Just run a little script within your init.c and startup your server with it, and in between 1 or 2 minutes it creates a new mapgrouppos.xml

Replace that new mapgrouppos.xml with the older one (you will notice that the new mapgrouppos.xml file is bigger).

 

Check the link below on how to!

https://github.com/Arkensor/DayZCommunityOfflineMode/wiki/Enable-loot-for-custom-placed-objects

 

Cheers,

 

Mr. Groove

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×