Getting Started with Eco Modding in Visual Studio

From Eco - English Wiki
Revision as of 19:06, 29 July 2025 by WugWugg (talk | contribs) (Seeing if I can show the full URL for trust reasons.)

Introduction

This guide covers how you could use Visual Studio 2022 as the development environment for your Eco mods — from creating your project to building, testing, and releasing a mod.

This guide won’t teach you how to code or write a mod, but it will help you get everything set up so you’re ready to start learning. There will be helpful resources for learning listed at the bottom of this guide.

Have Ready

  • A copy of the Eco game installed
  • A file explorer and the file-path to Eco folder
    • At the time of writing, within this folder there's folders like D3D12 and Eco_Data. Also, you'll find the Eco.exe file here. There are other files and folder here too, but this list is just to help you know what the folder looks like.

Note: Find Folder with Steam

Steam users can find the install folder by right-clicking on the game in your Steam Library:

Shows a Steam Library with a menu open over the Eco game. Highlighted in that menu is a "Manage" option, opening a sub-menu. The sub-menu has "Browse local files" highlighted.

Installing Visual Studio 2022

Visual Studio 2022 (VS2022) has a completely free to use version called the Community Edition. This guide is written assuming that's the version used.

Go to https://visualstudio.microsoft.com/downloads/#visual-studio-community-2022 and look for the "Visual Studio Community 2022" download. At the time of writing, the download button looked like:

A picture of a website showing a row. The first column has the name "Visual Studio Community 2022" and there's a "Download" button two columns to the right, past it's description text.

Start the download by clicking on the Download button.

Then, run the installer till this the installer gets to a "Workloads" page. On this page, select these workloads:

  • .NET desktop development option -- Required for any mod development
  • ASP.NET and web development -- Optional. If you want to interact with external websites or Eco's own web server (e.g. Discord's web-hooks or extending the API)

At the time of writing, this is what the Workloads page looks like with those options selected:

Workloads screen during VS2022 installation. Options selected are "ASP.NET and web development" and ".NET desktop development".

Click "Install" and let it complete your installation. By default, it should launch the application after it installs.

It will ask you to sign in. You do not need to and can completely avoid this by clicking the "Skip and add accounts later." option in tiny text below the buttons. However, if you plan to upload your mod to Github VS2022 does have integrated support for that. So consider signing in with GitHub to make that process easier.

This guide is continuing as if the "Skip and add accounts later." option was selected. Finally, it might ask what color theme you'd like. Select your preference and continue. That completes the installation!

The Mod

With Eco and VS2022 are installed all of the tools needed to code, build, and run a mod are ready!

Creating a New Project

When VS2022 first opens it will show you a dashboard where you can quickly select what you want to do. On the left, are any recent projects opened. There won't be any if this is the first time installing it. On the right there will be a few options, from here select the "Create a new project" option.

VS2022's launch dashboard showing recent projects on the left and quick action buttons on the right. Highlighted is a button titled "Create a new project".

Now, it's time to go through the new project wizard. First, the wizard asks what kind of project is being made. To mod Eco we need to make a C# class library.

To find the template, search "C# library" in the search bar. Select the C# option titled "Class Library". It's important to pay attention to the icon and chips below the title and description. Make sure you select the "C#" option.

location=center

Linking to Eco Assemblies

Structuring The Files

Building The DLL

Setting up Debugging

Releasing a Mod

Mod.io

Eco Forms

Where to Next?

  • Where to learn modding logic (Eco Modding Wiki, Discord, sample mods)
  • Consider source control (Git)
  • Explore Eco’s open-source mod projects for ideas