RimWorld

RimWorld

46 ratings
Rimworld of Magic & Vehicles Framework Targeting fix
3
3
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
479.937 KB
28 May @ 3:31am
15 Jul @ 6:22am
3 Change Notes ( view )

Subscribe to download
Rimworld of Magic & Vehicles Framework Targeting fix

Description
UPDATE: This fix has been incorporated into A RimWorld of Magic for RimWorld 1.6. Players staying at 1.5 can continue to use this mod.

Fixed the issue where targeting for vehicles does not work after casting the RimWorld of Magic spell.

RWoM sets the caster of Targeter when casting a spell, but does not reset it to null after casting. The Vehicles Framework does not set the caster and assumes it is null, causing the target validity check to fail. This mod patches the vanilla Targeter.StopTargeting method to reset the caster to null after targeting, fixing the issue.

Since this mod is patching the vanilla method, it may solve other potential problems caused by the same reason.

Special thanks to Dorito DeVito, whose comment in JecsLite - A RimWorld of Magic inspired this solution.
12 Comments
MC Honk 21 Jul @ 9:49am 
Based on RWoM's change notes, it looks like this fix has been incorporated into the original mod
ZincKobold 18 Jul @ 4:47pm 
I didn't even know that was the cause of it. I would just randomly find my roadkill not able to move or shoot. I appreciate it.
魈猫 14 Jul @ 10:16pm 
you are my hero:leyhappy:
Leozingameplays 13 Jul @ 10:27am 
Man I kinda just chose happiness and kept in 1.5 for now lol
aciel.samael 12 Jul @ 7:31pm 
Wish I had found this earlier, will keep an eye on it for when the core mods get updates to 1.6
Leozingameplays 5 Jul @ 2:50pm 
Man this is a hidden gem. i was literally reloading the saves every time I casted something to be able to keep controlling vehicles, was a pain in the ass to do
Najica 25 Jun @ 1:13pm 
So this means we can finally play Rimworld of magic and have tanks? Thank you so much for this. Are you planning to upgrade this fix for 1.6?
Dorito DeVito 9 Jun @ 9:07pm 
Thank you for doing this! I haven't played Rimworld in a minute but still like to check in on these things for when I get re-inspired to play. Was a nice surprise to see my name in there.
Peers 3 Jun @ 5:43am 
*M48A4 used magic missile!
*Irwin collapses…
Vexacuz 30 May @ 6:42pm 
For a second i tought it was the tank casting the spell..lol.