
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.