Garry's Mod

Garry's Mod

101 Bewertungen
Contraption Framework
   
Preis verleihen
Favorisieren
Favorisiert
Entfernen
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Build
Dateigröße
Veröffentlicht
Aktualisiert
29.266 KB
5. Feb. 2024 um 16:46
11. Jan. um 21:17
16 Änderungshinweise (anzeigen)

Abonnieren zum Herunterladen
Contraption Framework

Beschreibung
Contraption Framework (CFW)


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.



https://github.com/ACF-Team/CFW
37 Kommentare
barrientosdavian12 2. Feb. um 0:16 
this is a thing i guess:
[Contraption Framework] entities/gmod_wire_expression2/core/custom/cfw.lua:29: attempt to call field 'newE2Table' (a nil value)
1. v - entities/gmod_wire_expression2/core/custom/cfw.lua:29
2. Run - lua/includes/modules/hook.lua:96
3. Init - lua/cfw/classes/contraption_sv.lua:35
4. createContraption - lua/cfw/classes/contraption_sv.lua:15
5. connect - lua/cfw/core/connectivity_sv.lua:57
6. SetParent - lua/cfw/core/parenting_sv.lua:68
7. unknown - lua/entities/ent_jack_gmod_ezsatchelcharge.lua:35
thecraftianman 29. Dez. 2024 um 18:51 
What do you guys mean? I haven't had any problems with it myself
Victoria, Angel of the void 29. Dez. 2024 um 13:58 
@aceofspades I have no idea, since ACF cries non-stop in the console about needing it. I find that mildly ironic.
aceofspades 27. Dez. 2024 um 6:41 
how does this almost never work with acf
House Head15 25. Dez. 2024 um 8:39 
I HAVE 1470 AND 5042
StrawWagen 21. Nov. 2024 um 19:09 
Happened when calling Entity:deparent() with e2
StrawWagen 21. Nov. 2024 um 19:09 
addons/cfw/lua/cfw/core/connectivity_sv.lua:16: bad argument #1 to 'pairs' (table expected, got nil)
Theirishlad 14. Okt. 2024 um 9:18 
ah
thecraftianman 13. Okt. 2024 um 13:45 
Adds some functionality for doing stuff based on player builds but needs other mods to take advantage of it (like ACF)
Theirishlad 13. Okt. 2024 um 7:54 
What does this addon even do?