News:

Welcome to World of Banished!

Main Menu

Some ideas for mods and some questions about making mods

Started by tanypredator, May 09, 2016, 10:20:47 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

kid1293

I inserted this in FlaxGatherer.rsc after the UI section:

QuoteLabelDescription labelLimit
{
   Alignment _alignment = MidLeft;

   Font _font = "Font\FontSmall.rsc";
   int _imageWidth = 20;
   int _imageHeight = 20;
   int _spacing = 4;
   LabelPosition _labelPosition = TextRight;
   Alignment _textAlignment = MidLeft;

   StringTable _stringTable = "Dialog/StringTable.rsc:gameDialogs";
   String _text = "TextileLimit";
   SpriteSheet _spriteSheet = "Dialog/SpriteSheet.rsc";
   String _spriteName = "Textile";
}

and this:

QuoteSpinnerDescription editLimit : "Dialog/SharedElements.rsc:spinnerSmall6"
{
   int _increment = 100;
   ElementDescription _border = "Dialog/SharedElements.rsc:flatButtonEnabledBorder";
}

---

I compiles well and all is fine except the label 'Linen Clothes' in the weaver-
so I inserted:
      { String _name = "LinenClothesRequire";         String _text = "Linen Clothes [Flax]"; }
last in your stringtable

Oh, almost forgot - copy resource/Template/ToolMaker.rsc to your Template folder.

All you have to do is clean up the menus.
You see where I commented out two line (  the // ) (in LinenWeaver.rsc)
I gets rid of the winter coat icon

QuoteLabelDescription labelLimit
{
   Alignment _alignment = MidLeft;

   Font _font = "Font\FontSmall.rsc";
   int _imageWidth = 20;
   int _imageHeight = 20;
   int _spacing = 4;
   LabelPosition _labelPosition = TextRight;
   Alignment _textAlignment = MidLeft;

   StringTable _stringTable = "Dialog/StringTable.rsc:gameDialogs";
   String _text = "ClothesLimit";
//   SpriteSheet _spriteSheet = "Dialog/SpriteSheet.rsc";
//   String _spriteName = "WinterCoat";
}


Here are the two changed files.

RedKetchup

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

kid1293


kid1293

@tanypredator
While I am at it.
in FlaxGatherer.rsc:

QuoteCheckDescription enableCutterWorkButton : "Dialog/Work.rsc:enableWorkCheck"
{
   ElementDescription _content = "labelCutterWorkUncheck";   
   ElementDescription _check = "labelCutterWorkCheck";   
   int _rightPad = 0;
}

change:
   int _rightPad = 68;

and you get a nice menu.

RedKetchup

Quote from: kid1293 on May 29, 2016, 01:35:57 PM
Keeping the fire 'til you come back. ;)

yeah i restarted lately, trying to put myself in the bath of moding lol
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

tanypredator

@kid1293, thank you so much! I see my mistakes now. I'll also have to improve few models and to test yield, hope no problems more :)

kid1293

It's OK. :)

There are so many calls in the code, it's easy to miss some.
Usually I copy code and rename, but then I compare my code to one
or two similar files just to check.

tanypredator

Tested it just a moment ago. Now limits are named right, but the numbers are still for food limit, 5000 by default, and when I change it - the food limit changes. Although there is even no word "food" in the code!  : :-\ Probably it would be better to name it "food" back. I just wanted to use this new textile limits, provided in 1.05 version of game. Or in this case they will eat flax?

kid1293

No they will not eat flax, it's textile

Or you could make it grain and don't have the edible flag
on it and they will not eat it
.
But then you have to make a special barn with grain flag for storage.
That's how I am doing with my coffee mod.

Don't change the vanilla barn (it does not have grain flag),
there are so many people changing it, so there are always problem.

The food limit comes from FlaxGatherer.rsc -
{
ObjectType _type = ResourceLimitUI;
ElementDescription _element = "resourceLimit";
String _insertAt = "userButton2";
DialogControllerConfig _config = "CropField.rsc:resourceLimitConfig";
}


which calls CropField.rsc -

ResourceLimitUIConfig resourceLimitConfig
{
ResourceLimit _resourceLimit = Food;
}


so you can make a small file with only
ResourceLimitUIConfig resourceLimitConfig
{
ResourceLimit _resourceLimit = Textile;
}


and call it. It should do the trick.

kid1293

Or you can change -

{
ObjectType _type = ResourceLimitUI;
ElementDescription _element = "resourceLimit";
String _insertAt = "userButton2";
DialogControllerConfig _config = "resourceLimitConfig";
}

and then write this in the same file (FlaxGatherer.rsc)

ResourceLimitUIConfig resourceLimitConfig
{
ResourceLimit _resourceLimit = Textile;
}


It's cleaner and does the same.

tanypredator


kid1293



kid1293

 :)

Now you just have to solve the conflict with WildOats mod.
Both use the tree file to spawn - so you have to choose.

Put them together!  (?)

tanypredator

#134
Quote from: kid1293 on May 30, 2016, 07:38:39 AM
Put them together!  (?)

That is what I'm going to do. And with further mods too - to upload them separately, then as a part of a pack. You gave me an idea - I'll upload the pack (though only of two mods for the moment) as a separate topic, and then update it with new plants.

The plants that I want to add yet are wild roses (rose hips), new type of pines (pine nuts), and, maybe, almond. Ah, and maybe to change herbs, to add some yellow color :)