Python for extensions and event sheets.

New releases and general discussions.

Post » Tue Jan 13, 2009 12:21 pm

I'm aware that XML is planned to be used for exportable/separate event sheets, but (and this is a big but, I know!):

How about Python - i.e., the events themselves are in Python behind the scenes?

Also, how about being able to use Python to write extensions?

I'm aware these probably won't be considered for the 1.x releases, but in the future it might be of use.
B
2
S
2
G
3
Posts: 158
Reputation: 1,566

Post » Tue Jan 13, 2009 5:41 pm

I don't know about Python plugins, but events-as-python is definitely a no. Python may be fast, but events are only fast because they're written in optimised compiled C++, and I don't believe Python has a JIT compiler of any kind. Also, it's implausible for C++ plugins, and then when you think about it, what actual advantage does it offer?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Tue Jan 13, 2009 5:56 pm

How about access to all the Python extensions that are out there? Hell, if someone were crazy enough they could hack Construct about with it to make it work with PyGame (or http://www.alobbs.com/pykyra PyKyra)!

I dunno, but it might be useful to access Zope, XML databases (or databases in general), etc. without having to dig into C++. There may well be other uses in which Python might be (at least) an alternative, but I'm not sure on that.

Lest you forget, Blender uses Python.
B
2
S
2
G
3
Posts: 158
Reputation: 1,566

Post » Tue Jan 13, 2009 6:22 pm

Yeah, we're hoping Python can do all that, once it works again :P Davo's working on fixing it for the next build I think... once it's working, we can start incooperating new modules etc.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Tue Jan 13, 2009 6:46 pm

Sounds good to me!
B
2
S
2
G
3
Posts: 158
Reputation: 1,566

Post » Wed Jan 14, 2009 9:17 pm

A JIT for Python: http://psyco.sourceforge.net/ - not sure if this would do what you want, but I'd imagine it might be worth a look at if nothing else.
B
2
S
2
G
3
Posts: 158
Reputation: 1,566


Return to Construct Classic Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest