Coder Social home page Coder Social logo

Comments (5)

mspielberg avatar mspielberg commented on July 24, 2024

This should be taken care of by the if not next(railloader_chests) check, which returns from the function early.

from factorio-railloader.

 avatar commented on July 24, 2024

Ok, figured it out (with a lot more logging statements). It's not your rail loader, but the blueprinting. When reusing a blueprint (blue "Select new contents" button), the blueprint retrieved from player.blueprint_to_setup isn't valid_for_read and the blueprint retrieved via player.cursor_stack is missing the blueprint entities (bp.get_blueprint_entities() returns nil).

This may be a bug in the main game... Will make a post on the forum about it, as this hurts mods like yours that need to either replace entities, or store data in tags.

from factorio-railloader.

mspielberg avatar mspielberg commented on July 24, 2024

Problems with "Select new contents" is a known bug with significant impact and no projected fix: https://forums.factorio.com/88100
The on_gui_closed logic in BRL should work around the bug as long as the blueprint being updated is a character inventory, and not in the blueprint library.

from factorio-railloader.

 avatar commented on July 24, 2024

Yea, mk-fg sent me that link last night. I need to learn to not be soo specific in my search terms, otherwise I would've had that one in my search results (I used "reuse" instead of "new contents" in search).

You'd think it'd be trivial to drop the reference into player.blueprint_to_setup during the event.

from factorio-railloader.

mspielberg avatar mspielberg commented on July 24, 2024

The blueprint library throws a wrench into everything. Blueprints living in the library are not real items, so they don't behave correctly when in the cursor, can't have a reference to them passed into events, can't be inspected or modified from a quickbar slot, etc.

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.