|
You last visited: Today at 03:01
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.
03/13/2015, 09:58
|
#1
|
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
|
[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- Me (lollo_9_1/martysama0134)
- Night (OST suggestion)
- 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.
|
|
|
03/13/2015, 10:41
|
#2
|
elite*gold: 0
Join Date: Oct 2011
Posts: 164
Received Thanks: 34
|
will try it thank you
|
|
|
03/13/2015, 12:56
|
#3
|
elite*gold: 0
Join Date: Dec 2014
Posts: 1,015
Received Thanks: 498
|
thanks, its sad that people try to make money with that.
|
|
|
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
|
|
|
03/13/2015, 21:13
|
#5
|
elite*gold: 0
Join Date: Dec 2013
Posts: 1,256
Received Thanks: 554
|
Thank you wanna try it
|
|
|
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
|
|
|
03/16/2015, 21:19
|
#7
|
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.
|
|
|
04/29/2015, 14:14
|
#8
|
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
|
#UPDATED
|
|
|
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.
|
|
|
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...
|
|
|
07/13/2015, 17:15
|
#11
|
elite*gold: 0
Join Date: Feb 2012
Posts: 95
Received Thanks: 29
|
works perfectly
|
|
|
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?
|
|
|
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
|
|
|
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?
|
|
|
All times are GMT +2. The time now is 03:01.
|
|