Jump to content
Korean Random
blueferret

[1.X.X.X] Extended debug_utils

Recommended Posts

Posted (edited)

I posted this on wgmods.net (hasn't been approved yet) but I thought I'd also post it on here too. This mod essentially just opens up all levels of the native client's debugging, allowing for LOG_DEBUG to actually appear in the Python.log. I haven't seen this type of mod anywhere yet, but I'm sure most of you active mod devs already do something like this anyway. I packaged it as a .wotmod but you can obviously unzip it and use it inside res_mods/ if you please. Below I list the lines of code I have modified.

 

Current lines 33-42 (from decompiled .py):

if CURRENT_REALM == 'DEV':
    _logLevel = LOG_LEVEL.DEV
elif CURRENT_REALM == 'ST':
    _logLevel = LOG_LEVEL.ST
elif CURRENT_REALM in ('CT', 'SB'):
    _logLevel = LOG_LEVEL.CT
elif IS_CLIENT:
    _logLevel = LOG_LEVEL.RELEASE
else:
    _logLevel = LOG_LEVEL.SVR_RELEASE

Modified lines 33-42 (from decompiled .py):

if CURRENT_REALM == 'DEV':
    _logLevel = LOG_LEVEL.DEV
elif CURRENT_REALM == 'ST':
    _logLevel = LOG_LEVEL.DEV
elif CURRENT_REALM in ('CT', 'SB'):
    _logLevel = LOG_LEVEL.DEV
elif IS_CLIENT:
    _logLevel = LOG_LEVEL.DEV
else:
    _logLevel = LOG_LEVEL.DEV

 

It's extremely straight forward in what it does, however if you do choose to use this mod, make sure you are either A) flushing your Pyhton.log after every start or B) removing the mod during normal gameplay as this mod WILL make your Python.log EXTREMELY LONG, so beware.

 

 

 

cover.png.cbce9f02664199f2336314e99365a499.png

extra_debug.wotmod

Edited by blueferret
forgot to attach the actual mod lol

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...