Page 1 of 1
[0.8.8] Creating really long train can crash the game
Posted: Tue Feb 04, 2014 4:38 pm
by rk84
Building wagons to tail end while driving forward. At least over 150 wagons.

- factoriocrash.PNG (745.91 KiB) Viewed 3087 times
Re: [0.8.8] Creating really long train can crash the game
Posted: Tue Feb 04, 2014 6:45 pm
by SilverWarior
Using your method I just managed to build train with one locomotive and 376 cargo cars. I could have probably make it longer if I wouldn't have run out of track. But I havent encountered any crash.
Re: [0.8.8] Creating really long train can crash the game
Posted: Tue Feb 04, 2014 7:24 pm
by rk84
SilverWarior wrote:Using your method I just managed to build train with one locomotive and 376 cargo cars. I could have probably make it longer if I wouldn't have run out of track. But I havent encountered any crash.
Tested this for third time and I got to full track (315). I was more carefull with my mouse movements this times.
In the end of it I tested one quick swipe. Some wagons did not connect. I removed one wagon, tried to add again and it crashed.
Re: [0.8.8] Creating really long train can crash the game
Posted: Fri Feb 07, 2014 10:12 am
by kovarex
Hello, is it reporoducible? Can you provide save before this happens?
Re: [0.8.8] Creating really long train can crash the game
Posted: Fri Feb 07, 2014 11:52 am
by rk84
kovarex wrote:Hello, is it reporoducible? Can you provide save before this happens?
I'm having hard time reproduce this its seems bit random. This might work reproducing it.
1. Drive train forward.
2. Build wagons in front of train.
2. Ram over wagons with your train while building more wagons
Here is one save. Over 600 wagons with one invisible wagon (becomes visible when you load the game. See save preview picture).
Here is also unreleased version of testmode.
Also I forgot to mention its in sandbox.
Re: [0.8.8] Creating really long train can crash the game
Posted: Fri Feb 07, 2014 9:13 pm
by SilverWarior
Done some more testing and managed to make train with 24 locomotives and over 1000 of cargo cars. You need a bunch of locomotives if you want for such a long train to be even able to move
Based on error message I suspected that I could reproduce the bug by going realy fast when starting to place new cargo cars (game tries to conec new rail cart toe the one whose object wasn't fully initialized yet). So far I no luck with this as it sems game is able to place the cars fast enough. Maybe my computer is to fast for this.
I also thought that this might be caused due to low memory isue but doing the testing I haven't encountered any significant increase in memory usage which could lead to this.
So at this moment I have no clue of what to try next in order to be able to reproduce this.
Re: [0.8.8] Creating really long train can crash the game
Posted: Thu Feb 27, 2014 8:16 pm
by kovarex
I made some fixes (some of them for 0.9.2), and this should not happen anymore, if it happens anymore for 0.9.2 please let me know.