www.ClassicTW.com
https://mail.black-squirrel.com/

Script load error: Script file is an incorrect version
https://mail.black-squirrel.com/viewtopic.php?f=15&t=30395
Page 1 of 1

Author:  karn [ Wed Sep 29, 2010 5:56 pm ]
Post subject:  Script load error: Script file is an incorrect version

Just started playing again, as far as I can tell I have the same version of TWXProxy as I did before but now many of my old scripts don't work.

Only seems to happen with compiled ones, and not all of them. One I miss alot is proecolonizer, I actually downloaded any version of it I could find floating around and they all give the same message.

Script load error: Script file is an incorrect version

I'd say half of my compiled scripts do this, any way to fix it? I'm a bit confused since it all worked last time I used it.

Author:  Vid Kid [ Wed Sep 29, 2010 6:03 pm ]
Post subject:  Re: Script load error: Script file is an incorrect version

try downloading twxproxy2.04 in one folder and twxproxy 2.03 in another

put both scripts in each and try one then the next .. this will help you determine
which version it came from.

just my 2ยข

Author:  Singularity [ Wed Sep 29, 2010 6:07 pm ]
Post subject:  Re: Script load error: Script file is an incorrect version

karn wrote:
Just started playing again, as far as I can tell I have the same version of TWXProxy as I did before but now many of my old scripts don't work.

Only seems to happen with compiled ones, and not all of them. One I miss alot is proecolonizer, I actually downloaded any version of it I could find floating around and they all give the same message.

Script load error: Script file is an incorrect version

I'd say half of my compiled scripts do this, any way to fix it? I'm a bit confused since it all worked last time I used it.


Compiled scripts create a bytecode that represents the original instructions.
The problem is, that code can change from version to version. While a TS file
can be compiled at run-time into the most recent bytecode, a cts file cannot
be. This means that TWXproxy had to check the version used to compile the
cts and refuse to run old compiles.

Sadly, this means that if you're running 2.02 scripts, they will not work in 2.04
or 2.05. Fortunately, this was a big enough problem in the 2.02 to 2.03 transition
that new versions don't do this, so CTS scripts for 2.03 should work fine in 2.04
and 2.05.

As for 2.02 or less... I don't have any way to run them.

Author:  Vid Kid [ Wed Sep 29, 2010 6:37 pm ]
Post subject:  Re: Script load error: Script file is an incorrect version

Thank you Sing.

I can convert 2.02 to 2.03/4
but can't seem to find my converter for 1.09 up :(

Author:  Singularity [ Wed Sep 29, 2010 7:14 pm ]
Post subject:  Re: Script load error: Script file is an incorrect version

Vid Kid wrote:
Thank you Sing.

I can convert 2.02 to 2.03/4
but can't seem to find my converter for 1.09 up :(


Really? There's a converter for 2.02? What's it called?

Author:  Promethius [ Wed Sep 29, 2010 8:18 pm ]
Post subject:  Re: Script load error: Script file is an incorrect version

karn wrote:
Just started playing again, as far as I can tell I have the same version of TWXProxy as I did before but now many of my old scripts don't work.

Only seems to happen with compiled ones, and not all of them. One I miss alot is proecolonizer, I actually downloaded any version of it I could find floating around and they all give the same message.

Script load error: Script file is an incorrect version

I'd say half of my compiled scripts do this, any way to fix it? I'm a bit confused since it all worked last time I used it.


ProEcolonizer3 requires 2.04 or above I believe. I think I made some changes to it since the earlier versions that would affect that.

Author:  karn [ Thu Sep 30, 2010 10:11 am ]
Post subject:  Re: Script load error: Script file is an incorrect version

Thanks guys. I didn't even realize there was a 2.04 out and I just grabbed 2.03 from the TWXProxy site. The weird part is I had saved my old TWX folder and when I busted it out again it said wrong version.. same exact files as before. Stupid computers.

So what's the difference between between 2.04 and 2.05 and where might I find a copy of 2.05?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/