RimWorld

RimWorld

Better autocasting for Vanilla Psycasts Expanded
389 Comments
Hugalafutro 23 hours ago 
Manually targetting a pawn (I did the same pigskin from the last message) with Focus triggers no error. Enabling the target option in mod settings produces longer log. Could the issue be all the titles after name the pawn has from VFE Empire? In game he shows as Stolyar the Great, in info card he has all 3 titles after name.

https://pastebin.com/jiX83UiE

The message is from enabling autocast, it happened on first pawn he casted it on
Toby  [author] Nov 30 @ 4:26am 
Can you manually target the pawns it says there and see what it says?
Also there should be an option to turn on target messages in the mod settings, try turning that on
Hugalafutro Nov 28 @ 6:02pm 
I can't figure why, but Focus psycast started throwing the warning in log, though it works (as far as I can tell) and in last colony with more or less same modlist no spam.
Better Autocasting - <b><i>Please report this</i></b> - Failed to validate VPE_Focus for <color=#D09B61FF>Jarad 'Stolyar' Merlicek</color> on Molppolow (Thing_Human121069) - this is most likely harmless but means that I implemented something wrong.

Of note is the pawn Stolyar was exported/imported from last colony/save to this colony/save with Character Editor at scenario start already having psylink lvl 4.

full log: https://gist.github.com/HugsLibRecordKeeper/eaad2c7858733831f4cd605ada06b911
Toby  [author] Nov 20 @ 12:23am 
Oh that makes sense
jaeger972 Nov 19 @ 12:23am 
nothing too serious but it does say "please report this"
when an animal corpse is in a "thrall" stockpile, it throws a warning for the enthrall psycast
VitaKaninen Nov 16 @ 8:33pm 
My psycasters are using Word of Inspiration on temporary cataphracts, who are unable to perform any work. I have it set to only cast on colonists, but it would be nice if it only used it on my own permanent pawns, and not temporary workers.

https://imgur.com/a/s94FOiG
jaeger972 Nov 16 @ 12:00pm 
alright I might make a PR in the coming weeks
Toby  [author] Nov 16 @ 11:57am 
I have recently become very busy with another project ^^;
Probably unlikely to happen for the near future
jaeger972 Nov 16 @ 8:52am 
would it be possible to take range adjustments from Psychic Sensitivity Affects More into account?
I would really love to have my mages autocast ice spikes and fire balls at range :)
TheXenoSenpai Nov 10 @ 7:05am 
I was like I hope theres an autocasting mod, and here I am downloading this. Thank you.
Toby  [author] Nov 10 @ 3:19am 
just had a look and I am entirely baffled by the error :⁾
Will look some more in a few hours
VitaKaninen Nov 9 @ 11:48am 
Sorry, I didn't think you would need the whole log, and mine had a bunch of other nonsense in it.

Here is a clean log: https://gist.github.com/HugsLibRecordKeeper/2f7f9a1196008df2239482209188cf23
Toby  [author] Nov 9 @ 11:33am 
As your log says: "[Ref 203CBBE7] Duplicate stacktrace, see ref for original"
You'll have to find the first isntance of that Ref in the log to see the actual full error
VitaKaninen Nov 8 @ 2:26pm 
When I have a psycaster set to autocast either Word of Production or Word of Inspiration, they are not able to throw grenades on the ground. I am using the ground targeter mod, so I am not sure if it is related to that or not. They are able to target buildings or other things, but not the ground.

https://gist.github.com/VitaKaninen/9d6416e57ecbf2e46f341a059a1aeb96
VitaKaninen Oct 30 @ 2:08pm 
Thanks!
Toby  [author] Oct 30 @ 2:05pm 
# 6.3.4.0

- All psycasts that target pawns without specific hediffs now also check that casting wil not be considered a hostile action

Relatedly I have no f'in clue why VPE team made word of productivity a hostile action :v
VitaKaninen Oct 30 @ 1:01pm 
I started a new game, gave my colonist a title, and built 2 bedrooms and a throneroom. I gave him the psycast, and set it to autocast. Then I spawned the quest, and as soon as the royal arrived, he casts word of production.

Video Clip: https://youtu.be/R-BNjlGO9Ro
Save file: https://drive.google.com/file/d/193bmtMQnJq4ZXPZn0cvfZxwvXO-4nyKJ/view?usp=sharing
Toby  [author] Oct 30 @ 12:38pm 
No that's just me simplifying how it works in the comment lel
it is set up to only target colonists, so it doesn't have any settings.
VitaKaninen Oct 30 @ 12:35pm 
My game has a lot of other mods and is fairly large. Let me see if I can reproduce it without any other mods active.

You said below that if someone is not listed, then they should not be targeted, but word of productivity does not have anyone listed, not even colonists. Maybe that is what is allowing them to cast it on them?
Toby  [author] Oct 30 @ 12:33pm 
Yup that's the hospitality quest, can't reproduce :T
Maybe share the save?
VitaKaninen Oct 30 @ 12:19pm 
I should say Lodger. For example, the empire wants you to host a noble for a set period of time. They can be drafted and ordered around, but they will not do any work.

https://rimworldwiki.com/wiki/Quests#Hospitality

This quests here where is says:
If a pawn is a noble, then you will need a bedroom suitable for their rank to accept the quest. You will also need another bedroom suitable for any of your own nobles.
Toby  [author] Oct 30 @ 12:16pm 
It gets cast on guests from a hospitality quest, but that's also not considered harmful
Toby  [author] Oct 30 @ 12:11pm 
Can you define "guests"? I spawned in a caravan and it's not doing anything
VitaKaninen Oct 30 @ 12:04pm 
They are using Word of Productivity on Empire guests for certain.

I thought they were also using Word of Inspiration as well since there is not a setting, but they don't appear to have any inspirations, so that one is probably working fine..
Toby  [author] Oct 30 @ 12:01pm 
Specifically Word of productivity is set to always and only target colonists
Toby  [author] Oct 30 @ 11:57am 
The ones not listed should not be targetted
If they are that's a bug :^)
VitaKaninen Oct 30 @ 11:54am 
Can you tell me where to find it? This is what my settings look like: https://imgur.com/a/mLTBvdO

I see that some of the other psycasts have options for colonists and slaves, but not for Word of Productivity. Word of inspiration only has a few options compared to others.
Toby  [author] Oct 30 @ 11:31am 
How do you mean? Every psycast I add has a bunch of options on who to target
VitaKaninen Oct 30 @ 8:16am 
Do you think you could add an option to only auto-cast certain skills on my own colonists?

This affects me specifically when I have Empire royals staying at my colony, and my psycasts have Word of Productivity or Word of Inspiration set to auto-cast, and they use it on the guests.

This reduces the faction goodwill, since it is considered a "harmful ability", and It is also a waste of psyfocus, since the royals don't do work and will not benefit from the increased productivity or inspiration.
Toby  [author] Oct 24 @ 12:38am 
correct
VitaKaninen Oct 23 @ 11:59pm 
It should automatically place itself after Harmony, VEF, VFE, VPE, VPE Puppeteer,
Solar Pinhole Additions, and VPE Runesmith, when you hit the sort mods button.
aegdrthgedhyrh5etehrte Oct 23 @ 9:14pm 
This should be loaded after vanilla psycasts expanded right? or before?
Zigzidu Oct 23 @ 12:17pm 
Thank you very much!
Toby  [author] Oct 23 @ 10:07am 
I'll try and see if there's a simple way to check for player-assigned work specifically
Zigzidu Oct 23 @ 8:06am 
@Toby I have been, but it's hard to find the right jobs to disable. It would be ideal if there was an option to make it so that prioritized work in general would override the auto-casting. That way I don't tell a guy to go to trade, and he decides that upgrading a marble throwing rock to excellent quality is more important.
Toby  [author] Oct 23 @ 12:07am 
@Zigzidu you can disable certain jobs from being interrupted by autocasting in the settings
Zigzidu Oct 22 @ 8:51pm 
I've been having a lot of trouble with colonists ignoring my commands due to wanting to use psycasts instead. I can't seem to find a good balance between them not autocasting at all, and them not doing anything else to the point of malnutrition and mutiny.
Toby  [author] Oct 19 @ 3:25am 
Added a setting to Power to use a maximum range
Hugalafutro Oct 18 @ 9:23pm 
Would you consider adding some sort of distance check to the Power autocasting? I have few deepchem jacks literally in the opposite corner of the map and even if they are switched off he now spends most days running from temple to cast on 1 machine then all the way across map back to temple and after a while he runs back to cast it on the other jack etc..
Hugalafutro Oct 9 @ 3:23am 
Thanks!
Toby  [author] Oct 8 @ 2:46pm 
Fixed Power targetting
Toby  [author] Oct 8 @ 2:21pm 
rendering the power thing is not from my mod, that's from VPE itself.
And it powering the wrong thing may be because i sorted them backwards
Hugalafutro Oct 8 @ 10:56am 
When the psycaster casts psycast Power (the target thing doesn't consume power for a day) it draws a triangle with infinity symbol over the appliance it was casted on. When in different zone with gravship and the psycaster is in home zone, the symbols show up on gravship map as well. When the psycaster is on the gravship only the symbols casted on the map where gravship is show.

Slightly unrelated, but the description says he'll use the autocast on greatest power consumers, but it always get cast on 15W wall lamps (while crematorium/mech chargers/wastepack atomizers are running), but I mostly need him to waste focus so he medidates so I don't mind that much.
Toby  [author] Oct 8 @ 10:09am 
I do not understand? What symbols?
The only thing this mod renders on the map is the areas, and only when you have the appropriate tools selected
Hugalafutro Oct 8 @ 10:08am 
When flying to different map with the gravship, at certain zoom-out level, the layer with the Power psycast symbols that have been casted on home map appears on the map with gravship as well.
VitaKaninen Oct 1 @ 3:35am 
Thanks a bunch!
Toby  [author] Oct 1 @ 3:30am 
Apparently there was a typo in the loadAfter for runesmith (chariheir instead of chairheir), gonna fix that up too
Toby  [author] Oct 1 @ 3:26am 
Done
VitaKaninen Oct 1 @ 2:47am 
Thanks!
Toby  [author] Oct 1 @ 2:36am 
I'll have a look; Also Gravship support is in now