Jump to content
  • Sign Up
Rockhound

Need Help With Milk Sales

Recommended Posts

Is it possible to stop the sale of milk without the placeable mod I want to set up my map so you dont have to get the mod.

 

Thanks!

Share this post


Link to post
Share on other sites

Dont you just import the stop milk sale sign into the map like other things you import? Never tried myself adding it myself this way but does that not work?

Share this post


Link to post
Share on other sites

This does not work that way I tried :-( I added the script just like the fabrikScript and nothing. Keeps on selling unless you place the mod in game, Weird

Edited by Guest

Share this post


Link to post
Share on other sites

Someone from GDN Support forum says to use this in Cow Husbandry "g_currentMission.husbandries.cow.automaticallySellMilk = false;" but not sure how to go about adding it. He said to add it to user attributes?

Share this post


Link to post
Share on other sites

this was his reply to my question.

 

1. There is a mod which disables auto milk sale. Search for "stop milk sale".

 

2. By scripting, you can set

g_currentMission.husbandries.cow.automaticallySellMilk = false;

 

3. You can edit the map.i3d and add to cow husbandry the above user attribute.

Share this post


Link to post
Share on other sites

Load this mod and place it on your map and then add the 2 lua-files from this mod to your modDesc.xml:

ModHub | Landwirtschafts-Simulator

 

MilkFillTrigger.lua

MilkSellTrigger.lua

 

At the end you make a UserAttribute: automaticallySellMilk as boolean and disable it. Here I have a screen from it:

milk.jpg.f339c4ae6e3b4b59fc06525f5dd60ea0.jpg

  • Like 4

Share this post


Link to post
Share on other sites
Load this mod and place it on your map and then add the 2 lua-files from this mod to your modDesc.xml:

ModHub | Landwirtschafts-Simulator

 

MilkFillTrigger.lua

MilkSellTrigger.lua

 

At the end you make a UserAttribute: automaticallySellMilk as boolean and disable it. Here I have a screen from it:

[ATTACH]3606[/ATTACH]

Thank you very much slowtide63 it worked perfectly!

  • Like 1

Share this post


Link to post
Share on other sites

I will try to help, if it is possible, and if anyone needs help with one of our mods :)

 

Nice to hear that it works!

  • Like 4

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Terms of Use, Privacy Policy, Guidelines, We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.