Ludeon Forums

Ludeon Forums

  • May 26, 2022, 04:27:31 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 ... 8

Author Topic: [1.3] [KV] Path Avoid [ModSync RW]  (Read 62361 times)

NemesisN

  • Colonist
  • ***
  • Posts: 256
  • Refugee
    • View Profile
    • RimWorld fan community group on Facebook
Re: [A17] Path Avoid
« Reply #30 on: October 11, 2017, 09:13:19 PM »

can you explain normal, dislike, hate, strong

and set values in options for them what do they do actually
Logged
Join the RimWorld fan community group on Facebook: https://www.facebook.com/groups/1404635226524821/

faltonico

  • Guest
Re: [A17] Path Avoid
« Reply #31 on: October 11, 2017, 10:55:14 PM »

Hi there!
I just bumped into this, pawns stuck at "standing", when trying to get something inside a room with the exits painted "strong", (default settings), when removing the paths they moved again.

I'd suggest making the exits strong or dislike to have pawns use other exits other than the ones marked. If strong is preferred you can try changing the value of strong to something a little less than what it is now in Mod Settings->Path Avoid.
Sry for the late reply,
Setting them to dislike has the same result, but i find out there is another problem lying behind all of that, it might be a problem with the game itself.
Logged

Nightinggale

  • Colonist
  • ***
  • Posts: 378
  • Refugee
    • View Profile
Re: [A17] Path Avoid
« Reply #32 on: October 11, 2017, 11:54:34 PM »

can you explain normal, dislike, hate, strong

and set values in options for them what do they do actually
The answer is fairly simple if you know that Rimworld use A* pathfinding and know what that is. If you enable debug options, you can set it to display pathfinding. When a colonist (any pawn?) makes pathfinding, it will write a number on each tile. The slower the movement is on the tile, the higher the cost. The values displayed are the combined values from the starting tile to the one with the print. The idea is that it uses the path which provides the lowest number when reaching the end.

This mod simply increases the cost of moving on the tiles you select. If the cost is 30 for going in a strait line and 150 to take the long way around the mountain, then it will take the strait line. If you add strong dislike and add 200, then it will figure out that 230 is higher than 150 and it will take the long way around. If the long way cost 400, it will still take the route through the disliked area because even if it's disliked, it's still better than running across half the map.

In short, the more you mark a path with dislike, the more longer the colonists will walk to avoid it. I vaguely remember something about issues if the numbers get too big for one tile. It's likely better to just make a belt where they have to cross 2-3 rows of disliked tiles than to increase the numbers.

The different levels of dislike is just different numbers.

What this is useful for is say you have a kitchen with multiple doors. You don't want it to function as a transit room, in which case you add a strong dislike to the doors and it should be equally strong for each door. Colonists can then enter the room and ignore the dislike because it's still the shortest route while they prefer to walk around the building than to go through two strong dislikes. The weaker dislikes could be to "fence" a paved road to keep the colonists to using it. However you don't want the colonists to treat the blocks as walls and with a light dislike, they can pass the "fence" when they have to leave the road to the grow zone to harvest or whatever. A strong dislike would make them walk way too long to go to the end of the "fence". It should be noted that A17 has a pathfinding bug where helping colonists this way is beneficial, but it is fixed in A18.
Logged
ModCheck - boost your patch loading times and include patchmods in your main mod.

Kiame

  • Planetologist
  • ****
  • Posts: 1541
  • Refugee
    • View Profile
Re: [A17] Path Avoid
« Reply #33 on: October 12, 2017, 01:25:19 AM »

Thanks Nightinggale, great explanation

What i mainly use this for is marking each trap i make, makes extra sure pawns won't kill themselves  ;)
(strong on each trap)

I will also note that with the current pathfinding in A17 there is a problem where if the pawn passes through more than 7 or 8 squares that are not 0 weight (0 weight meaning no rocks/dropped apparel/mud/etc) they will default to a straight path no matter the difficulty/setting from this mod.

I hope to re-add 'preferred' once A18 comes out, until then this is the best that can be done outside modifying the whole pathfinding algorithm which I do not want to tackle!
Logged

DestroyX

  • Drifter
  • **
  • Posts: 67
  • Refugee
    • View Profile
Re: [A17] Path Avoid
« Reply #34 on: October 12, 2017, 03:05:54 AM »

I'm checking the bug section of the forum rather often atm, they seem to be well aware of the pathing issues in A17.
I just hope everything will be fixed in A18, its just very very obnoxious in many scenarios >.>

Until then, your mod is still a godsend when it comes to "static" things.

Cant really do much about my pawns walking through chunks and trees all the time atm sadly, and it'd be way too much hassle to mark every single one of them because of a broken mechanic^^
Logged

nmid

  • Colonist
  • ***
  • Posts: 535
  • Refugee
    • View Profile
Re: [A17] Path Avoid
« Reply #35 on: October 12, 2017, 05:34:42 AM »

I tried it out, but it makes colonists ignore their assigned / allowed areas :(
Logged
I like how this game can result in quotes that would be quite unnerving when said in public, out of context. StorymasterQ

Kiame

  • Planetologist
  • ****
  • Posts: 1541
  • Refugee
    • View Profile
Re: [A17] Path Avoid
« Reply #36 on: October 12, 2017, 02:48:33 PM »

I tried it out, but it makes colonists ignore their assigned / allowed areas :(

Hmm this should not be the case... Can you give me an example or screenshot showing a case where pawns are ignoring restricted areas?

If the case is there's a large room marked as 'strong' that would be the problem. This falls into the 7 or 8 weighted tiles case where the pawn will completely ignore logical pathing and make a straight shot through instead. In the case where a room should be marked as 'do not enter' put two or three 'strong' marks at/around the doors to the room.
Logged

nmid

  • Colonist
  • ***
  • Posts: 535
  • Refugee
    • View Profile
Re: [A17] Path Avoid
« Reply #37 on: October 25, 2017, 03:31:11 AM »

I tried it out, but it makes colonists ignore their assigned / allowed areas :(

Hmm this should not be the case... Can you give me an example or screenshot showing a case where pawns are ignoring restricted areas?

If the case is there's a large room marked as 'strong' that would be the problem. This falls into the 7 or 8 weighted tiles case where the pawn will completely ignore logical pathing and make a straight shot through instead. In the case where a room should be marked as 'do not enter' put two or three 'strong' marks at/around the doors to the room.

Sorry, I missed your reply.
I'll load the mod again this weekend and get you a screenshot.
Logged
I like how this game can result in quotes that would be quite unnerving when said in public, out of context. StorymasterQ

Kiame

  • Planetologist
  • ****
  • Posts: 1541
  • Refugee
    • View Profile
Re: [A17] Path Avoid
« Reply #38 on: October 25, 2017, 03:48:38 PM »

Great news! After initial testing in A18 it looks like Preferred works again!

A18 version: https://github.com/KiameV/rimworld-pathavoid/releases/download/A18/PathAvoid.zip
« Last Edit: November 03, 2017, 01:44:18 PM by Kiame »
Logged

Boogeyman

  • Muffalo
  • *
  • Posts: 16
  • Refugee
    • View Profile
Re: [A18] Path Avoid (Preferred Works Again!)
« Reply #39 on: November 03, 2017, 01:23:06 PM »

The A18 direct download url is messed up in the op.
Logged

Kiame

  • Planetologist
  • ****
  • Posts: 1541
  • Refugee
    • View Profile
Re: [A18] Path Avoid (Preferred Works Again!)
« Reply #40 on: November 03, 2017, 01:44:40 PM »

The A18 direct download url is messed up in the op.

Oops fixed
Thanks for letting me know!
Logged

Zalpha

  • Drifter
  • **
  • Posts: 30
  • Refugee
    • View Profile
Re: [A18] Path Avoid (Preferred Works Again!)
« Reply #41 on: December 16, 2017, 01:07:23 PM »

Ah, I finally found this mod, been lookng for it. Thanks.
Logged

BTAxis

  • Drifter
  • **
  • Posts: 50
  • Refugee
    • View Profile
Re: [A18] Path Avoid (Preferred Works Again!)
« Reply #42 on: December 18, 2017, 06:11:24 AM »

My success with this mod has been sporadic. In some situations the Rimworld pathfinding just will not be dissuaded - especially when it comes to trees, no amount of weighting will stop pawns from deliberately pathing through them when going around would be faster.
Logged
"The megasloth ducked behind the nearest piece of cover"

CannibarRechter

  • Colonist
  • ***
  • Posts: 784
  • Dericious
    • View Profile
Re: [A18] Path Avoid (Preferred Works Again!)
« Reply #43 on: December 18, 2017, 09:17:07 AM »

I'm assuming that you didn't make "strong" == "impassable" for some technical reason. Is that correct?
Logged
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Kiame

  • Planetologist
  • ****
  • Posts: 1541
  • Refugee
    • View Profile
Re: [A18] Path Avoid (Preferred Works Again!)
« Reply #44 on: December 18, 2017, 03:35:57 PM »

My success with this mod has been sporadic. In some situations the Rimworld pathfinding just will not be dissuaded - especially when it comes to trees, no amount of weighting will stop pawns from deliberately pathing through them when going around would be faster.

I have found the pathfinding doesn't always follow suggested paths especially at the end of longer distances.

As CannibarRechter mentions too, PathAvoid is a system of 'hints' as opposed the base game's restricted areas.

If you provide a screenshot of a problematic pathing issue i may be able to offer suggestions
Logged
Pages: 1 2 [3] 4 5 ... 8