Jump to content
Korean Random

In pjorion protected mod file , fini() doesnot work


Recommended Posts

  • 3 months later...

I've written a test mod , and find out only the normally compiled pyc file can trigger the init() and fini()  , protected version of pyc file can not.

below is my code, attatched is my py file and the mod with normal/protected pyc

step: compile the py file to pyc and right click the pyc file select pjorion->protect bytecode .

 

test_protected.wotmodtest_normal.wotmod

 

mod_test.py

 

 

image.png.dd195e3510e7427562167574709c1a14.png

Link to comment
Short link
Share on other sites

5 часов назад, yinx2002 сказал:

I've written a test mod , and find out only the normally compiled pyc file can trigger the init() and fini()  , protected version of pyc file can not.

below is my code, attatched is my py file and the mod with normal/protected pyc

 

If you call these functions yourself, then disable the option "Lock Attributes ..."

Link to comment
Short link
Share on other sites

I'm not calling init() and fini() my self , but leave it to client to call them.  But the text I print out doesnot appear when using protected version, but using normal version they appear normally.

Link to comment
Short link
Share on other sites

2 часа назад, yinx2002 сказал:

I'm not calling init() and fini() my self , but leave it to client to call them.  But the text I print out doesnot appear when using protected version, but using normal version they appear normally.

 

It's one and the same.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...