Factorio 0.16.7 - Index out of bounds

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

Lemlin
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Thu Mar 17, 2016 10:25 am
Contact:

Factorio 0.16.7 - Index out of bounds

Post by Lemlin »

I´m testing LTN in a test save and wanted to test the fluid wagon funtionality so I replaced on of my wagons with a fluid wagon.
Got this error: http://recordit.co/NNhxiDfzqK

My desired setup is one station providing Oil, and one is requesting Oil. Same stations was previously providing/requesting blue chips.
It crashed after I setup these and tried, but also after I reloaded and only had my old station (but fluid trains in the train composition).
Did I do anything wrong or is this an impossibly setup?

I´m using latest version 1.6.1
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Crash when mixing fluid and regular wagons

Post by Optera »

There's a reported bug with #entity.fluidboxes in Factorio 0.16.7. viewtopic.php?f=30&t=55529
I'm not going to implement a workaround as it's already fixed in the next release use Factorio 0.16.6 until then.
Lemlin
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Thu Mar 17, 2016 10:25 am
Contact:

Re: Crash when mixing fluid and regular wagons

Post by Lemlin »

Oh, a factorio bug related issue.

Ok, so this setup will/might be possible in a future version?
Probably safest to not combine fluid wagons and cargo wagon then..
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Crash when mixing fluid and regular wagons

Post by Optera »

This bug has nothing to do with fluid/cargo wagon combination.
When they switched fluid wagons from 3 fluid boxes to 1 fluid box in 0.16.7 the reported array size was not adjusted so any loop will run out of bounds.
Jesus8000
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Fri Apr 15, 2016 7:13 pm
Contact:

Error while running on_configuration_changed

Post by Jesus8000 »

Error while running on_configuration_changed: Passed index is out of range.
stack traceback:
__LogisticTrainNetwork__/control.lua:1746: in function 'getWagonCapacity'
__LogisticTrainNetwork__/control.lua:1761: in function 'GetTrainCapacity'
__LogisticTrainNetwork__/control.lua:219: in function 'updateEntities'
__LogisticTrainNetwork__/control.lua:287: in function <__LogisticTrainNetwork__/control.lua:271>

cant load old save since update
any ideas?
sorry, my english is not the yellow from the egg.... 4give me
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Error while running on_configuration_changed

Post by Optera »

Duplicate of viewtopic.php?f=214&t=55538
topics merged.
pfrenssen
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Dec 23, 2017 8:30 pm
Contact:

Re: Factorio 0.16.7 - Index out of bounds

Post by pfrenssen »

Here is a fix for the "Passed index is out of range" error: https://github.com/Yousei9/Logistic-Tra ... rk/pull/86

You can use this, or wait for 0.16.8 which will also fix it.
Oshydaka
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Dec 04, 2017 4:42 pm
Contact:

Error when sending train to depot

Post by Oshydaka »

Hi

I'm using LTN 1.6.1

Factorio running on 16.7

When i send a fluid train (<LC) to my depot, this error pop's up :

Image

Is this a know bug ?

Thanks

Edit : didn't see that first post, thanks for the merge, sorry for reporting already know stuff ^^
Lemlin
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Thu Mar 17, 2016 10:25 am
Contact:

Re: Factorio 0.16.7 - Index out of bounds

Post by Lemlin »

Ok, just to clarify, it is impossible to use fluid wagon with LTN in 16.7?
And 16.6 works, and 16.8 will most likely solve this problem?
thelastwalle
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Dec 28, 2017 10:30 pm
Contact:

Re: Factorio 0.16.7 - Index out of bounds

Post by thelastwalle »

viewtopic.php?f=30&t=55529

tl;dr: They changed the fluidwagons from 3 individuell tanks to one tank and the code was not updated in all places for the api.
Locked

Return to “Logistic Train Network”