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

#1
Releases / [1.1/1.2] Optimized Leather
October 11, 2020, 07:33:43 PM
https://steamcommunity.com/id/trublucaribou/myworkshopfiles/?appid=294100

Optimized Leathers seeks to resolve the issue of too many animal mods dropping too many leathers. Instead of being done by C# code injection, it is all done via XML patch. Why? Because I don't know any C#! :P

This mod completely overhauls the current leather system in the game, along with patching a dozen plus other animal mods. It introduces the following "new" leather types:

* sturdy leather (from animals like Elephants and Rhinos)
* thick pelt (from animals like bears and alphabeavers)
* longfur pelt (from cold-climate animals like wolves and foxes)
* shorthair pelt (from warm-weather animals like lions and camels)
* coarse fur (from small animals like rats and raccoons)
* soft fur (from most pets and wild animals like rabbits)
* luxe fur (from rare small critters with valuable pelts).

The final list of leathers includes 14 unique leathers: Coarse fur, soft fur, luxe fur, heavy fur, light leather, plain leather, sturdy leather, shorthair pelt, longfur pelt, thick pelt, bird skin, lizard skin, human leather, and thrumbofur.

This mod patches a dozen plus other animal related mods. There are extensions for Dinosauria and Alpha Animals, due to the size of both of those mods.

This mod applies patches to the following animal mods:

* Vanilla Animals Expanded [All]

* Erin's Creatures [All]

* Pygmy Muffalo

* Rodents of Unusual Size

* Megafauna

* Vanilla Factions Expanded - Vikings

This mod is compatible with the following mods:

* Synthetic Animals

* Alpha Animals (Additional Mod Patch)

* Dinosauria (Additional Mod Patch)

* Soft, Warm Beds

As always, my mods are open-license. Feel free to edit to your heart's content.
#2
Help / Patching a leather to no longer be "leathery"
October 10, 2020, 09:11:54 PM
So I'm trying to remove dog leather from the game entirely. While just flat out removing it via xml xpath works for me and my mods, it doesn't work for other mods.

So far, I've think I've got it where it doesn't appear in traders:

    <tradeability>Sellable</tradeability>


But now I want it to not appear in raider's clothings. I saw some people talking about injections, but my C# isn't quite up to par so I'm hoping XML can do it.

  <ThingDef ParentName="LeatherBase">
    <defName>Leather_Dog</defName>
    <label>generic leather</label>
    <description>This shouldn't be popping up, but if it does...</description>
    <graphicData>
      <color>(209,168,39)</color>
    </graphicData>
    <thingCategories>
      <li>Leathers</li>
    </thingCategories>
    <statBases>
      <MarketValue>2.0</MarketValue>
      <StuffPower_Insulation_Cold>14</StuffPower_Insulation_Cold>
    </statBases>
      <stuffProps>
      <categories>
        <li>Leathery</li>
      </categories>
      <commonality>0.025</commonality>
      <statFactors>
        <MaxHitPoints>1.3</MaxHitPoints>
      </statFactors>
    </stuffProps>
    <tradeability>Sellable</tradeability>
  </ThingDef>


The important bits, as far as I can see, are the stuffProps/categories and thingCategories. I tried just flat out removing both of those via patch, but that threw error messages. I then tried to overwrite Leather_Dog with those two categories blank, and that didn't work.

Any help would be much appreciated! I looked through the forums and didn't quite see how to fix this.
#3
This bit of code works, but will NOT work in my bigger mod if someone is not running a certain mod.
<Patch>

   <Operation Class="PatchOperationReplace">
    <xpath>/Defs/ThingDef[defName="Fisher"]/race/leatherDef</xpath>
    <value>
        <leatherDef>Leather_Fox</leatherDef>
    </value>
</Operation>

</Patch>


This bit of code does NOT work, but also does not throw any error messages. Yes, I have the mod ID correct.
<Operation Class="PatchOperationFindMod">
       <mods>
           <li>Erin.Critters</li>
       </mods>
       <match Class="PatchOperationReplace">
         <xpath>/Defs/ThingDef[defName="Fisher"]/race/leatherDef</xpath>
         <value>
            <leatherDef>Leather_Fox</leatherDef>
         </value>
       </match>
   </Operation>


Any ideas? :( I feel like I'm screwing up something very simple but don't see what.
#4
I am trying to change the type of leather that the Indian Elephant drops in the Vanilla Expanded series. I made a mod that patched the regular core Elephant to drop a new type of leather, and removed Elephant leather from the game. However, even with my mod loaded at the bottom of the order, I keep getting an error message when the Indian Elephant tries to load Elephant leather. What gives? I thought with the patch order, the leather won't be removed until the very last thing. In my patch, the Indian Elephant is patched to drop the new leather, so I don't know why I'm getting an error. Any help would be lovely.
#5
Releases / [1.1/1.2] Basic Mirror
September 16, 2020, 01:00:24 PM
https://steamcommunity.com/sharedfiles/filedetails/?id=2230124203

This is a very simple mod that adds in a mirror for colonists to use. The mirror provides joy and slowly trains social skill, as the colonists practice their facial expressions and speech in front of it!

Notes:

* The mirror does not rotate.
* The mirror does not reflect.
* The mirror is a very basic mirror.
* It is medieval level technology and must be researched if your colony is not at that research level yet.

Planned Upgrades:

* Making the mirror rotatable
* Adding in a wall-mirror
* Adding in mood bonuses for certain traits that use it
* Add speech bubbles as they talk to themselves (to work with Interactive Speech Bubbles)

Please feel free to edit / use / abuse this simple mod as you wish.
#6
Releases / [1.1/1.2] Luxe Fur (A Companion Mod)
September 09, 2020, 02:21:55 PM
I made a little mod for myself for the first time!
https://steamcommunity.com/sharedfiles/filedetails/?id=2224234088

This mod consolidates the types of furs dropped by the animals listed in the picture above. Smaller animals should drop small furry pelts, rather than boring old light leather and plain leather.

This mod is not intended to be used alone, though it can be. A list of compatible mods is below. This mod was created to be used in conjunction with [JPT] Soft Warm Beds.

New Leather Types

Coarse Fur will drop from the most basic small, furry mammals. It is better than most basic leathers in terms of softness, with okay cold protection. Its value is fairly low. Since it is fairly dense (if rough), it provides better armor than both Soft and Luxe Fur.

Soft Fur will drop from several smaller mammals. It is slightly softer than Guinea Pig Fur (which has been removed), has a slightly smaller market value, and makes for worse armor.

Luxe Fur will drop from a handful of small critters. It is super warm, with a high market value and high softness value.

Currently patches / compatible with:

* Vanilla Animals Expanded
* Erin's Critters
* Forest Critters
* FoxSquirrel
* Rodents of Unusual Size

You do not need all of those animal mods for this mod to work.

This mod was made for me, by me. It is completely open to any editing that you want to do.