News:

Welcome to World of Banished!

Main Menu

Farmstand

Started by embx61, September 03, 2015, 09:43:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

embx61

Thanks Kralyerg, I will go for option 1 as I think it will be the best option out of the two.

[size=8pt][color=teal]My beloved Kathy
As you were you will always be
Treasured forever in my memory[/color][/size]

[size=10pt]For my list of Mods with download links go here[/size]

RedKetchup

thats a good question Kral :)

what if .... if we ask to fill :
MarketDescription market
{
   float _fillLimit = 0.99;

   FillType _fillType
   [
      {
         RawMaterialFlags _flags = Edible | Fruit;
         float _ratio = 0.25;


??
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

kralyerg

In order to pickup non-edible foods, you need to edit the Template/Citizens.rsc file.

The citizens have their own storage, just like buildings.

StorageDescription storage
{
RawMaterialFlags _storageFlags = Edible | Fuel | Tool | Wood | Stone | Iron | Health | Clothing | Textile | Alcohol;
bool _areaBasedLimit = false;
bool _available = true;
int _volumeLimit = 100;
}


You need to add the Fruit | Vegetable | Grain | Protein to it, and while you're at it, it wouldn't hurt to add CoalFuel to it too.  It would make CC compatibility a lot easier.

RedKetchup

oh !!!!!
really ?

i never did that.
and i never noticed any trouble with my citizen picking up 'flour as 'grain only w/o edible' on the ground' and go put in the barn
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

embx61

Thanks again Kralyerg and RedKetchup.

Things get a lot clearer now.

Never thought about changing the citizen file  :-[

Go make the changes and upload a new version of the farm stand soon.

[size=8pt][color=teal]My beloved Kathy
As you were you will always be
Treasured forever in my memory[/color][/size]

[size=10pt]For my list of Mods with download links go here[/size]

RedKetchup

Quote from: RedKetchup on September 09, 2015, 05:28:00 PM
oh !!!!!
really ?

i never did that.
and i never noticed any trouble with my citizen picking up 'flour as 'grain only w/o edible' on the ground' and go put in the barn

yup they do  /shrug
it stays on the ground


NOBODY told that !!
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

kralyerg

Well, when did you change it to not-edible?  I thought it was after 1.1b, so maybe people didn't notice because they don't have that version?

RedKetchup

oh ! you probably right ! only for 2.0 :)
ouf
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

embx61

I wonder sometimes how Kralyerg figures all that stuff out. Trial and error or a secret pact with Luke?  ;D ;D ;D
Anyway, well done and it surely saves us some headaches!

I have some programming knowledge but lots of stuff in the mod files are truly adacadabra for me.

What for example is that bool _areaBasedLimit and
   bool _available do in the storage section? Both are set to false as they are in the vanilla market.
[size=8pt][color=teal]My beloved Kathy
As you were you will always be
Treasured forever in my memory[/color][/size]

[size=10pt]For my list of Mods with download links go here[/size]

kralyerg

If I had a secret pact with Luke, modding would be much different. :)

I don't actually know what those two lines do.  They're false for Market, false for Storage Barn, but true for Stockpiles. 

For the _areaBasedLimit, it would lead me to believe it has something to do with the amount of storage space being related to the size.  Bigger stockpile = bigger storage.  But you don't want that in a building, so it's false.

But that's just a guess.  And that doesn't really explain the _available one.

RedKetchup

Quote from: kralyerg on September 09, 2015, 06:07:20 PM
If I had a secret pact with Luke, modding would be much different. :)

I don't actually know what those two lines do.  They're false for Market, false for Storage Barn, but true for Stockpiles. 

For the _areaBasedLimit, it would lead me to believe it has something to do with the amount of storage space being related to the size.  Bigger stockpile = bigger storage.  But you don't want that in a building, so it's false.

But that's just a guess.  And that doesn't really explain the _available one.

i would ask Luke but...
my 2-3 last email has been ignored.

i guess maybe i had a quota of 'questions' and has been expired ^^
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .