Page 1 of 1

[0.17.66] Big Power Poles wire as long as Small Power Poles wire.

Posted: Thu Aug 29, 2019 6:15 am
by Neverward
I've run into a strange issue. I am curious if it is an issue caused by removing a mod, and if it is something I can fix somehow. I'm using the latest version of the game and have a few graphical mods and a few Bobs mods.

I'm new to the game but after a few hours I decided to get a handful of mods that seemed to add nice features. One that I tried was Bobs Power. It gave me more upgrades for power poles. When I went to make a big power pole (the upgrade with a length of 40) and place it, the length of the wire was exactly the same length as the wire for the small power pole. This was very odd to me, I figured the mod had to be broken. When I removed the mod, the game removed the upgraded power poles. However when I went to place a regular big power pole the wire was STILL the exceptionally short length, rendering it useless.

I would love to know if there is any way to fix this problem, I was looking forward to creating a well organized base with less wires! Let me know if I can provide any extra information.

Thanks- Neverward

Re: [0.17.x] Big Power Poles wire as long as Small Power Poles wire.

Posted: Thu Aug 29, 2019 6:22 am
by boskid
For now i guess "Not a bug".
Wire reach is taken as min(pole1, pole2). If you are connecting big-power-pole with small-power-pole, wire will have limited reach. Extended reach is only when both poles to connect have long reach.

Ref: viewtopic.php?p=451559#p451559

Code: Select all

 bool canWiresReach(const Entity* a, const Entity* b)
{
    const double maxDistance = std::min(a->getMaxWireDistance(), b->getMaxWireDistance());
    // ....
}

Re: [0.17.x] Big Power Poles wire as long as Small Power Poles wire.

Posted: Thu Aug 29, 2019 9:06 am
by Oktokolo
Deadlock989 wrote: Thu Aug 29, 2019 8:52 am
boskid wrote: Thu Aug 29, 2019 6:22 am For now i guess "Not a bug".
Why are you marking the bug reports of someone else's game as not bugs?
He isn't. You even quoted the part where he clearly states that he is guessing.
You could argue, that he is scarily often true with his engine-related guesses and therefore it is almost the same as if he would omit that disclaimer. But he didn't omit it and there is still a minuscule chance of him being wrong this time.

Re: [0.17.x] Big Power Poles wire as long as Small Power Poles wire.

Posted: Thu Aug 29, 2019 9:11 am
by Twinsen
Indeed the max wire distance between 2 poles is calculated as the minimum between the max length of both poles and that's intended. Can you confirm this was your misunderstanding and that you can connect 2 poles of the same type correctly? Furthermore when dragging a wire from a big pole you should be able to drag it to it's full length in your mouse cursor.

Re: [0.17.66] Big Power Poles wire as long as Small Power Poles wire.

Posted: Fri Aug 30, 2019 8:51 pm
by Neverward
Sorry for the slightly late response. This is so obvious I can't believe I didn't realize it, of course you can't extend the reach of a small pole by placing a single big pole next to it. As a newbie to the game I appreciate the help with my "bug"

It is as you say, I managed to connect the big poles and the reach was as expected! Thank you so much for taking the time to clear up my mistake!