Author Topic: Client script issues.  (Read 2483 times)

xIBKn6

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Client script issues.
« 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.

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Client script issues.
« Reply #1 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.

VRocker

  • Liberty Unleashed Developer
  • Administrator
  • Full Member
  • ******
  • Posts: 342
  • Karma: +43/-15
    • View Profile
    • Madnight Software
Re: Client script issues.
« Reply #2 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


Romop5

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +2/-1
  • A student of university and creator of LHMP.
    • View Profile
    • LHMP
Re: Client script issues.
« Reply #3 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)

xIBKn6

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Client script issues.
« Reply #4 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.

stormeus

  • No-Lifer
  • Developer
  • Full Member
  • *****
  • Posts: 112
  • Karma: +13/-2
    • View Profile
Re: Client script issues.
« Reply #5 on: September 16, 2011, 10:04:51 pm »
My Documents/GTA3 User Files/LU/Scripts/<Script Name>
Quote
Morphine says:
    them LU devs ranting about how LU doesn't have client pickups
    while us VC:MPers don't have client anything
    ;_;

Stormeus Argo says:
    we have client crashes though
    ohohohohoho

Morphine says:
    LU DOESN'T HAVE THAT

Stormeus Argo says:
    LU - 0
    VC:MP - 1

xIBKn6

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Client script issues.
« Reply #6 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?

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Client script issues.
« Reply #7 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.

VRocker

  • Liberty Unleashed Developer
  • Administrator
  • Full Member
  • ******
  • Posts: 342
  • Karma: +43/-15
    • View Profile
    • Madnight Software
Re: Client script issues.
« Reply #8 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

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 :)


SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Client script issues.
« Reply #9 on: October 25, 2012, 08:48:49 pm »
Was the crash issue ever resolved?

 

© Liberty Unleashed Team.