Jump to content
External pictures are being replaced... ×
×
×
  • Create New...
  • 0

Debug Mode Help please


Places

Question

7 answers to this question

Recommended Posts

  • 0
  • Premium

It's already inside game.py (UpdateDebugInfo) and if you're using debug mode it's displayed by default next to minimap

        xMouse, yMouse = wndMgr.GetMousePosition()
        self.PrintMousePos.SetText("MousePosition: %d %d" % (xMouse, yMouse))

Link to comment
Share on other sites

  • 0
  • Premium

open game.py, find

        if debugInfo.IsDebugMode():
            self.ToggleDebugInfo()

add bellow

        else:
            self.ToggleDebugInfo()

Link to comment
Share on other sites

  • 0
  • Premium

game.py -> def OnUpdate()

        xMouse, yMouse = wndMgr.GetMousePosition()

        print("MousePosition: %d %d" % (xMouse, yMouse)) #display position in debug console
        chat.AppendChat(chat.CHAT_TYPE_INFO, "MousePosition: %d %d" % (xMouse, yMouse)) #display position on chat

  • Love 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.