World of Banished

MODS Garage => Tips and Help => Topic started by: angainor88 on December 22, 2017, 01:54:56 PM

Title: Help with new marketplace
Post by: angainor88 on December 22, 2017, 01:54:56 PM
So I am working on building a corner store, but when I go to compile it I am getting some new errors (Assert: false Can't build resource from 'Dialog\Work.rsc:enableWorkCheck'!). I believe it has to do with this bit of code in the Template:

CheckDescription enableCutterWorkButton : "Dialog/Work.rsc:enableWorkCheck"
{
ElementDescription _content = "labelCutterWorkUncheck";
ElementDescription _check = "labelCutterWorkCheck";
Alignment _alignment = TopRight;
int _topPad = 5;
}

LabelDescription labelCutterWorkCheck : "Dialog/Work.rsc:labelEnableWork"
{
String _spriteName = "MarketWork";
int _imageWidth = 16;
int _imageHeight = 16;
int _minWidth = 64;
int _minHeight = 0;
int _spacing = 4;
int _leftPad = 4;
int _rightPad = 4;
LabelPosition _labelPosition = TextRight;
}

LabelDescription labelCutterWorkUncheck : "labelCutterWorkCheck"
{
Color _color = 0xFF2E2B28;
}


Which is directly from the Market Template. Unfortunately I don't really know what any of this is referencing, or even the slightest clue how to fix it.

It might not even be in this particular code bit. If necessary I can upload the whole thing...
Title: Re: Help with new marketplace
Post by: RedKetchup on December 22, 2017, 02:32:25 PM
you need to create a Dialog folder and then , put a copy of Dialog/Work.rsc and paste it inside your Dialog folder of your mod
you will find it in the Resource\Dialog folder of* your toolkit.
Title: Re: Help with new marketplace
Post by: angainor88 on December 22, 2017, 04:29:19 PM
Thank you! That was the piece I was missing
Title: Re: Help with new marketplace
Post by: RedKetchup on December 22, 2017, 08:15:04 PM
welcome