Brave New World Additions

by Sladki

QoL addon for Brave New World mod: fast placing ghost power lines, loop through Roboports, quickly move to a Radar from the map, prevent changing Assemblers recipes spilling items around.

Utilities
3 years ago
0.17 - 1.1
860

g Bug report

3 years ago

The mod Brave New World Additions (1.1.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event bnw-additions::on_built_entity (ID 6)
bnw-additions/features/poles_line/NextPolePosition.lua:10: stack overflow
stack traceback:
bnw-additions/features/poles_line/NextPolePosition.lua:10: in function 'position'
bnw-additions/features/PolesLine.lua:17: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:20: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
...
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:20: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:23: in function 'place_pole_between'
bnw-additions/features/PolesLine.lua:43: in function 'on_pole_built'
bnw-additions/control.lua:16: in function <bnw-additions/control.lua:15>

3 years ago

What was the distance between the first and the last poles (short or long)?

3 years ago

Pretty sure it is related to my bug report here : https://forums.factorio.com/viewtopic.php?f=7&t=97328

Not quite sure what your question means though, but in the forum post you will find a way to reproduce something that I think should be similar

3 years ago

Have you tried to disable the mod temporarily?

3 years ago

The issue does not reproduce with the testcase provided if the mod is deactivated

3 years ago
(updated 3 years ago)

Hi, I love BNW, about 18 hours into the game that crashed, and it's showing two issues:
BNW 1.1.41, BNW Additions 1.1.4, Factorio 1.1.41 build 58972, Win64
1) Occasional crash. At this point I'm dumping lots of blueprints, and it will just freeze up about every 20-30 minutes. This does not happen early in the game, I played a previous time and it takes about 10+ hours for it to start crashing. I have 16GB RAM on my system.
2) If I place a single pole, or paste a section from a copy, the next time I move a line of poles will be drawn from the previous place/paste to the new location. Since I'm dodging around quickly and pasting stuff,
I've Captured all 17 hours and 27 minutes on my twitch channel:
Last part of video shows the most issues, but I had at least two crashes on the first part:
https://www.twitch.tv/videos/1163013355 day two, first day was almost 15 hours, and showed crash issues as well.

The pole issue is shown at 1:40:35
My interface settings at 1:42:00
I am not using a shift key when placing poles, but do have the interface settings recommended of "pick ghost item if no items are available"
crash at 1:58:30 and at the end of the video.
I have saves set to 20 minutes, and that seems to be about when it crashes.

<Edit> I see the power poles thing is a feature in your release notes:
"- Automatically place pole ghosts between two last placed poles to quickly make power lines ghosts."
This is very frustrating, please tell me how to avoid this. I dodge all over the map dropping blueprints and spend alot of time cleaning up because I pasted power poles with roboports.

I appreciate your time,
Vinnie

3 years ago

Hi.
It's the same issue as in the topic - unfortunatelly I've forgot to upload the fix (will upload soon).

The mod places poles in line only if you have the pole item in the upper right half of the quickbar, so as a workaround for the first bug you can temporarily remove the pole item from the according slots: https://mods-data.factorio.com/assets/f9109faf7aad583560d9e4e18144a3b764be0e7f.png
Protip: keep poles items in last five slots of the same quickbar row and press X to swap the rows (by thus toggling placing poles in line).

3 years ago
(updated 3 years ago)

Hi and thanks for the fast response. I removed the "BNW Additions" and the pole issue was fixed. I've been playing for a couple hours and no crash.

Update - I played for many hours after removing the additions - both issues are resolved by removing the BNW Additions mod.

New response