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

#31
Oh RimWorld. Never change.

There's no path in XML which results in setting a pawn on fire. You'll need some C# to reach these new heights (or depths) of messed up.

The Fire Starting Spree is the closest alternative to it which can be done in XML alone. Same way dementia causes a confused wander, any hediff can trigger any mental state.
#32
If you have exhausted all avenues of PEBKAC failure (missing PatchAll, typo in the method name, not having your harmony instantiated in the first place) then the most likely answer is this:

IsWildMan is a tiny method and most likely in-lined (read: optimised away) by the JIT compiler.
#33
You can also mod this yourself. It's the raidCommonalityFromPointsCurve in Defs\FactionDefs\Factions_Hidden.xml.
#34
You play Battle Royale. No joke.

https://imgur.com/9c622iQ

Leave it running for a night for best results. I'm serious.

Combat Power is an estimate of how strong a pawn is. They're all hand-authored values, with considerations for things like bodysize and speed (small and fast is deadly!).

You can attempt to calculate it. I think XeoNovaDan or Granitecosmos had a decent formula. But in the end, it's up to you to decide.
#36
Help / Re: XML: How to use a custom soundfile?
May 05, 2019, 12:31:46 PM
Quote from: Napoleonite on May 04, 2019, 11:58:11 AM
What is the difference between clipPath and clipFolderPath btw?

If you figure that out, you'll have figured out your problem.

AudioGrain_Folder implies you have multiple sounds in a folder. You're looking for AudioGrain_Clip and clipPath.
#37
Mods / Re: How to use conditional prerequisites
May 02, 2019, 11:12:58 AM
Quote from: bensonae on May 02, 2019, 04:50:13 AM
Is there a def or class that utilises this logic?

No. You'd have to make it yourself.
#38
Help / Re: Weird Information Display
April 30, 2019, 10:24:12 AM
That's some function of Smarter Food Selection. I think it's a keybind setting you triggered so look around. Or search the forum.
#39
I interpret your question as "how do I make the game use different sounds for genders?"

RimWorld has no such functionality built-in. I don't think the Human Alien Race framework offers it either, though you are welcome to submit it as a request once you release your mod. If you know (or can learn) C#, you can do it yourself by patching the appropriate methods.
#40
Help / Re: Check What Armour A Pawn Is Wearing
April 29, 2019, 04:38:57 AM
Quoteis it even possible to check whether or not they are [wearing armour]?
sure. If you got a pawn, you got access to its apparel tracker, and the apparel tracker has an accessible list of what the pawn is wearing.

Quotethe better the armour, the happier the pawn will be
I strongly suggest you stick to that as a simple principle. The rest of your paragraph smells like overengineering.
#41
Post the full thing; it's likely you are inheriting the tags from a parent.
#42
Support / Re: Saves Loading takes hours to load
April 25, 2019, 03:29:15 PM
Sounds likely.
#43
Look at the German translation then?

...\RimWorld\Mods\Core\Languages\German\DefInjected\ThingDef\Luciferium.xml

<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>
 
  <!-- EN: luciferium -->
  <Luciferium.label>Luziferium</Luciferium.label>
  <!-- EN: Take {0} -->
  <Luciferium.ingestible.ingestCommandString>Nimm Luziferium ein.</Luciferium.ingestible.ingestCommandString>
  <!-- EN: Taking {0}. -->
  <Luciferium.ingestible.ingestReportString>Nimmt Luziferium ein.</Luciferium.ingestible.ingestReportString>
 
</LanguageData>


DrugPillBase is an XML thing; you don't need that. It doesn't get put into the game. That attribute is a reference to an XML template.
#44
For a text replace mod, you could/should use RimWorld's translation tools.

Here's an (older) mod that renames Smokeleaf to Space weed. While details may have changed, the pattern still holds.

As to your XPath:
QuoteA common misconception is trying to account for file paths. The file path is completely irrelevant to the expression you're writing. XPath is used to search XML content, not files themselves.

But forget about the XPath: it's not the right tool for the job. Use the translation system.