Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


  Show Posts
Pages: [1]
1  Off Topic / General Chat / Re: New VC:MP Server (With Squirrel!) on: October 11, 2009, 01:10:00 am
Hello!
These suggestions goes as well to the LU but since VCMP server is where I can work with the squirrel, i'm posting it here :p

It would be nice to have:

1. A way to split the script in many smaller files instead of keeping it all in one huge file.
I have a class that is used by the main script and I'd like to keep this class in a separate file, but if I do this:
Code: [Select]
<script>myclass.nut</script>
<script>myscript.nut</script>
the main script refuses to work (specifically the functions that are using this class). It looks like scripts doesn't 'see' each other.

2. Ability to connect squirrel scripts to remote servers - the same principle as it is now with mirc scripts:
[ Location A: Some computer + Script X ] ----> [ Location B: Server (+ optional Script Y) ]
I know about the .dll for mirc and this server but... that's not for squirrel :p

3. Currently not so important in my eyes: loading/unloading scripts dynamically (without changing server.conf).
Like, if today is wednesday (or the weather is rainy) i'm going to use Script1, but on the other days - Script2.
EDIT: With this it will be possible to reload scripts without restarting the server.


And if there is already a solution for any of these things, I'd like to hear them :]

EDIT: I've found something that looks like a small bug:
The server crashes if I use this script and type "asd " in the console (without the quotes and with exactly one space). If there are 2 or more spaces, everything is ok.
Code: [Select]
function onConsoleInput( cmd, text ) {
  if ( cmd == "asd" )
    if ( text )
      local a = split( text, " " );
}
And the funny thing is that these functions do the same thing, but doesn't crash the server.
Code: [Select]
function onPlayerChat( player, text ) {
  if ( text )
    local a = split( text, " " );
}
function onPlayerCommand( player, cmd, text ) {
  if ( cmd == "asd" )
    if ( text )
      local a = split( text, " " );
}
Pages: [1]
© Liberty Unleashed Team.