Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Executing Python Scripts


allen

Question

Version of Files XXX

Hello guys,
I apologize in advance if someone have already asked this, I could not find any topics of it.
I would like to know if there is a way to write a script created by us (inside the client) and execute it.
I already tried to do something but every time I upload to my client it gets stuck after choosing character.
What I'm doing is:

 

  • Unpack the root
  • Open the root folder and create a script (allen.py)
  • Write some example code on it and save
  • Open game.py script and import the new script doing: import allen
  • Compress the root folder again using Eter and replace those two files in my Client

 

What happens it is when you choose the character, the loading screen appears and gets stuck there and it won't do nothing until I finish the process in my Task Manager.

Does anyone know what I'm doing wrong? Is it a code problem, a Client problem, location from my script wrong?

I'm using Client Invoice (2013)

My script:

import ui
import wndMgr

class AllenTeste(ui.Window):
    def __init__(self):
        ui.Window.__init__(self)
        self.__LoadMainBoards()
    
    def __LoadMainBoards(self):
        self.FunctionalBoard = ui.ThinBoardClosed()
        self.FunctionalBoard.SetSize(100, 300)
        self.FunctionalBoard.SetPosition(wndMgr.GetScreenWidth() - 20, wndMgr.GetScreenHeight()/2)
        self.FunctionalBoard.Show()
        
start = AllenTeste()
start.Show()

 

Thanks, Sincerly,
allen

 

Link to post

1 answer to this question

Recommended Posts

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


×
×
  • Create New...

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.