Rip .py's from EXE's and/or Pre-compile?

For questions about using Classic.

Post » Wed Jan 12, 2011 12:55 am

Is it possible to rip the python code from a .cap/.exe made from construct, or will I have to do stuff from scratch?

I want to do this because it makes making my game modifiable far easier then rewriting every event in python. That and I don't know python, and I hope that I can learn from reading the events in python. :P
B
26
S
7
G
5
Posts: 202
Reputation: 5,235

Post » Thu Jan 13, 2011 1:34 am

Bump
B
26
S
7
G
5
Posts: 202
Reputation: 5,235

Post » Thu Jan 13, 2011 11:59 am

[quote:jccb6cdu]Is it possible to rip the python code from a .cap/.exe made from construct, or will I have to do stuff from scratch?[/quote:jccb6cdu]
If you have the cap you can just copy and paste the python scripts.

[quote:jccb6cdu]I want to do this because it makes making my game modifiable far easier then rewriting every event in python. That and I don't know python, and I hope that I can learn from reading the events in python. [/quote:jccb6cdu]
Construct doesn't convert events into python, you would have to rewrite your events into python manually.

For learning python in general I've found these two links to be useful:
[url:jccb6cdu]http://docs.python.org/tutorial/index.html[/url:jccb6cdu]
[url:jccb6cdu]http://www.tutorialspoint.com/python/index.htm[/url:jccb6cdu]


If I misunderstood your question please clarify.
B
79
S
24
G
54
Posts: 4,753
Reputation: 40,769

Post » Thu Jan 13, 2011 12:34 pm

Thanks for the links, do you know any tutorials in downloadable form like .pdf?
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Thu Jan 13, 2011 4:54 pm

[quote:1bd7dz9x]Thanks for the links, do you know any tutorials in downloadable form like .pdf?[/quote:1bd7dz9x]
[url:1bd7dz9x]http://docs.python.org/download.html[/url:1bd7dz9x]
B
79
S
24
G
54
Posts: 4,753
Reputation: 40,769

Post » Thu Jan 13, 2011 5:44 pm

Ups, thanks that was like two clicks away :oops:
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Fri Jan 14, 2011 1:43 am

[quote="R0J0hound":vywpsd2b][quote:vywpsd2b]Is it possible to rip the python code from a .cap/.exe made from construct, or will I have to do stuff from scratch?[/quote:vywpsd2b]
If you have the cap you can just copy and paste the python scripts.

[quote:vywpsd2b]I want to do this because it makes making my game modifiable far easier then rewriting every event in python. That and I don't know python, and I hope that I can learn from reading the events in python. [/quote:vywpsd2b]
Construct doesn't convert events into python, you would have to rewrite your events into python manually.

For learning python in general I've found these two links to be useful:
[url:vywpsd2b]http://docs.python.org/tutorial/index.html[/url:vywpsd2b]
[url:vywpsd2b]http://www.tutorialspoint.com/python/index.htm[/url:vywpsd2b]


If I misunderstood your question please clarify.[/quote:vywpsd2b]

Thanks a bunch! I wish we could rip out python code from Construct though. Maybe I could ask in the suggestions thread so it can be added in Construct 1? :P
B
26
S
7
G
5
Posts: 202
Reputation: 5,235

Post » Fri Jan 14, 2011 11:58 am

[quote:wck4e4pj]I wish we could rip out python code from Construct though. Maybe I could ask in the suggestions thread so it can be added in Construct 1? :P[/quote:wck4e4pj]
There would be nothing to rip as events are not written in python internally. Python is merely an extension that can be added in addition to events. Unless you put python scripts in your game, python isn't utilized at all.
B
79
S
24
G
54
Posts: 4,753
Reputation: 40,769


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests