Roadrunner


Yo dawg, there's a train coming. This is an experimental mod to automatically stop trains when players are nearby.

Utilities
4 years ago
0.18
6

b unrecoverable error

4 years ago

Factorio 0.18.4
RoadRunner 0.0.4

on load I get the error shown in the image at the link below. sorry im not going to try to accurately retype the error.
http://bitviper.org/factorio/2020-02-09_094712.png

4 years ago

Hey BitViper, thanks for the report. We'll push a fix for this shortly.

4 years ago

Looks like this relates to maps with no trains. As a workaround for new servers, place one train and then enable the mod.

4 years ago

So here's the same error again, this time showing several trains in the image. I'm not certain since I play several maps, but I believe this is the same map on which I got the error the first time since it's my v18 testing and mod testing map.
http://bitviper.org/factorio/2020-02-13_170514.png

4 years ago

Hey BitViper, just published v0.0.5 and have confirmed it works on fresh maps, as well as existing maps. Give this new version a shot and let us know how it goes. Thanks again for the bug report!

4 years ago

I'm just heading off to bed. I did a quick test and it loads fine, no errors. However when I walked near the front of a [non moving at the time] train, I again got an error. I have screen captured it and will upload it in the morning, possibly with some additional testing.

4 years ago

here's the screen cap from last night. I also just got the exact same error on another map when I walked close to just an engine cycling between two stations on a 30 second time out (ie bare bones, its my train blueprint testing map). I have tested with a new map and i get no errors, but I also have no trains at that point and no way to get any without playing for a day or two first. I miss Infinity Mode. =(

Anyway, link to error screen cap :: http://bitviper.org/factorio/2020-02-15_224347.png

4 years ago

Factorio 0.18.9
Roadrunner 0.0.5

And again. This time the culprit was a train which had been out of fuel and which I had just added fuel to. Error occurred the moment the train started moving while I was nearby. This was on a large map with many trains.

http://bitviper.org/factorio/2020-02-26_220949.png

4 years ago

Bitviper, Thanks for providing valuable feedback. I am attempting to resolve the issues you've experienced today but it looks like the website that hosts the images you uploaded is currently down. Could you reprovide the screenshots or details of the errors? I'm going to play this today on a new fresh map as well as a loaded map.

4 years ago

The website is my own on my own servers and yes the servers have been down since sometime Friday night. As of this post they are back up, finally. Sorry about that. I need to find a new host, but multiple full servers for free (as opposed to shared website hosting) is hard to beat.

4 years ago

I do the same thing :D, no worries. I did manage to make it crash though similar to the situation I believe you were in but (i think) resolved it and published a new version last night. Please let me know if you have any further issues.

4 years ago

Ok so I loaded your update, stood on an otherwise safe section of track, and told a train to run through there. Rip player. Train gave no indication of slowing down or otherwise responding to the presence of my player. On the good side it didn't crash though.

4 years ago
(updated 4 years ago)

Thanks again for testing, this time i'd advise going to the mod settings and update the radius from 5 to somewhere closer to 20. When the radius is too small there is not enough time for the train to stop. The mod initially set too low of a value for this parameter. I updated the default setting with this change, but you likely initiated the mod prior and thus have the old default of 5, or the train was moving too fast and whatever setting it's at now, is still too low.

Edit: I realized you said it showed no indication of slowing down.. i will take another look tonight and see if i can replicate.

4 years ago

Yeah it showed now indication whatsoever of being aware of my presence, and I didn't just walk in front of it, I was standing on the track the whole time so it had plenty of time to know I was there and stop. If I have a chance tonight I'll check that setting and repeat the test.

4 years ago

So I have an interesting update that may answer a number of questions. While working on one of my maps I happened several times to be working in station arrays when a train would come through and would for reasons I couldnt figure out at first would suddenly stop while alongside me. I finally realized that it was probably roadrunner in action and to test it I went out to a rail that was away from other factors and stood near (but not in danger) the rail. Sure enough, when a train came by it stopped very suddenly as shown in the link below. To be clear, the train went from full speed to stopped in a matter of a couple of rail lengths. It did NOT slow down prior to the engine passing my position. This would explain why it would run me over without any indication of stopping. It appears that somewhere in your computations you are using the center of the train rather than the front of the engine as the reference position when checking for a nearby player. I repeated this test several times with identical results, but I didn't try standing on track. I have enough train wheel marks on me after the public map I played last week. >.<
http://bitviper.org/factorio/2020-03-14_152947.png

New response