Author Topic: IRC-Class ver. 0.3a  (Read 7588 times)

0 Members and 1 Guest are viewing this topic.

Offline ManSoft|Warlord

  • Major
  • *
  • Posts: 70
  • Soldat.IDE Creator
IRC-Class ver. 0.3a
« on: June 06, 2007, 01:51:03 pm »
Script Name: IRC-Class
Script Description: With this unit it is possible to get your Soldatserver connected to any IRC-Server
Original Author(s): Warlord
Used Code(s): SocketExample by Enesce, XSplit (renamed) from KeYDoN
Core Version: 2.6.3 (tested with)
Script Version: 0.3a
Attached files: irc.zip

The idea: Why shouldn’t we use the Socket-usability for connecting to IRC-Servers? After working through the IRC-RFC and after testing a little bit with telnet-connections to the Quakenet it was nearly done: My first IRC-Unit. After testing a while and adding some procedures to make it more comfortably to use it, it was very done in a very short time.

Edit: I added some really nice features like irc_color(), irc_get_nicks() or irc_set_topic(). You can also choose the style of everything which should be said by using irc_style(). So you can change the style to bold, underlined or inverted. But you can check this later.

New features in 0.3a (2008/01/11):

# added multi-channel-trigger (two channels at the moment) support
# added default-color-message if a player joins server
# added command: player_say_to_irc(Channel, ID, msg): This command auto-formats
    the message from the player to the IRC-Channel.
# added some default-messages for flag-grab, -return, -score
# fixed some bugs


2007/12/02: Version 0.3 released
# beta-reconnect
# new kind of file-sort
# fixed some bugs
# zipped all files
CHECK example.pas for further information / tutorial / example


Well I talked enough I think. So get the unit here:
On Soldatnet.com!
There is also a mini-tutorial :)
or here:
« Last Edit: January 11, 2008, 04:48:10 pm by ManSoft|Warlord »

Offline sorny

  • Major(1)
  • Posts: 4
    • selfkill.com
Re: IRC-Class ver. 0.1
« Reply #1 on: June 06, 2007, 03:11:59 pm »
bah, too nice warlord ;D

i'm going to test it right now, gj though =D

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: IRC-Class ver. 0.1
« Reply #2 on: June 06, 2007, 09:35:58 pm »
Please read the post template dude... Post the code here.

Offline ManSoft|Warlord

  • Major
  • *
  • Posts: 70
  • Soldat.IDE Creator
Re: IRC-Class ver. 0.1
« Reply #3 on: June 07, 2007, 01:50:56 am »
I attached it :)

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: IRC-Class ver. 0.1
« Reply #4 on: June 07, 2007, 02:02:30 am »
You still havent followed the post template, like every other topic. Dont make the forum look like trash

Offline Laser Guy

  • Veteran
  • *****
  • Posts: 1679
Re: IRC-Class ver. 0.1
« Reply #5 on: June 07, 2007, 02:13:56 am »
EnEsCe... r u always a rules guy?
Text goes here...

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: IRC-Class ver. 0.1
« Reply #6 on: June 07, 2007, 07:10:31 am »
Nice work, a pretty versatile script you got there.

The only downside is that you're limited to 3 or 5 connections per hostname on most IRC servers, so the script can't really be used to any large extent (at least; if the servers are running on a single IP). But it's not one could blame that on the script itself, so anyhow. Good job.

Offline ManSoft|Warlord

  • Major
  • *
  • Posts: 70
  • Soldat.IDE Creator
Re: IRC-Class ver. 0.1
« Reply #7 on: June 07, 2007, 12:00:17 pm »
I wrote on soldatnet.com that you should connect through an BNC/IRC-Proxy so you can connect to the IRC, although you can only have 3 to 5 connections at one time :>

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: IRC-Class ver. 0.1
« Reply #8 on: June 07, 2007, 01:25:25 pm »
Hey, i took a look at that script, seems cool. I haven't tested it yet, but am i able to know the nickname of whoever chats on the irc channel from the server script?
urraka

Offline ManSoft|Warlord

  • Major
  • *
  • Posts: 70
  • Soldat.IDE Creator
Re: IRC-Class ver. 0.1
« Reply #9 on: June 07, 2007, 01:50:53 pm »
not yet - i will implement it within the nex days :)

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: IRC-Class ver. 0.1
« Reply #10 on: June 07, 2007, 08:32:51 pm »
Alright, now i have tested the script, and i also manage to get the nickname i wanted from the IRC channel. The script is well coded i think, but it seems that when some data is transfered from server to irc, or from irc to server, the soldat server stops working, it just says "connection problem" and then everything goes to ****.
Anyway, i managed to do what i wanted a simplier way with ARSSE, but it seems i can't get the IRC nickname with that =/.
urraka

Offline ManSoft|Warlord

  • Major
  • *
  • Posts: 70
  • Soldat.IDE Creator
Re: IRC-Class ver. 0.2
« Reply #11 on: June 08, 2007, 03:49:10 am »
UPDATE

Date Posted: June 08, 2007, 04:20:49 AM
Hm I see that you have to call irc_get_nicks() two times until you get the new users :(. will be fixed in the next release

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: IRC-Class ver. 0.2
« Reply #12 on: November 30, 2007, 09:05:48 pm »
07-12-01 03:04:13 
  • ScriptCore v2.2 loaded! Found 2 scripts...

07-12-01 03:04:13 
  • Compiling default -> Core.pas...

07-12-01 03:04:13 
  • Compiling default -> NetworkCore.pas...

07-12-01 03:04:13 
  • Compiling default -> AdminCore.pas...

07-12-01 03:04:13 
  • Compiling irc -> Core.pas...

07-12-01 03:04:13 
  • Compiling irc -> Irc.pas...

07-12-01 03:04:13 
  • irc -> [Error] (39:1): Unknown identifier 'IRCINDEX'

07-12-01 03:04:13 Shutting down server...
07-12-01 03:04:13 Shutting down admin server...
07-12-01 03:04:13 Shutting down ScriptCore...

any ideas?

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: IRC-Class ver. 0.2
« Reply #13 on: November 30, 2007, 10:22:37 pm »
Include Irc.pas before Core.pas
urraka

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: IRC-Class ver. 0.2
« Reply #14 on: December 01, 2007, 10:08:31 am »
thanks, that worked. im wondering if anyone else is using it and maybe has developed it further? its nice as it is but for example when it times out it doesnt reconnect, and for some reason i cant get irc->server commands working. if anyone is using this with some more/advanced commands and would like to share it id be grateful.

Offline ManSoft|Warlord

  • Major
  • *
  • Posts: 70
  • Soldat.IDE Creator
Re: IRC-Class ver. 0.2
« Reply #15 on: December 02, 2007, 06:02:27 am »
Well... Do you have ICQ? If so - add me to your icq-list so we could fix the bugs :)

€dit: And add some nice features :)
« Last Edit: December 02, 2007, 10:24:56 am by ManSoft|Warlord »

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: IRC-Class ver. 0.2
« Reply #16 on: December 02, 2007, 08:16:43 am »
nope, no ICQ.. maybe youve got IRC? :P
/whois BombSki`

Offline ManSoft|Warlord

  • Major
  • *
  • Posts: 70
  • Soldat.IDE Creator
Re: IRC-Class ver. 0.3a
« Reply #17 on: January 11, 2008, 04:46:18 pm »
Version 0.3 released

Date Posted: December 03, 2007, 02:57:54 pm
Version 0.3a released

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: IRC-Class ver. 0.3a
« Reply #18 on: January 11, 2008, 08:19:45 pm »
Changelog?

Offline ManSoft|Warlord

  • Major
  • *
  • Posts: 70
  • Soldat.IDE Creator
Re: IRC-Class ver. 0.3a
« Reply #19 on: January 12, 2008, 06:54:53 am »
1st post...