Kenshi
Storage != Outpost
18 条留言
Neme 2022 年 1 月 6 日 下午 7:56 
Ofcoruse i still need to research the storage containers right .. I'ma dumbass some times lol
Thundercraft 2020 年 2 月 23 日 下午 12:34 
@ Charger1968 [author]
No prob. Everyone makes mistakes. It's a part of learning. To be honest, I've only just started modding Kenshi, myself. And doing so is quite different from my experience modding other games.

"I see there's an option for both 'Is Interior Furniture' and 'Is Exterior Furniture' would it be best to just set both of those to true for 'Food Store' and 'Storage: Riceweed'?"

I only noticed it -now- that I've looked at the code again, but:
Believe it or not, in a vanilla (unmodded) game, 'Food Store' already has both 'Is Interior Furniture' and 'Is Exterior Furniture' set to 'True'. Since it is that way by default, setting both to True should be fine. BTW: 'Storage: Riceweed' only has 'Is Interior Furniture' set to True. You could probably set the 'Is Exterior Furniture' to True on this, also, without issue.
Charger1968  [作者] 2020 年 2 月 23 日 上午 9:54 
@Thundercraft To be honest, this is the first time I've modded a game in any way so any weird choices/coincidences are likely completely accidental. It's been a bit over a year since I last played Kenshi but looking at the FCS now I see there's an option for both "Is Interior Furniture" and "Is Exterior Furniture" would it be best to just set both of those to true for "Food Store" and "Storage: Riceweed"? Or would that create problems within the game?
Thundercraft 2020 年 2 月 22 日 上午 6:29 
@ Charger1968 [author]
In the FCS, after opening your mod, click on [Changes]. Unlike for other storage items where only "creates player town" was changed, you also changed "is interior furniture" from [True] => [False] for "Food Store" and "Storage: Riceweed" - and only those two. Is this just a coincidence? Or is this the reason why players can no longer place a Food Store indoors in their own buildings?

May I suggest that you remove that "is interior furniture" [True] => [False] from these two? If desired, you could create duplicates of these, named "Food Store Outside" and "Storage Outside: Riceweed". That would give you the functionality you want without breaking vanilla functionality.

PS: You also changed "Storage: Copper" with a MODREF "functionality : Resource storage". But the vanilla game already had this, so isn't this change unnecessary? Also, "Storage: Leather" has a bunch of extra stuff added. Are those intentional and necessary?
Charger1968  [作者] 2019 年 3 月 9 日 下午 2:43 
@Nacquarani I actually made this mod because i ran a player owned building in a town. I can't seem to figure out how to fix the food storage despite changing it's properties like I did every other storage building. I'll give it another look though, hopefully I can find something to help fix it
Nacqurani 2019 年 3 月 9 日 下午 2:26 
Just FYI, but this appears to cause some issues with player-owned buildings in towns. I could not place a food storage indoors in my own building while this mod was active, but disabling this mod (and only this mod, as I am using several others though this one is loaded last) removes the issue.
kaiomnamaste 2019 年 1 月 17 日 上午 9:08 
I tested the issue with the suggested mod and without, food storage still says 'invalid container type'. If it helps im placing the food store outside and not in a structure, so it may be reading it wrong.
Charger1968  [作者] 2019 年 1 月 16 日 下午 10:58 
The animal feeder should no longer create a player town. As for the Food Store, units not autohauling to it or eating from it sounds like a boundary problem. I haven't tested this myself but I strongly believe this mod might work best with this one https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1610265806&searchtext=
I did also change the Food Store so it's no longer exclusively an interior structure

What happens is that when a structure no longer creates a player town the game lets you place it anywhere (even if it would be too close to a town) and behaves strangely if it's placed where it wouldn't have been allowed to before (i.e units not autohauling to it). To my knowledge the mod I liked shortens the restriction boundary near cities and should, in theory make this one work better. Again, I haven't tested it myself.

There was another change I ended up backing out of so if the problem still persists I might have to try that.
kaiomnamaste 2019 年 1 月 16 日 下午 8:43 
the food storage now doesnt recognize food items, and my units wont autohaul to it or go eat from it.
the animal feeder also creates an outpost, otherwise i appreciate your work
Charger1968  [作者] 2019 年 1 月 16 日 下午 3:11 
@kaiomnamaste Looks like I missed another one. Sorry for the late reply but it should be fixed now. Let me know if it works.
kaiomnamaste 2019 年 1 月 15 日 下午 7:44 
It seems to me that the 'food storage' makes a town, is that left that way for a reason?
posthum 2019 年 1 月 2 日 下午 2:54 
That was some seriously fast response time, hats off. Works now, thank you!
Charger1968  [作者] 2019 年 1 月 2 日 下午 2:09 
@posthum Okay so I think I fixed your problem. When I looked at the Riceweed Storage in the FCS it had another boolean variable (fancy for true/false) called "Is interior furniture" or something like that. I changed it to false and now you should be able to place it outside. Let me know if it works.
posthum 2019 年 1 月 2 日 下午 1:48 
Thanks for the response Charger, unfortunately the issue persists despite me unsubscribing and resubscribing to the mod. The other farming storages do actually work, riceweed however is still acting up.
Charger1968  [作者] 2019 年 1 月 1 日 下午 5:14 
@posthum Looks like I missed the Riceweed Storage in the FCS. It wasn't in the block of "Storage" research on the list but under "Riceweed Farming". Though I've never had an error (even in vanilla) about something having to be placed in a house. Either way it no longer creates a player town so, in theory, you should be able to place it anywhere. Thanks for pointing that out and let me know if it still doesn't work.
posthum 2019 年 1 月 1 日 下午 2:31 
When I try to place a rice storage it says that this needs to be placed inside a house. However putting down a house will create a player town, defeating the purpose of this mod, as far as I know - am I wrong here?
Charger1968  [作者] 2018 年 12 月 30 日 下午 3:20 
Alright so the mod actually does work as intended, however the storage needs to be placed outside of a restricted building area. (i.e won't work if placed too close to a town) even though the mod will let you build there.

If you place it where it would allow you in the vanilla game then it functions as normal and won't be labeled an "Outpost"
Charger1968  [作者] 2018 年 12 月 30 日 下午 2:24 
There is currently an issue I did not anticipate which is that if the storage is outside if an existing player town then characters will not treat it as a normal storage and, in fact, ignore it completely.

Currently working on a fix for this.