Jump to content
  • 0

Metin2 and Cython?


M2Dev

Question

  • Bot

Hey Guys i just want to ask you how you think about metin2 and cython.

Should it get used or are u against it? Its just a short question but i just

want to know how other people think about the function that metin´s root can

get cythonized.

Link to comment

8 answers to this question

Recommended Posts

  • 0

The main disadvantage I see is harder testing (the generated modules take a bit to compile) and the increased binary file size, which players will have to download every time you want to change anything on python. Besides that, well, you gain (a little) in speed and in protection.

 

The harder testing can be countered by keeping separate binaries and just making normal root packs for testing, and the increased size can be largely reduced by packing the executable, to around 3 MB.

 

So I'd say it's a win.

 

 

Link to comment
  • 0
  • Bot

Yes. Cython is good protection for script ripping and good protection for noobs, but if you want cythonize all modules it can be little problem.

Why do u think it would be a problem if all modules get cythonized? I cythonized the fully root and i dont get any problems.

Or which modules u mean?

Link to comment
  • 0
0606 12:50:33042 :: importing from lib game
0606 12:50:33045 :: SYSERR: Traceback (most recent call last):

0606 12:50:33045 :: SYSERR:   File "networkModule.py", line 237, in SetGamePhase

0606 12:50:33045 :: SYSERR:   File "system.py", line 137, in __pack_import

0606 12:50:33046 :: SYSERR:   File "game.py", line 1, in init game (game.c:60738)

0606 12:50:33046 :: SYSERR: TypeError
0606 12:50:33046 :: SYSERR: : 
0606 12:50:33046 :: SYSERR: __pack_import() takes at most 4 arguments (5 given)
0606 12:50:33047 :: SYSERR: 

It's my problem. I think __pack_import() is still required for some scripts such as npclist.

Link to comment

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.