Giter VIP home page Giter VIP logo

Comments (7)

zrisher avatar zrisher commented on August 13, 2024

Personally I'd prefer the building object checks a hook to see if the requested block can be built so limits can be determined dynamically, a la #59. But the above would be a nice additional feature for a slight performance boost.

from spaceengineers.

Tyrsis avatar Tyrsis commented on August 13, 2024

This already exists:

Definition xsi:type="MyObjectBuilder_AssemblerDefinition" Enabled="false"

Almost all definitions can be disabled this way.

from spaceengineers.

devu avatar devu commented on August 13, 2024

If it does is not documented, could you tell us the secret? :)

On 20 May 2015 at 07:10, Tyrsis [email protected] wrote:

This already exists:


Reply to this email directly or view it on GitHub
#87 (comment)
.

from spaceengineers.

zrisher avatar zrisher commented on August 13, 2024

Yep just used this today with respawn ships - if you add that Enabled attribute (attribute, not child node, and make sure to use lowercase for its values), you can disable blocks at init. But this does not allow for a dynamic check during run-time.

from spaceengineers.

mexmer avatar mexmer commented on August 13, 2024

@zrisher Enabled node on blocks that derive from MyFunctionalBlock effectively sets block to On/Off state.

eg. if you for example have Turret with false this turret is loaded inactive (you need to switch it on in terminal gui)

Enabled attribute in block definition root node enables/disables block definition (it's easier than commenting whole block out, or deleting from definition file)

from spaceengineers.

zrisher avatar zrisher commented on August 13, 2024

Ah thanks, I was wondering about that distinction.

from spaceengineers.

mexmer avatar mexmer commented on August 13, 2024

Enable node is actually quite practical, and of course is used in savefiles ;o)

from spaceengineers.

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.