newaged Posted January 21, 2016 Share Posted January 21, 2016 (edited) Ran into another problem I managed to fix. If this isn't the right forums for posts like these, or if I should be doing this on github, please let me know.Anyways, the simgroup/simset function callOnChildren wasn't working, so I changed void SimSet::callOnChildren(simSet.cpp line 232) { ... ConsoleValueRef args[21]; args[0] = method.c_str(); to this ConsoleValue vals[2]; ConsoleValueRef args[21]; vals[0].init(); vals[0].setStringValue(method.c_str()); args[0].value = &vals[0]; vals[1].init(); args[1].value = &vals[1]; and things started to work again. Was that the right way to go about it? Edited January 21, 2016 by newaged Quote Link to comment Share on other sites More sharing options...
Mud-H Posted January 21, 2016 Share Posted January 21, 2016 Was it causing a crash? I stopped using the callOnChildren after it caused too much crash, also if I remember right it was not always working correctly when it wasn't causing crash... Quote Link to comment Share on other sites More sharing options...
newaged Posted January 21, 2016 Author Share Posted January 21, 2016 Was it causing a crash? I stopped using the callOnChildren after it caused too much crash, also if I remember right it was not always working correctly when it wasn't causing crash...Yeah, it was causing a crash before. I haven't used it enough to comment on the second problem. Quote Link to comment Share on other sites More sharing options...
JeffR Posted January 21, 2016 Share Posted January 21, 2016 Yeah, if you feel you have a useful addition or fix, feel free to toss it up onto github. Bit easier to test/review it that way, but also feel free to make a thread bringing attention to it :)I'll have to give this fix a go. I don't REMEMBER having problems with callOnChildren, but then, I haven't used it a ton. Quote Link to comment Share on other sites More sharing options...
newaged Posted January 21, 2016 Author Share Posted January 21, 2016 Updated the code - removed some pointless changes@JeffR I'll look into posting these fixes on github. Should they be batched together or done individually? Quote Link to comment Share on other sites More sharing options...
Azaezel Posted January 21, 2016 Share Posted January 21, 2016 fwiw, PRs with a given task show up when checking a files history on the github website so that'd help folks understand the why on changes. Least that's the personal rule of thumb... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.