Welcome to Black Liquid Software

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • 0
Sign in to follow this  
Followers 0

Gatherer Resource Limit

Just as I think I'm not needing to spam up this part of the forum much more, I get another issue I can't seem to solve.


Is it possible to change the resource limit of the gatherer? I am trying to make a new one, using the Textile limit as the new gatherer will be getting mainly textiles, but I also wanted to add materials.

If I have the UI display the food limit, it works. But as soon as I try to change that to the Textile limit, I get an error when building.


Assert: Failed to load resource 'C:\BanishedKit106\MyMods\Maritimes\bin\Template\PineForager_editLimit.crs'


Runtime-x64-profile.dll(0x00000000df084b0a) ....


Compiling 'Template\PineForager.rsc:resource'
Compiling 'Template\PineForager.rsc:ui'
Compiling 'Template\PineForager.rsc:enableCutterWorkButton'
Compiling 'Template\PineForager.rsc:labelCutterWorkUncheck'
  --> Compiled LabelDescription 'Template\PineForager.rsc:labelCutterWorkUncheck'
Compiling 'Template\PineForager.rsc:labelCutterWorkCheck'
  --> Compiled LabelDescription 'Template\PineForager.rsc:labelCutterWorkCheck'
  --> Compiled CheckDescription 'Template\PineForager.rsc:enableCutterWorkButton'
Compiling 'Template\PineForager.rsc:workButtonConfig'
  --> Compiled ControlUIConfig 'Template\PineForager.rsc:workButtonConfig'
Compiling 'Template\PineForager.rsc:resourceLimit'
Compiling 'Template\PineForager.rsc:labelLimit'
  --> Compiled LabelDescription 'Template\PineForager.rsc:labelLimit'
Warning: Failed to load resource 'C:\BanishedKit106\MyMods\Maritimes\bin\Template\PineForager_editLimit.crs'
Warning: Failed to load resource 'C:\BanishedKit106\MyMods\Maritimes\bin\Template\PineForager_editLimit.crs'

If I take out the 'editLimit' line from the template, it compiles but crashes the game when clicking on the building.



I copied the code from another building that works just fine, so not sure if there is something odd about the gatherer which would prevent the resource limit from being changed?

Share this post

Link to post
Share on other sites

1 answer to this question

  • 0

There shouldn't be a problem with changing it, no.


This is the code we did for a Textile flagged gatherer.

ResourceLimitUIConfig resourceLimitConfig
	ResourceLimit _resourceLimit = Textile;

RibbonDescription resourceLimit
	Alignment _alignment = TopRight;
	bool vertical = false;
	int _topPad = 8;
	int _cellPad = 8;

	ElementDescription _elements

	Dialog _toolTipDialog = "Dialog/ToolTip.rsc";
	StringTable _toolTipStringTable = "UI/ColonialStringTable.rsc";
	String _toolTipText = "TextileLimitTip";

LabelDescription 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 = "UI/ColonialStringTable.rsc";
	String _text = "TextileLimitShort";
	SpriteSheet _spriteSheet = "UI/ColonialSpriteSheet.rsc";
	String _spriteName = "Rug";

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


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0