Author Topic: New VC:MP Server (With Squirrel!)  (Read 39949 times)

AdTec_224

  • Developer
  • Newbie
  • *****
  • Posts: 36
  • Karma: +3/-5
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #30 on: October 15, 2009, 04:55:33 am »
Quote
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.

You can split scripts over multiple files using:

Code: [Select]
dofile( "Script.nut" );
An example would be:

Code: [Select]
function onScriptLoad( )
{
Print( "Example Script" );

dofile( "IRC.nut" );
}

Quote
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

I think your missing the whole point, the idea in adding Squirrel to the server is for server-side scripting.

Quote
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.

You can use "load_script <name>", "unload_script <name>" and finally "reload_scripts" (without quotes) all 3 commands you type directly like you do with "onConsoleInput" commands.

Hopefully i've answered most of your questions correctly.

- AdTec_224

Juppi

  • Developer
  • Jr. Member
  • *****
  • Posts: 86
  • Karma: +3/-1
    • View Profile
    • Kuslahden alaste GTA:MP clan
Re: New VC:MP Server (With Squirrel!)
« Reply #31 on: December 03, 2009, 12:52:25 am »
We've opened unofficial forums for the squirrel vcmp server and everything related to it - if you need help or want to release squirrel scripts for VC:MP pay a visit to http://forum.vicecitymultiplayer.info/ :)

Diavolo

  • Tester
  • Newbie
  • ****
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #32 on: December 03, 2009, 07:34:56 am »
:O

Juppi

  • Developer
  • Jr. Member
  • *****
  • Posts: 86
  • Karma: +3/-1
    • View Profile
    • Kuslahden alaste GTA:MP clan
Re: New VC:MP Server (With Squirrel!)
« Reply #33 on: January 24, 2010, 04:08:50 am »
0.3z r2 server released -> clickety click
« Last Edit: January 24, 2010, 04:10:26 am by Juppi »

Mul_Tsafe

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #34 on: January 24, 2010, 10:30:42 pm »
Good Luck, I am going to install VC then Ill try out the server

MarkWilson

  • Guest
Re: New VC:MP Server (With Squirrel!)
« Reply #35 on: January 29, 2010, 04:31:54 am »
I am looking for the mIRC dll for the r2 squirrel server. Any help ?

mark

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #36 on: January 29, 2010, 08:24:28 am »

MexikanoS

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #37 on: March 02, 2010, 04:01:41 pm »
Hmm. player.Angle works at that version of squirrel? Cause for me this function doesn't work.

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #38 on: March 02, 2010, 04:56:59 pm »
I'm not sure, I haven't tried it my self, there has been an R2 squirrel server release though so it might work on that.
Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

MexikanoS

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #39 on: March 03, 2010, 04:25:54 pm »
Yh. It works only as "loading" using angle, but with that function we can't use as setting angle. Can you work on it?

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #40 on: March 03, 2010, 06:16:09 pm »
I don't work on the server it's self but it would depend if VC:MP allows for the angle to be set. I know you can with vehicles, dunno about players though.
Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

MexikanoS

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #41 on: March 06, 2010, 01:23:15 pm »
I got a problem with angle, trying to make !savepos command, but it ain't loading:

Code: [Select]
if ( cmd == "s" )
{
local pos = player.Pos;
WriteIniNumber( "Locations.ini", text, "x", pos.x );
WriteIniNumber( "Locations.ini", text, "y", pos.y );
WriteIniNumber( "Locations.ini", text, "z", pos.z );
WriteIniNumber( "Locations.ini", text, "angle", player.Vehicle.Angle );
MessagePlayer( "Lokacja o nazwie " + text + " zostala zapisana", player );
}

if ( cmd == "l" )
{
local x = ReadIniNumber( "Locations.ini", text, "x" ),
     y = ReadIniNumber( "Locations.ini", text, "y" ),
     z = ReadIniNumber( "Locations.ini", text, "z" );
 angle = ReadIniNumber( "Locations.ini", text, "angle" );
if ( x )
{
local pos = Vector( x, y, z );
local angle = angle;
player.Vehicle.Pos = pos;
player.Vehicle.Angle = angle;
 
MessagePlayer( "Teleportujesz sie do " + text + "...", player );
}
else MessagePlayer( "Lokacja " + text + " nie znaleziona", player );
}

Hmm?

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #42 on: March 06, 2010, 01:43:24 pm »
Well for a start Number != Float, you trying to save a float to whats expecting a number so it ain't working.

Number: 1
Float: 1.1

Positions are sent and received as floats and so you need to save it as a float or do .tointeger() on it.
Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

mark

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #43 on: March 06, 2010, 08:23:18 pm »
Hello,

i've got problem with function SetDrivebyEnabled,
Drive by is blocked, but M4 from sea sparrow and hunter works, only rockets from hunter has been blocked,
an it be fixed, in the next version of squirrel? Under my pleasements i'm giving photos of the bug (function SetDrivebyEnabled is Enabled).



MexikanoS

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: New VC:MP Server (With Squirrel!)
« Reply #44 on: March 06, 2010, 08:28:56 pm »
I was testing with him, anyway i have tested your .tointeger() and it still doesn't works.

[test]
x = -923.794
y = 648.333
z = 10.6049
angle = 45.6612
[q]
x = -833.339
y = -519.307
z = 10.5763
angle = 331.594
[luvforce]
x = -845.706
y = -484.191
z = 10.7787
angle = 16.7642
[testingangle]
x = -867.774
y = -473.339
z = 10.7885
angle = 72.5124
[blabla]
x = -882.893
y = -481.845
z = 12.7267
angle = 131.201

Here's saved cords, and here's code:

Code: [Select]
if ( cmd == "s" )
{
local pos = player.Pos;
WriteIniNumber( "Locations.ini", text, "x", pos.x );
WriteIniNumber( "Locations.ini", text, "y", pos.y );
WriteIniNumber( "Locations.ini", text, "z", pos.z );
WriteIniNumber( "Locations.ini", text, "angle", player.Vehicle.Angle );
MessagePlayer( "Lokacja o nazwie " + text + " zostala zapisana", player );
}

if ( cmd == "l" )
{
local x = ReadIniNumber( "Locations.ini", text, "x" ),
      y = ReadIniNumber( "Locations.ini", text, "y" ),
      z = ReadIniNumber( "Locations.ini", text, "z" );
  angle = ReadIniNumber( "Locations.ini", text, "angle" );
if ( x )
{
local pos = Vector( x, y, z );
local angle = angle;
player.Vehicle.Angle = angle.tointeger();
 
MessagePlayer( "Teleportujesz sie do " + text + "...", player );
}
else MessagePlayer( "Lokacja " + text + " nie znaleziona", player );
}

It just wont load.

 

© Liberty Unleashed Team.