6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: python wrapper
[Re: ventilator]
#276085
07/03/09 11:24
07/03/09 11:24
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
Thanks for the links, but they are still not basic enough, because even the editor seems to work different to what I know from Lite-C or that what I've seen of C++. What do I have to do, when I get a window called Python Shell with this contend?
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 1.2.2
>>>
|
|
|
Re: python wrapper
[Re: Pappenheimer]
#276136
07/03/09 13:38
07/03/09 13:38
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
I'm quite dumb, i know! :P But now, I got a step further. Although, I don't know what I missed this time. Which dll is it missing?
Traceback (most recent call last):
File "C:/Programme/GStudio7/knightonwheels.py", line 10, in <module>
from a7_scheduler import *
File "C:/Programme/GStudio7\a7_scheduler.py", line 1, in <module>
from a7 import level_load as _level_load
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
>>>
Last edited by Pappenheimer; 07/03/09 14:20.
|
|
|
Re: python wrapper
[Re: ventilator]
#276152
07/03/09 16:04
07/03/09 16:04
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
Got it! Installed Python 2.6.2, extracted the pya7_alpha.exe into the python26 folder and copied the acknex.dll into the same folder. Started IDLE(Python GUI) from the start menu, clicked File --> Open.., opened the knight_on_wheels.py in the python26 folder and hit F5! It works!
|
|
|
Re: python wrapper
[Re: ventilator]
#276743
07/06/09 09:13
07/06/09 09:13
|
Joined: Jul 2009
Posts: 40
enrike
Newbie
|
Newbie
Joined: Jul 2009
Posts: 40
|
this python wrapper sounds really interesting. i have worked few years with python so i could benefit from this because i just started using game studio. Still i find C lite very easy but Python is more powerful because the standard library and hundreds of libraries and modules freely available (although is probably slower).
So far i cannot make it to work, i have python2.6 installed, then uncompressed pyA7 to my hardrive. Then edited the .bat files like this and run it "C:\Program Files\GStudio7\wed.exe" -p c:\python26\python.exe copy c:\python26\acknex.dll C:\Users\Administrator\Desktop\pyA7
at this point i try to run knights_on_wheels.py and I get this DLL error :
IDLE 2.6.2 ==== No Subprocess ==== >>> Traceback (most recent call last): File "C:\Users\Administrator\Desktop\pyA7\knights_on_wheels.py", line 12, in <module> from a7_scheduler import * File "C:\Users\Administrator\Desktop\pyA7\a7_scheduler.py", line 3, in <module> from a7 import level_load as _level_load ImportError: DLL load failed: The specified procedure could not be found.
Could this be because my A7 engine is old? I get SED > Help > About and there it says Version : 7.02.4
I am not sure if this is the right way to run it.
acknex.dll is in the same directory I uncompressed pya7_alpha.exe
I also tried to copy acknex.dll to python2.6 together with a7_scheduler.py and a7.pyd and get the same error.
it would be good to have a step by step explanation of how to set it up. maybe i have not found it?
Last edited by enrike; 07/06/09 09:19.
|
|
|
|