RimWorld

RimWorld

Better autocasting for Vanilla Psycasts Expanded
322 Comments
Toby  [author] 31 Aug @ 3:16am 
I'll need to see the actual warning for that :⁾
no 26 Aug @ 8:06am 
hi sry, getting "Getting next unique ID during saving" warning when saving

UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Warning (string) RimWorld.UniqueIDsManager:GetNextID (int&) RimWorld.UniqueIDsManager:GetNextAreaID () Verse.Area:.ctor (Verse.AreaManager) BetterAutocastVPE.Area_Runecircle:.ctor (Verse.AreaManager) BetterAutocastVPE.Patches.AddMissingAreas:Postfix
Toby  [author] 21 Aug @ 2:38am 
Either way it's fixed now
Toby  [author] 21 Aug @ 2:16am 
yea lmao
VitaKaninen 21 Aug @ 2:12am 
I guess that tells you how often people have used that function before.
Toby  [author] 21 Aug @ 1:52am 
Oh heck, Windows doesn't allow : in filenames, my bad :(
[MNI]Mollark 21 Aug @ 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 19 Aug @ 2:05pm 
Ok, thanks for a great mod!
Toby  [author] 19 Aug @ 11:12am 
Man I wish I had another wave of inspiration for programming but atm I'm burned out lel
PRs appreciated
VitaKaninen 16 Aug @ 4:58pm 
Would it be possible to add Word of Inspiration to the list of supported psycasts?
Techpriest Emily 16 Aug @ 4:46pm 
@BLKCandy same, actually found this mod because I said screw it and started looking for them
Nikolaier 5 Aug @ 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] 5 Aug @ 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 5 Aug @ 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 1 Aug @ 11:47pm 
nevermind, i found the toggle for it disabled in the mod settings.
squidd 1 Aug @ 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] 30 Jul @ 11:23pm 
:)
BLKCandy 30 Jul @ 7:38pm 
Auto enchant quality? auto mend? Damn, I have been wishing for these for ages. I had just discovered this mod.
Toby  [author] 26 Jul @ 8:14am 
Fixed Darkvision and also area stuff
Toby  [author] 26 Jul @ 7:32am 
I cannot replicate that behavior, do you have any other mods running?
Glass Shahk 26 Jul @ 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] 22 Jul @ 1:26am 
ohh, I can check
aef8234 21 Jul @ 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] 21 Jul @ 1:20am 
And I do not understand the second question ^^;
Toby  [author] 21 Jul @ 1:19am 
Game at 1x speed runs at 60 ticks per second
aef8234 21 Jul @ 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] 21 Jul @ 1:15am 
You can upload it to something like pastebin and just share the link here :)
I'll check it out
bHeaded 21 Jul @ 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 21 Jul @ 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 21 Jul @ 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] 18 Jul @ 8:35am 
Do you have VEF installed?
bagelhe 18 Jul @ 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] 17 Jul @ 4:07am 
Had not even considered that, will fix later
Skullywag 17 Jul @ 2:09am 
Pawns seem to ignore the Odyssey outfit stands with "mend" in the name for the technomancer mend autocast.
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
bHeaded 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!