RimWorld

RimWorld

Mutated Pawn
131 Comments
wowhvb  [author] 13 Aug @ 12:47pm 
@cykonetic I posted an explanation a few pages down. I post it here again for the convenience "When I did the update, HugsLib, a dependency I used to help making the mod option interface, was not updated yet. Since a few people already told me I should stop using HugsLib, I took the opportunity to redo the mod setting GUI and remove HugsLib completely. However, I could not handle it gracefully enough and quite often, the old settings messed up and create errors as such. I am glad it works for you now."

The button will list all the genes my mod can find in the console log window (the place where you got all the error messages).

Cheers!
cykonetic 13 Aug @ 7:37am 
I did as you asked. I'm not sure why but that seemed to do the trick. Here is the log from that start.
https://gist.github.com/HugsLibRecordKeeper/faae30abb5dd9db599ced5dfd75794ec

Also, in the options there is a button to show all gene defs. How is that supposed to work? Clicking the button did not seem to do anything.
wowhvb  [author] 12 Aug @ 10:05pm 
@cykonetic Thanks for the feedback! I suggested you try this approach first, if haven't. "Could you try again, this time, before you start a new game, please go to the mod setting and adjust every value in the setting first? Every option, just put some value in there. You can type anything for black/white list, doesn't have to be proper name. After that, restart Rimworld and see if there is any error. Maybe try a new game also". Thanks!
cykonetic 12 Aug @ 9:50pm 
I dunno. I mucked around in the code for a bit but I couldn't find the issue. Here is the HugsLib log.
https://gist.github.com/HugsLibRecordKeeper/f3ccba0d54010af18009ae740674149e
cykonetic 12 Aug @ 9:51am 
Your mod seems to be breaking World Spawn; I haven't dug in to see why but for what ever reason it is preventing Factions from spawning.
wowhvb  [author] 10 Aug @ 10:18am 
Modding is a fun but tricky. I am glad you got it working and hoping it would remain consistent! Wish you a great time on the Rim!
Danna 10 Aug @ 7:44am 
I have no idea what I did, I removed half of the settings from the blacklist and now its seemingly working again. I must be doing something fundamentally wrong, but now it's working and I'm just not gonna touch anything in any setting until I'm done with this run.

Clearly the issue is on my side, so thank you for a great mod either way! I have it set up now so like 5% of everyone will have a single random gene and I think it will make things very interesting.
Danna 10 Aug @ 7:23am 
I've done a bit of testing and it's still quite borked even without your mod, so I'm beginning to think that something is fundamentally weird with my installation or something.

Because I can sort of force-reset Tweaks Galore settings to make it work, but otherwise that also won't really work initially no matter what I do, and now I'm unfortunately able to get your mod to give me any genes whatsoever despite it giving me all of them previously :/

And your mod *did* work first time I tried it, I just didn't manage to get the blacklist to work, but now it seems I've just borked everything somehow.
wowhvb  [author] 9 Aug @ 10:17pm 
If you tried the below and it doesn't work or only sometimes works, it is a problem with my mod. It might have a bug or it cannot play well with other mods. You can help me by keep trying and tell me what happened. However, I cannot guarantee I can solve the problem :(
wowhvb  [author] 9 Aug @ 10:16pm 
@Danna if black list/white list can do what you want (albeit more work), then it is not a weird request. It is what my mod tries to do.


For "MMHorns_DoubleCrown - double crown horns", MMHorns_DoubleCrown is the genedef and double crown horns is the LabelShortAdj. You are right.

For "CYB_ViolenceAverse - violence averse", CYB_ViolenceAverse is the genedef and violence averse is the LabelShortAdj. You are right again. The - separates them.

If you want to black list every thing with CYB, MM and Outland, you can type in "CYB,MM,Outland" (without the quotes). Or just CYB or MM or Outland if you want to black list just the genes from that mod. The same for white list, just opposite effect. You probably want either the full genedef name or the full LabelShortAdj name though. Separate them by commas also.
Danna 9 Aug @ 8:05pm 
Ok this seems like this might just be something really weird specifically to me. This and a couple of other mods with granular settings seems to have like a 50% chance to work or not, and shifting like one mod around to refresh it makes it all work every time, and then it stops working the next time I test it.

So uhh, I'll keep going at this.
Danna 9 Aug @ 7:37pm 
Like I am assuming that for example the gene "MMHorns_DoubleCrown - double crown horns" has "MMHorns_DoubleCrown" as the genedef and "double crown horns" as the LabelShortAdj?

For "CYB_ViolenceAverse - violence averse" the first part is the genedef and the "violence averse" is labelshortadj etc.?

I tried putting in "CYB" and "MM" and "Outland" in the blacklist as wildcards, but these did not seem to work for example. I will try again today and see if I can get those blacklists to work somehow.
Danna 9 Aug @ 6:54pm 
@wowhvb Basically, the black/white list I assume I would essentially blacklist whole mods and then for every gene I want, figure out the exact names of the ~70 or so genes I want without including the other ones, and add them to the whitelist?

This is doable, but I wasn't sure what parts to grab from the gene names, tried out a few ways of writing and the blacklist didn't really seem to hold. (I'm having trouble trying to figure out where I can see "LabelShortAdj" for example.)

So I just thought "Oh no, now I have to test and figure out why this isn't working. If this mod could see the Tweaks Galore list that I've already manually sorted to perfection and use that, this would be also be perfect already".

I understand this is a very specific and odd request. I will try again to make the blacklist just skip all the mod genes at least. I'd be kind of fine with that.
wowhvb  [author] 9 Aug @ 10:07am 
@Danna Hello! What exactly are you trying to achieve? Or it is just that black/white list doesn't work for you?
Danna 9 Aug @ 3:06am 
I am very much a beginner modder and don't know how viable this is, so I might be asking something very stupid here, and if so I'm very sorry.

But after having done some very heavy adjusting of my mod list, I wanted to ask if it would be possible to have and option instead of blacklist/whitelist that this look at the genepack settings under the Biotech category in Tweaks Galore?

I have a lot of mods I want to use for making xenotypes, but I don't want them to spawn in trader genepacks etc. and actually be unique to the xenotypes, so I've gone in and turned most of it off in Tweaks Galore. Like literally hundreds of genes :stress:

But I'm having problems getting the same granularity in this mod, so if it could just use that list instead it would be amazing.
wowhvb  [author] 4 Aug @ 6:38pm 
@Monkey Magic When I did the update, HugsLib, a dependency I used to help making the mod option interface, was not updated yet. Since a few people already told me I should stop using HugsLib, I took the opportunity to redo the mod setting GUI and remove HugsLib completely. However, I could not handle it gracefully enough and quite often, the old settings messed up and create errors as such. I am glad it works for you now. Cheers!
Monkey Magic 4 Aug @ 2:44pm 
Hmm, so I typed some gibberish into the "black list" and "white list" boxes, and this was enough to stop the error. Didn't need to adjust anything else, the game launched without issue.

Interestingly enough, when I then deleted what was written in those boxes, and the error did not recur.
wowhvb  [author] 4 Aug @ 12:34pm 
@Monkey Magic Thanks for the feedback! Could you try again, this time, before you start a new game, please go to the mod setting and adjust every value in the setting first? Every option, just put some value in there. You can type anything for black/white list, doesn't have to be proper name. After that, restart Rimworld and see if there is any error. Maybe try a new game also. Thanks!
Monkey Magic 4 Aug @ 6:36am 
Not working for 1.6 apparently. The mod appears to work without issue when loading the game, but when you attempt to generate a world (either with the dev quick setup, or an actual playthrough) it throws up a bunch of red errors

https://pastebin.com/15pxTNNt
wowhvb  [author] 15 Jul @ 6:13pm 
@HEX: Malinovsky, I could not replicate the error (no other mod, all DLC except Odyssey). According to the error messages, the error occurred when handling black/white listing feature. I made a dirty fix by ignoring black/white list if some error happens during this step. You can give it a go and see if you can load a new game. Have a look at debug and let me know how it goes. Thanks!

I move all error messages to a discussion thread to avoid clustered text.
wowhvb  [author] 15 Jul @ 11:49am 
This mod has always been dependant on Harmony. Thanks for the error messages.
414 Malinovsky Too Long 15 Jul @ 10:34am 
I disable all mods and Odyssey DLC. It's still gives errors when creating the world. And, for some reason, it's now depends on Harmony lib (???). Have some warnings after try to activate only your mod
wowhvb  [author] 15 Jul @ 10:08am 
Hmmm... I don't have the latest DLC. Could you try again without any other mod, jist DLC and show me the error messages? Also, try after unsubscribe and subscribe to the mod. Thank heaps!!
414 Malinovsky Too Long 15 Jul @ 2:15am 
Upd.

I turned off all mods, leaving only DLCs. The problem persists.
414 Malinovsky Too Long 15 Jul @ 2:08am 
Thank you for your reply!

I don't have the white and black sheets configured in this mod (partly because I couldn't get into the settings for some reason), but I also didn't configure them in previous versions of this mod (1.4, 1.5).

Regarding mods that interact with genes:
Animal Genes
Better Gene Inheritance
Gene Fabrication
GeneLibrary
Some VRE – Genie, Highmate, Pirates(?), Pigskin
[AV] Ancient Spacer Xenos
Altered Carbon 2: ReSleeved

All of this mods (except Animal Genes) I used for a while (1.4, 1.5) with your mod.
wowhvb  [author] 15 Jul @ 2:00am 
@HEX:Malinovsky Thanks for the error messages. Can you also give me your black list and white list strings? Also any gene related mods?
414 Malinovsky Too Long 15 Jul @ 1:51am 
Tried to fix the previous error, encountered a new one when creating a new world, lol.
There are several other similar errors, but as I understand it, they all come from the first one. And all of them are somehow related to the generation error. Unfortunately, I can't publish anything longer than 1000 characters
chrisque1 14 Jul @ 6:40pm 
Tnxs a lot :8bitheart: "Black/white listing entries are treated as wildcard. "hair" will include any gene that has "hair" (case-insensitive) in defName or LabelShortAdj.
White list will override black list. For example, you can black list anything with "hair", then white list "Hair_InkBlack"."
wowhvb  [author] 14 Jul @ 5:55pm 
@HEX: Malinovsky I also had some problems with settings when I switch between the dev version (on my hard disk) and the Steam version (downloaded). It didn't freeze, but it did give some errors. All problems went away after I restarted RimWorld a couple of times though. Maybe the old settings messed up the new ones? Could you give the good old "turn it off and on again" a few times and let me know how that goes?

@Vortek Gamer Is it possible for you to turn on debug mod and look for any text that has my mod name (Buggy or MutatedPawn) and paste it here? Thanks in advance!
Vortek Gamer 14 Jul @ 3:39pm 
I am also having issue with the latest update for this mod that it cause map not able to generate faction (Was using VER) and other race mod
414 Malinovsky Too Long 14 Jul @ 2:10pm 
Hi! Glad to see this mod on 1.6

I ran into a problem - I got into the mod settings, but I can't close the window in any way except by completely closing the game. Also, all the settings I made are not saved for some reason
wowhvb  [author] 14 Jul @ 2:09am 
Hello gravship captains! I updated the mod. Here are the changes:

_ Add compatibility for 1.6.

_ Remove HugsLib dependency. All previous mod settings are lost. Please visit the new settings.

_ Black/white listing entries are treated as wildcard. "hair" will include any gene that has "hair" (case-insensitive) in defName or LabelShortAdj.

_ White list will override black list. For example, you can black list anything with "hair", then white list "Hair_InkBlack".

_ Add custom tick time for both growing carcinoma and toxic build up mutation. Default is still 5k. Thanks Arthur GC for the suggestion.

Please let me know if you find any issues. I couldn't play test as much as I should.

Cheers!

@StarOri I am still working on babies' mutations.
StarOri 26 Jun @ 12:27pm 
Well I just found this mod: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3437352835 which has a random gene feature for babies (the other random features cannot be disabled though)
wowhvb  [author] 18 Jun @ 12:39pm 
Hmmm, that indeed sounds interesting. I will also give it a go. I will probably do the 1.6 compatibility update and tick time option first. After that, I will look into the baby mutation idea. Thanks StarOri!
StarOri 18 Jun @ 12:28am 
Hello, thank you this mod is awesome!
Did you consider to add a chance for children to have one random "mutated" gene (a random new gene) on birth? I think this would be a really nice addition to the immersion and possible "stories creation", this does not happen often in reality of course but if we could tweak the chances, anyone would probably be fine with that.

Would that be complicated to add?
Arthur GC 17 Jun @ 8:42am 
Since my current my mod list is huge, I'm still on 1.5.

But that's ok, no problem.

Thanks for the mod :)
wowhvb  [author] 17 Jun @ 2:23am 
Also, I will only work on the update when 1.6 is officially out. If you are in the beta and find a problem, please let me know so I can think about it in advance!
wowhvb  [author] 17 Jun @ 2:21am 
Thanks for the suggestion @Arthur GC. I will try to add this option when updating for 1.6. However, I don't have much time to test/play anymore. So it might be buggy. Sorry in advance :(
Arthur GC 30 May @ 8:52pm 
Would it be possible to add a mod setting to configure the 5000 ticks setting? In my opinion 5000 ticks is way too frequent (60000 / 5000 = 20 attempts per day).

If I understood the mod settings correctly, twenty 5% of mutating attempts per day is the same as 64.15% of it happening at least once per day.

Maybe the default settings should be every 60000 or 30000 ticks instead of 5000 (at least for the growing carcinoma trigger).
Arthur GC 30 May @ 6:25pm 
It should be obvious to everyone that wants to use the mod, but Biotech should be added as a mod dependency for better mod sorting.
wowhvb  [author] 24 May @ 10:35am 
@UNKnOWNa55As5IN Here is how endo/xeno options work

If xeno genes are not allowed, all mutations will be endo.
Otherwise, any mutation will have a 50% chance of being xeno.

You can turn on debug and read the messages. If "Xenogene chance roll" is greater than 0.5, the mutation should be xeno.

Cheers!
UNKnOWNa55As5IN 24 May @ 2:49am 
It... Seems like the option to have the mutation be endo/xeno genes is inverted or just doesn't work, I think?
chrisque1 9 May @ 11:02pm 
Love the mod :8bitheart:, but it need a better balcklist system
Monkey Magic 13 Mar @ 7:25pm 
Should prolly add a Biotech requirement here too
wowhvb  [author] 2 Feb @ 12:03pm 
@crec4et I looked at my code and saw that I used C# function "contains" to check if a white list/black list string match a gene in the game database. So I guess if you use "VERA_" as a parameter, it will white list/black list all the genes that contains the string "VERA_" anywhere in the name. Please give it a go and let me know what you guys find! I am truly sorry but I don't have time to play test or even play anymore :(
wowhvb  [author] 2 Feb @ 9:45am 
@crec4et Thank you for your contribution! I will implement your suggestion. But I don't think I can implement blacklisting the whole mod.
crec4et 1 Feb @ 11:38pm 
@watler, i have investigated this further, seems like only "hardware" genes make pawn an android (from VREA_Power to VREA_SyntheticSkin) ,"subroutines" are fine. that being said, the first two and the last five genes on your list arent "real" genes, but are rather a parent class, so blacklist cant parse them. to fully remove android aptitudes, you'd need to blacklist VREA_AptitudeBasic_Cooking and so on for each skill.

@wowhvb would it be at possible to make white|blacklists use masked strings? i.e, to remove whole bunch of genes by simply having " VREA_* "? the string type used for the list is not that long, sadly, and this will greatly reduce it's size.
Alternatively, can there be seperate lists(checklists) that would take mod names to allow|forbid genes from?
All in all, great mod,keep up the good work!
Kin 23 Jan @ 8:26pm 
this is cool
Arlington 2 Jan @ 4:47am 
i got a android gene randomly so can you try and fix that?
wowhvb  [author] 18 Oct, 2024 @ 1:06pm 
The HugsLib dependency is just for UI (mod settings). So it is possible. I will look for an alternative. Thank you for your suggestion!