Garry's Mod

Garry's Mod

Nodegraph Editor
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.
< >
Zobrazeno 12 z 2 komentářů
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!
♥♥♥♥ 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?
< >
Zobrazeno 12 z 2 komentářů
Na stránku: 1530 50