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

Topics - sarge945

#1
Help / "Event" is not a valid type?
August 29, 2023, 05:18:37 AM
I'm creating my first mod, I was able to go through the Hello World tutorial and have gotten things printing to the in-game developer console.

Now, I am trying to add a new Command accessible via a Gizmo.

It's all good except for some reason the Event class doesn't seem to be a valid class

Here's my class for reference

using System;
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using Verse;

namespace CombatReadiness
{
    public class CombatReadinessCommand : Command
    {
        public CombatReadinessCommand()
        {
            this.defaultDesc = "Get ready for Combat";
            this.defaultLabel = "Combat Readiness";
        }

        public override void ProcessInput(Event ev)
        {
            base.ProcessInput(ev);
        }
        //more code follows...
    }
}

For some reason, I consistantly get an error with ProcessInput, the Event is highlighted red and I can't "Add missing references"

I am using Rider and set up the project according to this guide and I have made sure I am using the correct .NET Version. I can use other Unity, Verse and Rimworld classes perfectly fine, just not Event.

Does anyone know what's going on?
#2
Hi there!

So a few hours into my playthrough, I started getting quest after quest after quest, one every few seconds. My quest log is absolutely filled, and it's not seeming to end no matter what I do.

Not only is it really unbalanced, it's very annoying because the game freezes for half a second or so every few seconds to make the new quest (especially in fast mode), so my game is very choppy.

1 - What the circumstances were.
It seemed to happen at random. It has happened to me before, but always happens 2-3 months into starting the game (so usually just before the first winter). In this case it happened during the first winter

2 - What happened.
I got a quest notification. Then I got another quest notification. And another. And another. Etc. Indefinitely. Every few seconds.

3 - What you expected to happen.
I expected to get quests at the normal rate

Log Files:
My log is available here:
https://gist.github.com/HugsLibRecordKeeper/8b97a1c340a5382b3c105d7e0dd708d3

I can also provide a save if anyone needs it

Also please note: I previously made a reddit thread about this, which was for a previous playthrough and contained a MUCH shorter modlist
https://www.reddit.com/r/RimWorld/comments/ro33vp/constantly_getting_quests_is_this_a_bug/?


UPDATE: Okay so it seems Royalty was not installed correctly. Verifying the game cache on Steam fixed the issue, as well as fixing some missing text strings I had with Anima trees and other things.

I recommend the bug reporting guides be updated with instructions to verify the game cache, as it can fix issues like this