This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Garbled Text in DCC Chat

Old posts that have not been replied to for several years.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Garbled Text in DCC Chat

Post by Stylez »

When I DCC to my bot, or rather, when I ask it to DCC to me, when I'm in the chat I get all kinds of weird characters. They appear like this:
<KronBot> Hey [1mStylez_Kc![0m My name is [1mKronBot[0m and I am running [1meggdrop v1.6.13[0m, on [1mCYGWIN_NT-5.1 1.3.15(0.63/3/2)[0m.
<KronBot>
<KronBot> Local time is now [1m02:26[0m
<KronBot> You are an owner of this bot. Only +n users can see this! For more info,
<KronBot> see [1m.help set motd[0m. Please edit the [1mmotd[0m file in your bot's 'text'
<KronBot> directory.
This is the Windrop version of Eggdrop. There should be no real reason I'm getting this. It seems like it may be a problem with mIRC (although this is the only place this kind of thing occurs, in the Eggdrop DCC). I had the exact same installation on another computer - when I took the bot offline for awhile I copied the contents of the Windrop folder to a CD-R, and now I copied them back over and this is the problem I am having. I also updated from 1.6.12 to 1.6.13, which didn't solve the problem. I could live with this problem if I had to, but it does make the party line almost unusable as you can't tell where some words begin and end.

** I just noticed a pattern maybe, it seems like the text is garbled wherever it is tring to do maybe bold letters or colours. Colours and Bold/Italic work everywhere else in mIRC though. I'm using v6.03 which is the newest I believe.**
Thanks in advance to any help offered.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Post by Stylez »

Okay I figured it out myself - the usual thing that happens shortly after you ask for help. It has to do with mIRC. Go to Options, expand IRC, then hit Messages. Then make sure there is a tick beside Process ANSI Codes.
Well since there was no need to help me on this, I hope this helps someone else down the road. LOL :D
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Surprisingly, this isn't actualy mirc, though you can use the option you stated to get around it.

There are three way to connect to the partyline in eggdrop.

DCC chat by you starting the connection (/dcc chat bot) - This is the normal way, and will display IRC codes correctly.

Telnet - By starting a telnet session using a telnet client.

DCC chat by getting the bot to request to you (/ctcp bot chat) - This is infact, the telnet method. The bot will send a DCC chat request with the details you would normaly use to telnet to the bot.

The codes that are displayed, are displayed in the third method above. This is because they are telnet codes, and mIRC doesn't process these as standard, as they are not norml IRC codes.

To fix this, you can trick the bot into going into DCC modes after connecting, using the ".fixcodes" command.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Post by Stylez »

Okay thanks. I still haven't figured out why I just can't DCC in the first place. I read some topics but they generally didn't ahve a fix. And what is the difference between using the .fixcodes and just setting mIRC to "Process ANSI Codes"? Would it be the same just to tick Process ANSI Codes instead of typing .fixcodes everytime? Also, I just noticed with .fixcodes you have to do it twice. The 1st time says
[04:30] #Stylez_Kc# fixcodes (telnet on)
and I still get the garbled stuff, then I do it again and I get
[04:30] #Stylez_Kc# fixcodes (telnet off)
and then it works fine.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This has been reported before, but isn't reproducable by many of the developers, so it may be a while before you only have to use it once.

The mIRC option is to process the incoming codes, and turn them into mIRC coliur, bold and other codes, or to simply ignore them (if not supported).

So yes, you can use this, and it won't harm you.

As for not being able to DC chat the bot, this could be many things.

First off, make sure you are using the correct value for my-ip.

Second, make sure you should be using my-ip, and not a combination of my-ip and nat-ip.

If you give a discription of how the system is connected to the inernet, we may be able to help more.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Post by Stylez »

I'm running on a Cable internet connection with a static ip. Between my pc and the modem there is a Linksys 4 Port Router. The bot is run off of the same pc that I use every day, such as it is used to connect to IRC and to DCC to the bot. So, I assume that wherever I tell the bot my IP, I could just set it as localhost? If not, would it have to be my Internal/LAN IP designated by the router, or the External/WAN IP designated by my ISP? And where do I set this at?
Thanks
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

OK, this setup is not that complex, but can be confusing on settings.

The following should be noted for your eggdrop config settings.

nat-ip should be set to your static external IP (that seen on the internet and IRC).

my-ip should be set to the internal IP.

Seeing as your machine is assigned a dynamic IP from the DHCP server within the router, I would recomend changing it to a static IP. It will save you having to change your eggdrop config each time the IP changes.

This is no more of a security risk, than it presently is.

Weather or not the normal DCC CHAT method works, is based on how your router, and your ISP's router operatesm, and your IRC client.

99% of routers (your average joe cable router, more complex 3com or cisco routers will allow this) will not allow for this to operate correctly.

It will also depend on your IRC client.

If, like mIRC, you can change the host/ip your client thinks you are on, then you can quickly fix it.

CHange this value to your internal IP, and DCC chat will work.

If you can't do this, then it's up to the routers.

When you send a DCC request, the IP/host of your external IP is sent to the bot. The bot will try connecting to this port.

When the bot tries to connect to this, the router will either either kill the packets, forward them to your ISP, or route them within your network.

On top of this, it will depend on your port forwarding options.

99.9% of the time, it will not work in a Internal LAN, because of the complexity of the routing system.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Post by Stylez »

Setting my-ip and nat-ip don't seem to work. This is what happens:
[18:30] <Stylez_kC> .set nat-ip **.***.***.***
[18:30] <KronBot> What? You need '.help'
I'll look through the .conf file, since I'm sure you can set it there.
Thanks for all the help, I really appreciate it.
*Also, do you know what Port(s) Eggdrop uses? This way I can forward them to my pc.
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

number one : You can only set my-ip and nat-ip in the conf file - but I think you already realised that.

The ports that eggdrop uses are mainly the one that you set for listen (bot/user/all) in the conf file. These are certainly the only ones used for two way communication. Uptime.mod communicates out (only) on port 9969 (UDP) but I guess you are forwarding all traffic out.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Post by Stylez »

Okay well I tried many things in the conf file, including setting my-ip, nat-ip, and finding the ports (2010-2020), but they are for file transfers which may be different. But anyways, when I set these things up, I couldn't even CTCP. So I got it back to normal now, and CTCP works, but still no DCC. BUT, it doesn't matter really, CTCP'ing to the bot to initialize the DCC is just as easy as DCC'ing in the first place. lol. So it's not really any loss that I can't DCC, as my router's firewall isn't blocking any information. For the seldom amount of times I actually log into my bot, I can definately live with the CTCP and mIRC's Process ANSI Codes.
Thanks for the help ppslim and Photon. :D
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This realy does sound like a clash between your network setup, and the mirc client.

Have you tried changing the IP your client thinks youa re before using DCC CHAT?

mIRC gets very confused, and uses the wrong IP, which will cuase eggdrop to fail to DCC CHAT to you.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Post by Stylez »

My ip in mirc's options, is set to my external ip. Then there is local host above that I think it is, and it is my hostmask.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Then as noted in my previous posts, change this IP to your internal IP, and you should be able to DCC CHAT the bot, though it will break, if you try to DCC CHAT any1 else.

It is because of the external IP address, being in this box, that it doesn't work.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Post by Stylez »

Okay DCC works now if I set my ip as my internal ip. Now that ruins it for DCC'ing to anyone else.. lol.. Kind of a lose-lose situation. Would the routers firewall be the reason why I can't DCC when my external ip is set in that box? Because if so, I might be able to disable the hardware firewall and just use Zone Alarm or something. I know the router has a thing called Port Triggering, but I haven't quite figured it out. I can't just forward all the ports because that would interfere with the other PC on the network.
S
Stylez
Voice
Posts: 35
Joined: Fri Dec 06, 2002 1:32 am
Location: NS, Canada
Contact:

Post by Stylez »

Okay I just found this on Linksys site:
Q U E S T I O N

Can I disable the Routers Firewall?

A N S W E R

Unfortunately you can not disable the routers firewall. If you're having trouble accessing servers, or running servers on your network you will need to find out what ports the programs are using. Once you've done that you'll need to setup Port Forwarding (KB10933123) or Port Triggering (KB10934316). Port Forwarding is used for setting up servers behind your router that you want the outside world to access and Port Triggering is used for servers outside of the routers which you want to access.
Hmmm... :roll: That makes things difficult because irc and eggdrop use a million different ports, they almost never use the same one twice, well, they use what is available or something. Such as DCC port range is 1024-5000, that is a lot of ports. Although, I can change this, so could I maybe set this to like 1024 to 1025 and forward those?
Locked