Ludeon Forums

Ludeon Forums

  • July 06, 2022, 02:31:46 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4] 5

Author Topic: [Tutorial] [1.0] How to make a .dll-mod (Power Generation)  (Read 102363 times)

comfix

  • Muffalo
  • *
  • Posts: 3
  • Refugee
    • View Profile
Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
« Reply #45 on: April 19, 2015, 03:20:50 PM »

Yeah thats right. But i dont know how to fix this....
Logged

skullywag

  • Global Moderator
  • Transcendent
  • ****
  • Posts: 5881
  • Engineer
    • View Profile
Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
« Reply #46 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.
Logged
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Haplo

  • Global Moderator
  • Planetologist
  • ****
  • Posts: 2136
  • Shadow
    • View Profile
Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
« Reply #47 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.
Logged

Dave-In-Texas

  • Tester
  • Colonist
  • **
  • Posts: 325
  • Refugee
    • View Profile
Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
« Reply #48 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
Logged

RickyMartini

  • Planetologist
  • ****
  • Posts: 1510
  • Brewing Beer
    • View Profile
Re: [Tutorial] (Alpha 9) How to make a .dll-mod (Power Generation)
« Reply #49 on: May 03, 2015, 06:22:33 PM »

Any chance of doing this on OS X Yosemite? :(
Logged

milon

  • 100% Nerd*
  • Global Moderator
  • Transcendent
  • ****
  • Posts: 3584
  • * Conditions may apply
    • View Profile
Re: [Tutorial] (Alpha 12) How to make a .dll-mod (Power Generation)
« Reply #50 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/

RickyMartini

  • Planetologist
  • ****
  • Posts: 1510
  • Brewing Beer
    • View Profile
Re: [Tutorial] (Alpha 12) How to make a .dll-mod (Power Generation)
« Reply #51 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. :)
Logged

hoochy

  • Colonist
  • ***
  • Posts: 113
  • Refugee
    • View Profile
Re: [Tutorial] (Alpha 13) How to make a .dll-mod (Power Generation)
« Reply #52 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!
Logged

Mithrawndo

  • Muffalo
  • *
  • Posts: 12
  • Refugee
    • View Profile
Re: [Tutorial] (Alpha 13) How to make a .dll-mod (Power Generation)
« Reply #53 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 shows what I mean, and thanks in advance for any help!
Logged

Entrio

  • Muffalo
  • *
  • Posts: 3
  • Pew pew!
    • View Profile
Re: [Tutorial] (Alpha 13) How to make a .dll-mod (Power Generation)
« Reply #54 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
« Last Edit: May 03, 2016, 11:47:54 AM by Entrio »
Logged
I tried <something> once, it was <description>

Haplo

  • Global Moderator
  • Planetologist
  • ****
  • Posts: 2136
  • Shadow
    • View Profile
Re: [Tutorial] (Alpha 13) How to make a .dll-mod (Power Generation)
« Reply #55 on: May 03, 2016, 01:49:58 PM »

Try Log.Error(...)  or Log.Warning(...) instead.
Logged

MrGrigsby

  • Muffalo
  • *
  • Posts: 2
  • Refugee
    • View Profile
Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
« Reply #56 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!
Logged

Silerra

  • Muffalo
  • *
  • Posts: 7
  • Refugee
    • View Profile
Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
« Reply #57 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.
Logged

MrGrigsby

  • Muffalo
  • *
  • Posts: 2
  • Refugee
    • View Profile
Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
« Reply #58 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.
Logged

Haplo

  • Global Moderator
  • Planetologist
  • ****
  • Posts: 2136
  • Shadow
    • View Profile
Re: [Tutorial] (Alpha 15c) How to make a .dll-mod (Power Generation)
« Reply #59 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..
Logged
Pages: 1 2 3 [4] 5