Jump to content

Linking Placed Flora to Workshop?


Recommended Posts

Hello

I'm a bit stuck. I can't figure out how to place flora that my settlers can farm & collect. I placed the flora and linked it to my workshop using the WorkshopItemKeyword ref. It shows up as a option to assign it to a settler and I get the message this resource is now assigned. Then nothing my food count don't change & the settler ignore the plant.

 

What am I doing wrong?

Link to comment
Share on other sites

If the flora is not one of the base game recognised plants you will need to:

 

(a) Ensure it has a Food AV value

 

(b) Hack WorkshopParentScript.WorkshopFoodType[] array to recognise it for production with its own foodobject LL and unique WorkshopRatingFoodType AV

Link to comment
Share on other sites

If the flora is not one of the base game recognised plants you will need to:

 

(a) Ensure it has a Food AV value

 

(b) Hack WorkshopParentScript.WorkshopFoodType[] array to recognise it for production with its own foodobject LL and unique WorkshopRatingFoodType AV

I'm not making new custom flora. I'm using the base game flora (Carrot, Corn, Gourd, Melon, Mutfruit, Razorgrain, Tato). I duplicated the entry renamed it adding Sanctuary to the ID. Placed it into the world added the WorkshopItemKeyword ref to the Sanctuary Workshop. I've tried using the renamed and base game flora and both don't seem to work. I can assign them but then it don't actually work. The food rating don't increase and the settler don't farm it (animations) just ignores it.

Edited by RJMayhem86
Link to comment
Share on other sites

Probably because you need to call script function BuildObjectPUBLIC, this is how I dynamically place and register productive crops with a workshop:

 

ObjectReference ThisFlora = ThisMarker.PlaceAtMe(pFloraMutfruit01, 1,abForcePersist = false, abInitiallyDisabled = false, abDeleteWhenAble = false)
ThisFlora.SetLinkedRef(ThisWorkshop, pWorkshopItemKeyword)
(pWorkshopParent as WorkshopParentScript).BuildObjectPUBLIC(ThisFlora,  ThisWorkshop)
Link to comment
Share on other sites

 

Probably because you need to call script function BuildObjectPUBLIC, this is how I dynamically place and register productive crops with a workshop:

 

ObjectReference ThisFlora = ThisMarker.PlaceAtMe(pFloraMutfruit01, 1,abForcePersist = false, abInitiallyDisabled = false, abDeleteWhenAble = false)
ThisFlora.SetLinkedRef(ThisWorkshop, pWorkshopItemKeyword)
(pWorkshopParent as WorkshopParentScript).BuildObjectPUBLIC(ThisFlora,  ThisWorkshop)

 

I'm not that advanced in modding. I have no clue what or how to use that.

 

What I find weird is I placed some tarberry plants and linked them and they work like normal.

Edited by RJMayhem86
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...