yinx2002 Posted March 27 Share Posted March 27 I find if mod file is protected using pjorion , then the fini() function defined cannot be invoked when client close. Has this any solution ? @ Quote Link to comment Short link Share on other sites More sharing options...
StranikS_Scan Posted March 27 Share Posted March 27 Все работает, ищите причину в вашем коде. @ Quote Link to comment Short link Share on other sites More sharing options...
yinx2002 Posted July 4 Author Share Posted July 4 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 @ Quote Link to comment Short link Share on other sites More sharing options...
StranikS_Scan Posted July 4 Share Posted July 4 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 ..." @ Quote Link to comment Short link Share on other sites More sharing options...
yinx2002 Posted July 5 Author Share Posted July 5 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. @ Quote Link to comment Short link Share on other sites More sharing options...
StranikS_Scan Posted July 5 Share Posted July 5 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. @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.