nugerumon Posted September 13, 2021 Posted September 13, 2021 (edited) 6 hours ago, Idkwutdou said: https://gist.github.com/HugsLibRecordKeeper/a0635d136673ce952343514fddaf4890 Yup, incompatible mod versions. You are using Milkable Colonists 1.4 which is for RJW 4.8, but you use RJW 4.7.something which you need for Sexperience (which is not updated for RJW 4.8). So either try to get all the old versions or remove Sexperience and update all mods. Also, HAR should go above RJW. PS: I just noticed Sexperience got an update for RJW 4.8, so maybe updating all mods works without removing sexperience (update it though!). Edited September 13, 2021 by nugerumon
Nighzmarquls Posted September 13, 2021 Posted September 13, 2021 11 hours ago, nugerumon said: Yup, incompatible mod versions. You are using Milkable Colonists 1.4 which is for RJW 4.8, but you use RJW 4.7.something which you need for Sexperience (which is not updated for RJW 4.8). So either try to get all the old versions or remove Sexperience and update all mods. Also, HAR should go above RJW. PS: I just noticed Sexperience got an update for RJW 4.8, so maybe updating all mods works without removing sexperience (update it though!). Thanks for verifying that, I fixed the same issue by rolling forward everything to RJW 4.8
Idkwutdou Posted September 15, 2021 Posted September 15, 2021 On 9/13/2021 at 3:27 PM, nugerumon said: Yup, incompatible mod versions. You are using Milkable Colonists 1.4 which is for RJW 4.8, but you use RJW 4.7.something which you need for Sexperience (which is not updated for RJW 4.8). So either try to get all the old versions or remove Sexperience and update all mods. Also, HAR should go above RJW. PS: I just noticed Sexperience got an update for RJW 4.8, so maybe updating all mods works without removing sexperience (update it though!). Thanks man, you're a godsend! I'll do that right away!
Thegameing Posted September 22, 2021 Posted September 22, 2021 (edited) How do I modify the effects of a hediff 'lactating heavily (permanent)'? I put the drug on my hauler slave and it considerbly slowes her down. I tried to modify the XMLs by changing lactating.xml file and Heavy_Lactating_Permanent with <capacity>Moving</capacity> <offset>0.10</offset> but it did not work and still has the same Consciousness max 50% in the game even when xml file says otherwise. Edited September 22, 2021 by Thegameing
KainYusanagi Posted April 10, 2022 Posted April 10, 2022 How does one add races to the race patch? Is it as simple as going to the race mod, going to the Defs folder and then opening up AlienRaceSettings/opening PawnKindDefs from the race mod folder and copy-pasting the names from the file(s) there into the milkpatch xml, by copy-pasting the pre-existing operation in that xml and then pasting the race name over "human" in the copies? Or do you also need to define them in the above section of "PatchOperationTest"? Not familiar with xml at all so unsure of how to do it, only thinking what seems like common sense to me here, needing to define what you want to reference and all that. Also unsure if, if it's the PawnKindDefs version, would setting the parent class make all subclasses work (eg. for Ferian, the race in PawnKinds_Player_Ferian xml is listed as "AFerian", but there are multiple individual entries in the PawnKinds_Ferian xml) or do the subclasses listed in the non-player versions of the PawnKindDefs files still have to be added. I'm assuming that it would work that way, similar to how "Human" is what's listed in the milkpatch xml, but a confirmation that I am thinking correctly would be appreciated.
yokristen Posted May 29, 2022 Posted May 29, 2022 After installing this mod, the effect of "cannibalism" on the mood disappeared. I don't know what went wrong. The old version of Steam does not have this problem.
SubWoofer7 Posted May 31, 2022 Posted May 31, 2022 How do I get the mod to accept new races for this? I renamed the file with all the race compatibility but it didn't seem to do anything, I also tried to get Race Support to use a new race but I couldn't get that working either. Am I just missing a step?
VAAlucard Posted September 18, 2022 Posted September 18, 2022 Does anyone one know of a milking machine mod that is a buildable structure, perhaps under the Production tab?
Tory187 Posted September 18, 2022 Posted September 18, 2022 That has been a desired feature for a very long time but sadly no one has seemed to have taken the plunge to make it.
skydragon92 Posted October 29, 2022 Posted October 29, 2022 Any plans for a 1.4 update, or did biotech make this mod redundant? 1
Cookiecrumbless Posted October 30, 2022 Posted October 30, 2022 22 hours ago, skydragon92 said: Any plans for a 1.4 update, or did biotech make this mod redundant? Biotech did not make this mod obsolete. 1.3 rjw version didn’t seem to generate any errors, however I couldn’t milk any pawns. The “handler” would just stand still next to the other pawn. other mods like Coffee’s and the non rjw version seem to be updated already. I think we just need some patience. Of course I can’t speak for the author. 1
skydragon92 Posted October 30, 2022 Posted October 30, 2022 54 minutes ago, Cookiecrumbless said: Biotech did not make this mod obsolete. 1.3 rjw version didn’t seem to generate any errors, however I couldn’t milk any pawns. The “handler” would just stand still next to the other pawn. other mods like Coffee’s and the non rjw version seem to be updated already. I think we just need some patience. Of course I can’t speak for the author. I actually have never heard of a milk mod by anyone named coffee, only this one and the one on steam made by Ziehn and then continued by Mlie. Kind enough to drop a link?
Cookiecrumbless Posted October 31, 2022 Posted October 31, 2022 On 10/30/2022 at 3:19 PM, skydragon92 said: I actually have never heard of a milk mod by anyone named coffee, only this one and the one on steam made by Ziehn and then continued by Mlie. Kind enough to drop a link? Sure:) it’s an Ideology mod based on Milkable colonist. Female pawns that you start with already lactate and there is a role that can turn pawns into hucows, buffing their production. Not lactating with a certain breast size or not being a hucow is frowned upon, that kind of stuff. 1
flamingmonkeyUK Posted November 12, 2022 Posted November 12, 2022 On 10/30/2022 at 1:17 PM, Cookiecrumbless said: Biotech did not make this mod obsolete. 1.3 rjw version didn’t seem to generate any errors, however I couldn’t milk any pawns. The “handler” would just stand still next to the other pawn. other mods like Coffee’s and the non rjw version seem to be updated already. I think we just need some patience. Of course I can’t speak for the author. Yeah, I've got the same issue with milking not taking place, has 1.4 changed how jobs happen?
Azzamatazz Posted November 15, 2022 Posted November 15, 2022 Got the actual error to pop, not sure if its a mod compatibility thing or what. JobDriver threw exception in toil unnamed's initAction for pawn Camre driver=JobDriver_MilkHuman (toilIndex=1) driver.job=(MilkHuman (Job_39927) A=Thing_Human2191) System.MissingMethodException: void RimWorld.PawnUtility.ForceWait(Verse.Pawn,int,Verse.Thing,bool) at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <1ea541f48818430abd724fc665f76dc4>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver) Verse.AI.JobDriver:TryActuallyStartNextToil () Verse.AI.JobDriver:ReadyForNextToil () Verse.AI.JobDriver:Notify_PatherArrived () Verse.AI.Pawn_PathFollower:PatherArrived () Verse.AI.Pawn_PathFollower:TryEnterNextPathCell () Verse.AI.Pawn_PathFollower:PatherTick () (wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch1 (Verse.Pawn) Verse.TickList:Tick () Verse.TickManager:DoSingleTick () Verse.TickManager:TickManagerUpdate () Verse.Game:UpdatePlay () Verse.Root_Play:Update ()
Akaluto Posted November 15, 2022 Posted November 15, 2022 https://steamcommunity.com/sharedfiles/filedetails/?id=2218407878 Hasn't the steam version been updated or is it not compatible?
Azzamatazz Posted November 15, 2022 Posted November 15, 2022 I will test it and find out. As long as coffees mod can still use it as a dependency im happy lol
Akaluto Posted November 15, 2022 Posted November 15, 2022 2 minutes ago, Azzamatazz said: Я проверю это и узнаю. Пока мод для кофе может использовать его как зависимость, я счастлив, лол. Yes, except that I'm trying in vain to find a way to fix the milking error. I thought maybe I could take milking from the animal husbandry job list, that would be a normal temporary patch. While actually the only thing that doesn't work critically is milking, I would fix it myself, but I don't understand well what's going on in the mod.
Akaluto Posted November 15, 2022 Posted November 15, 2022 Okay, I figured out how to temporarily fix the bug, but still use this mod as a patch for coffee. uncheck cherry picking for all types of lactation, and then remove the heddif from the pawn, everything will work, except for the milking itself of course.
Popular Post onslort Posted November 21, 2022 Popular Post Posted November 21, 2022 (edited) I really wanted this mod and Biotech to behave nicer together, and so I had to learn how to c#. I've learned a lot over the past weekend! I started off just trying to make the rimworld lacation hediff work with Milkable Colonists and wound up changing all sorts of things. It ended up being pretty much a complete rewrite. Some of my source is really ugly right now but I'm slowly cleaning it up as I figure out better ways to do things. The main changes: Rimworld Biotech's hediff remains, but the charge is now set via MC's fullness value when it updates. (This is ugly but it works for now.) Milk will recharge faster than in standard MC, this is set to closer match the speed on biotech's milk renew. (For baby feeding.) As before, breast size matters. Larger breasts will give you more milk and help keep babies fed more easily. If your pawn only has small breasts you may use all your milk on one feeding for the kiddies. Larger breasts can feed multiple babies. The milk you gain from milking is now in baby sized portions and nutrition values. I added recipes to the stove to combine 10 milk bottles into 1 bulk milk. The bulk milk will feed an adult better. Still not exactly the ideal meal, but if it's all you have you take what you can get. You can also split the larger bulk milks into the bottles as well to feed babies. No loss in ingredient amount, it just takes time. (I know you could potentially setup a cooking loop to combine and uncombine to skill up. I don't care. Your pawns should have better things to do.) When milking you will take 'whole' amounts and leave the leftover, rather than setting the fullness to 0. If a pawn at 100% fullness has 3.5 milk bottles in them (Low end of large breast size), you'll take 3 bottles and the pawn will be left with the remainder of half a bottle in this example. (Which mathematically would be something like 14% fullness left over.) The drugs have been changed: Regular Lact-x will start the pawn lactating (and get you high.) This will now last 10 days unless you breast feed a baby, which will restart the 10 day countdown. (Biotech values and rules.) (Modified in ver 002. Now lasts 3 days from drug. Will still reset to 10 if you breastfeed.) Lact-Max will get the pawn addicted to lact-x, give you the Lactating Permanent hediff, increase milk generation speed by 50% and increase yield by 50%. It should be a little over double in total if you can keep up with on time milkings. Also offsets hunger +40%. Hyper Lact-Max does the similar, it adds the Heavy Lactating Permanent hediff, except with a 100% increase in generation and yield. Should be quadruple the amount if you can keep up with the milkings. Offsets hunger +80% (Shovel that food down). Removed the brain damage portion. Lact-X Swell added. This will enlarge a pawns breasts and give them the Regular Lact-x drug hediff. Many options can now be adjusted in the mod settings. On the back end I removed CompHyperMilkableHuman, I'm just using CompMilkableHuman with the end values adjusted if you have either of the permanent hediffs. I didn't change the ID of the package so any dependencies should still work. If you use it alongside an existing copy of RJW-MC it will probably complain and/or break in some way. If there are any bugs let me know. Make sure you're using the latest version of everything first. Possible future ideas. Different Milking Stations. (Luxury Milking Stations that give mood buffs?) ------------------- Ver 15 Updates. No changes. Just updating code to work with 1.5 and the test RJW found at: https://gitgud.io/jikulopo/rjw/-/tree/1.5-test Ver 15.2. Minor update. Pawns in a caravan will no longer leave the caravan to milk themselves at a milking station, holding up the entire caravan. ------------------ Ver 16 Update. No changes. Updated the framework making it compatible with RJW 5.5+ Note, if upgrading from an older version with an older save I found that breast hediff severity will be broken. I had to edit each pawns breast hediff severity in Character Editor to stop the milk bottle amount showing NaN (Not a number) due to the severity of the hediff (size of the breasts) not being a valid number. This did not affect a new game with new pawns. Older updates: ---------------- Ver 002 Updates: Lots of cleanups and naming things more sensibly. Lactating_Natural and Lactating_Drug hediffs have been re-added for backward compatibility. The biotech hediff will be added if you have any of the MC hediffs and it will match it's severity (Days until it expires) Taking basic Lact-x will now give you the Lactating_Drug Hediff and three days worth of timer. This will be copied to the Biotech hediff timer. Lactating_Drug gives +10% production and +10% yield. Permanent and Heavy Permanent remain at +50% and +100% production and yield. Lactating_Natural and Lactating_Drug will be removed if you become malnourished to match the Biotech hediff. The permanent hediffs will remain but you will not gain milk or the biotech Lactating hediff during that time. Stronger hediffs will remove the lesser hediffs. Heavy Permanent -> Permanent -> Drug -> Natural. Moved the logic to do this into the tick rather than in the always on "Active" checking part of the function. Probably slightly better for performance. ------------------ Ver 003 Updates: Pregnancy. Not too long into the third trimester pawns will start lactating naturally. (At severity .8 right now, which is 80% of 18 days. Maybe day 15?) Added new larger milk bottle art supplied by Akaluto (Untested by me) Added Russian translations for the new recipes, also supplied by Akaluto ------------------ Ver 004 Updates: Moved the production and yield values into the hediffs. This will allow you to see what each is doing in game more easily. And allow you to edit the values if you desire. Milk leakage. If your pawn is overflowing they can drip milk onto the ground. The fuller they are, the more often they will leak. This can be toggled off in the options menu. Milk splashed onto the ground can help put out fires. Fix: If a pawn breastfeeds and resets their lactating countdown to 10 days, it will no longer extend the basic 3 day Lactating_Drug hediff. If the drug hediff wears off the pawn will start lactating naturally at that point. ------------------ Ver 005 Updates: (Early WIP, Still messy, But working) You can now assign which pawns will do which jobs. The fullness string will now display the amount of milk bottles in parenthesis ( ) after. This is still ugly and displays a lot of decimal places. Will fix later. Note: On the back end, milking a human is a handling job, if a pawn is not set to handling they cannot manually milk another pawn. Breastfeeding is a 'Patient' job as I needed something that everyone could do. Make sure your pawn can do 'Patient' in the work tab if you want them to be able to breastfeed. To start breastfeeding, the pawn doing the feeding needs to be below 50% food. Amount of milk has been tweaked. Large breasts will give less milk than before, but now all milk values are constant across all jobs. Note that an adult breastfeeding cannot get enough nutrition using base values, so there is a debug multiplier in the options that you can change to increase how much more nutrition an adult would get compared to a baby. 5 is default. You may want to set it higher. Breastfeeding and milking jobs will only start at 100%+ fullness, but then they will continue until done. My job setup/milking setup is a horrible hack. It works. There are probably bugs. It's late, I'm going to bed. ------------------ Ver 006 Updates: (Sort of cleaned up. Might still have bugs but looking good in my testing.) Cleaned up fullness display string. Fixed a bug that could cause an exception if a milkable colonist went off map. (I think.) Added some thoughts to milkable pawns. Small values based on milk state. Also accounts for masochists. New option added: Breast Growth Max Size. Default value 1. If you have a mod that can display it, you can change this to 2 to have pawns breasts rather large. You could potentially make it higher, I didn't test it. If you make the value and you don't like how your pawns' breast end up looking, changing this value back to a lower number will shrink anyone larger down to that number. New drug to go along with max breast size implementation. Lact-X-Swell. It will help make those breasts grow big and strong. Don't overdose and have a swell time! ------------------ Ver 006b Minor tweaks. Made the 'Do breast milking' and 'Do breastfeed' options disabled by default. This is to stop visitors in your colony from milking and/or drinking all the milk from your pawns. There's probably a better way to do it, but this was quick and worked for now. Updated Lact-X-Swell to also give you the Lactating-Drug Hediff when taken. It seemed to me like it should. ---------------- Ver 007 - The cleanup. Bugs fixed: You can now milk/breastfeed from prisoners without causing an exception if you are not in the same room. I was doing path checks from both pawns before allowing the job to proceed, but prisoners weren't allowed out of their cells and so the job got into something of a failure infinite loop. If a breastfeeding/milking pawn or their partner start a different job they should now halt what they are doing 'better'. Sometimes a pawn could be stuck trying to breastfeed/milk while their partner was busy working on something else. A few other things cleaned/commented out. New options page with sliders to keep min/max values in sensible amounts. Mostly. Along with some new options: Milk drip fullness amount. You can choose at what fullness level pawns will start to drip. Milkable fullness level. You can adjust what level pawn fullness is before they are considered as a target for manual milking. Breastfeed fullness level. You can adjust what level pawn fullness is before they are considered to be breastfeeding targets. Breastfeed Hunger level. You can adjust how hungry a pawn has to be before they will consider breastfeeding. Don't make this too low or they will just eat food instead. ---------------- Ver007c - Minor updates due to being busy with work and other things. Added a multiplier to speed up various milk related tasks. I was getting annoyed with how long it would take to milk some of my colonists with hefty assets. More Russian translations added thanks to Akaluto. ---------------- Ver 008 - DIY Added new milking job: Milk Self. This is off by default and can be turned on per pawn in the same list with the rest of the milking jobs. Nothing extra is needed to do this right now. It might require a machine or something later on. There is also a new option in the main mod options for the fullness required before a pawn will milk themselves. This is set to 150% fullness by default. Added a debug option to show a pawn gizmo button to fill a pawns fullness to 150% with a click. Updated the code so this version will no longer actually require Biotech. Breastfeed baby will be disabled if you don't have biotech installed. I haven't done a lot of testing but I think I have it mostly error free. It is still incompatible with C0ffeeRIA at the moment. Even though this no longer requires biotech it is still not compatible with 1.3. ---------------- Ver 009 - Milkable Colonists C0ffeeRIA Compatibility After chatting with C0ffeeeeee, I've updated and tweaked a lot of things to make this work with an updated version of C0ffee's RIA (which I will include here, and cross post.) The new debug fill milk button will now toggle between 150%, 0% and 100% for testing. Pawns belonging to a lactation/hucow ideology will also reset their natural lactation countdown when breastfed upon, similar to what happens when breastfeeding a child. Pawns belonging to a lactation/hucow ideology will get increased happy thoughts when breastfeeding/breastfed upon. This should also still work fine on it's own without CRIA, but there's no new gameplay in this release on its own. C0ffee's Rimworld Ideology Addons updates: Designating a pawn for induced lactation has changed slightly. Instead of using an internal timer now pawns will get a cooldown debuff hediff to show they have been recently induced. Default cooldown timer is 30% of a day in length, and default amount of times induce is required is 20. This works out approximately 3 times a day for a week before lactation starts if you have no drugs to help. Hucow values are now set to +250% yield and +150% production speed, with work speed and move speed set to 70%. The yield and speed values will combine with Milkable Colonist Lact-X hediffs that provide boosts. You can end up with 2 x 2.5 for yield and 2 x 1.5 for speed using Hucow and Hyper Lact Max. Hucows will fill several of their needs by performing milking tasks. Breastfeeding will grant the most needs bar, milked by another colonist second, lowest is self milking. Added options for CRIA lacation: Option to change the cooldown amount of inducing lactation. This will not change the timers on any existing cooldown hediffs. Option to change the amount of times induce is required before lacation starts. This will not reset the progress on the current induce lactation. For example, if you are already halfway through the process and you increase the total to 50, it would take 25 induces from that point. Same is true if you make the total smaller. There is an option to give a pawn a breast size increase when they get turned into a hucow. This is set to 0 by default and can be adjusted. There is also a setting to set the minimum size that breasts become when turning into a hucow. This is set to 0.5 by default, which is average sized. ***Only this newest version of MC-Biotech is compatible with this newest version of CRIA. Make sure to get them both if you want to use CRIA.*** ---------------- Ver 009b - Bug found by Akiya82. Added null check to the Milk self setup. ---------------- Ver 010 - The re-jobening. Reworked how the milking jobs work on the back end so that the jobdrivers do the work instead of just being something that are watched for. This has also allowed me to make downed/sleeping pawns valid targets for milking jobs. And maybe even fix a bug or two concerning starting too many jobs in a single tick. Also added another page to the milking designations page so you can set what your slave/prisoners will do/have done to them, just like your colonists. This new version is CRIA compatible but I haven't had too much time to test it in a real game, so I'm leaving the ver009 download available as well. ---------------- Ver 010b - Small update as Steam sales are on and I'm playing less Rimworld currently. After helping Akiya82 with a bug I realized I was assuming 'milk' when breastfeeding. This may apply to very few people, but this version will now check the item set in the CompProperties and take the nutrition value from it for breastfeeding. It will fall back to 0.01 if it can't find a nutritional value on the item but the item is still flagged as gives nutrition. There is more math behind the scenes, but if you know what I'm talking about here you can look it up yourself in the source. Also added some more Russian translations provided by Akaluto. Bug Fix for CRIA: "Induced Lactation Recently" hediff is counting up, and not down. Bug found by Akiya82. Added null check to the Milk self setup. ---------------- Ver 010c - Small update. Adding option so you can toggle off the capped breast size setting. ---------------- Ver 011 Updates: Added a new option that will prevent most jobs from being interrupted when someone milks or breastfeeds from the target pawn. If the pawn is sleeping, moving or not doing anything important the pawn will stop and be involved with the milking/breastfeeding, otherwise they will keep on doing whatever they were doing. It probably goes something like this: "You're researching? You're looking a bit full, let me milk you. Carry on working on your schematics." It may make less sense for more physical jobs like mining. I'm still tweaking it. ---------------- Ver 011b Updates. Actually updated Hydraulic and Bionic breasts to give milk. For real this time. In base RJW Hydraulic and Bionic breasts give no milk. These are now being patched in Milkable Colonists so they will. Default values: Hydraulic breasts will give 50% the amount vs natural breasts of the same size. Bionic breasts will give 75% the amount vs natural breasts of the same size. Archotech breasts will give 125% the amount vs natural breasts of the same size. These amounts can all be adjusted in the options. ---------------- Ver 011c updates. Small additions. The work speed/amount multiplier now changes work speed for most tasks. Only Biotech baby breastfeeding is untouched, it will still be an amount multiplier instead of a speed multiplier. Added options: Hunger amount offset for Lact-Max hediff. Default is 40%, but now you can slide this down if you want. Hunger amount offset for Hyper-Lact-Max hediff. Default is 80%, but now you can slide this down if you want. Lactation fertility factor override. By default the Biotech Lactating hediff makes your pawn's fertility 5%. You can now adjust that and make it higher if you want your milk providing pawns to still have children. Or set it to 0 if you really hate children. Do what makes you happy. The second, possibly more game changing update. I updated the 'who can give milk' patch file so that it should affect all pawns, including HAR races. This is located in rjw-mc-biotech\1.4\Patches\RaceMilkPatch.xml If you're already running your own adjusted 'who give what milks' patch file you can keep your own. If you want to go back to only base rimworld humanoids giving milk, you can delete the top section from that file and un-comment out the bottom section (Remove the <!-- and -->) For most it should just work as is though. I am not sure if you need a new save for this to work with existing pawns. My testing has varied. With a new game I can have any pawn from any race mod drink a lact-x and start making milk. ---------------- Ver 011d updates. Thanks to @OriginalNoCare for the heads up. Bug fixes with artificial breasts and milk amounts when performing milking jobs. If you already have 011c but your pawns don't use hydraulic/bionic/archotech breasts, you can skip this update. If you're downloading for the first time get this version for 'less bugs.' ---------------- Ver 012 Updates: New version! (This version is not on gitgud yet. Currently treating as experimental in case I broke something.) Added a milking station building. Can be found in Production, available after you research Smithing. It uses the stool graphics for now. I am not arty. This will extract milk twice as fast as basic self milking. New column added to the options for who can do what milking jobs to allow/disallow milking at the milking station. Also uses the stool graphic for now. New option added to the mod options so you can set the milk amount before the pawn will start wanting to look for a milking station. The milking station will store the milk in itself. You can change the priority of storage so that pawns will remove the bottles from the station and move them somewhere else. It does NOT keep milk fresh. (Maybe put the station in a freezer?) And an extra. The above also has optional mod integration. If you have Vanilla Expanded Framework and Vanilla Milk Expanded, the milking station will connect to the milk pipes and tanks. *** Do not use the "Vanilla Milk Expanded for Humans" patch on steam. It is not compatible. I made this version of Milkable Colonists compatible without it.*** A caveat. With the above mods active, any humanoid milk bottles put into the MC version of the Milking Station get turned in 'milk'. This may or may not be unbalanced. I just wanted to get it working. It seems to be. You can then extract the normal milk using the Vanilla Milk Expanded buildings. (Also added the food need fix from dastardlii for androids.) Downloads: coffees-rjw-ideology-addons.zip rjw-mc-biotech_012.zip rjw-mc-biotech_15_2.zip For RJW version 5.5+use version 16. rjw-mc-biotech_16_forRJW55.zip Edited November 3, 2024 by onslort Minor update 16 - Update for newest RJW version 38
Necro1298 Posted November 21, 2022 Posted November 21, 2022 11 hours ago, onslort said: -snip Breasts seem to be in a permanent state of "ready to stimulate for lactation." No error log seems to be produced when I send the hucow handler to induce. Also can use the induce lactations ability multiple times on the same pawn.
fakje Posted November 21, 2022 Posted November 21, 2022 13 hours ago, onslort said: -snip Champion effort
onslort Posted November 21, 2022 Posted November 21, 2022 22 minutes ago, Necro1298 said: Breasts seem to be in a permanent state of "ready to stimulate for lactation." No error log seems to be produced when I send the hucow handler to induce. Also can use the induce lactations ability multiple times on the same pawn. I think that's part of one of the ideology mods and may be happening as I removed the "Lactating_Natural" and "Lactating_Drug" hediffs. I'll see if I can track down that mod and make my new version play nice with it. I'll probably have to re-add those removed hediffs for backwards compatibility but then just have those go ahead and add on the biotech hediff after. I'll check it out later today once I have time to do so. 1
XZIZ Posted November 21, 2022 Posted November 21, 2022 15 hours ago, onslort said: I really wanted this mod and Biotech to behave nicer together, and so I had to learn how to c#. I've learned a lot over the past weekend! I started off just trying to make the rimworld lacation hediff work with Milkable Colonists and wound up changing all sorts of things. It ended up being pretty much a complete rewrite. Some of my source is really ugly right now but I'm slowly cleaning it up as I figure out better ways to do things. The main changes: Rimworld Biotech's hediff remains, but the charge is now set via MC's fullness value when it updates. (This is ugly but it works for now.) Milk will recharge faster than in standard MC, this is set to closer match the speed on biotech's milk renew. (For baby feeding.) As before, breast size matters. Larger breasts will give you more milk and help keep babies fed more easily. If your pawn only has small breasts you may use all your milk on one feeding for the kiddies. Larger breasts can feed multiple babies. The milk you gain from milking is now in baby sized portions and nutrition values. I added recipes to the stove to combine 10 milk bottles into 1 bulk milk. The bulk milk will feed an adult better. Still not exactly the ideal meal, but if it's all you have you take what you can get. You can also split the larger bulk milks into the bottles as well to feed babies. No loss in ingredient amount, it just takes time. (I know you could potentially setup a cooking loop to combine and uncombine to skill up. I don't care. Your pawns should have better things to do.) When milking you will take 'whole' amounts and leave the leftover, rather than setting the fullness to 0. If a pawn at 100% fullness has 3.5 milk bottles in them (Low end of large breast size), you'll take 3 bottles and the pawn will be left with the remainder of half a bottle in this example. (Which mathematically would be something like 14% fullness left over.) The drugs have been changed: Regular Lact-x will start the pawn lactating (and get you high.) This will now last 10 days unless you breast feed a baby, which will restart the 10 day countdown. (Biotech values and rules.) Lact-Max will get the pawn addicted to lact-x, give you the Lactating Permanent hediff, increase milk generation speed by 50% and increase yield by 50%. It should be a little over double in total if you can keep up with on time milkings. Also offsets hunger +40%. Hyper Lact-Max does the similar, it adds the Heavy Lactating Permanent hediff, except with a 100% increase in generation and yield. Should be quadruple the amount if you can keep up with the milkings. Offsets hunger +80% (Shovel that food down). Removed the brain damage portion. On the back end I removed CompHyperMilkableHuman, I'm just using CompMilkableHuman with the end values adjusted if you have either of the permanent hediffs. I also did some fairly funky math in some places to get the results I wanted. Don't judge. I'm slowly making it better. I didn't change the ID of the package so any dependencies should still work. If you use it alongside an existing copy of RJW-MC it will probably complain and/or break in some way. It probably has bugs. I think I have it so it's working with multiple sets of breasts correctly from my limited testing. I added a debug to the options so I could see amounts being added/removed more easily. I left it in for the curious. rjw-mc-biotech.zip 429.96 kB · 170 downloads thank you so much for this i would like to help by reporting a bug i faced after adding your mod to my save when i have development mode enabled i can't open the debug menus.
Akaluto Posted November 22, 2022 Posted November 22, 2022 21 hours ago, onslort said: Я очень хотел, чтобы этот мод и Biotech лучше вели себя вместе, и поэтому мне пришлось научиться C#. Я многому научился за прошедшие выходные! Я начал с того, что просто пытался заставить хедиф краевого мира работать с Milkable Colonists, и в итоге изменил множество вещей. В итоге получилось почти полное переписывание. Некоторые из моих источников сейчас действительно уродливы, но я постепенно исправляю их, пока нахожу лучшие способы делать что-то. Основные изменения: Хедиф Rimworld Biotech остается, но заряд теперь устанавливается через значение полноты MC при его обновлении. (Это уродливо, но пока работает.) Молоко будет перезаряжаться быстрее, чем в стандартном MC, это настроено для более близкого соответствия скорости биотехнологического обновления молока. (Для кормления ребенка.) Как и прежде, размер груди имеет значение. Большая грудь даст вам больше молока и поможет легче кормить ребенка. Если у вашей пешки только маленькая грудь, вы можете использовать все свое молоко на одно кормление для детишек. Большая грудь может кормить нескольких детей. Молоко, которое вы получаете от дойки, теперь имеет детские порции и пищевую ценность. Я добавил рецепты на плиту, чтобы объединить 10 молочных бутылок в 1 объемное молоко. Объемное молоко лучше накормит взрослого человека. Все еще не совсем идеальная еда, но если это все, что у вас есть, вы берете то, что можете получить. Вы также можете разделить молоко большего объема на бутылочки, чтобы кормить детей. Никаких потерь в количестве ингредиентов, просто нужно время. (Я знаю, что вы потенциально можете настроить кулинарный цикл, чтобы комбинировать и раскомбинировать для повышения навыка. Мне все равно. У ваших пешек должно быть занятие поважнее.) При доении вы будете брать «целые» количества и оставлять остатки, а не устанавливать полноту на 0. Если пешка при 100% наполненности имеет в себе 3,5 молочных бутылочки (нижний предел большого размера груди), вы возьмете 3 бутылочки. и в этом примере пешка останется с остатком половины бутылки. (Что математически соответствует примерно 14% оставшейся наполненности.) Препараты изменены: Обычный Lact-x запустит лактацию пешки (и поднимет вам кайф). Теперь это продлится 10 дней, если вы не будете кормить ребенка грудью, что перезапустит обратный отсчет 10 дней. (Ценности и правила биотехнологии.) Лакт-Макс пристрастит пешку к лакт-х, даст вам постоянную лактацию, повысит скорость производства молока на 50% и повысит надои на 50%. В сумме должно быть чуть более двойного количества, если вы можете не отставать от своевременных доек. Также компенсирует голод +40%. Hyper Lact-Max делает то же самое, добавляя хедифф Heavy Lactating Permanent, за исключением того, что генерация и урожайность увеличиваются на 100%. Должно быть в четыре раза больше, если вы можете не отставать от дойки. Утоляет голод +80% (перелопачивайте эту еду). Удалена часть повреждения мозга. На задней панели я удалил CompHyperMilkableHuman, я просто использую CompMilkableHuman с корректировкой конечных значений, если у вас есть какой-либо из постоянных хедиффов. Я также проделал довольно забавную математику в некоторых местах, чтобы получить желаемые результаты. Не судите. Я медленно делаю это лучше. Я не изменил идентификатор пакета, поэтому все зависимости должны работать. Если вы используете его вместе с существующей копией RJW-MC, он, вероятно, будет жаловаться и/или каким-то образом сломаться. Вероятно, в нем есть ошибки. Я думаю, что он у меня есть, поэтому он правильно работает с несколькими наборами груди из моего ограниченного тестирования. Я добавил отладку к параметрам, чтобы мне было легче видеть добавляемые/удаляемые суммы. Я оставил это для любопытных. rjw-mc-biotech.zip 429,96 КБ · 226 загрузок This SHOULD be a separate page. By the way, I would like to make a couple of suggestions or I want to, and in general I consider your approach as correct as possible and I believe that you are authorized to conduct this as an independent fork. Like MC by Onslort 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now