Liberty Unleashed

Scripting => Script Tutorials => Topic started by: Shadow. on August 07, 2013, 01:23:47 pm

Title: How to fix compiled client scripts issues.
Post by: Shadow. on August 07, 2013, 01:23:47 pm
After intensive talking with [AoD]NC, he told me that my errors could be due to version difference. (thanks Gudio)

So, I tried printing the version and this is what I found:

Server is using version Squirrel 3.0 stable
Client is using version Squirrel 3.0 beta 1 (older)

So in order to compile your script, you will have to use this executable I packed after compiling the 3.0 beta 1 source.

The executable will execute every line you type, so you will have to write:
Code: [Select]
writeclosuretofile("newpath.nut",loadfile("oldpath.nut"));
Source: Clicky! (http://sourceforge.net/projects/squirrel/files/squirrel3/squirrel%203.0%20beta%201/squirrel_3.0_beta1.tar.gz/download?use_mirror=heanet)
Executable: Clicky! (http://www.solidfiles.com/d/42aeb602e1/)

Note
- I haven't tested with lots of client scripts, but as mine worked, I decided to share this solution. It might not work, but it will most likely do.
Title: Re: How to fix compiled client scripts issues.
Post by: VRocker on August 07, 2013, 01:27:14 pm
Nice find :) Thanks to you finding this the issue has been fixed in the next update (as you already know as you tested... ;))

In theory your solution should work for everybody so it'd be nice if people posted their feedback on it :)
Title: Re: How to fix compiled client scripts issues.
Post by: Yamaza on August 07, 2013, 02:13:52 pm
Nice, thanks
Title: Re: How to fix compiled client scripts issues.
Post by: Thijn on August 08, 2013, 06:07:48 pm
Seems to working with our GameSparks script as well, which is counting 8 client side scripts and lots of lines.