RimWorld

RimWorld

Better autocasting for Vanilla Psycasts Expanded
288 Comments
Erron Black 13 Jul @ 3:27am 
Thank you <3
Toby  [author] 13 Jul @ 2:40am 
That sounds complicated but I'll try to remember doing it eventually
aef8234 13 Jul @ 1:27am 
Oh nice it updated, thanks dude.


Can you also add skip from VPE into autocasting? But it target the caster and lets the pawn teleport closer to whatever they're walking towards? Like blink from rimworld of magic?
布丁蛋糕 13 Jul @ 1:09am 
good!
Falcrow 13 Jul @ 1:01am 
Thanks Toby. xoxo
Toby  [author] 13 Jul @ 12:40am 
Done
Toby  [author] 13 Jul @ 12:29am 
Aye that'd to it. Update soon
Erron Black 12 Jul @ 5:05pm 
Could not find a type named BetterAutocastVPE.JobDrivers.JobDriver_GotoLocationAndCastAbilityOnce
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.ParseHelper:ParseType (string)
Verse.ParseHelper/Parsers`1/<>c__DisplayClass2_0<System.Type>:<Register>b__0 (string)
Verse.ParseHelper:FromString (string,System.Type)
(wrapper dynamic-method)
Toby  [author] 12 Jul @ 3:42am 
Lel, is there even any issue yet?
Cade 12 Jul @ 12:15am 
Do it Toby, make us all happy <3
Toby  [author] 9 Jul @ 5:22am 
That's the plan yea :p
early_retirement 8 Jul @ 1:10am 
Its hard to go without this mod, hope you update to 1.6!
Skullywag 1 Jul @ 7:24am 
I should learn to read, my apologies
Toby  [author] 1 Jul @ 7:11am 
That's a problem with VPE itself (see second line of this page :^) )
Skullywag 1 Jul @ 6:12am 
Totally a nice to have, but the ability to disable autocast even if pawn doesnt have enough focus, currently cant disable autocast and i forget to watch the pawn until they do so they autocast and im stuck not being able to disable autocast again :D
XeN0 15 Jun @ 12:09pm 
Confirming the search bar shows up on the blocked jobs list and works now. Thank you!
Toby  [author] 15 Jun @ 9:13am 
Okay now actually
Toby  [author] 15 Jun @ 2:06am 
Fuck I forgor halfway through implementing
XeN0 14 Jun @ 9:47pm 
So uh, just went to test it and there is a search bar, but only on the main options page of the mod. The search bar disappears when I go to the blocked jobs page.
Toby  [author] 14 Jun @ 7:16am 
Added search (big text input at the top of settings). No better sorting though
XeN0 12 Jun @ 5:56pm 
It would be a HUGE help because the list of jobs isn't fully sorted alphabetically. So trying to find the right job is like looking for a needle in a haystack. I would greatly appreciate it if you could spare the time to add it!
Toby  [author] 11 Jun @ 11:03am 
I've been asked about that before,.I should really get around to it
XeN0 4 Jun @ 10:12pm 
Would it be possible to add a search bar to the blocked jobs list in the mod config?
Toby  [author] 2 Jun @ 3:53am 
@KyleFRS added!
Toby  [author] 2 Jun @ 3:13am 
@Head The original did to some degree but I didn't comprehend it when it broke so it's gone now
Head 1 Jun @ 3:49pm 
Does this improve the AI too? Like when enemy psycasters raid you
Sweep Tosho 1 Jun @ 12:17pm 
hello! could you please add focus to the autocasts? i have a protector pawn and i wanna autocast it off cooldown
Toby  [author] 30 Apr @ 3:52am 
I'll try to remember to update the default to not interrupt caravans
Toby  [author] 30 Apr @ 3:51am 
Oh I forgot to publish the update to (try to) fix that NRE there
@Dire Lemming, you can toggle which jobs do and don't get interrupted in settings
Dire Lemming 26 Apr @ 12:31am 
You might want to disable autocasting for pawns forming a caravan if that's possible. If a pawn autocasts something while roping animals to the edge of the map they'll let the animals go and the caravan will get stuck forming until cancelled.
孤星 22 Apr @ 5:48am 
Exception in Verse.TickList.Tick: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 919E3B42]
at Verse.Pawn.Tick () [0x0064a] in <630e2863bc9a4a3493f2eff01e3a9556>:0
- TRANSPILER Krkr.RocketMan.Soyuz: IEnumerable`1 Soyuz.Patches.Pawn_Tick_Patch:Transpiler(IEnumerable`1 instructions, ILGenerator generator)
- POSTFIX dev.tobot.vpe-better-autocast: Void BetterAutocastVPE.Patches.Pawn_Tick_Autocast:Postfix(Pawn __instance)
- FINALIZER Krkr.RocketMan.Soyuz: Void Soyuz.Patches.Pawn_Tick_Patch:Finalizer(Pawn __instance, Exception __exception)
Toby  [author] 21 Apr @ 9:27am 
@Linnun that sounds like the Runecircle area is missing for some reason, but it should be getting added automatically every time you load or save a map (if it's missing) :/
It's been 9 days did anything change?
Toby  [author] 21 Apr @ 9:23am 
@shoggy word of productivity isn't a Vanilla Ex Ability and I can't easily handle those
Toby  [author] 21 Apr @ 9:23am 
@Floofy Princess Devina you can turn on/off specific jobs to not interrupt in the settings
Floofy Princess Devina 20 Apr @ 2:11pm 
hey how do i make it so it won't try to autocast stuff while doing psychic rituals
Linnun 12 Apr @ 1:50am 
Clicking on any of the runecircle spot gizmos (Add Greater Runecircle spots, Remove Greater Runecircle Spots, Add Runecircle spots, Remove Runecircle spots) prints red errors and does nothing. Tested with a minimal setup of mods of only this one + requirements (VPERunesmith, VPE, VFE, Harmony, all DLCs).
Can you look into this? :)

Exception in UIRootUpdate: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 56DA4828]
at BetterAutocastVPE.Designator_Area_Runecircle.SelectedUpdate () [0x00015] in <9e1d94a40a714384b1f0ee6e451c4361>:0
坂井真子 22 Mar @ 10:41pm 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1541721856
Alpha animals have some psycasts cannot be autocasting. Do you have a compatible plan
shoggy 17 Mar @ 8:06am 
i love this mod. could you make a word of productivity toggle for using it on guests? I don't think it should be removed as it could be useful, but the goodwill loss on someone who can't do any work is sad
Lobanych 16 Mar @ 12:31pm 
Oh, and another problem. The autocast postfix for Warlord spams the log and slows down TPS
Lobanych 16 Mar @ 12:29pm 
I don't know what's going on, but Crystal's autocast isn't always buggy. Sometimes it works as it should, sometimes the pawn gets stuck in place like a record.
Nirahiel 15 Mar @ 11:20am 
Yay ! Thanks, finally I can re-enable these autocasts :D
Toby  [author] 15 Mar @ 6:18am 
Fixed Word of Immunity
Toby  [author] 15 Mar @ 5:25am 
@Lobanych I added some a debug logging option, can you enable that and tell me if it says any more info? Also, can you tell where it's trying to cast it? Is there something in the way there?
Toby  [author] 14 Mar @ 2:28pm 
Fixed Word of Joy, I was stupid and not actually using the lowjoy check :⁾
Lobanych 14 Mar @ 12:45pm 
https://gist.github.com/HugsLibRecordKeeper/2eedb669c23df15f8193066f5cda9201
Log is too bug to place here, so here's the Hugs-Link.
My pawn keeps trying to summon an ice crystal, but keeps interrupting the cast halfway through, and so on and so forth.
Nirahiel 14 Mar @ 12:05pm 
I'm not sure what's happening, but my mood threshold is set to 40.05%. It autocasted it on a pawn that had more mood than this.
Re-enabled autocasting just now, my pawn went to "word of joy" another pawn which had 75% mood.
The caster themselves had 72% mood, not sure if that's relevant.
So yeah, I won't be autocasting WoJ for now... Shame. (Also yeah, not wasting psyfocus on useless word of immunity would be great, too !)
Toby  [author] 14 Mar @ 5:23am 
I have not done any code changes at all yet, no, I keep getting letting myself get distracted by other stuff.
There is a configurable mood threshold for Word of Joy which defaults to 20%. Is that not working?
Nirahiel 13 Mar @ 1:22pm 
Word of joy ignores target's mood when autocasting.
Also you didn't fix the word of immunity bug did you ?
Toby  [author] 4 Mar @ 7:24am 
I can't read :3