Register for your free account! | Forgot your password?

You last visited: Today at 20:30

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

Advertisement



[How To] Using .pyc Files

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

Reply
 
Old   #1
 
Sanchez_x's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 33
Received Thanks: 106
[How To] Using .pyc Files

Hi everyone,


In this Thread i will show you how to compile and then using the compiled .pyc files in the game client. First of all....what we need:


-

- Python 2.2

- Notepad++

After you installed all required applications then unpack the root.epk/eix files from your client pack folder. Now locate the installed Python 2.2 and copy the .py files from the unpacked Source folder to the Python 2.2 root folder. When you done with it open up the python.exe and start the compiling. This part is so easy, just write import <nameofthefile.py> to the Command Prompt and then press Enter on your keyboard. After this command you will see the compiled file in the Python root folder, just copy back it to the Source folder where you unpacked the root.epk/eix, and then delete the .py version of this file. Example:

- intrologin.py > intrologin.pyc

Now do this with all .py files, exception the system.py becouse later we need add things to it. When you compiled and copied all files then go back to the Source folder and open up the System.py file with Notepad++. We need to update 3 things in this file, press Ctrl+F and search for this:

filename = name + '.py'

Replace this line with this:

filename = name + '.pyc'

Search for this:

newmodule = _process_result(compile(pack_file(filename,'r').re ad(),filename,'exec'),name)

Replace with this:

newmodule = _process_result(marshal.loads(pack_file(filename,' rb').read()[8:]),name)

Search for this:

RunMainScript("prototype.py")

Replace with this:

RunMainScript("prototype.pyc")


That's all, now just pack the root.epk/eix and copy to the client pack folder with overwriting the existing root.epk/eix. After this just start the game with your preferred starter, "metin2client.exe". Now you're done, you using compiled py files.


Sources:

-

- Google



Changelog:

3. Juli 2013 - Thread opened
4. Juli 2013 - Added easy compiler



Hope this help, if you have question or suggestion, please contact me via my profile page, or just reply to this topic.

Kind Regards,
Sanchez_x
Attached Files
File Type: zip EasyCompile.zip (253 Bytes, 291 views)
Sanchez_x is offline  
Thanks
13 Users
Old 07/03/2013, 20:35   #2
 
elite*gold: 17
Join Date: Jan 2009
Posts: 2,538
Received Thanks: 2,404
oder einfach die .py datei in den lib ordner packen und client starten zack hat man auch eine .pyc datei

eng: simple put the .py file in the lib folder and start the client, the client make the .pyc file by self!

and use with

import name
Perfection- is offline  
Thanks
1 User
Old 07/03/2013, 20:58   #3
 
elite*gold: 0
Join Date: Jun 2013
Posts: 210
Received Thanks: 20
ne macht er garnet getestet
´LaLu` is offline  
Old 07/03/2013, 21:12   #4
 
elite*gold: 139
Join Date: Sep 2010
Posts: 583
Received Thanks: 546
Quote:
Originally Posted by ´LaLu` View Post
ne macht er garnet getestet
Doch macht er du musst nur die datein die du da reinpackst in der game z.B. importen
also import file1
import file2
.XXShuzZzle is offline  
Old 07/03/2013, 21:14   #5
 
elite*gold: 0
Join Date: Jun 2013
Posts: 210
Received Thanks: 20
und wie entschlüsselt man die wieder

und nein macht er dann auch nicht
´LaLu` is offline  
Old 07/03/2013, 21:18   #6
 
Stαgє6's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 2,019
Received Thanks: 1,471
Wird bestimmt paar weiterhelfen besonders neulinge die noch nicht wissen wie es anderst geht oder wie es überhaupt geht. Thanks for this howto it´s good for beginners.
Stαgє6 is offline  
Old 07/03/2013, 21:23   #7
 
[uLow]Beni's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 1,781
Received Thanks: 618
Quote:
Originally Posted by ´LaLu` View Post
und wie entschlüsselt man die wieder

und nein macht er dann auch nicht
die werden nicht verschlüsselt die werden nur in einfacher Form abgespeichert damit es der Interpreter lesen kann.
[uLow]Beni is offline  
Old 07/03/2013, 22:07   #8
 
STREL's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 44
Received Thanks: 100
Quote:
Originally Posted by .Xero View Post
oder einfach die .py datei in den lib ordner packen und client starten zack hat man auch eine .pyc datei

eng: simple put the .py file in the lib folder and start the client, the client make the .pyc file by self!

and use with

import name
or make a script to compile al files in folder and delete the old file, console: 2.2
STREL is offline  
Old 07/03/2013, 22:09   #9
 
elite*gold: 0
Join Date: Jun 2013
Posts: 210
Received Thanks: 20
aha darum kann man sie auch nicht mehr bearbieten pyc daten sind verschlüsselt
´LaLu` is offline  
Old 07/03/2013, 22:17   #10
 
callmax's Avatar
 
elite*gold: 20
Join Date: Mar 2010
Posts: 1,166
Received Thanks: 684
ne sind sie nicht , da wurde der programmcode einfach in hexcode umgewandelt der vom Computer benutzt wird du vollpfosten, kannst du hex, kannst du auch mit den pyc dateien arbeiten.
callmax is offline  
Old 07/03/2013, 22:31   #11
 
elite*gold: 0
Join Date: Jun 2013
Posts: 210
Received Thanks: 20
gemeldet beleidung sind hier verboten

und pyc daten kann man nicht wieder so einfach entschlüsseln
´LaLu` is offline  
Old 07/03/2013, 22:35   #12
 
darkfr3ak's Avatar
 
elite*gold: 5
Join Date: Sep 2008
Posts: 241
Received Thanks: 113
Quote:
Originally Posted by ´LaLu` View Post
gemeldet beleidung sind hier verboten

und pyc daten kann man nicht wieder so einfach entschlüsseln
man merkt echt, wenn wer keine ahnung hat xD

pyc sind nicht verschlüsselt, sondern kompiliert. Von lesbarem Code zu "byte-kompilierten" Dateien. Und die kann man auch wieder in normale py-dateien umwandeln. Siehe das Thema neue Game und der Metin2.sg-Client. Da gibts mittlerweile auch die py-dateien zum download.
darkfr3ak is offline  
Thanks
3 Users
Old 07/03/2013, 22:38   #13
 
elite*gold: 129
Join Date: Jun 2011
Posts: 1,506
Received Thanks: 264
Wird bestimmt paar weiterhelfen besonders neulingen
Palassa is offline  
Old 07/03/2013, 22:44   #14
 
elite*gold: 0
Join Date: Jun 2013
Posts: 210
Received Thanks: 20
aha dann zeig mal den thread und die py datei die wieder normal sind

in den thread mit der neuen game gibt es keine py daten alle seiten nachgeguckt
´LaLu` is offline  
Old 07/03/2013, 22:46   #15
 
darkfr3ak's Avatar
 
elite*gold: 5
Join Date: Sep 2008
Posts: 241
Received Thanks: 113
gehört hier zwar nicht her, aber bitteschön:

darkfr3ak is offline  
Reply

Tags
compile, metin2, py, pyc, python


Similar Threads Similar Threads
[Biete] FinalMT2 Server Files + Patcher + (Neue)Homepage Files vom 22.04.2012
07/10/2012 - Metin2 Private Server - 11 Replies
Biete hier gegen einen kleinen Obolus die obengenannten Dinge an, als Dankbarkeit von 25€ PSC werde ich euch die files zukommen lassen, sendet mir eine E-Mail an : [email protected] Alle neuen Corefixxes ect. von FinalMT2 berreits enthalten.! Inclusive Testserverfiles von der Devilscatacombe + Quest.



All times are GMT +1. The time now is 20:30.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.