• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Creating and Exporting Models from Unity for use in 7D2D

Updating for A21

Here are the links you will need to get started modding A21 using Unity. You must use Unity 2021.3 to create new assets for A21.  

Things you will need to follow along with the videos (note that the video talks about old version of unity but it is the same process).  

Step 1:  Download the Unity Hub and Unity 2021.3.19f1:  https://unity3d.com/get-unity/download/archive

then Install it.

Step 2:  Download my Unity 2021.3 template projecthttps://drive.google.com/file/d/1yPQ2yOj1Oe7pOml3ytfZcNggWWTAD4gq/view?usp=sharing then unpack it, saving it to a location you will remember.  

Step 3:  Open unity Hub, and click the ADD button, locate my project template, and select that folder. 

You now have a properly configured modding platform.  The project includes the TFP tagmanager, Linear lighting configuration, and the export script needed to export your new things as .unity3d bundles.  

Step 4:  Go watch the tutorial videos.

https://www.youtube.com/user/xythq/playlists?shelf_id=0&view=1&sort=dd

Step 5:   Make something cool, and have fun doing it! 

 
Last edited by a moderator:
hello,May I ask a question?

I am now trying to add a clothing using a 3D model I made myself.However, the appearance does not reflect the 3D model.The 3D model is correctly reflected for the handheld and dropped states.No error is shown in the console window.

I would like to know if there is any information on how to solve this problem or how to add armor or clothing using 3D models.

Thank you for your cooperation.

 
Modded weapons are falling through the terrain. I created a mod for some weapons from the asset store in unity. The mod is complete and I am able to find them in the creative menu, I am able to hold them and fight with them. Everything looks good, except when i drop them they just fall through the terrain. My first guess was something wrong with the box collider, but have made changes with no changes in the game. My next guess is I am using the wrong tag "T_Mesh_B". I am honestly clueless about the tags though so I have no guess what to change it to. Any help would be appreciated.

 
Last edited by a moderator:
Weapons do not have colliders (didnt in A18, perhaps that changed?) and are not tagged in Unity.  

 
Modded weapons are falling through the terrain. I created a mod for some weapons from the asset store in unity. The mod is complete and I am able to find them in the creative menu, I am able to hold them and fight with them. Everything looks good, except when i drop them they just fall through the terrain. My first guess was something wrong with the box collider, but have made changes with no changes in the game. My next guess is I am using the wrong tag "T_Mesh_B". I am honestly clueless about the tags though so I have no guess what to change it to. Any help would be appreciated.
If I may suggest a quick temporary fix:

In items.xml, try to put this line

<property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>


below your Meshfile property inside the weapon code.

 
I figured it out thanks to xyth on the 7dtd discord channel. Items don't use tags or colliders and I think that was causing the weapons to ghost through the world when dropped. Thanks again xyth. But that's good to know if I am having similar issues. Thanks mr.devolver.

 
Last edited by a moderator:
I figured it out thanks to xyth on the 7dtd discord channel. Items don't use tags or colliders and I think that was causing the weapons to ghost through the world when dropped. Thanks again xyth. But that's is good to know if I am having similar issues. Thanks mr.devolver.
No problem. Now that you figured it out, you should make some video tutorials for the rest of us to learn from. :p

 
I can try to make a video, no promises. It's all dependent on time. I am also not good at it. more of just looking at how the xml files are configured and changing them to what I want. The unity videos xyth did a few years ago are still very relevant to now also. But I can try to put a video together of how to make a weapon from a unity asset and adding it into the game.

 
I can try to make a video, no promises. It's all dependent on time. I am also not good at it. more of just looking at how the xml files are configured and changing them to what I want. The unity videos xyth did a few years ago are still very relevant to now also. But I can try to put a video together of how to make a weapon from a unity asset and adding it into the game.
Cool! The more stuff we can learn from, the better, so I'm looking forward to your tutorial!  :) By doing so, you will kill two birds with one stone. You will test your own skills, possibly learn, figure out something new in the process and you will also help others to learn something they didn't know. Maybe in your tutorial, you will give people the last piece of information they need to create a new awesome mod everyone always wanted to make and play, but couldn't create because they didn't know how! ;)

 
I have a modular weapon and tool mod that uses item modifiers to swap out parts like heads, blades, grips, etc. I found that I have to add a box collider to the base item around where the blade will be for hits to register, and make sure that the item modifiers do not have colliders. Ymmv, but I have tested this extensively. 

Just picture an axe handle with no head but a box collider around the end. The various axeheads are cosmetic and add dmg in the xml.

 
That's interesting.  It wasn't needed before but perhaps its needed now for the dynamic melee system to determine glancing blows.  The issue before was if a large weapon had a collider and it was in hand and you tried to climb up a ladder, you often got blocked from climbing.

 
Last edited by a moderator:
hi xyth im trying making a mod but, wanna ask, how to fix this ?

CX.png


im try to follow your video. but in your video i dont see that (yellow square). how to fix that ? thanks for your answer. 

 
Hello, I'm very confused on how to create custom zombies and import them into 7d2d. I'm very familiar with importing assets and such from unity and have all of that set up already. I tried importing a zombie, the same one used in xyths' tutorial, into 7d2d with a walk animation... i ended up referring to the zombie male master and thought it would pull the animations that were needed from that, but when i spawned the zombie i got the classic "Object reference not set to an instance of an object" and nothing more. This is where i have been for quite a few hours. If you know of a good tutorial that goes through the steps of importing and setting up a zombie for 7d2d, that would be much appriciated. Thank you

 
I did end up seeing this, however i dont think that it applies to the newest version of 7d2d. I followed step by step and everything went smooth. However when it came to testing in game, if i hit the zombie with melee attacks, it would stutter the animation and not transition to the next one. This would make the zombie un-damageable  and i would have to do killall. I found an irregularity with the zombie controller, where there is a tab in the newest version for forced animations when the zombie is hit. The older one doesn't have this. If you know a work around, or more likely if im doing something wrong, Please advise. Thank you!

 
Back
Top