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

#1
Outdated / [A17] No Death Randomness, Fitness
November 24, 2016, 11:41:19 PM
No Death Randomness

This mod is outdated, please use Torann's Custom Death Randomness instead.

Removes the 67% chance for all non-colonist, non-prisoner pawns to die when they should only be getting downed instead. This is most noticeable during raids, as raiders often spontaneously die after getting shot in their arm once. Duh. However, this obviously creates a game balance issue, as you will be able to capture every single raider that doesn't have a vital organ destroyed.

There's an optional file that increases Torso health to 60 so people don't die to having their torso destroyed as often and thus get downed more reliably. It's optional due to being incompatible with every mod that modifies body parts. If you're using EPOE or any other similar mod, don't use this file.

Works very will with any non-lethal weapon mod, as they no longer randomly turn into instant-kill weapons.

Downloads:
A17
A16
A15

Optional Torso Health Buff File:
!DO NOT USE WITH EPOE AND SIMILAR MODS!
A17


Fitness
Fat, Hulk and Thin body types are disabled for all pawns, existing and newly generated alike.
Rewritten from scratch. Uses a different, much more compatible method.

Downloads:
A17


There's an error about incorrectly formatted target version! -> Ignore it until A18 comes out.
There should be no compatibility issues with other mods. Load order doesn't matter. Works with existing saves.

I found a bug / would like to request a feature.
Write a comment about it and I'll see what can I do.

License: Do whatever you want with this.
Thanks to ZorbaTHut for a suggestion; and RawCode, 1000101 and Zhentar for helping me learn how to detour.
#2
Help / How to edit existing code?
October 28, 2016, 08:54:39 AM
Hey. I'm trying to figure out dll modding again and have run into a problem. What I'm trying to do is to modify a single line of code in Verse.Pawn_HealthTracker and I'm not sure how to do this. What do I put right after namespace Coinflip
   {

so the code knows I'm trying to modify Pawn_HealthTracker?

When I tried to use public class Test : Pawn_HealthTracker
    {
99% of errors in the rest of the code look similar to this:

'Test' does not contain a definition for 'pawn' and no extension method 'pawn' accepting a first argument of type 'Test' could be found (are you missing a using directive or an assembly reference?)

References to Assembly and Unity .dlls are set properly, usings are fine as well.
Again, I'm not sure how to do this, so the error is possibly completely irrelevant.
Could anyone point me in the right direction?
#3
Help / Question about backstories
October 27, 2016, 01:53:42 PM
I think the fact that some pawns are unable to clean or haul or whatever is too limiting. Is there a way to disable the effect backstories have on pawn's skills? Also, it would be much better if the pawn had have zero skill and no passion for the activity instead of straight up disabling it. The problem is that I haven't found anything regarding backstories in the xml files and dll modding is too confusing for me. If anyone could point me in the right direction, or just make a mod that does the job, many thanks.
#4
Help / How do I decompile and re-compile properly?
August 13, 2016, 07:42:58 AM
Hello, I wanted to get started with modding, but am unable to figure out what to do. I'm using ILSpy to decompile. After I load Assembly-CSharp.csproj into VB VS, everything seems to work okay. However, even without changing anything and trying to build / run the project, I get about 7000 errors, and 13 warnings.
So, how do I decompile rimworld's source code, make simple changes, and re-compile it all back into a working dll?

PS: before someone suggests to check Haplo's tutorial, I already did. Again, I didn't change a single line of code.