Git Product home page Git Product logo

cfw's Introduction

Contraption Framework

Workshop

Monitors constraints to create "contraption" objects and adds callbacks for changes made to contraptions for efficient contraption-aware functionality.

For example, in order to calculate the total mass of a contraption traditionally one would need to iterate over every entity on the contraption and store this information somewhere.

With Contraption Framework (CFW), a callback is run whenever an entity is added to or removed from a contraption and the total mass is added to or subtracted from the total stored in memory on the contraption object.

cfw's People

Contributors

stooberton avatar thecraftianman avatar twistedtail avatar liddulbofh avatar cheezuschrust avatar

Stargazers

Max avatar  avatar DracoMan671 avatar

Watchers

Lucian avatar James Cloos avatar  avatar

cfw's Issues

[Contraption Framework] Random Error,

[Contraption Framework] lua/cfw/classes/family_sv.lua:53: attempt to index local 'child' (a number value)

  1. Add - lua/cfw/classes/family_sv.lua:53
  2. create - lua/cfw/classes/family_sv.lua:17
    3. SetParent - lua/cfw/core/parenting_sv.lua:33
    4. unknown - gamemodes/sandbox/entities/effects/selection_indicator.lua:19

"attempt to index local 'link' (a nil value)" when disconnecting E2 holograms

Been seeing the error in the title near daily for quite a while now, and although I don't know exactly how to reproduce it, it seems to be related to E2 holograms in particular.

addons/cfw/lua/cfw/core/connectivity_sv.lua:65: attempt to index local 'link' (a nil value)
   1.  __index - [C]:-1
    2.  disconnect - addons/cfw/lua/cfw/core/connectivity_sv.lua:65
     3.  SetParent - addons/cfw/lua/cfw/core/parenting_sv.lua:24
      4.  SetParent - addons/acf-3-tyunge/lua/acf/contraption/contraption_sv.lua:253
       5.  Function - lua/autorun/parent_childtables.lua:26
        6.  fn - lua/includes/extensions/entity.lua:146
         7.  unknown - addons/ulib/lua/ulib/shared/hook.lua:109

Looking at the error logger, in every instance of this, entA is an E2 hologram.

indexB = Number [1159]
entA   = Entity [2335][gmod_wire_hologram]

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.