Author Topic: Upgrade UI  (Read 173 times)

0 Members and 1 Guest are viewing this topic.

Offline Jinxiewinxie

  • Modders
  • Trader
  • *****
  • Posts: 403
  • Country: us
Upgrade UI
« on: April 28, 2019, 08:19:57 AM »
I'm having issues trying to create templates that call upon eachother to upgrade to one another. Everything seems to work fine if I call my parks B, D, E, F in my .rsc file first and then call park A last.. Park A will then be able to have upgrade buttons for all the other parks. When I try to add upgrade buttons to the rest of the parks, I have compiling issues, where the compiler keeps trying the same lines, like this:

Code: [Select]
Compiling 'Template\JinxieBittyEasterPark.rsc:upgradeConfig1'
Compiling 'Template\JinxieBittyEasterPark.rsc:resource'
Compiling 'Template\JinxieBittyEasterPark.rsc:ui'
Compiling 'Template\JinxieBittyEasterPark.rsc:upgradeConfig1'
Compiling 'Template\JinxieBittyEasterPark.rsc:resource'
Compiling 'Template\JinxieBittyEasterPark.rsc:ui'
Compiling 'Template\JinxieBittyEasterPark.rsc:upgradeConfig1'
Compiling 'Template\JinxieBittyEasterPark.rsc:resource'
Compiling 'Template\JinxieBittyEasterPark.rsc:ui'
Compiling 'Template\JinxieBittyEasterPark.rsc:upgradeConfig1'
Compiling 'Template\JinxieBittyEasterPark.rsc:resource'
Compiling 'Template\JinxieBittyEasterPark.rsc:ui'
Compiling 'Template\JinxieBittyEasterPark.rsc:upgradeConfig1'
Compiling 'Template\JinxieBittyEasterPark.rsc:resource'
Compiling 'Template\JinxieBittyEasterPark.rsc:ui'
Compiling 'Template\JinxieBittyEasterPark.rsc:upgradeConfig1'
Compiling 'Template\JinxieBittyEasterPark.rsc:resource'
Compiling 'Template\JinxieBittyEasterPark.rsc:ui'
Compiling 'Template\JinxieBittyEasterPark.rsc:upgradeConfig1'

Is there just not a way to add two upgrade buttons to two different templates and have them call upon eachother properly? I'm thinking maybe it has to do with the code knowing Park B exists before Park A can call it, etc. .etc and its getting stuck in a loop?

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10630
  • Country: ca
Re: Upgrade UI
« Reply #1 on: April 28, 2019, 09:55:32 AM »
yeah you cannot create an infinite loop. you cannot ask a building A to upgrade to building B and this building B upgrading back to building A.
once the compiler is stuck in a loop, after about 10 times, the compiler will just terminate.

not sure there is a way to cheat that because the upgrade button will always call to process the next one. at somepoint you need to end the eternal loop.
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Offline Jinxiewinxie

  • Modders
  • Trader
  • *****
  • Posts: 403
  • Country: us
Re: Upgrade UI
« Reply #2 on: April 28, 2019, 10:52:52 AM »
Phooey! Heh XD Oh well, it was a neat idea but can't pull it off too well sadly =(

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 10630
  • Country: ca
Re: Upgrade UI
« Reply #3 on: April 28, 2019, 02:06:30 PM »
Phooey! Heh XD Oh well, it was a neat idea but can't pull it off too well sadly =(

it is same for mine upgrade, need a mine lvl 2 , lvl3.... you cannot ask to repeat itself as upgrade
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

 

SMF spam blocked by CleanTalk