I thought I would mention this because it's a little annoying and might be affecting other people.
I'm working on an add-in I'm calling "recoverz" for 7dtd. Every time I copy the .cs file into the oxide plugin folder it compiles and when it finds an error, the line number it announces is off by 3.
A very simple fix (.. aka "kludge" or "work around") I just discovered is--
(put this at top of source file)
#line 1 "recoverz"
Then not only do the lines line up again, but also the compile error position indicator starts with "recoverz". (stick your add-in name in there instead of course).
This of course is not going to find / point to syntax errors that are started from higher up in your code. But at least you won't have fight both at once and tie up your noodles into knots.
Thought that might help some people.
Rog
I'm working on an add-in I'm calling "recoverz" for 7dtd. Every time I copy the .cs file into the oxide plugin folder it compiles and when it finds an error, the line number it announces is off by 3.
A very simple fix (.. aka "kludge" or "work around") I just discovered is--
(put this at top of source file)
#line 1 "recoverz"
Then not only do the lines line up again, but also the compile error position indicator starts with "recoverz". (stick your add-in name in there instead of course).
This of course is not going to find / point to syntax errors that are started from higher up in your code. But at least you won't have fight both at once and tie up your noodles into knots.
Thought that might help some people.
Rog