Gatherer Resource Limit
#1


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.



Quote:
Quote




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




Object\ExternalFactory.cpp(364)




Callstack:

Runtime-x64-profile.dll(0x00000000df095a55) 

Runtime-x64-profile.dll(0x00000000df0b29a9) 

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



Quote:
Quote




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'

Object\ExternalFactory.cpp(364)

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

Object\ExternalFactory.cpp(364)




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?


  Reply


Messages In This Thread
Gatherer Resource Limit - by Necora - 01-24-2017, 05:57 PM
Gatherer Resource Limit - by Kralyerg - 01-24-2017, 07:08 PM