• 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:
Moving the topic from an old thread to this new one. Eventually we will have a master thread discussing the entire process, from using tools like blender to create models, to using SDX 7 to import the models and other modifications into 7d2d.
Here are the links you will need to get started using Unity 5.3.8p2, which is the latest version that will work for this purpose.

Things you will need to follow along with the videos:

Unity 5.3.8p2 https://unity3d.com/unity/qa/patch-releases

The export C# script asset: https://github.com/7D2DSDX/SDXModding/raw/master/Scripts/Unity/ExportAssetBundles.zip

Now on to the videos.

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

I'm new to using Unity, so if you have detailed Unity questions, I probably can't answer them. There are a lot of great beginner videos out there that for those who want to do more than just get a new game object into 7d2d. We hope to have a more comprehensive tutorial guide available in the near future, but for now this should help you understand this portion of the process.


I am grateful for this work

 
Easy peasy thanks to Xyth. :)

3uk5nG2.jpg


 
The tutorial on using sdx 0.7.1 (being done by a tutorial team member, not me) will be available soon. Basicly you just run the sdx once, which add the "hooks" needed into the vanilla game code. Once that's done, just drop your new .unity3d file in the new resources folder that sdx makes for you, and then add a new block to your xml that uses the model. Full details and working examples are coming very soon.

 
The tutorial on using sdx 0.7.1 (being done by a tutorial team member, not me) will be available soon. Basicly you just run the sdx once, which add the "hooks" needed into the vanilla game code. Once that's done, just drop your new .unity3d file in the new resources folder that sdx makes for you, and then add a new block to your xml that uses the model. Full details and working examples are coming very soon.

ok, thank you!

 
Yeh now is the time to brush up on blender; straightforward block shapes are easy in unity and will be fully fleshed out in the upcoming tutorials... You will find that you can make new blocks in mere minutes. I'm super excited about what these guys are doing.

 
Thank You for this tutorial - soon, i need it !


I'm in need of the tutorial as well. After reading "Easy peasy" I'm gonna chew on some tums until it's done :smile-new:

 
Last edited by a moderator:
nope, no part with this

xml is like this

...........................

<block id="2045" name="AmmonationBench">

<property name="Class" value="Workstation" />

<property name="Material" value="metal" />

<property name="MaxDamage" value="800" />

<property name="StabilitySupport" value="false" />

<property name="Model" value="#AmmonationBench?AmmonationBenchPrefab" />

<property name="MultiBlockDim" value="2,1,1" />

<property name="ImposterDontBlock" value="true" />

<property name="Place" value="TowardsPlacerInverted" />

<property name="OnlySimpleRotations" value="true" />

<property name="IsTerrainDecoration" value="true" />

<property name="HeatMapStrength" value="0.5" />

<property name="HeatMapTime" value="1200" />

<property name="HeatMapFrequency" value="25" />

<!--<property name="RecipeList" value="backpack, workbench"/>-->

<!--<property name="CraftTimeMultiplier" value="0.5,1"/>-->

<property name="Stacknumber" value="1" />

<property class="Workstation">

<property name="Modules" value="output" />

<property name="CraftingAreaRecipes" value="AmmonationBench" />

</property>

<property class="RepairItems">

<property name="forgedIron" value="25" />

<property name="mechanicalParts" value="20" />

<property name="wood" value="50" />

</property>

<drop event="Harvest" name="scrapIron" count="200" tool_category="harvestingTools" />

<drop event="Harvest" name="wood" count="20" tool_category="harvestingTools" />

<drop event="Harvest" name="forgedIron" count="10" tool_category="Disassemble" />

<drop event="Harvest" name="mechanicalParts" count="8" tool_category="Disassemble" />

<drop event="Harvest" name="wood" count="20" tool_category="Disassemble" />

<drop event="Destroy" count="0" />

<drop event="Fall" name="woodDebris" count="1" prob="0.75" stick_chance="1" />

<property name="TakeDelay" value="15" />

<property name="DescriptionKey" value="AmmoBenchDesc" />

<property name="EconomicValue" value="776" />

<property name="RequiredPower" value="20" />

<property name="Group" value="Building,Science" />

</block>

...........................

 
The error says the problem is in block id 700. Thats not used in vanilla so you must have a modded block there. Could you post your code for block #700?

 
Back
Top