Re: Syntax Error 1084 in AS
If you got this on flasm while decompiling/assembling it means it's encrypted
Re: Syntax Error 1084 in AS
I guess he got that after decompiling a game and trying to compile it with Flash. Judging by the name of the variables/functions it is SecureSWF encrypted and i would wonder if it really would work when compiled again.
But for the error you get. This is an if statement without parentheses which is simply wrong. It should look somewhat like this:
Code:
if (!_-6._-7(this)) { }
But seriously that does not make any sense either as it would do nothing.
Re: Syntax Error 1084 in AS
Ok, I think I should provide a bit more info as to where this code is coming from.
So, since Krin came out with a new, updated version of Colony (v 4.3), I wanted to attempt hacking it myself. This code is from the "MainTimeline.as" file.
Here's what the actual code would look like: (note: I changed the first if statement and got rid of the "need identifier" problem, but the syntax error for rightparen is still there.)
Code:
public function MainTimeline();
{
if (!(_-6._-7(this) );
{
return;
}
__setPropDict = new Dictionary(true);
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 19, frame20, 20, frame21, 21, frame22, 22, frame 23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37); //this is all one line
return;
}// end function
Martin, you already hacked it, so any tips? I edited the values for cash, power, influence, and whatnot, but this has been giving me issues.
Thanks,
greywolf
Re: Syntax Error 1084 in AS
Get me a link to the game please I don't know which one are you talking about
Re: Syntax Error 1084 in AS
This is how it should look:
Code:
if (!(_-6._-7(this) )
{
return;
}
Re: Syntax Error 1084 in AS
http://armorgames.com/play/4264/colony
There you go. That's the updated version (now 4.3) from when you hacked it (3.1).
Quote:
Originally Posted by ZuckeR
This is how it should look:
Code:
if (!(_-6._-7(this) )
{
return;
}
Yeah, tried that and still receiving the "1084: Syntax error: expecting rightparen...." message in the Compiler Errors.
When I export the swf, the whole game has a spaz attack.
-- greywolf
Re: Syntax Error 1084 in AS
Alright and where did you get the SWF you're trying to decompile again?
Re: Syntax Error 1084 in AS
Sorry for the intrusion, but I want to bring this up really quick.
Looking at the previous posts, I would assume this game is probably sitelocked or something along the lines of that. The majority of new games from AG are, according to the history. And as this is a new version...I would have the assumption that it is no exception.
I would recommend just getting the game off of another site, if there is another where it appears.
Re: Syntax Error 1084 in AS
I used the Sothink SWF Decompiler 5.4 for the PC (Full Version) and then Flash Pro CS4 on multiple SWFs to try to compare the AS files and see if there were any inconsistencies.
The code I posted is actually from your hack of the game (I used the Sothink SWF Catcher for Firefox to download it.) I had tried the 4.3 version (from the ArmorGames link I just posted) and there were about 80 errors in the Flash CS4 Compiler, so I took a look at yours first to try to see if I should make some changes.
Quote:
Originally Posted by AuburnAttack21
Sorry for the intrusion, but I want to bring this up really quick.
Looking at the previous posts, I would assume this game is probably sitelocked or something along the lines of that. The majority of new games from AG are, according to the history. And as this is a new version...I would have the assumption that it is no exception.
I would recommend just getting the game off of another site, if there is another where it appears.
Thanks for that info. I've gone through the majority of the AS in the decompiled version, and I haven't found anything that would restrict this game to ArmorGames alone. I'll try another.
Update: The reason why I need the ArmorGames version.... is that Krin released a couple different versions of Colony. One to Kongregate (Kv 1.3), and one to ArmorGames (v 4.3). The ArmorGames version is more up to date... so that's why I need that version instead. However, if it is indeed site-locked, then there is nothing that can be done about it.
-- greywolf