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

#1
Help / Re: How can I test music I've added to the game?
January 06, 2019, 10:14:11 PM
Quote from: Kirby23590 on January 06, 2019, 09:55:37 PM
If you have Dev Mode on, try looking for the "Play Song" button in the debug actions menu...

Your Newly Added Music should appear on the right or at the bottom of "Chaos_Bringer"...

That's it thanks!  I was looking at the settings panel haha.
#2
Help / How can I test music I've added to the game?
January 06, 2019, 07:28:18 PM
I think I got my song added as a SongDef and the mod enabled, but I have no way of knowing for sure unless I just sit here for a long time and see if the song comes on lol.  Is there a way to force a song to play?
#3
Help / Re: How do you call events through c# code?
March 26, 2017, 02:18:54 PM
One way would to create a new instance of an event and call the TryExecute function.  For example:


IncidentWorker_ColdSnap cs = new IncidentWorker_ColdSnap();

void SomeFunction(IncidentParms parms)
{
   cs.TryExecute(parms);
}


Not sure if this is the best way to do it but it works.
#4
Help / Re: Setting raid strategy of IncidentParms
March 26, 2017, 12:40:22 PM
Quote from: RawCode on March 26, 2017, 03:38:49 AM
i see no trace output
is your code actually fire?

I didn't paste the entire cs file, just the part that was supposed to set the raid strategy.
#5
Help / Re: Making my first mod! Basic problems!
March 25, 2017, 11:31:23 PM
You need to make a folder called About in the same place as your Defs and Assemblies folder.

In that folder you need an xml file called "About" filled out like below:

<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>
  <name>Mod Name</name>
  <author>Auther Name</author>
  <url>Your Website</url>
  <description>Mod Description</description>
  <targetVersion>0.16.1393</targetVersion>
</ModMetaData>

Target version is the only important one, the rest like author or url aren't mandatory.  If it's not set to the current version your mod will show up as outdated.
#6
Help / Setting raid strategy of IncidentParms
March 25, 2017, 11:19:12 PM
I'm trying to set the raid strategy of an IncidentParms instance for a raid I'm manually calling in my raid.  I want to set "raidStrategy" to Immediate Attack but it doesn't seem to be working as I still get raids that are set to wait and then attack.

Here's a snippet of my code where I'm trying to set the raid strategy.


while (!raidFaction.HostileTo(Faction.OfPlayer))
{
Find.FactionManager.TryGetRandomNonColonyHumanlikeFaction(out raidFaction, true, false);
        parms.faction = raidFaction;
}

parms.raidArrivalMode = PawnsArriveMode.CenterDrop;
parms.raidStrategy = new RaidStrategyWorker_ImmediateAttack().def;


EDIT: Go figure, I figure it out right after I make a post.  I had to do "parms.raidStrategy = RaidStrategyDefOf.ImmediateAttack;" instead.
#7
Ideas / Music and musicians
March 22, 2017, 05:30:50 AM
Watching a stream that brought up the idea of adding music playable by colonists to the game through mods, but thought it might actually be cool as an official feature.  Music sources like a piano or guitar could be played by people using the artistic skill, or even a new music skill.  Playing the instrument would give an aura, possibly through walls even, of a slight mood and/or joy boost.  Maybe it wouldn't last very long after they stopped playing so having someone focused on music in your colony might be worth it.
#8
Ideas / Re: Your Cheapest Ideas
March 07, 2017, 01:33:21 AM
Tweak to people dying mood debuff:

Instead of people getting over a person's death all at once, maybe it could decay over the same amount of time.  Could maybe be balanced by making the initial debuff larger.  Really weird/annoying waiting for my cranky colonist to get over their fiancee's death on a specific day.