Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 14:36

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

Advertisement



[Python]Embedding code in C++

Discussion on [Python]Embedding code in C++ within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
DreamStyler's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 96
Received Thanks: 42
[Python]Embedding code in C++

Hey Leute,

ich hab lange aufgehört das zu machen und wollte wieder anfangen.
Erfahrungen mit C++ habe ich, aber jedes Mal, wenn ich versuche Code mit PyRun_SimpleString(string s); auszuführen, krieg ich nen Error geworfen.
Code:

Code:
Module Name: C:\Program Files (x86)\Metin2\metin2client.bin
Time Stamp: 0x5272224d - (null)

Exception Type: 0xc0000005

eax: 0x00000000	ebx: 0x00000000
ecx: 0x000000b4	edx: 0x1e1fe760
esi: 0x000000b4	edi: 0x0859ef64
ebp: 0x0015a744	esp: 0x0015a6dc

0x1e09d006	C:\Program Files (x86)\Metin2\python27.dll
0x00e2dece	C:\Program Files (x86)\Metin2\metin2client.bin
0x09eda590
Ich hab schon gegoogelt wie ein Irrer, aber ich komm einfach nicht weiter.

Schön wäre es, wenn jemand ein Tutorial bezüglich Python-Code embedding hätte.

Soweit ich weiß, ist das ein ACCESS_VIOLATION_ERROR. Wie kann ich den umgehen?

FG
DreamStyler is offline  
Old 12/15/2013, 22:25   #2


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,221
Received Thanks: 6,758
Es gibt in der Python Dokumentation einen Teil bezüglich Embedding.

#SoNiice is offline  
Old 12/16/2013, 15:19   #3
 
DreamStyler's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 96
Received Thanks: 42
Quote:
Originally Posted by Hühnchenkopf View Post
Es gibt in der Python Dokumentation einen Teil bezüglich Embedding.

Die Seite hab ich mir schon oft angeschaut, allerdings liegt hier ja ein Zugriffsproblem über die verfügbaren Rechte vor.
Da kann ich mit dem Python-Code selber glaube ich wenig machen, da mir ja untersagt wird, meinen eigenen Code einzuführen (ACCESS_VIOLATION_ERROR).

Gibts eine Möglichkeit, meinen Code anders einzuschleusen, anstatt durch simples PyRun_SimpleString?

FG
Dreamstyler

P.S.: Aber thx schon Mal für die Antwort!
DreamStyler is offline  
Old 12/17/2013, 21:53   #4
 
SandMann016's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 2,715
Received Thanks: 5,305
Weil, in deinem Programm / Modul gar kein Python Modul geladen ist wird das nicht funktionieren.
Du musst erst die Adresse des Python Moduls ermitteln und dann die Funktion PyRun_SimpleString Interpretieren, mithilfe der python27.lib...
SandMann016 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Problem/bug with embedding Youtube videos
11/24/2013 - Main - 6 Replies
#RESOLVED
Kick hack python code
08/20/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 2 Replies
I need a kick hack or one skill hack python code for private servers. Please help me :) Thanks
Python Run Exe Code(without os.system)
05/31/2012 - Metin2 - 2 Replies
What is run exe code in python without os.system because when os.system starting exe , os.system open cmd then run it.
Python Functions von Mt2 per C++ Code Inject ausführen?
12/02/2011 - C/C++ - 5 Replies
Hallo, wollte fragen, ob mir eventuell jemand beantworten kann, wie man Python Functions nützt, welche in den Metin2 - pack Files gespeichert sind. Und ob das überhaupt so wie ich mir das vorstelle möglich ist.



All times are GMT +2. The time now is 14:36.


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.