Menu

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 Menu

Messages - Luckshya

#31
Community Plugins / Discord Plugin
Mar 05, 2019, 05:38 AM
Introduction
After releasing a discord module for SqMod, I got certain requests to do it for official squirrel plugin as well. So, I have managed to write a multi-bot discord plugin for it.

The plugin only comes with sleepy-discord library.

Documentation
Wiki: https://github.com/Luckshya/sleepydiscord-squirrel/wiki/
Example code: Available on wiki

Source
Sleepy-Discord: https://github.com/yourWaifu/sleepy-discord
Plugin Source: https://github.com/Luckshya/sleepydiscord-squirrel

Installation/Requirements

Windows
Install OpenSSL from here: https://slproweb.com/products/Win32OpenSSL.html
Don't change any options while installing openssl.

Binaries: https://github.com/Luckshya/sleepydiscord-squirrel/releases

Linux
apt-get install libssl-dev
Binaries: https://github.com/Luckshya/sleepydiscord-squirrel/releases
(32 bit not available for now)

Credits

NOTE: You need to take care of the Discord rate limit yourself.
#32
Sleepy-Discord Binaries are available now!
#33
Introduction
Discord module for SqMod using sleepy-discord library.

This plugin is a multi-bot plugin.

Documentation
Wiki: https://github.com/Luckshya/sleepydiscord-sqmod/wiki/
Example code: Available on wiki

Source
Sleepy-Discord: https://github.com/yourWaifu/sleepy-discord
Plugin Source: https://github.com/Luckshya/sleepydiscord-sqmod

Installation/Requirements

Windows
Install OpenSSL from here: https://slproweb.com/products/Win32OpenSSL.html
Don't change any options while installing openssl.

Binaries: https://github.com/Luckshya/sleepydiscord-sqmod/releases

Linux
apt-get install libssl-dev
Binaries: https://github.com/Luckshya/sleepydiscord-sqmod/releases
(32 bit not available for now)

The most important thing:
Credits
  • @. (SLC): I've learnt a lot from his code and I've also implemented and used his code. He has also helped me throughout the problems including my stupid problems or whatever. He's just like the author of the plugin tbh.
  • @Doom_Kill3R
  • @EK.IceFlake
  • @Sebastian
  • @Xmair

NOTE: You need to take care of the Discord rate limit yourself.
#34
I actually wanted to release the multi-bot plugin instead of this single bot one but due to the limitations of official squirrel plugin, I'll also have to provide with my modified version of squirrel plugin along with it which will be really confusing.

So, only the plugin that I gave to seby (single bot) could work with official squirrel plugin.

However, I was working on a better model of discord plugin for SqMod but I'm facing several problems with it. So that's just what is keeping me away from releasing it, though I have the single bot plugin working great both on windows and linux.

I can link my plugin with any of the libdiscord or sleepy-discord library but thats not the problem.

PS: If anyone else also wants to check out the plugin, you can message me on discord (Luckshya#5109).
#35
Support / Re: rel006 issue client browser
Jun 28, 2018, 04:31 PM
Same here. I had to downgrade to an old version.
#36
Quote from: Stormeus on Jun 24, 2018, 12:20 AMIs this using the 0.4-sockets plugin?
Yes.
#37
Description
After the recent update, IRC has become quite unstable.

Reproducible
Always

What you were doing when the bug happened
The bots are timing out randomly after an uncertain period of time. It is giving some unwanted responses like:

(~VW7_Staff) PRIVMSG #VW7_Staff PRIVMSG #VW7_Staff PRIVMSG #VW7_Staff PONG [email protected]
(~VW7_Staff) PONG [email protected]
(~VW7_Staff) PONG PING
It doesn't gives any output on using these type of colours ( \x000300 ) and gives these type of stupid outputs when those type of colors are used ( It was working fine before the rel005 update ).

PRIVMSG #VW7_Staff PRIVMSG #VW7_Staff PRIVMSG #VW7_Staff PONG [email protected]
This is how it timedout:
(~VW7_Echo) PRIVMSG #Vicewar7 PONG PING
** VW7_Echo has quit (Ping timeout: 121 seconds)

What you think caused the bug
Not sure.
#38
Fixed after the latest binary update.
Locked.
#39
The bug is still not yet fixed, it's still crashing the server, here's what I'm using
g_Cmd <- SqCmd.Manager();

SqCore.On().PlayerCommand.Connect(this, function(player, command)
{
    g_Cmd.Run(player, command);
});

Spectate <- g_Cmd.Create("spec", "s", ["player"], 1, 1, -1, false, true);
Spectate.Help = "It is a command used to spectate a player.";
Spectate.BindExec(Spectate, function(player, args)
{
local plr = ( (SqStr.AreAllDigit(args.player)) ? SqFind.Player.WithID(args.player.tointeger()) : SqFind.Player.NameContains(false, false, args.player) )
player.Message(plr)
if ( plr == SqPlayer.NullInst() ) return player.Message("[#FF7F50]Error: [#ffffff]Unknown player [#FF7F50]%s[#ffffff].", args.player);
else if ( player.ID == plr.ID ) return player.Message("[#FF7F50]Error: [#ffffff]You cannot spectate yourself.");
else if ( !plr.Spawned ) return player.Message("[#FF7F50]Error: [#FF7F50]%s [#ffffff]is not yet spawned.", plr.Name)
else if ( player.Spectating() != null ) return player.Message("[#FF7F50]Error: [#ffffff]You're already spectating: [#FF7F50]%s[#ffffff].", player.Spec.Name);
player.SpecID = plr.ID;
player.Message("[#ffcc00]Information: [#ffffff]You're now spectating: %s.", plr.Name);
return true;
});

Unspec <- g_Cmd.Create("unspec", "s", [""], 0, 0, -1, false, true);
Unspec.Help = "It is a command used to stop spectating a player.";
Unspec.BindExec(Unspec, function(player, args)
{
if ( player.Spectating() == null ) return player.Message("[#FF7F50]Error: [#ffffff]You're not spectating anyone.");
player.Message("[#ffcc00]Information: [#ffffff]You've stopped spectating: [#FF7F50]%s[#ffffff].", player.Spectating().Name);
player.SpecID = -1; //player.Spectate(SqPlayer.NullInst()), player.SpectateNone();
return true;
});

Commands: /spec <player> and /unspec
Let's see if I'm doing something wrong.

Here's the error log

#40
Servers / Re: [0.4] Rob the Vehicles
Jul 21, 2017, 05:07 AM
Quote from: Rest on Jul 21, 2017, 12:59 AMbots aren't currently available now, i don't know why it cannot connect on cloudwards, working well locally
Use this server: irc.sotka.fr.project-apollo.co.uk
IP: 91.121.134.5
As the no. of connections per IP is limited by 3 on other servers and i guess its 25 or 20 on this one.
#41
Well, I was trying to spectate a player.
I first used player.Spec = plr which worked.
then I wanted to stop the player from spectating plr
so, I tried player.Spec = null which crashed the server with an error: std::out_of_range 
then, I tried player.RestoreCamera() which gave no effect.
then, I used player.Spectate(plr) which worked and player was spectating plr and plr left and the server crashed with that same error.

I still didn't get a way to stop someone from spectating.
#42
Quote from: NicusorN5 on Jun 18, 2017, 07:51 AMBrasil RPG, Dogecoin and my server are the best in the term of the gamemode. As player count, I would choose European City.

 ???
#43
Happened same with me, this due to the less distance between 2 checkpoints. Try increasing the distance.
#44
Quote from: Thijn on Jul 25, 2016, 03:56 PMMaybe give some more information on what kind of servers you play on?
Does it happen only on servers that have custom content, or using a certain client side GUI element, etc. ?
Latest version with GUI textdraws and GUI sprites only, i guess.
Also, it is having custom skins, weapons and a car.
#45
Yes, same is happening with me.
On quit and when server restarts.