Editing Corn-on-the-cob example mod
From Eco - English Wiki
Your changes will be displayed to readers once an authorized user accepts them. (help)
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[https://drive.google.com/drive/u/1/folders/1coxU8BGCyjKS52eOphCIMWX7ULiCEgac End result after building Modkit] | [https://drive.google.com/drive/u/1/folders/1coxU8BGCyjKS52eOphCIMWX7ULiCEgac End result after building Modkit] | ||
[https://github.com/StrangeLoopGames/EcoModKit/tree/main Find the example files here] | |||
==='''Server'''=== | ==='''Server'''=== | ||
Create a class library project in the latest version of Visual Studio with .Net 6.0 as the target framework. Then right-click dependencies and add project reference, on it browse for the downloaded reference assemblies dlls.[[File:COTCmodguide ServerSetup.jpg|617x617px]] | Create a class library project in the latest version of Visual Studio with .Net 6.0 as the target framework. Then right-click dependencies and add project reference, on it browse for the downloaded reference assemblies dlls.[[File:COTCmodguide ServerSetup.jpg|617x617px]] | ||
Line 15: | Line 16: | ||
<code>using System.Collections.Generic;</code> | <code>using System.Collections.Generic;</code> | ||
<code>using System.Linq;</code> | <code>using System.Linq;</code> | ||
<code>using Eco.Core.Items;</code> | <code>using Eco.Core.Items;</code> | ||
Line 38: | Line 39: | ||
[[File:COTCmodguide ClassSetup 2.png|none|thumb|607x607px]] | [[File:COTCmodguide ClassSetup 2.png|none|thumb|607x607px]] | ||
==='''Client'''=== | ==='''Client'''=== | ||
First things first Import the modkit into your unity project | First things first Import the modkit into your unity project. | ||
[[File:COTCmodguide ClientSetup 1.png|none|thumb|455x455px]] | [[File:COTCmodguide ClientSetup 1.png|none|thumb|455x455px]] | ||
Import the assets you’re going to use. In this case, I’m importing the corn mesh divided into parts, the FPV hands necessary animations, and the corn Icon, I’m not importing the TPV hands animations to show how you can use animations already found within the game. Either way, you can create your own hand animations by using the .FBX hands model found in '''Assets/EcoModKit/Assets/Food/HandsModel/[/cdn-cgi/l/email-protection <nowiki>[email protected]</nowiki>]_Hands_Tpose.FBX''' in 3d animation software such as blender. | Import the assets you’re going to use. In this case, I’m importing the corn mesh divided into parts, the FPV hands necessary animations, and the corn Icon, I’m not importing the TPV hands animations to show how you can use animations already found within the game. Either way, you can create your own hand animations by using the .FBX hands model found in '''Assets/EcoModKit/Assets/Food/HandsModel/[/cdn-cgi/l/email-protection <nowiki>[email protected]</nowiki>]_Hands_Tpose.FBX''' in 3d animation software such as blender. | ||
Line 46: | Line 47: | ||
Finally, delete all the objects by default in the sample scene. | Finally, delete all the objects by default in the sample scene. | ||
---- | ---- | ||
=== | ===Base object setup=== | ||
We want to first build the base of our food object, from which we can use as the TPV version and then override it and create the FPV version. | We want to first build the base of our food object, from which we can use as the TPV version and then override it and create the FPV version. | ||
[[File:COTCmodguide ClassSetup 3.png|thumb]] | [[File:COTCmodguide ClassSetup 3.png|thumb]] |