A property is always a constant. If you want varying weight, you have to additionally define the weight callback in the graphics block. Granted, the error message is not exactly helpful - I made a note about that
A property is always a constant. If you want varying weight, you have to additionally define the weight callback in the graphics block. Granted, the error message is not exactly helpful - I made a note about that
A property is always a constant. If you want varying weight, you have to additionally define the weight callback in the graphics block. Granted, the error message is not exactly helpful - I made a note about that
Ah, ofc.
I used the same trick as I did for the weight, with the switch, but for some reason, it didn't work, the cargo capacity of the wagon remains 0.
With that code you force the capacity to be 0 except when attached to those engines. Thus in the purchase list it will always be listed as 0. And thus might even not become available, dunno. But I'm guessing again as I don't know what you mean with "doesn't work". EDIT: What is the actual result? Always capacity 0 even when attached to those engines? Only in purchase list? Wagons not available? </EDIT> Nor do I see compilable code / source to verify / check myself (yes, I'm lazy, too).
planetmaker wrote:With that code you force the capacity to be 0 except when attached to those engines. Thus in the purchase list it will always be listed as 0. And thus might even not become available, dunno. But I'm guessing again as I don't know what you mean with "doesn't work". EDIT: What is the actual result? Always capacity 0 even when attached to those engines? Only in purchase list? Wagons not available? </EDIT> Nor do I see compilable code / source to verify / check myself (yes, I'm lazy, too).
With "doesn't work" I meant that the capacity would always be N/A. I tried using a default of 1 too, but that didn't work either.
Can you check what happens when you set the various defaults to something else than 0? Then you can pinpoint which switch is not working properly and help you in solving the problem (or help us in helping you). My guess would be grfid check where you do a str2number, which I think is wrong, but I'm not sure about that.