Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Entrio

#1
Help / Re: Best way to hook into the game logic
May 04, 2016, 04:41:16 AM
Thank you very much! ;D
#2
Help / Best way to hook into the game logic
May 03, 2016, 11:15:44 PM
Hi all,

what is the best way to load a dll? At the moment I am initiating my mod via a call which inherits Mapcomponent and then using the static Find class i manage the game from there on.

I have tried getting the class to inherit MonoBehavior but the game does not load the mod then.

I am proficient enough with unity to have created my own games before, but never had any experience with modding games.

It just seems rather tacky managing the game via the MapComponent.


:-\
#3
hi all,
love the game, decided to give modding a go.
So I've compiled my first dll:

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