Register for your free account! | Forgot your password?

You last visited: Today at 03:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[How-To] Metin2 & Cython

Discussion on [How-To] Metin2 & Cython within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Arrow [How-To] Metin2 & Cython

Intro
This release will explain how to "convert" your root .py files to .c ones.
Actually, Cython only converts those files to pure CPython code.

Download
NOTE: ALL THE FILES HAVE BEEN MOVED TO .

EDIT:
As requested by many people, you can download the compatible and clean official cn root dated 20131228-0034 without further edits:

Is Cython really worth it?
  • Pros
    • All the modules are compiled, and they can't be "extracted as .py" anymore.
      We can always disassemble the launcher with IDA, but the result will be pseudo-c code after waiting 6-8h of analyzing.
    • Since we're not using .pyx files but directly .py ones, there's no "so much optimization".
      At least, 10% of performance increasing is guaranteed.
  • Cons
    • For testing purposes, it's heavy to maintain. Everytime you try to re-compile your root files, you should wait 5-10 minutes.
      You can always use the uncythonized root (.py files) when you perform tests, and compile cython whenever you will make an update in your live server.
    • The launcher's size will increase ~10mb. You can actually pack it to save space.
      If you directly use a .pyd (still 10mb), the launcher's size won't increase.

VideoTutorial

Credits
  1. Me (lollo_9_1/martysama0134)
  2. Night (OST suggestion)
  3. Random Testers

What's New:
  • v2.0
    • The module's name check is now case-insensitive (colorInfo == colorinfo)
    • Added a new function rootlib/uiscriptlib.getList() to retrieve a tuple of all the available cythonized modules.
    • Now you can compile a uiscriptlib library from the uiscript\*.py files! (implemented as __USE_EXTRA_CYTHON__)
    • Added a sample ui.py containing the code to run uiscriptlib.
lollo_9_1 is offline  
Thanks
44 Users
Old 03/13/2015, 10:41   #2
 
[SA]Hylight's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 164
Received Thanks: 34
will try it thank you
[SA]Hylight is offline  
Old 03/13/2015, 12:56   #3
 
BizepsSupportAccount's Avatar
 
elite*gold: 0
Join Date: Dec 2014
Posts: 1,015
Received Thanks: 498
thanks, its sad that people try to make money with that.
BizepsSupportAccount is offline  
Old 03/13/2015, 13:42   #4

 
elite*gold: 0
Join Date: Dec 2008
Posts: 2,825
Received Thanks: 1,538
Nice...always wanted to use cython

This tutorial helps pretty much
.Colossus. is offline  
Old 03/13/2015, 21:13   #5
 
killchill™'s Avatar
 
elite*gold: 0
Join Date: Dec 2013
Posts: 1,256
Received Thanks: 554
Thank you wanna try it
killchill™ is offline  
Old 03/15/2015, 21:11   #6
 
elite*gold: 0
Join Date: Feb 2014
Posts: 160
Received Thanks: 78
Thanks for this tutorial and nice job
thanks alot
.Incidur is offline  
Old 03/16/2015, 21:19   #7
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
#UPDATED

What's New:
  • v2.0
    • The module's name check is now case-insensitive (colorInfo == colorinfo)
    • Added a new function rootlib/uiscriptlib.getList() to retrieve a tuple of all the available cythonized modules.
    • Now you can compile a uiscriptlib library from the uiscript\*.py files! (implemented as __USE_EXTRA_CYTHON__)
    • Added a sample ui.py containing the code to run uiscriptlib.
lollo_9_1 is offline  
Thanks
2 Users
Old 04/29/2015, 14:14   #8
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
#UPDATED
lollo_9_1 is offline  
Old 05/25/2015, 14:48   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 53
Received Thanks: 238
Das ist ein des hilfreichen Release dass ich in diese Forum gefunden habe.
Jetzt alle Personen die ein Private Server haben, konnen das ganze root in Cython konvertieren.
Das heißt: mehr Sicherheit für die Files des Client und die Verbesserung den Leistungen des Computerprogramms.
Sehr gut gemacht Lollo.
diore is offline  
Old 07/12/2015, 14:20   #10
 
elite*gold: 0
Join Date: Feb 2014
Posts: 9
Received Thanks: 0
Im followed your tuts and i get RunMain Error...
georgell99 is offline  
Old 07/13/2015, 17:15   #11
 
kstmr's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 95
Received Thanks: 29
works perfectly
kstmr is offline  
Old 07/14/2015, 20:16   #12
 
elite*gold: 0
Join Date: Feb 2014
Posts: 9
Received Thanks: 0
For me, don't import system from rootlib, and i'm following this tut. step by step.
Someone can help me with a answer?
georgell99 is offline  
Old 07/21/2015, 08:54   #13
 
elite*gold: 0
Join Date: Feb 2014
Posts: 9
Received Thanks: 0
I give full Shoulder Sash System for who helps me.

add skype: morphe_ubz
georgell99 is offline  
Old 08/11/2015, 20:02   #14
 
elite*gold: 0
Join Date: Jul 2013
Posts: 8
Received Thanks: 3
Traceback:

Error: 'NoneType' object has no attribute 'split'

Anyone has a solution for it?
jardel13 is offline  
Reply

Tags
cython, lollo_9_1, metin2, python, root




All times are GMT +2. The time now is 03:01.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.