How are people currently using Python?

New releases and general discussions.

Post » Sun Mar 22, 2009 10:32 pm

I really would like to rebuild my generator in Python script, it'd solve a lot of problems. Currently I have a lot of global variables to hold things I need to hold between loops and events - things I only need once and for a short duration...but that I need between events. The second option is to make an object specifically to hold these variables, but I think a Python script would be more efficient - not to mention easier for me to read.

However, Python isn't working consistently right now. At first I was getting a "Missing DLL: MSVCR71.DLL" error when trying to run a project using Python, which is the Visual C runtimes that I do have installed. I tried reinstalling and repairing and updating them to no avail.

I finally installed Python 2.5 after reading this forum, and that allows me to view projects with Python (and run them) made in earlier versions, without this error. I can't actually make my own script, but I can modify existing ones in previously working projects to an extent. However, if I add any object and try to reference it in a script with a basic line, Python support completely fails on the entire program. Lines that worked fine with zero errors before now report errors at runtime. Lines other than the one I added, that worked fine before.

For instance, if I open a project that works fine when run, that modifies a text object with Python...if I modify a line that changed the Text object, it'll modify it fine and the change will show up at runtime, but if I make another text object and try to use the exact same line on it, the whole program just fails, including the first line. They both report errors.

A guy named Zack in chat last night had me "import sys", which is a standard library I guess, at layout startup last night and at first that appeared to work for a little while, but then the same symptoms showed up...in every layout and every project.

Is there any way to get Python up and running right now, and if not, when is it planned to be fixed? Because if it's soon I can write a simple Python console program to generate my city and then port it into my Construct project fairly easily once Python is working in it.
B
5
S
2
G
5
Posts: 221
Reputation: 2,272

Post » Mon Mar 23, 2009 8:30 am

I believe that Python support is being rewritten.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Mar 28, 2009 11:29 am

You should post the error you're getting it and the code you're using.
B
3
S
1
G
3
Posts: 49
Reputation: 1,148

Post » Sat Mar 28, 2009 12:30 pm

I'd wait till the next build, when Python has been fixed, and uses the latest version.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sat Mar 28, 2009 2:33 pm

Python 3 right?
B
16
S
10
G
5
Posts: 255
Reputation: 3,934

Post » Sat Mar 28, 2009 3:59 pm

Question, is the version really going to matter?
I mean if you have 2.6 are you going to have to upgrade?
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Sat Mar 28, 2009 9:25 pm

Well, if python is fixed to a full extent so the game creator doesn't even need a python install, yes.
But if the game creator still needs a python install you'll have to update because each new version is installed in a different directory.
B
3
S
1
G
3
Posts: 49
Reputation: 1,148


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests