Dialog/Production.rsc
#1


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!  [img]<fileStore.core_Emoticons>/emoticons/ohmy.png[/img]/emoticons/ohmy@2x.png 2x" title=":o" width="20" />



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:






Code:
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':






Code:
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?


  Reply


Messages In This Thread
Dialog/Production.rsc - by Discrepancy - 11-30-2016, 02:39 AM
Dialog/Production.rsc - by Kralyerg - 11-30-2016, 05:10 AM