Table inspection seems to ignore nil entries when debugging. Also missing locals

Nil properties are actually not auto completing for me. For instance, I had to lookup how I spelled “DoDamageOverride”, intended to be a function reference member variable of BaseSwordDef. As a hack I can fix this and start using “0” wherever I really mean “nil” for function references, but this is going to be error prone because in lua 0 ~= nil, so I have to remember this convention.




Or you can just use false for boolean values?

Sure why not, we’re already two levels deep in writing bad code. Why not make my function pointers bools. It’s not like it will make it any harder to understand six months from now.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.