Liberty Unleashed

Liberty Unleashed => Bug Reports => Topic started by: xIBKn6 on September 16, 2011, 06:14:57 am

Title: Client script issues.
Post by: xIBKn6 on September 16, 2011, 06:14:57 am
I was scripting some stuff on my server, mainly working on some client-side stuff. I had the server open, and the client connected to the server, and was alt-tabbing between the client, server, and Notepad++. At some points, when I reloaded the scripts in the server console, the client would randomly have 1 out of 2 issues when I alt-tabbed back to the game:

-The client would freeze with a black screen, and crash when a key was pressed. At that point, I was given the option to report the crash, which I have done 3 times.
-The script would not be re-downloaded. I'm guessing this has to do with the file size of the client script not changing, so it isn't re-downloaded as it appears to not have changed. That's just a guess though, I don't know how this works in LU.

Specifications of the PC I am using:
-AMD Phenom II X4 965 Black Edition
-XFX Radeon HD 6870
-4 GB DDR3 RAM
-Windows 7 Home Premium 64-bit

The game is running with the following settings:
-1920X1080X32
-Fullscreen
-~30% Brightness
-Rest is MAXIMUM

(some of the above info is probably unnecessary, lol)

The version of LU I am using is 0.1.0.11.
Title: Re: Client script issues.
Post by: SugarD on September 16, 2011, 08:12:42 am
Some scripting abilities may require a server restart, and reloading the scripts after your client is paused for a long time may cause a crash as well. I would recommend disconnecting if alt-tabbing for awhile, and if it's just a moment, restart the server completely if it's a major change, and /reconnect the client.
Title: Re: Client script issues.
Post by: VRocker on September 16, 2011, 12:05:43 pm
The reloading of client scripts can be dodgy at times since the testers were too lazy to test it properly :P

I was looking at your crash reports last night and will try to fix them. The client-side script reloading may need rethinking though.

P.S. nice specs :) rivals my own system :P
Title: Re: Client script issues.
Post by: Romop5 on September 16, 2011, 03:03:10 pm
hm... VRocker have memory leak, I have AMD Phenom II X4 955 BE too :D (but my GPU is lower)
Title: Re: Client script issues.
Post by: xIBKn6 on September 16, 2011, 09:41:24 pm
Another thing I was wondering - where to client files go when they are downloaded? Not that I'm trying to snoop around at other peoples scripts, I just want to see if the script is actually being update and not loaded when it is reloaded after a minor change.
Title: Re: Client script issues.
Post by: stormeus on September 16, 2011, 10:04:51 pm
My Documents/GTA3 User Files/LU/Scripts/<Script Name>
Title: Re: Client script issues.
Post by: xIBKn6 on September 16, 2011, 10:17:48 pm
Thanks. Final question - is there a way to prevent/deter theft of client-side scripts? Can they be compiled just like LUA scripts?
Title: Re: Client script issues.
Post by: SugarD on September 16, 2011, 10:20:21 pm
Thanks. Final question - is there a way to prevent/deter theft of client-side scripts? Can they be compiled just like LUA scripts?
I remember VRocker mentioning a script that you can host on the server that compiles them, but he might be the one you'd want to ask about that.
Title: Re: Client script issues.
Post by: VRocker on September 17, 2011, 03:34:09 pm
Thanks. Final question - is there a way to prevent/deter theft of client-side scripts? Can they be compiled just like LUA scripts?

I remember VRocker mentioning a script that you can host on the server that compiles them, but he might be the one you'd want to ask about that.


The script can be found Here (http://liberty-unleashed.co.uk/Scripts/Compiler.zip)

To use it, load it in your server and type 'compile <script name>' in the server console. E.g. compile MyScript/MyScript.nut

It will output a .cnut with the same name. Then its just a case of telling the server to use the cnut instead of the nut :)
Title: Re: Client script issues.
Post by: SugarD on October 25, 2012, 08:48:49 pm
Was the crash issue ever resolved?