Coder Social home page Coder Social logo

Comments (13)

dgw avatar dgw commented on July 24, 2024

Factorio version would be good to know. Sometimes modding API changes cause errors like this.

from factorio-railloader.

Goten87 avatar Goten87 commented on July 24, 2024

Latest 0.16

from factorio-railloader.

dgw avatar dgw commented on July 24, 2024

Specific version numbers are better; assuming 0.16.24, as that is the latest 0.16 release, but I've seen many, many cases (on other projects) where users insisted they were on the "latest" version but weren't receiving experimental updates for some reason and were actually behind.

from factorio-railloader.

dgw avatar dgw commented on July 24, 2024

OK, bug reporting quibbles over version numbers aside, I found the cause.

on_built(event) calls on_railloader_proxy_built(proxy), which calls abort_build(event) in one of two places depending on context—but event was never passed in nor defined, so in cases where the mod tries to abort building it throws an error. I might be able to submit a PR to fix this later today, in something like 6-8 hours.

from factorio-railloader.

Goten87 avatar Goten87 commented on July 24, 2024

Well it’s 00:46 here so hope it will be fix when I wake up :p

from factorio-railloader.

Goten87 avatar Goten87 commented on July 24, 2024

And I’m on 0.16.24

from factorio-railloader.

dgw avatar dgw commented on July 24, 2024

Checked the commit history. Somehow I was looking at outdated code? It's not released yet, but the code on master already fixed on_railloader_proxy_built() to take event as a second argument. So no need to wait on a PR from me, just wait on @mspielberg to tag a new release (or download the code from GitHub and use the mod unpacked until a new release is uploaded).

from factorio-railloader.

Goten87 avatar Goten87 commented on July 24, 2024

I tried that as well then it will not place the building I get the sound that it placeing it down but no building apairs

from factorio-railloader.

Goten87 avatar Goten87 commented on July 24, 2024

Or dos it need to be on a rails

from factorio-railloader.

dgw avatar dgw commented on July 24, 2024

I don't even have this mod installed, haha, just following its repo for development news. But no, it has to be built on/over rails. The code calls abort_build() if there are no rails found at the build location.

from factorio-railloader.

tomkcook avatar tomkcook commented on July 24, 2024

I found that this error happens if I try to build one of these items either where there is no rail or where there is already a train on the rail where I build it. It sounds like the crash is fixed, but it'd be nice if there was some clue that you couldn't build it where there isn't suitable rail (like have it turn red or something).

from factorio-railloader.

mspielberg avatar mspielberg commented on July 24, 2024

it'd be nice if there was some clue that you couldn't build it where there isn't suitable rail (like have it turn red or something).
Unfortunately I can't easily control when the red/green highlight is displayed. Also, since robot build order is unpredictable, I didn't want to send a message or play an error sound if trying to place the loader before rails are built.

from factorio-railloader.

mspielberg avatar mspielberg commented on July 24, 2024

The crash should have been fixed in 0.3.3. Better error reporting will come in the next version, to tell you why a loader couldn't be built.

from factorio-railloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.