RimWorld

RimWorld

196 ratings
[1.6] Do Not Avoid Fire
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
247.487 KB
5 Aug, 2024 @ 3:35am
1 Aug @ 11:40am
7 Change Notes ( view )

Subscribe to download
[1.6] Do Not Avoid Fire

Description
A simple mod which make nonflammable pawns never avoid fire when pathfinding.

can safely add/remove in midgame!

recommend go with:

Mechanoids dont beat fire

Unburned
(make mechs don't beat in fight and provide a way to make colonist non flamable)

to be specific:
this patch apply on those pawns with flammability less than 1%, which is the minimum requirement for being able to catch on fire.

============================
how it work under the hood:
When the algorithm is finding a path from the start to the destination , every "step" it took were determined by "cost" of tiles
buildings,terrain,floor,dangerous things and so on , all add various cost to the tile they belong to.
And most importantly,fire,which will add a big cost to tiles.
Bigger cost means less favorable for the algorithm.
It is almost impossible for this algorithm to generate a path going through fire ,and all pawns use the same algorithm in the vanilla.

The main intention of this mod will be "Making algorithm ignore the cost of fire when doing pathfinding for fireproof pawns"
It was achieved by two separate parts.
The first part record the cost of fire when the game is calculating cost for every tiles
The second part will intercept the data about the cost on every tiles ,and then subtract out the cost of fire before it was send to the algorithm when finding path for fireproof pawns.
Popular Discussions View All (1)
1
21 Jun @ 3:25am
Error log
TAWM
75 Comments
幻想鄉の鵬鵬  [author] 5 Aug @ 2:51am 
@KxistHtosiL 你的留言前幾天都被系統隱藏 我現在才看到
你還記得是哪項數值太高會觸發的嗎?
Camper 3 Aug @ 11:04am 
好的 謝謝你
幻想鄉の鵬鵬  [author] 3 Aug @ 10:58am 
@Camper
這邊兩個MOD都同時啟用也把基因加上去了 但挖出石頭沒報黃字
我猜是其他MOD衝突到 不過這我就不清楚
Camper 3 Aug @ 10:38am 
挖出石頭就會卡等待中加上報黃字 挖一格隧道時發生的
幻想鄉の鵬鵬  [author] 3 Aug @ 10:35am 
@Camper 指派挖礦但卡在原地動不了嗎?
Camper 3 Aug @ 10:32am 
易燃是0%
挖礦時發生的
巡路可能有關的MOD是AutoBlink Gene和Out of Combat ReBoost
幻想鄉の鵬鵬  [author] 3 Aug @ 10:24am 
目前我這邊無法復現黃字 我讓穿隧者去挖礦是正常的 你那邊是在什麼情況下觸發的? 我需要有能觸發的方法才有機會修
幻想鄉の鵬鵬  [author] 3 Aug @ 10:14am 
@Camper 小人易燃度有小於1%嗎? 如果沒有的話這個mod是不會動到的
另外是否有安裝其他可能動到尋路的模組?
Camper 3 Aug @ 10:01am 
挖礦時報黃字然後小人等待中

Resolved path returned no nodes, request: ((50, 0, 94) -> Thing_Marble2758 @ (48, 0, 94), Touch, for 首席)

UnityEngine.StackTraceUtility:ExtractStackTrace ()

Verse.Log:Warning (string)

Verse.Log:WarningOnce (string,int)

Verse.PathFinder:FinalizeRecyclePathJobData ()

Verse.PathFinder:PathFinderTick ()

(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Map.MapPreTick_Patch0 (Verse.Map)

(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)

Verse.TickManager:TickManagerUpdate ()

(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)

(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)
KxistHtosiL 3 Aug @ 4:52am 
1.6如果小人数值太高, 采矿有时会爆黄,返回 Resolved path returned no nodes