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
Discrepancy

Dialog/Production.rsc

Simply put,

I'm trying to make a production building call up a separate This Year / Previous Year UI file called 'DSSVProduction.rsc' instead of the games file: 'Production.rsc', calling up a longer RibbonDescription (production12), but in game as soon as I click on the toggle button it crashes the game. I make the same changes to  'Dialog/Production.rsc' file, and it also crashes.

But, if I make the changes to production4 in 'Dialog/Production.rsc' (making it display 12 items) the changes work perfect!  :o

I'm thinking this might be because of the way the coding works in bringing up statistical parameter numbers, and that it is hidden/not available to us.
It has caused me to waste the last few hours of my life.

Or am I doing something wrong?

 


I wanted this code to be a separate UI Check Production box, so adding this to a 'Dialog/Production.rsc' file seemed like a logical idea:

RibbonDescription production12  : "production"
{
    ElementDescription _elements
    [
        "thisYear12"
        "previousYear12"
    ]
}
RibbonDescription previousYear12 : "previousYear"
{
    ElementDescription _elements
    [
        "textPrevYear"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
    ]
}
RibbonDescription thisYear12 : "previousYear"
{
    ElementDescription _elements
    [
        "textThisYear"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
    ]
}

instead I just had to do this to 'Dialog/Production.rsc':

RibbonDescription production4  : "production"
{
    ElementDescription _elements
    [
        "thisYear4"
        "previousYear4"
    ]
}
RibbonDescription previousYear4 : "previousYear"
{
    ElementDescription _elements
    [
        "textPrevYear"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
    ]
}
RibbonDescription thisYear4 : "previousYear"
{
    ElementDescription _elements
    [
        "textThisYear"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
        "storageItem"
    ]
}

the downside?

this is going to conflict with many mods, and also look ridiculous...
- I think I need to spend some time and see if i can set a maximum size and add a vertical scroll-bar
- And I need to see what is the less used vanilla 'Check Production' table... which one should I alter?

Edited by Discrepancy
1 person likes this

Share this post


Link to post
Share on other sites

1 answer to this question

  • 2

I think I did exactly the same thing you did.

What I ended up doing, is making a separate production.rsc file, but then just using the thisYear4 and previousYear4 of that file, and it worked, and doesn't cause a conflict.

I also looked into adding a scroll bar, but those are strangely complicated and end up giving up every time I look into it. But I'm sure it's possible.

2 people like 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