Corrupted Python?

For questions about using Classic.

Post » Fri Mar 04, 2011 6:46 am

It looks like my .cap got stuck with some funky python code

If I tell it to do Python(70+1) I get a error message window saying this:

[code:325e2vtp]File "<string>", line 984
def Swap values(self, p0, p1, p2, p3):
^
SyntaxError: invalid syntax[/code:325e2vtp]

But the program stills returns 71 and won't give the error past the first time.

I'm hoping I don't have to recode from an earlier backup.

Any ideas?
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Fri Mar 04, 2011 9:27 am

A function name may not have spaces. Make the name being swap_values or swapvalues, etc.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Fri Mar 04, 2011 2:26 pm

But, I don't have anything named Swap Values, that's straight from the python dll. Nothing in my code says that.
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Fri Mar 04, 2011 4:06 pm

Are you using any nonofficial plugins, and if so which ones?
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Fri Mar 04, 2011 4:13 pm

No, nothing just array, ini, hastable, object pairer.
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Fri Mar 04, 2011 5:53 pm

Its an error in one of those plugins.
If you can narrow it down, it'll increase the likelyhood of it getting fixed in the next build
Here's how.
Check the actions of each of those plugins. Probably array or hash table
Find the action that swaps values, and then post the python error for that plugin on the bug tracker. It will be a very simple fix
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Fri Mar 04, 2011 7:16 pm

Could you post a cap? I cannot reproduce it here by adding the plugins you mentioned. Do you have any other plugins on other layouts in the cap?
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 10 guests