边缘世界 RimWorld

边缘世界 RimWorld

RimTerritory
26 条留言
catmanmlio 10 月 2 日 下午 5:29 
Also needs an Update for 1.6, RimPy throws a warning about mismatch
Onikage-056, God of Animatronics 2024 年 4 月 11 日 下午 5:05 
Needs updating for 1.5. RimPy throws an error for it.
Giggles 2023 年 6 月 20 日 下午 10:15 
Is this mod just framework or does it actually add stuff on its own?
MIS42NE  [作者] 2023 年 2 月 18 日 上午 10:34 
If you're interested in performance, I suggest you to benchmark this mod, or just calculate approximately by looking at the source code.
Sir Rolin 2023 年 2 月 18 日 上午 10:16 
Pretty sure it depends on the mods that use it.
But to expand the question, is it as efficient as vanilla areas or better?
MIS42NE  [作者] 2023 年 2 月 18 日 上午 7:22 
added note that territory not in the world map
TeleportBehindYou 2023 年 2 月 18 日 上午 7:04 
Least you can do is add a disclaimer that lets people know that it's only in your faction base, not affecting the whole world map. Wish someone would make a mod for what I was talking about tho. Would be cool to see faction territories displayed graphically. Kind of like EU4.
MIS42NE  [作者] 2023 年 2 月 18 日 上午 6:25 
English is not my native language so I'm sorry for that mistake, however, I won't fix it. :maple2:
jupiterLILY 2023 年 2 月 18 日 上午 5:57 
Yep, I think the word territory is going to cause confusion.

A territory is a larger area of influence than just a base.
TeleportBehindYou 2023 年 2 月 17 日 上午 8:02 
Oh i see. So it's only for the "territory" within an faction's base? Like if a colonist were to stand in the kitchen for too long, a raid happens? I was thinking of territory on the world map.
MIS42NE  [作者] 2023 年 2 月 17 日 上午 7:53 
Um... Don't understand what you're asking for.
This mod is not about world map.
This is kind of API for other mods.
But I may add debug option to visualize territory bounds.
TeleportBehindYou 2023 年 2 月 17 日 上午 7:39 
Maybe you can add graphics to represent the boundaries of the territories. Like an outline of how much a faction's territory control is. Would make it pretty cool to see how far a faction's influence reach is ingame. You can possible use the vanilla's "you cant settle within 5 tiles of settlement" system.
Boo Hassan 2023 年 2 月 17 日 上午 4:18 
Thanks, got it.
MIS42NE  [作者] 2023 年 2 月 16 日 下午 4:55 
Well, it should not.
Boo Hassan 2023 年 2 月 16 日 下午 3:21 
I mean does it affect TPS a lot?
MIS42NE  [作者] 2023 年 2 月 16 日 下午 1:47 
@Boo Hassan, wdym?
Boo Hassan 2023 年 2 月 16 日 上午 11:26 
is it any significant performance cost from this mod or is it very tame?
MIS42NE  [作者] 2023 年 2 月 14 日 下午 7:06 
Well, this is C# code that triggers events when thing enter/exit/stay in the certain areas on the map.
You can check out github readme code examples.

It's not perfect, but I found this pretty helpful and easy to setup territories for things from code.

It uses Territory as a default base, it can be initialized by Thing(including its size) or by position on the map.

To locate things in territory, you need to use Territory.Locator<ThingType> and call its Tick in the Tick() method of thing.
Locating is delayed and optional(default 10 ticks), you can set it with property TicksDelay.

There's multiple types of territories, but you can create custom one by overriding Cells property or GetCells method.
Sir Rolin 2023 年 2 月 14 日 下午 2:06 
Would love a Collection of mods that you know uses this dependancy ^^
TurtleShroom 2023 年 2 月 14 日 上午 11:28 
That sounds really interesting. How exactly does that work?
MIS42NE  [作者] 2023 年 2 月 14 日 上午 10:07 
Like zones in game, but in code.
TurtleShroom 2023 年 2 月 14 日 上午 9:59 
Territories?
MIS42NE  [作者] 2023 年 2 月 13 日 下午 1:00 
This mod is allowing me to create territories with code.
I've created this mod as a dependency to avoid usage of same multiple assemblies for each mod.
enigman 2023 年 2 月 13 日 下午 12:55 
@night owl夜猫 A new mod, More Mechanitor Towers has this as a dependency.

@ MIS42NE May I suggest that you put a little more detail on what this mod is/does (e.g framework for future mods etc.) Looking at the folder structure it appears to be a framework for supporting other mods. Assemblies folder still has the pdb file from compilation.
MIS42NE  [作者] 2023 年 2 月 13 日 上午 9:10 
Dependency role, soon I will post new mod with this one as dependency.
night owl夜猫 2023 年 2 月 13 日 上午 9:00 
don't get it,What role