Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[fixed] Annoying log message with modded Control Blocks
2017-07-17, 07:21 PM (This post was last modified: 2017-07-18 08:01 AM by Gladyon.)
Post: #1
[fixed] Annoying log message with modded Control Blocks
When I add a new type of controlled block, there's this log:
Code:
Code not written for 1000
It is repeated over and over again.

I understand that it can help in debugging, but in order to remove it I would have to replace the 'GetAffectVarLimit()' method, and I'd like to avoid replacing too many methods (only one mod can replace a method, and if it is modified I would have more work...).

Is it possible to have a way enable/disable debug logs (maybe there's already one in Unity and I'm not aware of)?
Find all posts by this user
Quote this message in a reply
2017-07-18, 12:14 AM
Post: #2
RE: Annoying log message with modded Control Blocks
"#pragma warning disable" then code number should do it, not sure which code it is though or if its one of nicks outputs.
Or perhaps try "Debug.logger.logEnabled=false" in your main script

[Image: 831b674a58.jpg]
Find all posts by this user
Quote this message in a reply
2017-07-18, 08:00 AM
Post: #3
RE: Annoying log message with modded Control Blocks
(2017-07-18 12:14 AM)khaz Wrote:  "#pragma warning disable" then code number should do it, not sure which code it is though or if its one of nicks outputs.
Or perhaps try "Debug.logger.logEnabled=false" in your main script

Thanks, 'Debug.logger.logEnabled=false' called before the method and put on again after the method will do the trick.
Sorry for my low knowledge about Unity logging, but it's the first thing I disabled and replaced in Unity when I saw how slow it was.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)