Official Soldat Forums

Soldat Fans => Fan Apps => Topic started by: Mr on December 23, 2008, 12:04:05 pm

Title: Soldat Ingame IRC Client (sIRC)
Post by: Mr on December 23, 2008, 12:04:05 pm
Mr's Soldat Ingame IRC Client
Chat on any network - chat with everyone - on any gameserver!

My Soldat Ingame IRC Client, short sIRC, allows you to connect to an IRC network and chat on any server. No server script is needed for that! The installation is simple, and you can use Soldat's ingame console to chat. sIRC is not detected by BattlEye, simply because it's no cheat program, so you can use it on any gameserver, still if it's BattlEye protected. Please note that sIRC won't work in offline-games.


Licence:

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated.
2. You must not edit any part of this software.
3. This notice may not be removed or altered from any distribution.


Ingame Commands: (Enter these commands in Soldat's console [Shift+7])

 /irc        [Message]        -> Sends a message to the current channel
 /connect    (Server) (Port)  -> Connects to the IRC Server
 /quit       (Message)        -> Closes the connection
 /disconnect                  -> Alias to /quit, but without params
 /names                       -> Requests a nicklist
 /nick       [Nick]           -> Changes your nick
 /whois      [Nick]           -> Sends a Whois-List request
 /channel   #[Channel] (Pass) -> Switches the channel
 /rejoin                      -> Rejoins the current channel
 /mode       [Mode] [Params]  -> Sets a mode for the current channel
 /ikick      [Nick] (Reason)  -> Kicks a user from the current channel
 /msg        [Nick] [Message] -> Querys a message to someone
 /notice     [Nick] [Message] -> Sends a notice to someone
 /link                        -> Generates a soldat-link and sends it to your current channel
 /linkto     [Nick]           -> Same as /link, but querys the link to someone
 /raw        [String]         -> Sends a raw message to the server
 /rehash                      -> Reloads your configuration file
 /update                      -> Forces an update-check
 /time                        -> Not IRC related, displays the current time
 /rename     [Demo] [NewName] -> Not IRC related, renames a demo file



Installation:

Simply run the install and select Soldat's directory as target. For manually install copy the two files 'sIRC.ini' and 'rasadhlp.dll' into Soldat's directory. That's all, from now on sIRC will start automatically with Soldat.


Configuration:

Open the file 'sIRC.ini' and change the values of the different keys to set your personal settings. The default configuration file will look like this:

;sIRC Configuration File
;http://www.soldatforums.com/ (http://www.soldatforums.com/)
;http://www.mologie.de/ (http://www.mologie.de/)
[sIRC]

;Default IRC server
Server=
Port=6667

;User nickname
Nickname=

;User's real name
Realname=Mr's sIRC Plugin

;Channel to join on connect
Channel=#

;Nickserv password (leave blank if you don't use the nickserv)
Password=

;Quitmessage
Quitmessage=Mr's Soldat IRC Plugin - www.SoldatForums.com (http://www.SoldatForums.com) - www.Mologie.de (http://www.Mologie.de)

;Message color (use html colors)
MsgColor=0x66D9FF
HilColor=0xFF0000



Changelog:

+ Added feature | - Removed feature | ~ Fixed feature | % Modified feature | * Comment

Version 1.4.0:
+ Added configurator, if sIRC is not configured, the configurator will start automatically
+ Added /me command, and support for receiving it
+ Added /link command, generates a soldat-link and sends it to your current channel
+ Added /linkto command, same as /link, but querys the link to someone
+ Added an option to rename demos
~ Fixed memory leak in the /time function
% Modified update-searching, now it's silent

Version 1.3.0:
+ Added highlighting. Lines which contain your nick will be displayed in a different color.
+ Added startup-commands. Everything that's written in sIRCStartup.txt will be sent to the server.
~ Fixed another ciritcal bug at color parsing.
% Modified /nick command, typing it before you connect will temporary change your default nick
% Small logging changes

Version 1.2.3:
~ Fixed a critical bug which made Soldat crash if a line ended with a special character

Version 1.2.2:
+ Added /time command which shows you the current time
% Modified Whois, added a few entrys
% Modified /ikick command, still works now if no reason is given

Version 1.2.1:
+ Added syntax checks
% Modified /connect command, now supporting port parameter

Version 1.2.0:
+ Added word wrapping with auto resultion detection
+ Added auto-updater (see readme)
+ Added /disconnect command
+ Added /whois command
+ Added /rejoin command
+ Added /mode command
+ Added /kick command
+ Added checks to avoid loading an unmodified config file
% Modified Recv thread, does not exit on socket error anymore
% Modified /connect command, now supporting custom servers
% Modified /channel command, typing it before connecting will temporary change the default channel
% Modified /quit command, now working with custom quitmessages

Version 1.1.2:
~ Fixed crash if a server message was longer than 127 chars
~ Smaller bugfixes and changes
* Version 1.1.2 and up uses Mateo's Socket class

Version 1.1.1:
~ Fixed /rehash not working on some systems

Version 1.1.0:
+ Added logging options
+ Added /rehash command (see readme)



Screenshot:

(http://sirc.mologie.de/img/screen1.png) (http://sirc.mologie.de/img/configurator.png)


EnEsCe allowed me to post this program here.
See Readme.txt for more information. Everything that's written here can be found in the readme too. Version 1.1.0 and up creates a debug log. If sIRC crashes, PM me the log please and some details about your system (so CPU, OS, RAM, Graphic, etc) please. Version 1.1.2 and up are running stable.


Download:

outdated, does not work for Soldat 1.5.0 or up
Title: Re: Soldat Ingame IRC Client (sIRC) v1.0.0
Post by: Leo on December 23, 2008, 12:23:26 pm
Very nice work, I tested it and it's cool :)
Title: Re: Soldat Ingame IRC Client (sIRC) v1.0.0
Post by: DorkeyDear on December 23, 2008, 01:54:08 pm
Interesting :) nice toy to play around with
Title: Re: Soldat Ingame IRC Client (sIRC) v1.0.0
Post by: homerofgods on December 23, 2008, 03:22:05 pm
(http://i41.tinypic.com/hun600.jpg)

I get this :|  (http://i43.tinypic.com/donaf4.jpg)
Title: Re: Soldat Ingame IRC Client (sIRC) v1.0.0
Post by: Mr on December 23, 2008, 03:41:15 pm
That's confusing, it once happened to me after I sent a message to the client while Soldat was minimized, but that never happened again. Did you type some special command or was there some special message which arrived? Or did it just crash? Anyway - I'll add logging options to the next version, should be easier to debug then too. Atm I just can say: Restart Soldat and reconnect, sorry.
Title: Re: Soldat Ingame IRC Client (sIRC) v1.0.0
Post by: homerofgods on December 23, 2008, 03:43:29 pm
I just /connect         np  :P

could be something with this shit-machine.  I can play on if i just don't klick ok on the message
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.0
Post by: Mr on December 23, 2008, 05:11:08 pm
I updated sIRC to v1.1.0 now. It can reload the configuration file while it's running and creates a debug log. If it still crashes, send me the debug log please.
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.0
Post by: homerofgods on December 23, 2008, 07:33:58 pm
em, /rehash doesn't do anything on me.. do I understand or am I a noob
It's possible I had the wrong server info.
w8, I will try
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.0
Post by: Cappy on December 23, 2008, 09:24:58 pm
Nice work, but I still get violations when I try to join #sna.gather channel. It works fine with any other channel that I've tried though.

EDIT: Actually, I think it happens when I try to change channels. :S
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.0
Post by: Mr on December 24, 2008, 05:00:52 am
If it keeps crashing for you, homerofgods and Cappy, send me your sIRC.log file and some details about your system (so CPU, OS, RAM, Graphic, etc) please. Thanks.

EDIT: Version 1.1.1 is out, fixed the /rehash command.
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.1
Post by: DorkeyDear on December 24, 2008, 11:08:39 am
Suggestions and stuff:
1)
/connect irc.quakenet.org:6667
or
/connect irc.quakenet.org 6667
so we don't have to go bother opening the ini file if we are lazy ^^
/connect [ip:port]

2) Joining channels with passwords?

3) /quit being the same as /disconnect would be nice


4) I'm having an access violation problem:
log: http://www.nopaste.com/p/aVmahW4fn/txt
av: http://your-images.org/pics/d34bc486549f43f186380909b9ae1b4c.bmp
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.1
Post by: Chariot on December 24, 2008, 01:03:53 pm
This is really awesome! No problems yet for me. Would it be possible to get a list of codes for basic colors? I cant be arsed to look them up.
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.1
Post by: Spec Ops on December 24, 2008, 02:31:35 pm
(http://img380.imageshack.us/img380/5663/htmljt5.th.gif) (http://img380.imageshack.us/my.php?image=htmljt5.gif)
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.1
Post by: Mr on December 24, 2008, 03:13:37 pm
Thanks for your report Curt,
Atm I'm at my grandparents house, about 500 km away from home, and celebrating Christmas, I'll be back at Saturday, then I'll try to fix that. Looks like at typical bufferoverflow at receiving the nameslist. Can you give me some details about your system please? Because it seems to work fine on every Intel CPU, but makes problems with AMD ones.
Oh and adding that stuff you suggested will be no problem, and I already have an idea of multi channel support. So expect an update soon ;)

Btw, you can use this online app to generate some nice colors: http://www.colorschemer.com/online.html

EDIT: Joining passworted channels is already possible, just add the password in the config file with a space behind the channel. So it should look like "channel=#chan Password". But yep, atm the /channel command doesn't support passwords yet. Simply use the /raw command to do that until I'll update the app:
/raw PART #yourchan
/raw JOIN #yournewchan Password
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.1
Post by: DorkeyDear on December 24, 2008, 04:36:36 pm
Intel
Celeron CPU 2.40GHz
2.4 GHz, 640 MB of RAM

Build 2600.xpsp_sp2_gdr.080814-1233 (Service Pack 2)
aka windows xp w/ service pack 2

Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.1
Post by: Chariot on December 24, 2008, 10:06:21 pm
All of those color codes result in black text.
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.1
Post by: Mr on December 25, 2008, 05:30:11 am
Then you forgot to add a "0x" to mark them as hex-values, so as example it must look like: 0x123456

Curt: At least it connects ^_^
Nah, joke, but I think I know why it crashes, and how to avoid this bufferoverflow. Whatever, I'll fix it on Saturday.... or at least try to :P
Title: Re: Soldat Ingame IRC Client (sIRC) v1.1.2 & v1.2.0
Post by: Mr on December 27, 2008, 05:05:24 pm
Ok so, I finally fixed the bug. It was a bufferoverflow in Soldat's console function. Download at first post :)

Update: Version 1.2.0 is out.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mittsu on January 05, 2009, 04:07:31 pm
this is truly awesome, works perfectly and makes everything a lot more handy. Thanks!

EDIT: eh, no, it doesn't work perfectly for me, i get this (http://www.imagebam.com/image/611d8622778863) from time to time.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mr on January 06, 2009, 06:15:12 am
Hm, when does it happen exactly? Send me your debug log please.

EDIT: Fixed, thanks Mittsu!
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Bonecrusher on January 06, 2009, 03:00:36 pm
im using it and it works fine :)

gj Mr
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: daphenomena on January 07, 2009, 10:04:10 am
Looks like a handy program, I'm not sure if I'm going to use it, but sure to try it :P
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Kagesha on January 08, 2009, 06:10:21 am
It is pretty nifty and neat, although I wouldn't personally use it, I see no point, I would rather alt + tab than anything else to be honest.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: pavliko on January 08, 2009, 07:43:16 am
Nice work..im going to try it .
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: n0b- on January 11, 2009, 07:42:04 am
Will it have unicode support?
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mr on January 11, 2009, 09:40:16 am
Since the IRC protocol uses ANSI, and the way I catch the console messages too, no.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: homerofgods on January 16, 2009, 07:42:07 am
I still get ''abnormal program behavior'' message right after I have connected.

Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mr on January 20, 2009, 01:13:54 pm
Another color parsing bug. Thanks for reporting, I'll try to fix it within this day.



I was able to fix the bug, sorry that I had no time for doing it yesterday. Additionally I added a few neat features, see first post for the changelog. If you care about the statistic, I added a link to them too.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: homerofgods on January 20, 2009, 03:46:55 pm
Great success! it works perfectly!  I will use this program and report if anything else happen. TY! :D awsum, everyone should have this.

The only thing..: If I am allready in a channel as for exemple ''minigunhomer'' (see pic) I can't send messages with that one, and it will show that I log off and on the channel a lot when I go off and on soldat and have to write /connect every time.
Is there no way send messages from ingame as ''minigunhomer'' ? If you know what I mean

(http://i43.tinypic.com/2nty593.jpg)
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mr on January 20, 2009, 03:55:36 pm
sIRC is made for long games, as example gathers. If you quit a match while you are connected, sIRC will close the connection too.

EDIT: To send messages with sIRC, press Shift+7 to open soldat's console and then type "irc YOURMESSAGE" so it would as example look like /irc Hey!
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: homerofgods on January 20, 2009, 06:44:04 pm
can I join more then 1 channel at the time?
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: DorkeyDear on January 20, 2009, 07:19:47 pm
I highly doubt it, but, would there be any possible way to have it redirect you to a given server on a certain spokeness? For instance, gathers... Lets say muh bot says "Gather started! Alpha: Apple - Curt` - Sauce; Bravo: Poke - Monkey - Field; IP: 127.0.0.1; Port: 1243; Password: 987", and I set a regexp to redirect me on speak for: "XBot PRIVMSG #lrs :Gather Started! .*Curt`.* IP: (?<ip>.*); Port: (?<port>.*); Password: (?<pass>.*)" just for example... I really do highly doubt it but it would definitely be cool :P or mayb even a command to auto redirect you to a given ip/port(/pass).. i think im just thinking up impossible ideas (well, considering that it isn't built into soldat)
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mr on January 21, 2009, 01:18:26 am
Nice Idea. It's possible with a bit packet hacking, I've already done it a few days before :)
The problem will be regex, but I think I'll just parse the whole string, or look for some regex lib.

But I dunno if the playerforce packet supports passwords, so maybe you'll have to type it manually... or I'll just play around with Soldat's pointers to the content of the input fields :D

@homerofgods: No. sIRC is a single channel IRC client, simply because it would get to messy to have multiple channels without a good interface.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Chariot on January 22, 2009, 01:31:34 pm
Maybe a command like /link or /server will do something like <+Chrt`> soldat://67.106.77.193:30022

if possible!
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mr on January 22, 2009, 03:02:00 pm
Yes, that's possible. Thanks for your suggestion, added to the todo list.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: scarface09 on January 24, 2009, 09:16:03 am
Nice work. I've started using it and it works very good. A few bugs here and there that need fixing but it works pretty good. Nice 1.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Artem on January 31, 2009, 02:40:33 pm
Wow this must be uber helpful.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: jrgp on February 01, 2009, 05:18:45 pm
(finally) Added to the Fan Apps List.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: DorkeyDear on February 01, 2009, 08:14:19 pm
Minor suggestion:
Making Soldat still playable if the configuration file has not been setup, but still have the popup saying that it won't work..

edit: have it so when the installer finishes, have an already checked checkbox asking to open the config file, and a little note that it is required to be setup before connecting anywhere or whatever

edit: having it so it doesn't bother telling you if its checking for updates, but only tell you when there is an update

edit: (suggestion) somehow making custom colors on regexp matches or certain names or something; also default color for you? (mayb already put in when u get it as a regexp)

edit:
/irc /me * or /irc /action *
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Chariot on February 01, 2009, 09:39:48 pm
possible auto-auth command on connect, edited in config file?
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mr on February 02, 2009, 01:18:07 am
(finally) Added to the Fan Apps List.

Heh, thanks :)


Minor suggestion:
(1) Making Soldat still playable if the configuration file has not been setup, but still have the popup saying that it won't work..

(2) edit: have it so when the installer finishes, have an already checked checkbox asking to open the config file, and a little note that it is required to be setup before connecting anywhere or whatever

(3) edit: having it so it doesn't bother telling you if its checking for updates, but only tell you when there is an update

(4) edit: (suggestion) somehow making custom colors on regexp matches or certain names or something; also default color for you? (mayb already put in when u get it as a regexp)

edit:
(5) /irc /me * or /irc /action *

1. done
2. version 1.4.0 will come with a configuration program
3. done, update-searching is now silent
4. regex in c++ is hard, and because i don't know exactly how it works, there will be a file called sIRCWords.txt, which will be editable using the configurator
5. that's already feature of version 1.4.0


possible auto-auth command on connect, edited in config file?

That's already possible, see readme.txt. There's a file called sIRCStartup.txt, the readme tells you how to use it.


If the new version runs stable, I'll release it today.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Mr on February 03, 2009, 03:46:33 pm
I finally released it. Use /update or download it from the first post to get the newest version. Thanks to Anna for the nice design idea :)
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: pheel on April 22, 2009, 06:19:09 am
Good job on this utility.
I would really like to try it out but it seems the link is dead :(

Edit: the link is working again! thanks :)

Edit 2: I get a SendBuffer error for some reason :| any thoughts?
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Chariot on May 02, 2009, 03:05:08 pm
Yeah, meant to tell you that this hasn't worked for me at all in 1.5.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: LORD KILLA on May 09, 2009, 04:30:18 am
Broken link
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: utkesmer on March 06, 2010, 01:57:54 pm
Pleeease update that download link.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: Bonecrusher on March 07, 2010, 01:46:08 pm
i dont think 1.5 supports this
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: machina on April 25, 2010, 04:49:49 am
Download links not work... ;/ Make a new version for Soldat 1.5.0
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: DevilX4 on September 20, 2012, 01:08:24 pm
Anyone got the old files for this? wanted to try it out and maybe look into update it.  thanks.
Title: Re: Soldat Ingame IRC Client (sIRC)
Post by: DevilX4 on December 17, 2012, 09:03:13 pm
bump