Garry's Mod

Garry's Mod

Nodegraph Editor
agent0fchao5 Jul 10, 2015 @ 11:30am
Fix for the saving error.
Hi, some people (including myself) have encountered this error while attempting to save the nodegraph:
[Nodegraph Editor] lua/autorun/meta_nodegraph.lua:290: bad argument #1 to 'band' (number expected, got table) 1. band - [C]:-1 2. writeBytesUShort - lua/autorun/meta_nodegraph.lua:290 3. Save - lua/autorun/meta_nodegraph.lua:339 4. DoClick - lua/weapons/gmod_tool/stools/nodegrapheditor.lua:628 5. unknown - lua/vgui/dlabel.lua:206
I unpacked the addon, and fixed the bug by changing line 225 in nodegrapheditor.lua
from:
local nodeID = nodegraph:AddNode(pos,createType,cvYaw:GetInt(),info)
to:
local nodeID = nodegraph:AddNode(pos,createType,cvYaw:GetInt(),0)

It would be nice if mr.Developer could fix it, but, if this is not possible for some reason, I'd like the permission to upload my fixed version.
< >
Showing 1-2 of 2 comments
SmΩke Apr 28, 2016 @ 7:31pm 
THIS WORKS.

Thank you VERY much for posting this. Allowed me to optimize nodes for my favorite (but dead) map "noamzwf." Now my NPC friends can follow me around the map without getting lost or stuck somewhere stupid. Thanks again!
Seraphim Oct 30, 2018 @ 12:00am 
♥♥♥♥ I know this was posted three years ago now, but is there anything you have to do afterwards once you've edited the line or does it just work after the change you've made?
< >
Showing 1-2 of 2 comments
Per page: 1530 50