[kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
[kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
So, i think this is a bug. Actually I play Space Ex+ K2 , but I think its a core mechanism so...
I have an upgrade planner for belt. Everything yellow to red, then every red to blue (splitters, undergrounds too).
All the color upgrades in one planner.
The problem is, if I select a pair of underground yellow belt, to make it red, and before the bots upgrade it, I select only 1 side of the underground belt, to upgrade it again to blue, it will be then marked for upgrade, the bots do it, but only 1 selected side of the pair. After this the pair will be not a pair anymore. If I select the other side to be upgraded too, they make it, and it will connect up again.
Question: Isnt it better to mark both sides to upgrade instead of one? Also if I have belt braiding it can mix up everything.
I have an upgrade planner for belt. Everything yellow to red, then every red to blue (splitters, undergrounds too).
All the color upgrades in one planner.
The problem is, if I select a pair of underground yellow belt, to make it red, and before the bots upgrade it, I select only 1 side of the underground belt, to upgrade it again to blue, it will be then marked for upgrade, the bots do it, but only 1 selected side of the pair. After this the pair will be not a pair anymore. If I select the other side to be upgraded too, they make it, and it will connect up again.
Question: Isnt it better to mark both sides to upgrade instead of one? Also if I have belt braiding it can mix up everything.
Re: Underground Belt Upgrade
I'm really interested what the answer will be here as there is a similar behavior when deleting the upgrade on only one of the sides. One side will be upgraded, the other one stays and they are disconnected.
There were bugreports about that (96480, 95772, 70011) which were flagged as 'works as intended'. But I (and others) really don't see any cases where this would be desired.
There were bugreports about that (96480, 95772, 70011) which were flagged as 'works as intended'. But I (and others) really don't see any cases where this would be desired.
Last edited by Xoriun on Mon Jun 14, 2021 7:51 pm, edited 1 time in total.
Re: Underground Belt Upgrade
Yeah, I read that, but this is not cancelled upgrade. This is a double upgrade. Or If u play modded, u have 4-5-6 different belt speeds, so......
Re: [kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
Thanks for the report, it is now fixed for the next release.
Re: [kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
Just curious: Was only the additional-upgrade-bug fixed or was the 'cancel-bug/feature/inconsistency/however you want to call it' changed as well?
Re: [kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
Hell yeah brother, Im the best. I found a bug in this world'sbest game :D
ps. I think the cancelling thing is intended, so only the real upgrade will be fixed.
ps. I think the cancelling thing is intended, so only the real upgrade will be fixed.
Re: [kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
All combination of ghost/non-ghost on left/right upgrade/downgrade side should work, and it always takes the final upgrade into consideration when deciding whether it is connected or not for the sake of this logic.
For those who might be curious, I tend to do these kind of tests when fixing bugs like this.
Edit: But ... right, I considered upgrade and downgrade, but not cancel upgrade, which is still broken. Omg this game is complicated
For those who might be curious, I tend to do these kind of tests when fixing bugs like this.
Code: Select all
TestScenario scenario(CreatePlayer::Yes);
setupUpgradePlanner(scenario);
MapPosition leftPosition(-2.5, 0.5);
MapPosition rightPosition(2.5, 0.5);
for (GhostMode leftMode : {GhostMode::False, GhostMode::True})
for (GhostMode rightMode : {GhostMode::False, GhostMode::True})
for (bool upgradeLeft : {false, true})
{
auto checkBoth = [&](const char* name)
{
CHECK_EQUAL(scenario.getEntity(leftPosition)->getUsefulEntity()->getUpgradeTargetIDWithFallback()->name, name);
CHECK_EQUAL(scenario.getEntity(rightPosition)->getUsefulEntity()->getUpgradeTargetIDWithFallback()->name, name);
};
scenario.addEntity("underground-belt", leftPosition, leftMode, Direction::East);
scenario.addEntity("underground-belt", rightPosition, rightMode, Direction::West);
scenario.perform(InputAction::Upgrade, ActionData::SelectUpgradeData(BoundingBox(upgradeLeft ? leftPosition : rightPosition, 1)));
checkBoth("fast-underground-belt");
scenario.perform(InputAction::Upgrade, ActionData::SelectUpgradeData(BoundingBox(upgradeLeft ? leftPosition : rightPosition, 1)));
checkBoth("express-underground-belt");
scenario.perform(InputAction::Upgrade, ActionData::SelectUpgradeData(BoundingBox(upgradeLeft ? leftPosition : rightPosition, 1), UpgradeMode::Downgrade));
checkBoth("fast-underground-belt");
scenario.perform(InputAction::Upgrade, ActionData::SelectUpgradeData(BoundingBox(upgradeLeft ? leftPosition : rightPosition, 1), UpgradeMode::Downgrade));
checkBoth("underground-belt");
scenario.clearEntities();
}
Re: [kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
@kovarex Just to clarify: is the current cancle upgrade behavior intended or not?
In the above mentioned bugreports it was always marked a 'works as intended' but you just said it was unintended/bug.
I'd be glad to file this as a new bugreport.
In the above mentioned bugreports it was always marked a 'works as intended' but you just said it was unintended/bug.
I'd be glad to file this as a new bugreport.
Re: [kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
It was marked as working as intended, but I disagree. Since the fix is not really complicated, it just makes sense for the bost ends to "stay together" when possible.
No need to file another bug report, the fix is going to happen.
Re: [kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
I just checked the behavior in 1.1.35:
The reported bug is fixed but the cancel bug is still in the game.
Also, upgrading a pair of ug-belt by only selecting one of them doesn't work at all in editor mode (is this intentional or new report?).
The reported bug is fixed but the cancel bug is still in the game.
Also, upgrading a pair of ug-belt by only selecting one of them doesn't work at all in editor mode (is this intentional or new report?).
Re: [kovarex] [1.1.34] Upgrading underground belt twice does not upgrade other side
The cancel part is now fixed for 1.1.35