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
skywillnosky

How to change the max length of "resource limit"?

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

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;
}
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;
}
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?o.O

Share this post


Link to post
Share on other sites

1 answer to this question

  • 1

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. :S

1 person likes this

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