Author Topic: How to fix compiled client scripts issues.  (Read 3161 times)

Shadow.

  • Tester
  • Full Member
  • ****
  • Posts: 144
  • Karma: +16/-35
    • View Profile
How to fix compiled client scripts issues.
« 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!
Executable: Clicky!

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.
« Last Edit: August 07, 2013, 02:15:44 pm by Shadow. »

VRocker

  • Liberty Unleashed Developer
  • Administrator
  • Full Member
  • ******
  • Posts: 342
  • Karma: +43/-15
    • View Profile
    • Madnight Software
Re: How to fix compiled client scripts issues.
« Reply #1 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 :)


Yamaza

  • Newbie
  • *
  • Posts: 12
  • Karma: +2/-1
    • View Profile
Re: How to fix compiled client scripts issues.
« Reply #2 on: August 07, 2013, 02:13:52 pm »
Nice, thanks

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: How to fix compiled client scripts issues.
« Reply #3 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.

 

© Liberty Unleashed Team.