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

How to create a MSVS solution to start writing C# code for a new block?

MXXIV

Refugee
So I've read all the tutorials I could find. I have read the guide to DMT, I have seen the videos about using Unity. I never used unity before, but after some struggle I have my new block ready, with crafting recipes and everything. It looks like this, it's supposed to be electricity distribution box.

20200310001925_1.jpg

So now I am imagining that I should create some C# project, somehow import metadata from the base game and implement some IBlock and IElectricThing. I have no idea where to start.

Last game I modded like this was RimWorld about 5 yrs ago and back then the game author provided the debug symbols, so I didn't have to figure anything out, just start coding.

Can someone please advise?

 
Maybe it would be better to elaborate on what exactly you're trying to achieve with this block, what exactly it should do and how exactly it would be used in game. Perhaps what you're trying to achieve here doesn't require extra C# code.

 
Currently the purpose of this block is to learn to make mods in 7 days to die. That's what I'm trying to achieve.

That being said the actual plan for this block is:

  • Is powered - can have both input and output wire
  • Provides additional power, much like battery bank
  • Can siphon power from adjacent blocks of the same type
This allows merging of power trees, if it works.

 
Back
Top