RimWorld

RimWorld

Better autocasting for Vanilla Psycasts Expanded
320 Comments
Toby  [author] Aug 21 @ 2:38am 
Either way it's fixed now
Toby  [author] Aug 21 @ 2:16am 
yea lmao
VitaKaninen Aug 21 @ 2:12am 
I guess that tells you how often people have used that function before.
Toby  [author] Aug 21 @ 1:52am 
Oh heck, Windows doesn't allow : in filenames, my bad :(
[MNI]Mollark Aug 21 @ 12:31am 
I'm getting this error when trying to uninstall the mod via the mod settings.

Exception while init saving file: C:\Users\molla\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Saves\2025-08-21T02:26:45 - Before uninstalling Better Autocasting.rws
System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\molla\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Saves\2025-08-21T02:26:45 - Before uninstalling Better Autocasting.rws".
[Ref 49A47CB6]
VitaKaninen Aug 19 @ 2:05pm 
Ok, thanks for a great mod!
Toby  [author] Aug 19 @ 11:12am 
Man I wish I had another wave of inspiration for programming but atm I'm burned out lel
PRs appreciated
VitaKaninen Aug 16 @ 4:58pm 
Would it be possible to add Word of Inspiration to the list of supported psycasts?
Techpriest Emily Aug 16 @ 4:46pm 
@BLKCandy same, actually found this mod because I said screw it and started looking for them
Nikolaier Aug 5 @ 10:38am 
Yeah, it has 2 lines that appear, with the second one being exactly what you described, and the first one trying to use the equipped weapon on the target.
Toby  [author] Aug 5 @ 10:22am 
@Nikolaier Could you turn on debug logging in this mod's settings, reproduce the error, then check if the log says something like `Pawn_TryGetAttackVerb_Postfix for Pawn Name set verb to Ice Crystal`?
Nikolaier Aug 5 @ 5:36am 
I noticed an issue when using this mod together with Misc Training. Pawns set to autocast solar pinhole or ice crystal will use those when trying to use shooting targets, in the later case even destroying the target by replacing it with the crystal.

No clue how much effort this would take to fix, or if its even possible on your end, so I wont blame you if its just gonna stay an issue.
squidd Aug 1 @ 11:47pm 
nevermind, i found the toggle for it disabled in the mod settings.
squidd Aug 1 @ 12:25pm 
my casters don't seem to be autocasting solar pinhole at all with the designations set. am i the only one?
Toby  [author] Jul 30 @ 11:23pm 
:)
BLKCandy Jul 30 @ 7:38pm 
Auto enchant quality? auto mend? Damn, I have been wishing for these for ages. I had just discovered this mod.
Toby  [author] Jul 26 @ 8:14am 
Fixed Darkvision and also area stuff
Toby  [author] Jul 26 @ 7:32am 
I cannot replicate that behavior, do you have any other mods running?
Glass Shahk Jul 26 @ 6:10am 
Pawns set to autocast solar pinhole won't do it during scheduled work time. I can only get them to do it if I set their schedule to Anything
Toby  [author] Jul 22 @ 1:26am 
ohh, I can check
aef8234 Jul 21 @ 5:04am 
From what I can tell, psycasts that already autocast in Vanilla Psycast expanded don't use the interval option from the mod, can you please allow it?
Toby  [author] Jul 21 @ 1:20am 
And I do not understand the second question ^^;
Toby  [author] Jul 21 @ 1:19am 
Game at 1x speed runs at 60 ticks per second
aef8234 Jul 21 @ 1:19am 
Hello, I just have a question. How many ticks are a second for autocasting? Also can you apply the autocast interval option to ALL psycasts for VPE?
Toby  [author] Jul 21 @ 1:15am 
You can upload it to something like pastebin and just share the link here :)
I'll check it out
bHeaded Jul 21 @ 12:45am 
Verse.Thing:DoTick ()
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch2 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch2 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)
bHeaded Jul 21 @ 12:45am 
BetterAutocastVPE.PsycastingHandler:HandleHediffPsycast (Verse.Pawn,VEF.Abilities.Ability,BetterAutocastVPE.PsycastingHandler/TargetType[],BetterAutocastVPE.PsycastingHandler/FinalTargetType,bool,string,System.Func`2<Verse.Pawn, bool>)
BetterAutocastVPE.PsycastingHandler:HandleDarkvision (Verse.Pawn,VEF.Abilities.Ability)
BetterAutocastVPE.PsycastingHandler:HandleAbility (Verse.Pawn,VEF.Abilities.Ability)
BetterAutocastVPE.Patches.Pawn_Tick_Autocast:ProcessAbilities (Verse.Pawn)
BetterAutocastVPE.Patches.Pawn_Tick_Autocast:Postfix (Verse.Pawn)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Pawn.Tick_Patch1 (Verse.Pawn)
bHeaded Jul 21 @ 12:44am 
Hey noticed this in my logs but its too long to post all of it here:
Better Autocasting - <b><i>Please report this</i></b> - Failed to validate VPE_Darkvision for <color=#D09B61FF>Cheda Echidna</color> on Doc (Thing_Human1133) - this is most likely harmless but means that I implemented something wrong.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
BetterAutocastVPE.PsycastingHandler:CastAbilityOnTarget (VEF.Abilities.Ability,RimWorld.Planet.GlobalTargetInfo)
BetterAutocastVPE.PsycastingHandler:HandleTargetedPsycast (Verse.Pawn,VEF.Abilities.Ability,BetterAutocastVPE.PsycastingHandler/TargetType[],BetterAutocastVPE.PsycastingHandler/FinalTargetType,System.Func`2<Verse.Pawn, bool>,bool)
Toby  [author] Jul 18 @ 8:35am 
Do you have VEF installed?
bagelhe Jul 18 @ 2:41am 
heya
I get this error at startup

ReflectionTypeLoadException getting types in assembly BetterAutocastVPE: System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not resolve type with token 0100005c from typeref (expected class 'VEF.Abilities.JobDriver_CastAbilityOnce' in assembly 'VEF, Version=1.1.7.0, Culture=neutral, PublicKeyToken=null')
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.ModAssemblyHandler.AssemblyIsUsable (System.Reflection.Assembly asm) [0x00000] in <981a33edf24d499488b0f820d94638e1>:0
System.TypeLoadException: Could not resolve type with token 0100005c from typeref (expected class 'VEF.Abilities.JobDriver_CastAbilityOnce' in assembly 'VEF, Version=1.1.7.0, Culture=neutral, PublicKeyToken=null')
Toby  [author] Jul 17 @ 4:07am 
Had not even considered that, will fix later
Skullywag Jul 17 @ 2:09am 
Pawns seem to ignore the Odyssey outfit stands with "mend" in the name for the technomancer mend autocast.
Erron Black Jul 13 @ 3:27am 
Thank you <3
Toby  [author] Jul 13 @ 2:40am 
That sounds complicated but I'll try to remember doing it eventually
aef8234 Jul 13 @ 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?
布丁蛋糕 Jul 13 @ 1:09am 
good!
Falcrow Jul 13 @ 1:01am 
Thanks Toby. xoxo
Toby  [author] Jul 13 @ 12:40am 
Done
Toby  [author] Jul 13 @ 12:29am 
Aye that'd to it. Update soon
Erron Black Jul 12 @ 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] Jul 12 @ 3:42am 
Lel, is there even any issue yet?
Cade Jul 12 @ 12:15am 
Do it Toby, make us all happy <3
Toby  [author] Jul 9 @ 5:22am 
That's the plan yea :p
bHeaded Jul 8 @ 1:10am 
Its hard to go without this mod, hope you update to 1.6!
Skullywag Jul 1 @ 7:24am 
I should learn to read, my apologies
Toby  [author] Jul 1 @ 7:11am 
That's a problem with VPE itself (see second line of this page :^) )
Skullywag Jul 1 @ 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 Jun 15 @ 12:09pm 
Confirming the search bar shows up on the blocked jobs list and works now. Thank you!
Toby  [author] Jun 15 @ 9:13am 
Okay now actually
Toby  [author] Jun 15 @ 2:06am 
Fuck I forgor halfway through implementing