Hi guys,
this is my first report, I hope Im doing everything right
I cloned some rail network in the new editor (rails and trains on some rails), then I used the decon planner to get rid of some parts (including the trains), now I cant mine the rails anymore (neither in editor nor in normal game)!
Even after placing a new train and removing it by hand in the normal game, I cant remove the rails. Taking a look at its properties in the editor it has the not mineable property set.
again I hope I did everything right and this wasnt already reported before!
[kovarex] [0.17.49] Removing trains in editor results in not mineable rails
[kovarex] [0.17.49] Removing trains in editor results in not mineable rails
- Attachments
-
- factorio-current.log
- (6.27 KiB) Downloaded 161 times
Re: [0.17.49] Removing trains in editor results in not mineable rails
I just played a little more around with and seems to only work when you clone the rail with the train on it first and it only affects the newly created rails
Re: [0.17.49] Removing trains in editor results in not mineable rails
Indeed, can reproduce:
1/ open editor
2/ place 3 straight tracks
3/ place locomotive - this action marks all 3 straight tracks to be "not minable"
4/ in editor select "clone"
5/ mark rails and locomotive
6/ paste clone somewhere else
7/ remove cloned locomotive
What happend:
- rails under removed (clone) locomotive have attribute "not minable" still set
What expected:
- removing clone locomotive should clear "not minable" attribute in clone tracks
---
this feels like
and in step 3 there is no "not minable" attribute set, it is just dynamicaly computed to show that it should not be minable. However clone uses this "effective non minable attribute value" and sets it as "internal non minable value" so result is set permanently - will not be cleared by removing locomotive because locomotive was never intended to set nonMinable attribute internally.
1/ open editor
2/ place 3 straight tracks
3/ place locomotive - this action marks all 3 straight tracks to be "not minable"
4/ in editor select "clone"
5/ mark rails and locomotive
6/ paste clone somewhere else
7/ remove cloned locomotive
What happend:
- rails under removed (clone) locomotive have attribute "not minable" still set
What expected:
- removing clone locomotive should clear "not minable" attribute in clone tracks
---
this feels like
Code: Select all
bool Rail::isNonMinable() {
if(trainAbove()) {
return true;
}
return this->nonMinable;
}
Re: [0.17.49] Removing trains in editor results in not mineable rails
Yes, this is exactly how it was.boskid wrote: ↑Sun Jun 16, 2019 9:12 pm this feels likeand in step 3 there is no "not minable" attribute set, it is just dynamicaly computed to show that it should not be minable. However clone uses this "effective non minable attribute value" and sets it as "internal non minable value" so result is set permanently - will not be cleared by removing locomotive because locomotive was never intended to set nonMinable attribute internally.Code: Select all
bool Rail::isNonMinable() { if(trainAbove()) { return true; } return this->nonMinable; }
Fixed for the next release.
Re: [kovarex] [0.17.49] Removing trains in editor results in not mineable rails
Dang thats fast thanks for fixing, glad I could help!