Garry's Mod

Garry's Mod

Nodegraph Editor
agent0fchao5 2015년 7월 10일 오전 11시 30분
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.
< >
전체 댓글 2개 중 1~2개 표시 중
SmΩke 2016년 4월 28일 오후 7시 31분 
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 2018년 10월 30일 오전 12시 00분 
♥♥♥♥ 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?
< >
전체 댓글 2개 중 1~2개 표시 중
페이지당 표시 개수: 1530 50