RimWorld

RimWorld

KlopKots Target Priority
20 Comments
KlopKot  [author] 20 Oct @ 7:19am 
@ferny
This is a check that allows to immediately stop preparing an attack on a target if it doesn't meet the criteria of rules. (I forgot to give it a proper name.) This can be important when working with single-shot weapons like sniper rifles or rockets, to prevent pawns from firing random, unnecessary shots or wasting time on aiming.
Does it use a lot of CPU?
It performs several basic checks internally, and the main part is only triggered for the player's drafted pawns.
I assumed that as long as the player's pawn count is within the vanilla maximum, everything should be fine. Was I wrong?
ferny 19 Oct @ 11:30am 
Could you make Patch_Test4 lighter on the CPU? It's always calling even when not in any sort of combat situation, maybe have it only tick when absolutely necessary or tone down its severity internally
KlopKot  [author] 19 Aug @ 8:12pm 
@Soos
@Techercizer
Sorry, my bad, should be fixed now.
Soos 19 Aug @ 4:55pm 
Getting the same error as Techercizer
Techercizer 19 Aug @ 4:10pm 
Hey, I don't know if you support this but I'm using this as part of Ferny's 1.5 modpack and the latest update you made caused a massive spam of errors that look like this

https://pastebin.com/1iFqG6Ty

Any chance this is fixable? Had to disable the mod for now but I did like making good use of it before today.
KlopKot  [author] 19 Aug @ 5:08am 
@VitaKaninen
These limitations in mod are semi-intentional.
First part, ofcourse shame on me, im not so good code-writer to go so deep and change complex behavior of not drafted pawns. It much simplier while they just stand drafted and watch for targets.
Second part i didnt want to cross (maybe crapy) game balance and give player options that aren't there by default. You cant control what you cant control. Its delfault vanilla Rimworld experience to open fire automatically to kill puny prisoners, slaves or colonists if they do something aggressive. )
Its not good, but its ok. I think.

I updated mod( and writed some changelog). If you want, you can try and write if something is wrong.
(TargetPriority now needs to be loaded before Vanilla Expanded Framework to work correctly with turret-backpacks)
VitaKaninen 17 Aug @ 6:52pm 
When I have a prison break, my pawns ignore the designation if they are not drafted, and still kill my prisoners. When they are drafted, they will follow the rules, but if they are set to attack in the policy manager, they will ignore your mod, and kill the prisoners.

Also, if I have my pawns equipped with turret packs from vanilla apparel expanded, the turrets will ignore the designation and attack.

Also, it would be nice to be able to designate non-hostile pawns, such as my own people or prisoners. I don't want everyone to insta-kill someone as soon as they go berserk or have a prison break before I have a chance to mark them. It would be nice if there was a default setting that would auto-mark prisoners, slaves, and colonists as "ignore" as soon as they are added to the colony. This way, I can deal with it manually.

There is no situation where I want everyone to just open fire automatically and attempt to kill a prisoner, slave or colonist when they go rogue.
KlopKot  [author] 20 Jul @ 7:09am 
@Danger Girl Forever Ok, i hope everything will work correctly. Thanks for feedback )
Danger Girl Forever 20 Jul @ 6:22am 
Thank you for responding Klopkot. I just logged back in and the ignore mark was gone. Ill try it again next raid to see if I can mark and unmark people. :)
KlopKot  [author] 19 Jul @ 11:50pm 
@Danger Girl Forever Sounds like mod problem.
I wasn't able to reproduce this case. (Runned RimWorld without any other mods for quick launch, maybe its actually mods incompatibility)
But i added some checks to try avoid something like this, and updated mod.
Could you try it again and tell, was it fixed?
Danger Girl Forever 19 Jul @ 10:32pm 
@Klopkot Thank you for responding. It was a raider who was a relative so I marked him as ignore. He is now captured in my prison but still has the mark and I couldnt find a option to turn the mark off. Im probably doing something wrong
KlopKot  [author] 19 Jul @ 10:00pm 
@Danger Girl Forever Hi, by default there should be no pawns marked as targets. To make them primary or ignored target use the button which shows up with selecting pawns(or turrets), also this buttons turns it off.
If button or marks dont shows up it possibly disabled in mod options, or it can be a compatibility problem with some other mod.
Danger Girl Forever 19 Jul @ 8:58pm 
Hello :) how do I take the target off of someone?
KlopKot  [author] 16 Jul @ 8:10pm 
@sashakiller33 Made fix. Should work for now, but didnt tested enough to be fully sure
sashakiller33 16 Jul @ 5:46am 
Not working correctly with bots from The Dead Man's Switch
KlopKot  [author] 10 Jul @ 9:18pm 
@ferny OMG! Thanks for noticing! I hope i have fixed this for now.
ferny 8 Jul @ 7:18pm 
Really great, just did some testing. Very underrated, love the mod options. Maybe make the basic first setting enabled by default so people at least get the basic function of the mod when they sub
KlopKot  [author] 6 Jul @ 5:17am 
@ferny Thanks )
SAUCE__GODD 3 Jul @ 3:08pm 
"Hey, shoot that guy"
ferny 3 Jul @ 4:51am 
Woah this is neat