Page 1 of 11 123 ... LastLast
Results 1 to 15 of 161

Thread: Bag drop mod

  1. #1
    Colony Founder Deccypher's Avatar
    Join Date
    Mar 2015
    Location
    Lurking
    Posts
    2,288
    Rep Power
    1

    Bag drop mod A14 compatible

    Bag Drop Mod A14.5

    Ever get sick of surviving a big 7 day horde and getting no loot because you couldn't get to the corpses? with this mod the zombies now drop a series of bags instead of being loot able net results are more loot because you didn't miss out on any, less group drops because your leaving fighting to go loot, faster waves because entities are gone quicker, less cpu usage because entities are gone quicker.

    Achieved this by adding new loot container blocks each connected. to the appropriate loot list of its zombie ( copied from the original zombie loot lists with the destroy on close = true so the world doesn't get littered with bags. they are the model of the roof top zombie so they still look like corpses kind of, they even squelch when looted!

    managed to find a cause of the null refs now tested on 4 servers and sp mode heres a preview video



    here it is

    Open for servers C:\Program Files (x86)\Steam\steamapps\common\7 Days to Die Dedicated Server\Data\Config\blocks.xml for sp/local C:\Program Files (x86)\Steam\steamapps\common\7 Days to Die\Data\Config\blocks.xml

    Find
    </blocks>
    before add
    Spoiler: 

    <block id="2000" name="cntcorpsenormzombie01">
    <property name="CustomIcon" value="cntCorpseLoot01" />
    <property name="Class" value="Loot" />
    <property name="Material" value="organic" />
    <property name="Shape" value="ModelEntity" />
    <property name="Mesh" value="models" />
    <property name="Model" value="Entities/LootContainers/corpse_loot01Prefab" param1="main_mesh" />
    <property name="Texture" value="241" />
    <property name="Collide" value="movement,melee,bullet,rocket" />
    <property name="LootList" value="15" />
    <drop event="Destroy" name="GoreBlock1Prefab" count="1"/>
    <drop event="Fall" name="GoreBlock1Prefab" count="1" prob="1" stick_chance="1" />
    </block>
    <block id="2001" name="cntcorpsefatzombiecop">
    <property name="CustomIcon" value="cntCorpseLoot01" />
    <property name="Class" value="Loot" />
    <property name="Material" value="organic" />
    <property name="Shape" value="ModelEntity" />
    <property name="Mesh" value="models" />
    <property name="Model" value="Entities/LootContainers/corpse_loot02Prefab" param1="main_mesh" />
    <property name="Texture" value="241" />
    <property name="Collide" value="movement,melee,bullet,rocket" />
    <property name="LootList" value="17" />
    <drop event="Destroy" name="GoreBlock1Prefab" count="1"/>
    <drop event="Fall" name="GoreBlock1Prefab" count="1" prob="1" stick_chance="1" />
    </block>

    <block id="2002" name="cntcorpsezombieNurse">
    <property name="CustomIcon" value="cntCorpseLoot01" />
    <property name="Class" value="Loot" />
    <property name="Material" value="organic" />
    <property name="Shape" value="ModelEntity" />
    <property name="Mesh" value="models" />
    <property name="Model" value="Entities/LootContainers/corpse_loot01Prefab" param1="main_mesh" />
    <property name="Texture" value="241" />
    <property name="Collide" value="movement,melee,bullet,rocket" />
    <property name="LootList" value="21" />
    <drop event="Destroy" name="GoreBlock1Prefab" count="1"/>
    <drop event="Fall" name="GoreBlock1Prefab" count="1" prob="1" stick_chance="1" />
    </block>

    <block id="2003" name="cntcorpsenormzombie02">
    <property name="CustomIcon" value="cntCorpseLoot01" />
    <property name="Class" value="Loot" />
    <property name="Material" value="organic" />
    <property name="Shape" value="ModelEntity" />
    <property name="Mesh" value="models" />
    <property name="Model" value="Entities/LootContainers/corpse_loot02Prefab" param1="main_mesh" />
    <property name="Texture" value="241" />
    <property name="Collide" value="movement,melee,bullet,rocket" />
    <property name="LootList" value="38" />
    <drop event="Destroy" name="GoreBlock1Prefab" count="1"/>
    <drop event="Fall" name="GoreBlock1Prefab" count="1" prob="1" stick_chance="1" />
    </block>

    <block id="2004" name="cntcorpsezombieferal">
    <property name="CustomIcon" value="cntCorpseLoot01" />
    <property name="Class" value="Loot" />
    <property name="Material" value="organic" />
    <property name="Shape" value="ModelEntity" />
    <property name="Mesh" value="models" />
    <property name="Model" value="Entities/LootContainers/corpse_loot01Prefab" param1="main_mesh" />
    <property name="Texture" value="241" />
    <property name="Collide" value="movement,melee,bullet,rocket" />
    <property name="LootList" value="61" />
    <drop event="Destroy" name="GoreBlock1Prefab" count="1"/>
    <drop event="Fall" name="GoreBlock1Prefab" count="1" prob="1" stick_chance="1" />
    </block>

    <block id="2005" name="cntcorpsesnowzombie">
    <property name="CustomIcon" value="cntCorpseLoot01" />
    <property name="Class" value="Loot" />
    <property name="Material" value="organic" />
    <property name="Shape" value="ModelEntity" />
    <property name="Mesh" value="models" />
    <property name="Model" value="Entities/LootContainers/corpse_loot02Prefab" param1="main_mesh" />
    <property name="Texture" value="241" />
    <property name="Collide" value="movement,melee,bullet,rocket" />
    <property name="LootList" value="66" />
    <drop event="Destroy" name="GoreBlock1Prefab" count="1"/>
    <drop event="Fall" name="GoreBlock1Prefab" count="1" prob="1" stick_chance="1" />
    </block>


    save and close.

    open for servers C:\Program Files (x86)\Steam\steamapps\common\7 Days to Die Dedicated Server\Data\Config\loot.xml for sp/local C:\Program Files (x86)\Steam\steamapps\common\7 Days to Die\Data\Config\loot.xml

    find each of the following
    <lootcontainer id="15" count="0,2" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="17" count="0,2" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="21" count="0,2" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="38" count="0,2" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="61" count="0,2" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="66" count="0,2" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    replace each of them with
    Spoiler: 

    <lootcontainer id="15" count="0,2" destroy_on_close="true" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="17" count="0,2" destroy_on_close="true" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="21" count="0,2" destroy_on_close="true" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="38" count="0,2" destroy_on_close="true" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="61" count="0,2" destroy_on_close="true" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">
    <lootcontainer id="66" count="0,2" destroy_on_close="true" size="4,4" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" loot_quality_template="baseTemplate">


    save and close


    replace the file located at for servers C:\Program Files (x86)\Steam\steamapps\common\7 Days to Die Dedicated Server\Data\Config\entityclasses.xml for sp/local C:\Program Files (x86)\Steam\steamapps\common\7 Days to Die\Data\Config\entityclasses.xml

    with attached entityclasses.xml (rename entityclasses.txt to entityclasses.xml and replace the file)
    Spoiler: 


    enjoy and please report any problems


    Also stallionsden Kindly ported the mod to SDX 6.0 https://7daystodie.com/forums/showth...-Mod-Meets-SDX so if familiar with the SDX 6.0 way of modding you can still enjoy this mod.

    ==================Recommended Options ( less optimized but better immersion)=============

    Options:
    1/:to allow ragdoll effect add 3 second delay

    after mod installed open entityclasses.xml
    on zombie01 find

    <property name="TimeStayAfterDeath" value="0.5" />
    replace with
    <property name="TimeStayAfterDeath" value="0.5" />
    save and close entityclasses.xml

    2/:enable gore on all bags
    after mod install open blocks.xml
    for each block id 2000,2001,2002,2003,2004 and 2005
    find
    </block>
    before add
    <property name="DowngradeBlock" value="GoreBlock1Prefab" />
    repeate for each block 2000,2001,2002,2003,2004 and 2005
    save and close.
    Last edited by Deccypher; 04-14-2016 at 09:37 PM. Reason: New version A14.5

  2. #2
    Leader
    Join Date
    Mar 2014
    Location
    Brisbane, Australia
    Posts
    5,306
    Rep Power
    1
    Oh awesome work Deccypher cant wait to get home to try this out

  3. #3
    Colony Founder Deccypher's Avatar
    Join Date
    Mar 2015
    Location
    Lurking
    Posts
    2,288
    Rep Power
    1

  4. #4
    Hunter Kevlar Axis's Avatar
    Join Date
    Apr 2015
    Posts
    124
    Rep Power
    0
    When you say comment out, do you mean leave it there but set it to not do anything, or to delete the lines altogether?

    *Edit* Nvm, I see you mean comment out as <!-- lines of code -->
    Last edited by Kevlar Axis; 02-21-2016 at 03:44 AM.

  5. #5
    Colony Founder Deccypher's Avatar
    Join Date
    Mar 2015
    Location
    Lurking
    Posts
    2,288
    Rep Power
    1
    Quote Originally Posted by Kevlar Axis View Post
    When you say comment out, do you mean leave it there but set it to not do anything, or to delete the lines altogether?
    you can delete it i normally comment them out incase i ever want to go back to vanillia

    to comment out add <!-- at the begining of the line and --> at the end of the line

  6. #6
    Hunter Kevlar Axis's Avatar
    Join Date
    Apr 2015
    Posts
    124
    Rep Power
    0
    I'm really glad that you did this, this compliments something that I just implemented in my game pretty well. Thank you.

  7. #7
    Leader
    Join Date
    Mar 2014
    Location
    Brisbane, Australia
    Posts
    5,306
    Rep Power
    1
    whats the attachment under - not everyone will like it but have seen this requested before, also big thanks to GUPPYCUR for pushing me yesterday to actually give this a try as you click on it and it goes to a page that says its been hidden or something lol

  8. #8
    Community Moderator SylenThunder's Avatar
    Join Date
    Oct 2014
    Location
    SE Michigan, out in the sticks.
    Posts
    6,941
    Rep Power
    1
    Does this have much of an impact on performance? My horde days are pretty intense, and we would end up with several hundred bags laying around the base.

  9. #9
    Inventor Henshaw's Avatar
    Join Date
    Jul 2014
    Location
    Outskirts of Old Mole, Navezgane.
    Posts
    844
    Rep Power
    1
    The attachment from Guppy gives an error message:

    "Invalid Attachment specified. If you followed a valid link, please notify the administrator"


    On the mod itself, great idea, will definitely give it a try.


    Edit: I was wondering, if it would be possible to use the zombie models as the world models for the containers, so you would be able to remove the zombie entity (also the corpses are entities, and count towards the max zombies) right at death, and put down the container instead. The container would of course be the same zombie as the one dropping it. You would need to make a separate container for each zombie variant though. This would probably affect the performance positively. If it even was possible to do in the first place.

    One way could be to change the TimeStayAfterDeath to 1 or 0.
    Last edited by Henshaw; 02-21-2016 at 02:20 PM. Reason: Reasons.

  10. #10
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    18,346
    Rep Power
    1
    The attachment issue is a forum issue; he put it in spoiler tags, but attachments don't work like that. So the one in the spoiler is supposed to be the one right below it.

    Also, the general idea was to quickly remove entities and allow blocks instead, to keep the performance in check AND leave loot for more than 30 seconds. I think Dec was going to test for performance, but I also think he said he ran a horde using this and it was fine. I'm no expert, but I think the only two block zombies are the ones that you find on rooftops, etc, so you wouldn't be able to use the same model as a block container (because it doesn't exist) with just an XML mod.

    I suspect that will all change when they include sleeper zombies, since they'll want it so that we don't know what's a corpse and what's a zombie, but we'll have to wait and see.

    I could be wrong, I oft am.
    Last edited by Guppycur; 02-21-2016 at 03:09 PM.

  11. #11
    Inventor Henshaw's Avatar
    Join Date
    Jul 2014
    Location
    Outskirts of Old Mole, Navezgane.
    Posts
    844
    Rep Power
    1
    Quote Originally Posted by Guppycur View Post
    The attachment issue is a forum issue; he put it in spoiler tags, but attachments don't work like that. So the one in the spoiler is supposed to be the one right below it.

    Also, the general idea was to quickly remove entities and allow blocks instead, to keep the performance in check AND leave loot for more than 30 seconds. I think Dec was going to test for performance, but I also think he said he ran a horde using this and it was fine. I'm no expert, but I think the only two block zombies are the ones that you find on rooftops, etc, so you wouldn't be able to use the same model as a block container (because it doesn't exist) with just an XML mod.

    I suspect that will all change when they include sleeper zombies, since they'll want it so that we don't know what's a corpse and what's a zombie, but we'll have to wait and see.

    I could be wrong, I oft am.
    I think you are right.

    As for the mod itself, it's a great idea, and removing the entities (zombies) and replacing them with blocks (containers) is probably a big improvement to game performance, depending on the situation. I would bet it helps everybody on a horde night. Provided the bodies disappear right away, of course.

  12. #12
    Colony Founder Deccypher's Avatar
    Join Date
    Mar 2015
    Location
    Lurking
    Posts
    2,288
    Rep Power
    1
    Quote Originally Posted by stallionsden View Post
    whats the attachment under - not everyone will like it but have seen this requested before, also big thanks to GUPPYCUR for pushing me yesterday to actually give this a try as you click on it and it goes to a page that says its been hidden or something lol
    re worded it a bit to make more sense and removed spoiler tags from the attachment

    - - - Updated - - -

    Quote Originally Posted by SylenThunder View Post
    Does this have much of an impact on performance? My horde days are pretty intense, and we would end up with several hundred bags laying around the base.
    most ive done is 100 an no preformance drops as the bags are blocks not entities its just like you placing 100 or so random blocks on the ground, so 0 preformance drop

  13. #13
    Colony Founder Deccypher's Avatar
    Join Date
    Mar 2015
    Location
    Lurking
    Posts
    2,288
    Rep Power
    1
    Quote Originally Posted by Henshaw View Post
    The attachment from Guppy gives an error message:

    "Invalid Attachment specified. If you followed a valid link, please notify the administrator"


    On the mod itself, great idea, will definitely give it a try.


    Edit: I was wondering, if it would be possible to use the zombie models as the world models for the containers, so you would be able to remove the zombie entity (also the corpses are entities, and count towards the max zombies) right at death, and put down the container instead. The container would of course be the same zombie as the one dropping it. You would need to make a separate container for each zombie variant though. This would probably affect the performance positively. If it even was possible to do in the first place.

    One way could be to change the TimeStayAfterDeath to 1 or 0.
    removed the spoiler tags so the atachment should work,

    you could do that, you would have to change zbag01 and split it up into many more as that lootlist is used by many of the zombies.

    you could change the timestayafterdeath to 1 or 0 but then you would miss out on the ragdoll and death animations

  14. #14
    Colony Founder Deccypher's Avatar
    Join Date
    Mar 2015
    Location
    Lurking
    Posts
    2,288
    Rep Power
    1
    Quote Originally Posted by Guppycur View Post
    The attachment issue is a forum issue; he put it in spoiler tags, but attachments don't work like that. So the one in the spoiler is supposed to be the one right below it.

    Also, the general idea was to quickly remove entities and allow blocks instead, to keep the performance in check AND leave loot for more than 30 seconds. I think Dec was going to test for performance, but I also think he said he ran a horde using this and it was fine. I'm no expert, but I think the only two block zombies are the ones that you find on rooftops, etc, so you wouldn't be able to use the same model as a block container (because it doesn't exist) with just an XML mod.

    I suspect that will all change when they include sleeper zombies, since they'll want it so that we don't know what's a corpse and what's a zombie, but we'll have to wait and see.

    I could be wrong, I oft am.
    thank guppy first file attachment didn't know it messed up if in spoiler tags fixed that,

    yes general idea was to improve performance, and make it so reward for killing them remained after 30 seconds

    tested upto 100 bags on the ground after a horde and a few extra spawns fps didnt drop ( there jus blocks so kinda knew it would be ok)

    you could use the meshes from the diffrent zombies, but you woulkd haveto play around with the rotation as when you just use the mesh it will be standing maybe if i get boorde of building my trench in bartertowne today ill give it a play. but you could easily use the rooftop zombie corpse as it rotated right already,

    if offical gore comes back or the sleepers get in it will require a tweak and ill update it. already tested it with gore as welll and its ok it just that your going to get gore 100% of the time, right not that causes too much of a performance drain so i left gore out on this one. as for sleepers i have not idea how there going to implement them so we will have to wait and see

  15. #15
    Inventor Henshaw's Avatar
    Join Date
    Jul 2014
    Location
    Outskirts of Old Mole, Navezgane.
    Posts
    844
    Rep Power
    1
    Quote Originally Posted by Deccypher View Post
    you could easily use the rooftop zombie corpse as it rotated right already,
    To me, this would be enough, and feel much more immersive than bags. Even the bags are fine though, as they remove the weird rush to loot in the middle of a fight (in every MMO I have played, looting in the middle of a fight leads to a kick from the group), which is one of the big immersion breakers at the moment.
    The decision by the pimps of keeping the bodies as entities is definitely a double-edged sword, as it allows the ragdolls and immersion because of the "realistic" corpse, but on the other hand they need to disappear into thin air. The gore blocks (the first skeleton bit the corpses turned into was fine) were in my opinion even worse. Maybe there would be a solution for the corpses to use less CPU-power, but at the moment your solution is the most perfect one, especially if you use a corpse (which ever it will be) instead of a bag. So thank for figuring this out and sharing it. :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •