BlackLiquid Forums
How to change the max length of "resource limit"? - Printable Version

+- BlackLiquid Forums (https://www.blackliquidsoftware.com/forum)
+-- Forum: Banished General (https://www.blackliquidsoftware.com/forum/forumdisplay.php?fid=6)
+--- Forum: Mod Makers Help & Support (https://www.blackliquidsoftware.com/forum/forumdisplay.php?fid=27)
+--- Thread: How to change the max length of "resource limit"? (/showthread.php?tid=991)



How to change the max length of "resource limit"? - skywillnosky - 01-11-2017



I would like to change value max length used to set resource limit(like food, log, iron, stone...etc) in produce building and trading building.




I tried to modify some .rsc file and rebuild them, but it's not working.




\resource\Dialog\SharedElements.rsc



Code:
NumberEditDescription spinnerEditSmall
{
    ElementDescription _border = "SharedElements.rsc:sunkenBorder";
    int _minWidth = 32;//change to 72
    int _rightPad = 2;
    int _leftPad = 2;

    Font _font = "Font\FontSmall.rsc";
    int _initialValue = 0;
    int _maxLength = 4;//change to 7
    int _minValue = 0;
    int _maxValue = 9999;//change to 9999999
    bool _allowNegative = false;
}


Code:
NumberEditDescription spinnerEditSmall5
{
    ElementDescription _border = "SharedElements.rsc:sunkenBorder";
    int _minWidth = 32;//change to 72
    int _rightPad = 2;
    int _leftPad = 2;

    Font _font = "Font\FontSmall.rsc";
    int _initialValue = 0;
    int _maxLength = 5;//change to 7
    int _minValue = 0;
    int _maxValue = 99999;//change to 9999999
    bool _allowNegative = false;
}


Code:
NumberEditDescription spinnerEditSmall6
{
    ElementDescription _border = "SharedElements.rsc:sunkenBorder";
    int _minWidth = 42;//change to 72
    int _rightPad = 2;
    int _leftPad = 2;

    Font _font = "Font\FontSmall.rsc";
    int _initialValue = 0;
    int _maxLength = 6;//change to 7
    int _minValue = 0;
    int _maxValue = 999999;//change to 9999999
    bool _allowNegative = false;
}



resource.rsc




"\Dialog\SharedElements.rsc:spinnerEditSmall"




"\Dialog\SharedElements.rsc:spinnerEditSmall5"




"\Dialog\SharedElements.rsc:spinnerEditSmall6"




 




Do I miss something?[img]<fileStore.core_Emoticons>/emoticons/huh.png[/img]/emoticons/huh@2x.png 2x" title="o.O" width="20" />




How to change the max length of "resource limit"? - Kralyerg - 01-11-2017


That looks like exactly how I tried to do it, too. And so did several other people who tried. And the game still won't do it.  No one has, so far, been able to figure out how to make that work. [img]<fileStore.core_Emoticons>/emoticons/wacko.png[/img]/emoticons/wacko@2x.png 2x" title=":S" width="20" />