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:
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?
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.
Phooey! Heh XD Oh well, it was a neat idea but can't pull it off too well sadly =(
Quote from: Jinxiewinxie 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 =(
it is same for mine upgrade, need a mine lvl 2 , lvl3.... you cannot ask to repeat itself as upgrade