Ludeon Forums

RimWorld => Mods => Help => Topic started by: Haplo on May 01, 2014, 03:42:18 PM

Title: [Tutorial] [1.0] How to make a .dll-mod (Power Generation)
Post by: Haplo on May 01, 2014, 03:42:18 PM
How to make an .dll-mod


Description
This is a small demonstration about how you can make a mod that's using an assembly (.dll).
With this little project you learn about the assembly and it's program. Additionally you'll build your own small dark matter generator and an animated wind turbine. :)
Note, that this is Windows only, as I have no experience with Linux or Mac. Sorry..


Needed Tools
You need the following tools:
- Microsoft Visual Studio 2017 Community Edition (free, download here (https://www.visualstudio.com/products/visual-studio-community-vs))
- A basic understanding of C#
- RimWorld


Download
Download the project from Git-Hub (https://github.com/HaploX1/ExampleDllMod).


Preparations
Before you start the project, you need to make the following preparations:
-Extract the file to a folder of your choice
-Go into your RimWorld-Folder:
    - Copy ..\RimWorld000Win\RimWorld000Win_Data\Managed\Assembly-CSharp.dll
      to ..\YourProjectFolder\RimWorld_ExampleProjectDLL\Source-DLLs\
    - Copy ..\RimWorld000Win\RimWorld000Win_Data\Managed\UnityEngine.dll
      to ..\YourProjectFolder\RimWorld_ExampleProjectDLL\Source-DLLs\


Enter The Project
Now that you've prepared everything, it is time to enter the project and take a look into what makes the pump do, what it does and where the problem is..
So open the project by starting <YourExtractionFolder>\RimWorld_ExampleProjectDLL.sln
If everything is installed correctly, Visual Studio should startup, opening your project.
Everything else is described inside.
And once you're finished, you have created your very own dark matter generator and maybe an animated wind turbine.

With this in mind.. Have fun exploring the secrets of the RimWorld code.  8)
See you on the other side,
Haplo
Title: Re: [Example] How to make an .dll-mod (and repair the fertilizer pump)
Post by: Cala13er on May 01, 2014, 03:44:58 PM
I think Tynan wants stuff like this on the wiki.
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Haplo on May 01, 2014, 03:49:28 PM
Yes I know, I've spoken with him.
My only problem is, that I have no experience with wikis, so the link there will take a while until I figured it out :)
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Tynan on May 01, 2014, 03:51:48 PM
Based on the other stuff you're able to do I think figuring out the wiki should take you all of 90 seconds :)
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Cala13er on May 01, 2014, 03:54:18 PM
Haplo, I'll create it for you if you wish?
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Haplo on May 01, 2014, 04:06:31 PM
Thank you for the offer, but I need to figure it out myself sometime. So why not yet ;)
First things first.. where to create a new page.. hmm..
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: keensta on May 01, 2014, 05:22:58 PM
Shouldn't something like this and any tutorials be in the help section and maybe a sub folder in the help section for any tutorials.

On the other hand nice tutorial.
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: pawnstorm on May 01, 2014, 05:30:19 PM
You're much better at commenting your code than me :P. Anyway, nicely done! I hope it'll spawn a lot of new modders! Something about giving a man a fish and teaching him how to fish.
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Vas on May 01, 2014, 05:33:04 PM
Shouldn't this be in the help section and not the released mods section? :P
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Tynan on May 01, 2014, 05:52:40 PM
Shouldn't this be in the help section and not the released mods section? :P

Moved to help.
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Haplo on May 01, 2014, 05:56:01 PM
I'm not really sure it fits into the help thread, as I've always seen this as a call-for-help thread and not a tutorial thread.
And as it repairs the fertilizer pump (indirectly the user has to do it himself and learns some basics about coding, even if it wasn't his intention, ;) ) I thought it would be good to place it in the release section.
Maybe a tutorial section would be a good place, but as it isn't there right now, I thought about motivating some users who normally don't do this, to try it out by placing it in the release thread..

But that is just my oppinion :)
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Tynan on May 01, 2014, 06:09:49 PM
Isn't there another mod that fixes the fertilizer pump already? I see this as more of a contribution to learning modding, not as a released mod for the game. Does that work?
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: harpo99999 on May 01, 2014, 06:15:18 PM
tynan, I have tried the so-called fertiliser pump fix mod, BUT it did not make any changes to the gameplay after using it and the pump still does NOT improve the ground, so I just do NOT use the fertiliser pump any more
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Haplo on May 01, 2014, 06:20:13 PM
I think the other mod was broken a short time after it's release too. Don't know if it was fixed. Didn't really looked out for it.
If you want to have it in the helps section, that's fine with me. But I've honestly always thought of this section as a place to look into, if I have a specific problem and want some help with it.
I'd like it to be in a tutorial folder, but don't know where such could be placed. So, if you think it's best to place it here, I have no problem with it.
Just wanted to let you know, why I selected the release in the first place and not the help topic.
 
Title: Re: [Example] (Alpha 3) How to make an .dll-mod (and repair the fertilizer pump)
Post by: Vas on May 01, 2014, 06:23:28 PM
My fertilizer appears to work, and I didn't use any mods to fix it.  I didn't know anything was broken about it.
Title: Re: [Example] (Alpha 5) How to make an .dll-mod (Dark Matter Generator)
Post by: Haplo on July 08, 2014, 04:47:02 PM
So, I've updated this to alpha 5.
Now you don't repair the fertilizer pump, but build your own dark matter generator :)
Title: Re: [Tutorial] (Alpha 6) How to make an .dll-mod (Dark Matter Generator)
Post by: Dr. Z on September 13, 2014, 10:51:20 AM
Download link is no longer working.

You can use this link (http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop), but you have to create an account, maybe someone knows a link where no account is required.
Title: Re: [Tutorial] (Alpha 6) How to make an .dll-mod (Dark Matter Generator)
Post by: Haplo on September 13, 2014, 02:45:08 PM
Hmm.. I'll look into it as soon as I'm back at my PC. Don't know why it doesn't work anymore, but I'll find out.

Oh you meant the download from microsoft.
The account was also needed for the original link. Microsoft doesn't like to give it's goods without an account (but that is free).
I'll update the startpost with your link.
Thank you for finding it :)
Title: Re: [Tutorial] (Alpha 6) How to make an .dll-mod (Dark Matter Generator)
Post by: Dr. Z on September 14, 2014, 04:42:02 AM
No Problem.
Title: Re: [Tutorial] (Alpha 7) How to make a .dll-mod (Power Generation)
Post by: Noobshock on October 21, 2014, 09:03:06 AM
Just a heads up if anyone else runs into that issue, I'm running win7 64 and this visual studio installer kept failing because it was somehow creating a read-only "package cache" folder to install into. First things suggested if it fails were antivirus, running as admin etc etc (which I did to no avail). So yeah if you get stuck, check your folder settings. Haven't had an installer troll me like that in a while.
Title: Re: [Tutorial] (Alpha 7) How to make a .dll-mod (Power Generation)
Post by: ToXeye on November 10, 2014, 08:06:01 AM
What happened to the wiki? : - S
Title: Re: [Tutorial] (Alpha 7) How to make a .dll-mod (Power Generation)
Post by: Haplo on November 10, 2014, 03:09:44 PM
Don't know.. What happend to the wiki (http://rimworldwiki.com/wiki/Modding_Tutorials/Assembly_Modding_Example)?
Title: Re: [Tutorial] (Alpha 7) How to make a .dll-mod (Power Generation)
Post by: ToXeye on November 10, 2014, 05:54:01 PM
You still need to make a front page for modding so that it doesn't link to http://rimworldwiki.com/wiki/Modding (http://rimworldwiki.com/wiki/Modding)

Sorry, I wasn't paying attention. There's links for that. It's just that I read the whole page at once, missing links and stuff that is in the text. It begins with "this is what you can do" listing changing .dll's, but no link to any .dll page. The thing is that I often like to read all of the first page before delving into further pages, making me miss the links at the top.
Title: Re: [Tutorial] (Alpha 7) How to make a .dll-mod (Power Generation)
Post by: ToXeye on November 11, 2014, 05:03:06 AM
*edit* I fixed it. It now has links at the bottom.

(I admit that I saw the tutorials page first, but forgot about it.)
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: keylocke on December 11, 2014, 10:47:49 PM
um, is there an alternative software i could use instead of Microsoft Visual Studio 2013 Express?

something that doesn't eat up like 6gigs just to read/compile code?  ???

nvm : will try checking out sharp develop (http://www.icsharpcode.net/OpenSource/SD/Download/). (hope it works)  ;D
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Haplo on December 12, 2014, 01:23:12 AM
I'm not sure, but I think some do use the mono development tools? http://www.monodevelop.com
Maybe someone who's using something not VS can suggest something?
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: StorymasterQ on December 12, 2014, 01:58:33 AM
Who'd want to develop Mono?

Oh, you mean the software? Not the... Okay, then.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Lord Fappington on December 22, 2014, 05:39:00 PM
Eclipse SDE or Netbeans

Who'd want to develop Mono?

Oh, you mean the software? Not the... Okay, then.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Nirahiel on January 08, 2015, 02:22:36 AM
I'm wondering, is Rimworld on mac osx properly loading DLL based mods ?
If so, what is this black magic ?
And then, is there a way to create those DLLs from mac ?

Thanks :)
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Igabod on January 15, 2015, 03:54:08 AM
Does anybody have any suggestions for an alternative to Visual Studios? You can only get a 90 day trial without creating a user account just to download a non-trial version. And it took me quite a while to figure out that I didn't have to buy anything, just need to create an account to gain access to the download button for the free version. I have absolutely no desire to create an account with microsoft just to download something.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: skullywag on January 15, 2015, 04:09:21 AM
Not free but kicks VS ass. Webstorm by jetbrains. All their stuff rocks hard.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Igabod on January 15, 2015, 01:40:33 PM
I don't make any money off of modding so I can't justify spending any money on a tool for modding. But I did happen to find an alternative that looks nice so far. I've only looked at a few files and not tried to actually do anything with it yet so I don't have a full opinion of it. But I'll put the info out there and let the experienced people decide if it deserves to be mentioned in the OP as an alternative or not. It's called SharpDevelop and the downloads page for it is located at http://www.icsharpcode.net/OpenSource/SD/Download/ (http://www.icsharpcode.net/OpenSource/SD/Download/) I didn't need to sign up for anything to download it and it's free open-source software. And the UI is very similar to VS.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: mrofa on January 21, 2015, 03:12:03 AM
Its have less tools than VS, but it can be lunched on many platforms so its preety cool in that way. But the pain is that it dont read  VS projects correctly, thrugh i might have miss something, that allows to do it
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Igabod on January 21, 2015, 01:46:37 PM
Its have less tools than VS, but it can be lunched on many platforms so its preety cool in that way. But the pain is that it dont read  VS projects correctly, thrugh i might have miss something, that allows to do it

I opened up a VS project immediately after downloading it and had no problems. Didn't have to make any changes or anything. But when I installed it I clicked the box for all of the file associations to be installed as well.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Satir on February 16, 2015, 05:02:53 PM
Good afternoon. I have downloaded and opened the project. Please tell me how to override the logic of the animals or pirates, how to write their decision-making systems, like a simple AI. Necessary skills I have.
Thank you for your game.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Haplo on February 17, 2015, 12:21:32 AM
Take a look at the ThinkTreeDefs. That is where the logic of the ai can be found.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: KnucklyDuck on February 28, 2015, 08:12:31 PM
Is this still A9 compatible?
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Haplo on March 01, 2015, 03:43:20 AM
Not yet. I had problems with my other mods so didn't have time for it yet.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Timber on March 01, 2015, 08:23:55 AM
Would be stellar to have a new modding tutorial for A9, maybe with some highlights of the new temperature system so old modders could catch up on the changes quickly.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: Igabod on March 01, 2015, 02:57:23 PM
Would be stellar to have a new modding tutorial for A9, maybe with some highlights of the new temperature system so old modders could catch up on the changes quickly.

I've recently been thinking of doing a quick modding tutorial video. I'm just going to be using a free screen capture program to record how to make a simple mod (in this case I'll just be showing how to make 2 of the lamps in my Advanced Lamps mod) that will show new modders how easy it is to make a mod. I'm hoping that I can talk some of the other modders into joining in on making short video tutorials on the various aspects which they are most familiar with in modding. If all of us with a little experience made a quick 10 minute video then we could have a pretty comprehensive tutorial system set up with very little work overall for each of us.
Title: Re: [Tutorial] (Alpha 8) How to make a .dll-mod (Power Generation)
Post by: KnucklyDuck on March 02, 2015, 04:27:43 AM
I'm working on learning as much as I can about all this, but I'd be more than willing to help with those tutorials and videos and such.
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: Timber on March 22, 2015, 11:01:57 AM
So, the thread name says Alpha 9. Is it really A9 compatible?
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: Haplo on March 22, 2015, 04:21:42 PM
Yes, I've updated it to alpha 9 or else it would still have alpha 8 in it's name :)
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: comfix on April 19, 2015, 03:00:25 PM
Hi there,
I tried to start coding in the new Alpha10c and used the code sample that is linked here.
There is an issue: the IntRot-variable throws an error "it is not in the context".
Also I'd changed the "powerComp.powerOutput" to "powerComp.powerOutputInt" so it fixed another error.

I hope you can help me with this issue.
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: skullywag on April 19, 2015, 03:04:34 PM
IntRot is now Rot4
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: comfix on April 19, 2015, 03:20:50 PM
Yeah thats right. But i dont know how to fix this....
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: skullywag on April 19, 2015, 03:22:43 PM
Post your code in the mod help forum, someone will help you out, we cant do much with no code to look at.
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: Haplo on April 20, 2015, 01:37:23 PM
Yes sorry, I'm a bit behind my schedule and this is a bit down my todo list.
Hopefully I get it updated until the end of the week.
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: Dave-In-Texas on April 29, 2015, 12:28:07 AM
I downloaded vs express as recommended (hey free is cool!)
and ran across this newer more featured and totally free version..
so far it has been a pleasure to use (I used VS years ago to code vb/vc and its definitely better than what i remember)

https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx (https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx)
Title: Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
Post by: RickyMartini on May 03, 2015, 06:22:33 PM
Any chance of doing this on OS X Yosemite? :(
Title: Re: [Tutorial] (Alpha 12) How to make a .dll-mod (Power Generation)
Post by: milon on October 26, 2015, 06:38:57 AM
Skissor, I'm assuming you haven't found an answer or you would have posted it. What about MonoDevelop? It's cross-platform.

http://www.monodevelop.com/
Title: Re: [Tutorial] (Alpha 12) How to make a .dll-mod (Power Generation)
Post by: RickyMartini on November 11, 2015, 11:13:45 AM
Skissor, I'm assuming you haven't found an answer or you would have posted it. What about MonoDevelop? It's cross-platform.

http://www.monodevelop.com/

Thanks for the answer and no I havent found a solution, I'll try your link. :)
Title: Re: [Tutorial] (Alpha 13) How to make a .dll-mod (Power Generation)
Post by: hoochy on April 18, 2016, 11:53:29 PM
Thanks for this source code, very handy to see some simple examples. The biggest thing I find missing is just the overview of modding. Would be nice if there was some "guide" that tells you what sort of mods need what kind of modifications. However I know this is a lot of effort and is constantly changing. I feel like if there was just a basic overview guide it would increase new modders productivity greatly!
Title: Re: [Tutorial] (Alpha 13) How to make a .dll-mod (Power Generation)
Post by: Mithrawndo on April 26, 2016, 05:04:21 PM
Thank you for putting up this tutorial, the contents seem very useful!

I have a small problem though: The includes (using) are showing with a red line under them, despite the dll files being copied across from the Rimworld folder as per the instructions.

This image (http://i.imgur.com/Kdj5sdo.png) shows what I mean, and thanks in advance for any help!
Title: Re: [Tutorial] (Alpha 13) How to make a .dll-mod (Power Generation)
Post by: Entrio on May 03, 2016, 07:54:01 AM
hi all,
love the game, decided to give modding a go.
So I've compiled my first dll:

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using Verse;
using RimWorld;
using RimWorld.Planet;

namespace Panoptes
{
    public class SomethingAwesome : Pawn
    {
        public SomethingAwesome() : base()
        {
            Debug.Log("this is fine wine here!");
        }
        public override void Tick()
        {
            base.Tick();
            Debug.Log("this is fine wine here!");
        }
    }
}


But when i launch the game and enable dev mode, I can't see the messages in the debug log.

location of my dll is D:\Work\OneDrive\games\RimWorld\Mods\Panoptes\Panoptes.dll


Am i placing the dll in correct location?

Thank you in advance

EDIT:
After reading the WIKI i have changed my structure as mentioned on here http://rimworldwiki.com/wiki/Modding_Tutorials/Mod_folder_structure
still no luck

EDIT2:
NVM, got everything sorted, the dll is now loading correctly
Title: Re: [Tutorial] (Alpha 13) How to make a .dll-mod (Power Generation)
Post by: Haplo on May 03, 2016, 01:49:58 PM
Try Log.Error(...)  or Log.Warning(...) instead.
Title: Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
Post by: MrGrigsby on October 18, 2016, 09:48:41 PM
Hey all, wanted to jump into this tutorial (thanks for making it by the way), but it is telling me that I need the .Net 3.5 framework. I have 4.5 and was wondering if I can go ahead with the tutorial without downloading the 3.5 framework. Thanks!
Title: Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
Post by: Silerra on October 19, 2016, 04:12:23 PM
I thing you only need to set the "target framework" on .Net Framework 3.5.
You can find this option in your project properties.

On my computer is following frameworks installed:
Microsoft .NET Framework 4.5 SDK
Microsoft .NET Framework 4.5 Multi-Targeting Pack
And this works for me. But I'm beginner in Rimworld-Modding, too. So I'm not sure if the error could be somewhere else.
Title: Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
Post by: MrGrigsby on October 22, 2016, 08:14:03 PM
It looks like I am getting an error on startup that I do not understand how to clear. The debugger at start up is telling me I do not have the right version number, but everything in the files is the correct version, 0.15.1284.

Also, it looks like all the code is ready to go for the mod itself and I do not need to modify anything. If this is wrong, then can someone tell me what I need to be fixing.
Title: Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
Post by: Haplo on October 24, 2016, 12:38:11 AM
Can you post a detailed description or a Screenshot of the error?
Is it that the debugger (visual studio) tells you that the source files are of another version?
In this case:I've used Visual Studio Community edition 2015.newer versions may need a one time upgrade of the project. Just say yes when he asks you. I'm not sure how other debuggers work though..
If it's a file inside the project that is found to be out of date then I really need a Screenshot to see what problem you have..
Title: Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
Post by: Thundercraft on December 06, 2016, 08:19:38 AM
Getting Visual Studio Community (https://www.visualstudio.com/vs/community/) installed can be a bit intimidating as there are a heck of a lot of options in the install menu. Seriously, it would help if we were told which install options we must use and which we don't need. That really should be explained in the OP.  :-\ (Also, I want to mention that the download link in the OP and on the project's GitHub page are both broken.)

Further, installing with multiple options will eat up over 10 GB of HD space! :o I ended up installing with the bare minimum - all options disabled. But even that takes up about 6 GB. This should also have been mentioned. If I had known it was going to consume that much space and if I had known about alternative IDE's that would work, I probably would have installed something else. (See the IDE's section (http://rimworldwiki.com/wiki/Modding_Tutorials/Recommended_software#IDE.27s) of the project's wiki page.) To be fair, though, a large chunk of the huge download is Microsoft .NET Framework 4.5.1 SDK, which needs to be installed even if an IDE alternative like SharpDevelop is used.

Also, I thought that I would mention that the project files on HaploX1's GitHub (https://github.com/HaploX1/ExampleDllMod) do seem to have been updated for A15, in case anyone was wondering about that before deciding to try this.

Edit:
Also, I could not find license information either in the OP, on the GitHub, on the wiki's Assembly Modding Example, or anywhere inside the files. Are we allowed to make a derivative (after giving proper credit, of course)?
Title: Re: [Tutorial] (Alpha 17) How to make a .dll-mod (Power Generation)
Post by: SirDarin on June 16, 2018, 01:20:24 AM
So, I'm trying to learn how to go about coding and editing the assemblies, which is what led me to this tutorial. I chose to download SharpDevelop and followed the steps for preparation. But when I open the example project I get this message "The tools version '12.0' is unrecognized. Available tools versions are '2.0', '3.5', '4.0'."
I'm not really sure what this means or what I am supposed to do. Can someone help me?
Title: Re: [Tutorial] [1.0] How to make a .dll-mod (Power Generation)
Post by: Haplo on July 24, 2018, 03:32:47 PM
Just updated this tutorial to work with the latest build (1.0 unstable)
I was surprised how little was needed to update it from a17 to 1.0 :D
Title: Re: [Tutorial] [1.0] How to make a .dll-mod (Power Generation)
Post by: Greep on July 24, 2018, 04:19:08 PM
Hey thanks! Got a mod working with this for 1.0 :)

I do have a slight problem, I've finished one mod but I'm not really sure how to start a new project.  Copy/pasting this again has some pathing issues since it just opens the other solution.  I mainly used this rather than the other sticky because I was having issue finding a template that targets .net framework 3.5.  Visual studio 2017 came with only the blank solution template, and when I downloaded the .net standard it game only a solution that targeted .net standard.  I don't see anything else in the installer. If you know how to solve that I can probably figure out the rest.

Edit: ugh, I looked at individual components and it says I have 3.5 development tools but I don't see how to make something using it  :-\

Edit: nvm, think I found it.
Title: Re: [Tutorial] [1.0] How to make a .dll-mod (Power Generation)
Post by: yokai on October 09, 2018, 08:02:00 AM
Hi,
i have the same issue like SirDarin. When i open the project with SharpDevelop 5.1 i got the error: The tools version"12.0" is unrecognised. Availabe tools versions are "14.0", 2.0", "3.5, "4.0". X\ExampleDllMod\Rimworld_ExampleProjectDLL\Rimworld_ExampleProjectDLL.csproj
Would be nice if someone can check it pls. :o

Edit: Solved. I had to update the microsoft build tool 2013.