rockyjvec / EasyAPI

EasyAPI is an in-game script library for Space Engineers that aims to make the programmable blocks easier to use.
http://steamcommunity.com/sharedfiles/filedetails/?id=379297410
19 stars 10 forks source link

Fix index out of bounds in EasyUtils.Log logBuffer feature #7

Closed EnochMiningCorporation closed 9 years ago

EnochMiningCorporation commented 9 years ago

OOPS! I got a bit trigger happy/lazy and made the pull-request for #6 before thorough testing. It is yielding an exception when the logBuffer reaches LOG_MAX_ECHO_LENGTH_CHARS. Will work on fix now.

rockyjvec commented 9 years ago

Okay, no problem. :-)

EnochMiningCorporation commented 9 years ago

It's not perfect but it works as far as I've tested. Hopefully there's room for performance enhancement, in the meantime I suggest not to log using these features on every single Tick!

rockyjvec commented 9 years ago

Got it. Thanks! I merged it and updated the workshop script.