Author Topic: Soldat Ingame IRC Client (sIRC)  (Read 23988 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Soldat Ingame IRC Client (sIRC)
« 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://forums.soldat.pl/
;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 - forums.soldat.pl - 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:




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
« Last Edit: July 03, 2010, 08:30:32 am by Mr »

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Soldat Ingame IRC Client (sIRC) v1.0.0
« Reply #1 on: December 23, 2008, 12:23:26 pm »
Very nice work, I tested it and it's cool :)

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Soldat Ingame IRC Client (sIRC) v1.0.0
« Reply #2 on: December 23, 2008, 01:54:08 pm »
Interesting :) nice toy to play around with

Offline homerofgods

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2029
  • We can do better!
Re: Soldat Ingame IRC Client (sIRC) v1.0.0
« Reply #3 on: December 23, 2008, 03:22:05 pm »


I get this :| 
« Last Edit: December 23, 2008, 03:25:22 pm by homerofgods »

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Soldat Ingame IRC Client (sIRC) v1.0.0
« Reply #4 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.
« Last Edit: December 29, 2008, 09:53:58 am by Mr »

Offline homerofgods

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2029
  • We can do better!
Re: Soldat Ingame IRC Client (sIRC) v1.0.0
« Reply #5 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
« Last Edit: December 23, 2008, 03:47:52 pm by homerofgods »

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Soldat Ingame IRC Client (sIRC) v1.1.0
« Reply #6 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.

Offline homerofgods

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2029
  • We can do better!
Re: Soldat Ingame IRC Client (sIRC) v1.1.0
« Reply #7 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
« Last Edit: December 23, 2008, 07:37:29 pm by homerofgods »

Offline Cappy

  • Flagrunner
  • ****
  • Posts: 629
Re: Soldat Ingame IRC Client (sIRC) v1.1.0
« Reply #8 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
« Last Edit: December 23, 2008, 09:30:31 pm by Cappy »

[DE] ~ ~ ~

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Soldat Ingame IRC Client (sIRC) v1.1.0
« Reply #9 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.
« Last Edit: December 24, 2008, 05:28:33 am by Mr »

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Soldat Ingame IRC Client (sIRC) v1.1.1
« Reply #10 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

Offline Chariot

  • Flagrunner
  • ****
  • Posts: 604
Re: Soldat Ingame IRC Client (sIRC) v1.1.1
« Reply #11 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.
Vidi Vici Veni
I saw, I conquered, I came

Offline Spec Ops

  • Major(1)
  • Posts: 15
Re: Soldat Ingame IRC Client (sIRC) v1.1.1
« Reply #12 on: December 24, 2008, 02:31:35 pm »

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Soldat Ingame IRC Client (sIRC) v1.1.1
« Reply #13 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
« Last Edit: December 24, 2008, 03:19:30 pm by Mr »

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Soldat Ingame IRC Client (sIRC) v1.1.1
« Reply #14 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


Offline Chariot

  • Flagrunner
  • ****
  • Posts: 604
Re: Soldat Ingame IRC Client (sIRC) v1.1.1
« Reply #15 on: December 24, 2008, 10:06:21 pm »
All of those color codes result in black text.
Vidi Vici Veni
I saw, I conquered, I came

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Soldat Ingame IRC Client (sIRC) v1.1.1
« Reply #16 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
« Last Edit: February 04, 2009, 01:11:52 am by Mr »

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Soldat Ingame IRC Client (sIRC) v1.1.2 & v1.2.0
« Reply #17 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.
« Last Edit: December 29, 2008, 09:30:40 am by Mr »

Offline Mittsu

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 617
Re: Soldat Ingame IRC Client (sIRC)
« Reply #18 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 from time to time.
Realistic-Soldat.net
<+elerok> soldat is dead
<+AThousandD> shit happens

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Soldat Ingame IRC Client (sIRC)
« Reply #19 on: January 06, 2009, 06:15:12 am »
Hm, when does it happen exactly? Send me your debug log please.

EDIT: Fixed, thanks Mittsu!
« Last Edit: January 06, 2009, 10:03:29 am by Mr »