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 - Ironhierro

#1
I've just started playing with C#; I did enough INI editing back in the day that XML isn't that scary but C, I'm having troubles with.

Not quite sure what I've done wrong; this is the assembly, did I screw something obvious up that I'm just not seeing? I can upload the XML / C# source file as well if that'll help. Thanks.

The Output Log gave me this: 'Could not resolve cross-reference: No Verse.ResearchProjectDef named MinigunTurret found to give to Verse.ThingDef MinigunTurretGun'


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using UnityEngine; // Always needed
using RimWorld; // Needed
using Verse; // Needed

namespace Verse
{
    public static class ResearchModsSpecial1
    {
        public static void ElectricLoading()
        {
            DefDatabase<ThingDef>.GetNamed("Gun_MinigunTurret").verb.burstShotCount = 7;
        }
    }
}
#2
My biggest concern is the modding community becoming insular; I dunno. A game-modding forum isnt the place for knowledge-hording. We should be sharing our code and enjoying the awesome crap eachother manage. I know I ain't got the knowledge of programming, so I have 'little to lose' in this situation, but it'd help the game if people were abit less protective of their code and their methods. *shrugs* ALSO MORE TUTORIALS PLEASE KNOWLEDABLE AWESOME-PEOPLE. :D
#3
It really would help. I'm knowledge-less in programming, and it's taken me a few days and lots of frustration to figure out what little I have. Any help would be appreciated, and yeah, some people will steal your code; but lots of people will appreciate what you've done, and mention your mod in their mod's about/thank you section. Mreh; learning is hard, so you should try to help clear the path for people as much as you can. :D