#tfl@irc.freenode.net logs for 12 Nov 2006 (GMT)

Archive Today Yesterday Tomorrow
tfl homepage


[01:51:16] --> wizardrydragon has joined #tfl
[01:51:16] --- ChanServ gives channel operator status to wizardrydragon
[01:51:39] <Crysta> yo wiz
[01:51:40] <Crysta> http://img.photobucket.com/albums/v128/crystaelf/U7FL_Map1a.gif
[01:51:47] --- Marzo_away is now known as Marzo
[01:51:52] <Marzo> Hi
[01:52:01] <Crysta> http://img.photobucket.com/albums/v128/crystaelf/TFLMap_Mini.gif
[01:52:15] --> tflBot has joined #tfl
[01:52:15] --- ChanServ gives voice to tflBot
[01:52:28] <Crysta> and then http://img.photobucket.com/albums/v128/crystaelf/SIMap_Mini.gif
[01:52:33] <-- tflBot has left IRC (Remote closed the connection)
[01:52:39] <Marzo> The last map should be named "micro", not mini :-)
[01:52:43] <Crysta> because the SI map icon is only of the upper half o fthemain continent :p
[01:53:24] <Crysta> i can update the large map more when there is more done to the map in game
[01:53:26] --> tflBot has joined #tfl
[01:53:26] --- ChanServ gives voice to tflBot
[01:53:39] <wizardrydragon> Hi tflBot
[01:53:40] <tflBot> Greetings wizardrydragon!
[01:53:42] <Crysta> add paths and clearings in the forests.. rocks in the deserts.. towns.. etc
[01:53:43] <wizardrydragon> :D
[01:53:59] <Crysta> so what do you think
[01:54:10] <wizardrydragon> !tflBot !diagnostic
[01:54:17] <wizardrydragon> !tflBot diagnostic
[01:54:18] <tflBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[01:54:30] <wizardrydragon> Its neat Crysta
[01:54:47] <Crysta> >.>;
[01:54:50] <wizardrydragon> !tflBot usecode
[01:54:50] <tflBot> Usecode documentation may be found at http://seventowers.u7feudallands.com/downloads.php?section=1
[01:55:06] <Crysta> you ask for the map and when i finish all you can say is "its neat"
[01:55:11] <wizardrydragon> Woot. No crashing.
[01:55:17] <Crysta> well
[01:55:25] <Marzo> Ultima icons may be found at http://seventowers.u7feudallands.com/downloads.php?section=2
[01:55:28] <Marzo> :-)
[01:55:32] <Crysta> say "its neat" and mess with TFLbot
[01:55:44] <wizardrydragon> That sounds sorta like a command request Marzo :-)
[01:56:03] <Marzo> Crysta: I think he is too happy that tflbot is actually working without crashing to pay attention to anything else :-)
[01:56:13] <Marzo> wizardrydragon: That was my intention
[01:56:14] <Crysta> i know 9.9;
[01:56:16] <wizardrydragon> Heh
[01:56:34] <wizardrydragon> When you work on something 36 hours straight, youd be a little preoccupied too.
[01:56:49] <wizardrydragon> Marzo: that's not a difficult command to add at all
[01:56:56] <Marzo> Only 36 hours? Bah *waves hand dismissivelly*
[01:56:57] <wizardrydragon> Just duplicates the usecode command really
[01:56:57] <Crysta> well i cant say it was that long, but ive put at least 18 hours into that map
[01:57:03] <Marzo> :-)
[01:57:23] <wizardrydragon> The multithreading works too :D
[01:57:29] <wizardrydragon> !tflBot diagnose
[01:57:30] <tflBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[01:57:52] <wizardrydragon> 1 thread for the core bot, 1 thread per channel
[01:58:01] <wizardrydragon> 1 thread per intensive request
[01:58:11] <wizardrydragon> DOnt have to worry about the latter right now though
[01:58:15] <Crysta> tried a few random different things with the map too.. like http://img.photobucket.com/albums/v128/crystaelf/U7FL_Map1b.gif ... was going for a "unique style"
[01:58:42] <wizardrydragon> Hey thats cool
[01:59:08] <Crysta> yeah but ill have trouble updating that one.. cant forget what the settings were to get it to those colors
[01:59:08] <Crysta> lol
[02:00:54] <Crysta> id say the color one ended up the best.. i also had tried to make a larger map using the SI treasure maps, but trashed it after a while cause i couldnt decide what to put in the margins
[02:01:40] <wizardrydragon> If you copied the gold border and compass with the brown bit, I think that would look neat
[02:01:55] <Crysta> the second one you mean?
[02:02:00] <wizardrydragon> Yes
[02:04:31] <Crysta> i was a fan of the UO T2A map... loved the style of it :)
[02:05:17] <wizardrydragon> I liked the SI dungeon maps.
[02:05:29] <Crysta> like i said i tried that too
[02:05:39] <Crysta> but.. couldnt figure out what to put in the wide margins
[02:05:40] <Crysta> lol
[02:05:44] <wizardrydragon> Heh
[02:05:47] <Crysta> http://img.photobucket.com/albums/v128/crystaelf/U7FL_Map1ba.gif
[02:06:23] <wizardrydragon> cool
[02:08:29] <Crysta> http://img.photobucket.com/albums/v128/crystaelf/stilltrying.gif
[02:08:43] <Crysta> see what i mean? lol
[02:09:09] <wizardrydragon> lol
[02:09:32] <Crysta> maybe monster sketches.. could reduce some of the bestiary art..
[02:09:41] <Crysta> prolly not worth it
[02:09:43] <Crysta> lol
[02:09:51] <wizardrydragon> Well recall the ultima maps had that kind of thing.
[02:09:59] * wizardrydragon searches for his u7 cloth map
[02:10:03] <Crysta> yeah which is why i thought of it
[02:11:04] <Crysta> of course if i tried that large map id also have to add back in the one island.. which has more mountaintop... and the damn mountaintops were a frigging pain to make
[02:11:24] <wizardrydragon> Tehehe
[02:15:58] <wizardrydragon> dumdeedum
[02:18:31] * wizardrydragon heads to the hold with a mop
[02:21:17] <Crysta> sorry im quiet now.. busy adding things to the map
[02:25:09] <wizardrydragon> Hehe
[02:29:17] <Crysta> nah that looks cheesy
[02:29:17] <Crysta> lol
[02:29:27] <Crysta> so which one you gonna end up using? >_>;
[02:31:05] <Crysta> wiz?
[02:31:36] <wizardrydragon> I like them both @_@
[02:31:57] <Crysta> marzo what you think
[02:32:10] <Marzo> About what?
[02:32:24] <Crysta> which version of the map i did should we use
[02:32:27] <Crysta> the color or the other?
[02:32:41] <Crysta> i say color, wiz says either
[02:32:45] <Marzo> I like colors, so I am not to be trusted with this decision
[02:32:46] <Crysta> so you're the tiebreaker
[02:32:49] <Crysta> lol
[02:32:58] <wizardrydragon> I like the second, but I wouldnt have it monocromatic.
[02:33:09] <Crysta> heh
[02:33:14] <Crysta> well go with the color one for now
[02:33:34] <Crysta> when the worldmap is finished and ive done the final updates, then ill mess with it from there as far as stylization
[02:33:40] <Crysta> :)
[02:34:25] <Crysta> for now we just need it working :P
[02:36:47] <Crysta> so boss, what should i be working on now.. lol
[02:37:36] <wizardrydragon> Taking over the world?
[02:37:43] <Crysta> >_>;
[02:37:48] <Crysta> seriously
[02:38:05] <Crysta> oh.. duh.. forgot to ask
[02:38:06] <Marzo> What makes you think he wasn't serious?
[02:38:09] <Marzo> :-)
[02:38:14] <Crysta> also is the runic readable on the map?
[02:38:26] <wizardrydragon> Marzo: yeah, really.
[02:43:49] <Crysta> o.o;
[02:44:18] * wizardrydragon contemplates changing username to Blackthorn.
[02:44:28] <Crysta> uh... x.x;
[02:44:42] <wizardrydragon> :D
[02:44:53] <Crysta> i kinda asked a question back there
[02:44:53] <Marzo> Whose username?
[02:45:08] <wizardrydragon> Lol.
[02:45:13] <wizardrydragon> Crysta: I can read them.
[02:45:22] <Crysta> ok thats good then
[02:45:22] <Crysta> :P
[02:45:26] <wizardrydragon> The compass runes/letters are hard though.,
[02:45:39] <Crysta> well yeah, but thats how they are on the other maps
[02:45:46] <Crysta> i mean i did just copy it with some color changes
[02:45:55] <Crysta> same as they did for the BG map to the SI map
[02:46:51] <wizardrydragon> Well if you copy somerthing unreadable on another map ... :P
[02:47:07] <Crysta> hey, they already did it
[02:47:15] <Crysta> and its also obvious what the letters are anyway
[02:47:39] <wizardrydragon> lol
[02:47:41] <wizardrydragon> O RLY
[02:48:04] <Crysta> yknow.. i think i need to make some changes to the SI map.. because
[02:48:18] <Crysta> why would a FELLOWSHIP member mark the map with OPHIDIAN runes?
[02:48:33] <wizardrydragon> Cuz hes cool like that.
[02:48:40] <Crysta> yeah... or stupid
[02:48:41] <Crysta> lol
[02:48:52] <wizardrydragon> But I dont want to deal with the people crying bloody murder plzokithx :D
[02:49:12] <Marzo> If it weren't for the fact that they have anything to do with the map, the obvious answer would be that he saw them, liked them and added them for decoration
[02:49:13] <Crysta> ah come on.. i bet that one is even on hacki's site :P
[02:49:34] <Marzo> But since they *do* have something to do with the map... :-)
[02:49:48] <Crysta> yeah yeah... ill leav em alone
[02:49:56] * wizardrydragon hands Marzo a tinfoil cap.
[02:49:56] <Crysta> ill mess with it for my own amusement for now :p
[02:50:00] <Crysta> XD
[02:50:08] <Crysta> gotta keep those ELFs away
[02:50:32] <wizardrydragon> Yep.
[02:50:41] <Crysta> think that S should be capitalized there as well.. lol
[02:50:51] <Crysta> if i remember the abbreviation right
[02:51:06] <wizardrydragon> Lol.
[02:51:21] * wizardrydragon wonders if the hat will keep Crysta away :o
[02:51:33] <Crysta> XD
[02:51:41] <Crysta> sorry... but no :P
[02:51:57] <Crysta> only thing that would keep me away is spiders
[02:52:47] <wizardrydragon> Well you are an elf :D
[02:52:59] <Crysta> 9.9;
[02:53:23] <wizardrydragon> Lol
[03:09:20] <Crysta> damn.. bored now..
[03:10:29] <wizardrydragon> Hmm.
[03:10:35] * wizardrydragon plots nefariously.
[03:10:55] <wizardrydragon> I still have that list of sprites on SF.net if you are really that bored.
[03:11:41] <Crysta> ?
[03:12:38] <wizardrydragon> See the graphics tracker :D
[03:13:05] <Crysta> no
[03:13:08] <Marzo> Crysta: url is http://sourceforge.net/tracker/?group_id=161162&atid=821008
[03:13:44] <wizardrydragon> Yey, another function to add to tflBot
[03:13:53] <Marzo> lol
[03:13:57] * wizardrydragon plots nefariously.
[03:14:19] <Marzo> Meanwhile, my first tests have been successful in the usecode portion of the site
[03:14:19] * wizardrydragon wonders if !tflBot bug Crysta and !tflBot bug Marzo are in tflBot's future.
[03:14:53] <Marzo> Check the test doc here: http://seventowers.u7feudallands.com/downloads.php?section=1
[03:15:19] <wizardrydragon> Neat.
[03:15:19] <Crysta> dont you dare.. im me and thats it
[03:15:26] <Crysta> oh
[03:15:27] <Crysta> wait
[03:15:33] <Crysta> i thought that was a copy of me.. i see
[03:15:37] <Crysta> dont you dare anyway
[03:15:42] * wizardrydragon likes to play with fire.
[03:15:43] <Crysta> i dont need it bugging me too
[03:15:43] <Crysta> lol
[03:16:06] <wizardrydragon> It'd give you an appreciation fro what Marzo goes through :D
[03:16:23] <Crysta> er... whats the highest priority
[03:16:25] <Crysta> on that page
[03:16:28] <Crysta> is it 1 or 9
[03:16:29] <Marzo> OK, NOW it works :-)
[03:17:11] <Marzo> The text-only and html documents are generated from the same code
[03:17:27] <wizardrydragon> The dark red ones
[03:17:32] <wizardrydragon> Lighter ones are lesser
[03:17:50] <Crysta> k :P
[03:24:48] <wizardrydragon> Also
[03:24:50] <wizardrydragon> If youre bored
[03:24:59] <wizardrydragon> you can add lat/long lines to the map :D
[03:25:17] <Crysta> uh... none of the other maps have them
[03:25:30] <Crysta> well.. SI one has markers
[03:25:42] <Crysta> it doesnt really matter tho.. i wouldnt know where theyd go
[03:25:44] <wizardrydragon> That was a boredom killing comment, not a game-adding-to comment.
[03:26:17] <Crysta> ogh
[03:26:20] <Crysta> *oh
[03:26:43] <wizardrydragon> :D
[04:14:02] <wizardrydragon> So Marzo, done fiddling with the site yet?
[04:14:30] <Marzo> Take a look at it and tell me what you think
[04:14:34] <Marzo> Especially at http://seventowers.u7feudallands.com/downloads.php?section=1
[04:14:40] <Marzo> And try the sample docs
[04:14:43] <Marzo> *doc
[04:15:46] <wizardrydragon> Looks neat.
[04:15:48] <Marzo> BTW: I think I mentioned it before, but the html version and the text version are both generated from the same data
[04:16:23] <Marzo> Also the icons: any icons I add will automagically regen the thumbnails
[04:16:39] <Marzo> (in the 'Ultima Icons' section)
[04:16:53] <Marzo> It will also automagically appear in the list
[04:17:01] <Marzo> That section is the best so far :-)
[04:17:47] <Marzo> How is tflbot doing, BTW?
[04:18:14] <wizardrydragon> Ask it!
[04:18:21] <wizardrydragon> try !tflBot diagnostic
[04:18:30] <Marzo> !tflbot diagnostic
[04:18:44] <Marzo> !tflBot diagnostic
[04:19:02] <Marzo> Hm
[04:19:20] <Marzo> !tflBot diagnostic
[04:19:42] <Marzo> You sure it is working? :-p
[04:20:26] <Marzo> !tflbot diagnose
[04:20:40] <Marzo> !tflBot diagnose
[04:21:09] <wizardrydragon> It might not like you
[04:21:10] <wizardrydragon> Lol
[04:21:18] * Marzo pokes tflBot repeatedly with the Death Scythe in an attempt to get a reply
[04:21:29] <Marzo> Hi tflBot
[04:21:30] <wizardrydragon> Or it mighta timed out
[04:21:38] <wizardrydragon> !tflBot diagnose
[04:21:49] <Crysta> lol
[04:22:07] * wizardrydragon notes that freenode discons bots after a certain period. Also notes that they don't kill the nick >_>
[04:22:35] <Marzo> How does exultbot survive then?
[04:22:40] <wizardrydragon> PING
[04:22:40] <-- tflBot has left IRC (Read error: 145 (Connection timed out))
[04:22:42] <wizardrydragon> :D
[04:22:49] <wizardrydragon> Thought so.
[04:22:54] <Marzo> lol
[04:23:07] <wizardrydragon> We have the technology.
[04:23:11] <wizardrydragon> We will rebuild him!
[04:23:22] <wizardrydragon> Faster! Stronger! With 100 more useless say commands!
[04:23:23] <wizardrydragon> :D
[04:23:32] <Marzo> lol
[04:24:04] <Marzo> A suggestion for a useless command:
[04:24:14] <Marzo> !tflbot release
[04:24:28] <Marzo> Have tflbot reply 'When it is done, not before!'
[04:24:37] <Marzo> :-)
[04:25:00] <wizardrydragon> Maybe you should request it at [[Wikipedia:Requests for useless bot features]]
[04:25:06] * wizardrydragon wonders if this exists.
[04:25:21] <Marzo> Knowing people, it may very well exist
[04:28:54] <Marzo> Well, I am off to the bedroll Good night all
[04:29:00] <Marzo> exultbot: bye
[04:29:00] <exultbot> goodbye!
[04:29:03] <Crysta> night marzo
[04:29:14] <Marzo> See, there is one bot right there which replies :-)
[04:29:23] * Marzo ducks
[04:29:28] <Crysta> 9.9;
[04:29:38] <Crysta> one of these days im going to throw a chainsaw
[04:29:52] <Marzo> What does '9.9;' stand for?
[04:30:04] <Marzo> (I mean, which kind of smiley it is?)
[04:30:07] <Crysta> rolling my eyes and looking up in frustration
[04:30:08] <Crysta> :P
[04:30:13] <Marzo> Oh
[04:30:14] <Marzo> :-)
[04:30:18] <wizardrydragon> Night Crysta.
[04:30:27] <Crysta> you goin too wiz?
[04:30:28] <wizardrydragon> Night Marzo.
[04:30:31] <Marzo> Crysta is staying, I am the one going
[04:30:38] <Crysta> lol
[04:30:40] <wizardrydragon> Well I was thinking of going to bed.
[04:30:45] <Marzo> Heh
[04:30:45] <Crysta> ah
[04:30:47] <Crysta> well.. go then
[04:30:50] <wizardrydragon> Then i got up and decided against it.
[04:30:52] <Marzo> Good night then, in any case
[04:30:53] <Crysta> night wiz too
[04:30:59] * wizardrydragon mumbles something about his damned leg.
[04:31:07] <Crysta> x.o
[04:31:27] <-- Marzo has left IRC ("Marzo vanishes suddenly.")
[04:32:21] <wizardrydragon> Crysta: If you throw a chainsaw, make sure its a +3 chainsaw of bloody dismemberment.
[04:32:30] <Crysta> lol
[04:33:45] <wizardrydragon> :D
[04:34:22] <Crysta> scifi just showed the Dawn of the Dead remake :P
[04:34:59] <Crysta> the only thing about that series i dont like is how all of their efforts always end up futile
[04:35:08] <wizardrydragon> Heh.
[04:35:14] <wizardrydragon> Zombies = PWN't
[04:35:21] <Crysta> i mean its realistic
[04:35:29] <Crysta> but.. cmon.. someone has to win SOMETIME
[04:35:40] <wizardrydragon> Zombies are the zergling rush of the horror movie genre.
[04:36:46] <Crysta> yeah, i know
[04:36:54] <Crysta> but this series always interested me
[04:37:04] <Crysta> i mean really.. it makes te zombies actually.. evolve
[04:37:14] <Crysta> slowly relearning the things they once knew
[04:37:26] <wizardrydragon> A zombie is a zombie is a zombie
[04:37:34] <wizardrydragon> Take a torch to it and give me the XP already
[04:37:36] <wizardrydragon> :P
[04:37:53] <Crysta> yeah but a zombie that can chase you down, load a gun, and shoot you is a bit better than a normal zombie :p
[04:38:15] * wizardrydragon still would prefer a zombie to say a vampire or a lich.
[04:38:36] * wizardrydragon definetely prefers it to another horror staple, the werewolf.
[04:38:56] <Crysta> lol
[04:39:37] <Crysta> i suddenly want to watch Monster Squad.. that was a good movie
[04:39:41] <wizardrydragon> Lol.
[04:40:07] <wizardrydragon> I'm not a fan of all these slasxher B-movies coming out these days though >_>;;
[04:40:46] <Crysta> lol
[04:40:52] <Crysta> i wouldnt call most of them B-movies
[04:40:59] <Crysta> i'd call them N-movies at best
[04:41:32] <wizardrydragon> I'd call them Z-movies.
[04:41:45] <Crysta> lol
[04:42:02] <Crysta> lets see.. what was a good one ive seen...
[04:42:04] <Crysta> ...
[04:42:06] <Crysta> cant remember any
[04:42:09] <Crysta> at tthe moment
[04:43:06] <wizardrydragon> There are a few good old ones, but no good new ones.
[04:43:24] <Crysta> there have been one or two good new ones
[04:43:57] * wizardrydragon disagrees.
[04:48:50] <Crysta> well im off
[04:48:51] <Crysta> night
[04:49:35] <-- Crysta has left #TFL ()
[06:43:10] --- wizardrydragon is now known as SleepingDragon
[06:53:01] <-- SleepingDragon has left IRC (Connection timed out)
[14:05:23] <-- Kirben has left IRC (Read error: 60 (Operation timed out))
[18:10:55] --> SleepingDragon has joined #tfl
[18:10:55] --- ChanServ gives channel operator status to SleepingDragon
[18:13:56] --- SleepingDragon is now known as wizardrydragon
[18:57:48] --> Marzo has joined #tfl
[18:57:48] --- ChanServ gives channel operator status to Marzo
[18:57:53] <Marzo> Howdy
[18:58:42] --> Crysta has joined #TFL
[18:58:42] --- ChanServ gives voice to Crysta
[18:58:50] <Marzo> Hi
[18:58:56] <Crysta> hiya
[18:59:05] * Marzo pokes wizardrydragon repeatedly with the Death Scythe in an attempt to get a reply
[19:00:05] <Marzo> "He is dead, avatar"
[19:00:11] <Crysta> lol
[19:03:10] --> tflBot has joined #tfl
[19:03:10] --- ChanServ gives voice to tflBot
[19:03:28] <wizardrydragon> It lives
[19:03:43] <wizardrydragon> It still doesn't update the topic, though.
[19:04:10] <Marzo> !tflbot diagnose
[19:04:19] <Marzo> !tflbot diagnostic
[19:04:30] <wizardrydragon> Marzo: its case-sensitive
[19:04:35] <Marzo> !tflBot diagnostic
[19:04:36] <wizardrydragon> At leasst on the handle
[19:04:47] <Marzo> It shouldn't be
[19:05:13] <Marzo> !tflBot diagnose
[19:05:14] <wizardrydragon> If you want to find out how to regex a textbox string, be my guest :D
[19:05:17] <wizardrydragon> Hmm
[19:05:24] <Marzo> !tflBot commands
[19:05:28] <wizardrydragon> Why isn'
[19:05:34] <wizardrydragon> t it coming up
[19:05:37] <Marzo> !tflBot usecode
[19:05:43] <wizardrydragon> hole up for a sec
[19:05:48] <wizardrydragon> !tflBot diagnose
[19:05:58] <Marzo> To quote myself, in a different context: [16:00] Marzo: "He is dead, avatar"
[19:06:00] <wizardrydragon> PRIVMSG #tfl :I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[19:06:09] <wizardrydragon> "No text to send"? o_O
[19:06:30] <Marzo> !tflBot diagnose
[19:06:45] <Marzo> Not evev Ctrl+c, Ctrl+v worked
[19:09:28] <wizardrydragon> Hmm.
[19:09:46] <wizardrydragon> The code trying to detect what channel the message is coming from isn't working
[19:10:03] <Marzo> lol
[19:10:24] <wizardrydragon> void WriteFinal()
[19:10:24] <wizardrydragon> {
[19:10:24] <wizardrydragon> if(line->Count > 0)
[19:10:24] <wizardrydragon> {
[19:10:24] <wizardrydragon> String ^channel = Regex::Replace(inputLine, "^.*?PRIVMSG\s(?<channel>.*?)\s.*?$","${channel}");
[19:10:27] <wizardrydragon>
[19:10:29] <wizardrydragon> writer->WriteLine ("PRIVMSG " + channel + " :" + line[0]->ToString());
[19:10:31] <wizardrydragon> txtStdOut->Text = txtStdOut->Text + "PRIVMSG " + txtChannel->Text +
[19:10:33] <wizardrydragon> " :" + line[0]->ToString() + "\n\r";
[19:10:35] <wizardrydragon>
[19:10:37] <wizardrydragon> int length = 8 + txtChannel->Text->Length + 2 + line[0]->ToString()->Length;
[19:10:41] <wizardrydragon> line->RemoveAt(0);
[19:10:45] <wizardrydragon> writer->Flush();
[19:10:47] <wizardrydragon> }
[19:10:49] <wizardrydragon> What could be wrong with it though? @_@
[19:11:17] <Crysta> other than the fact you made it?
[19:11:20] <Crysta> *runs away*
[19:11:52] * wizardrydragon eats Crysta.
[19:12:05] <Crysta> you do stuff like that ot me all the time
[19:12:23] <wizardrydragon> Aha
[19:12:25] <wizardrydragon> I see
[19:12:45] <wizardrydragon> The regex is broke
[19:12:52] <-- tflBot has left IRC (Remote closed the connection)
[19:13:46] <Marzo> On another note: suppose that I want to have an script that creates png files from a Windows .ico file; say, for the icon thumbnails in the Ultima Icons page
[19:13:55] <Marzo> (I actually have such an script)
[19:14:11] <wizardrydragon> What language?
[19:14:21] <Marzo> php so far
[19:14:32] <Marzo> I would have to give write permissions to the script to write in the dir
[19:14:37] <wizardrydragon> Yes.
[19:14:43] <wizardrydragon> CHMOD 777
[19:14:51] <Marzo> How would be the best way to do that?
[19:14:56] <Marzo> In the script?
[19:15:13] <Marzo> That would leave a dir with read/write/execute permissions
[19:15:26] <Marzo> And I don't think that is good for a security point of view
[19:15:44] <wizardrydragon> CHMOD it to write the file, then CHMOD it back when done.
[19:15:46] <wizardrydragon> Obviously.
[19:15:51] * wizardrydragon even knew that.
[19:15:53] <Marzo> Hm
[19:15:56] <Marzo> Might work
[19:16:02] <Marzo> Let me see
[19:17:02] <wizardrydragon> It will work if you program it right.
[19:18:17] <wizardrydragon> Marzo: If I can do it, you better be able to do it if you want to call yourself a programmer :D
[19:19:58] <Marzo> I assume I'd have to have it login to the ftp site?
[19:23:31] <wizardrydragon> You can CHMOD right in the script Marzo
[19:23:40] <Marzo> I am
[19:23:44] <Marzo> And it is not working
[19:23:53] <Marzo> It needs higher permissions
[19:24:01] <Marzo> (just read the php doc)
[19:24:57] <wizardrydragon> 777 is as high as it gets marzo
[19:25:03] <wizardrydragon> thats rwx-rwx-rwx
[19:25:13] <Marzo> I mean it needs to be called by the owner
[19:25:31] <Marzo> From the php docs: "Note: The current user is the user under which PHP runs. It is probably not the same user you use for normal shell or FTP access. The mode can be changed only by user who owns the file on most systems."
[19:25:48] <Marzo> (that is for chown)
[19:26:32] <wizardrydragon> phpBB runs with sub-root permissions. The only files it cant touch are those created by root.
[19:27:05] <Marzo> Then I can't say why this doesn't work:
[19:27:07] <Marzo> chmod("images/thumbs", 0777);
[19:27:08] <Marzo> imagepng($im, "images/$thumbfile.png");
[19:27:08] <Marzo> chmod("images/thumbs", 0755);
[19:27:27] <wizardrydragon> Make sure the folder exists in that path.
[19:27:28] <Marzo> (Yes, the $thumbfile specifies the dir)
[19:27:31] <Marzo> It does
[19:27:46] <wizardrydragon> Try the absolute path and see if the problem persists.
[19:27:47] <Marzo> Only the 3 files I deleted in order for the script to regen them don't
[19:28:37] <Marzo> Nope
[19:36:11] <wizardrydragon> Hmm.
[19:36:14] <wizardrydragon> I'm perplexed
[19:36:26] <wizardrydragon> It works for me/
[19:36:30] <wizardrydragon> * / ?
[19:36:52] <wizardrydragon> Hmm.
[19:36:58] <Marzo> You said that phpBB runs on sub-root privilleges; does that apply to php in general or does phpBB use special permissions?
[19:37:07] <wizardrydragon> Delete the directory.
[19:37:15] <wizardrydragon> Have the script set it up if it doesn't exist.
[19:37:19] <wizardrydragon> Then it will belong to phpBB
[19:37:26] <Marzo> Oh, good idea
[19:37:29] <wizardrydragon> If it doesn;t work on a file it owns, then shoot it.
[19:39:16] <wizardrydragon> Hmm
[19:39:25] <Marzo> What?
[19:39:27] <wizardrydragon> dragonBot is registered to me but I can't remember the pass.
[19:39:28] <wizardrydragon> Heh
[19:39:35] <Marzo> lol
[19:39:59] <wizardrydragon> [12/11/2006 14:39 EST-5] *** -NickServ- Nickname: dragonbot
[19:39:59] <wizardrydragon> [12/11/2006 14:39 EST-5] *** -NickServ- Registered: 4 days (13h 25m 26s) ago
[19:39:59] <wizardrydragon> [12/11/2006 14:39 EST-5] *** -NickServ- Last Seen: 4 days (13h 25m 4s) ago
[19:39:59] <wizardrydragon> [12/11/2006 14:39 EST-5] *** -NickServ- Last Seen Address: n=wizardry@CPE0011950b502d-CM0011aefd470a.cpe.net.cable.rogers.com
[19:40:39] <Marzo> Well, it will expire in 60 days or so, so you can just wait if you can't figure out the password :-)
[19:41:15] <wizardrydragon> Heh
[19:41:55] --- wizardrydragon is now known as dragonBot
[19:42:11] <dragonBot> Hah
[19:42:20] <dragonBot> Got it.
[19:42:48] --- dragonBot is now known as wizardrydragon
[19:50:06] <Marzo> Your suggestion didn't work so well
[19:50:30] <Marzo> There is a images/thumbs dir which I can't touch now
[19:51:07] <wizardrydragon> Is it still unable to chmod it?
[19:51:16] <Marzo> Let me try
[19:51:21] <Marzo> (IU couldn't from ftp)
[19:52:22] <wizardrydragon> Well of course you can, you're not running with godmode-light type privs, heh.
[19:52:26] <wizardrydragon> *can't
[19:52:46] <Marzo> The script can't change the dir's permissions either
[19:53:00] <Marzo> They are set at 0755 from when it was created
[19:53:12] <wizardrydragon> That is odd.
[19:53:13] <Marzo> No, wait
[19:53:19] <wizardrydragon> Be sure you're using chmod() correctly.
[19:53:24] <Marzo> FireFTP just hadn't refreshed it yet
[19:56:05] <wizardrydragon> And that's why I don't use fireFTP.
[19:56:38] <Marzo> What do you use for FTP?
[19:57:24] <wizardrydragon> FTP
[19:57:26] <wizardrydragon> Of course
[19:57:26] <wizardrydragon> :D
[19:58:58] <wizardrydragon> Bourne-again ftw.
[20:01:37] <wizardrydragon> Marzo: familiar with Regex?
[20:01:44] <wizardrydragon> C++ doesn't like mine and I don't know why.
[20:02:20] <Marzo> From what I've seen, there are dozens of different Regex'es
[20:02:31] <wizardrydragon> Heh
[20:02:34] <Marzo> I can't figure out php's, but work well with ConTEXT's
[20:03:06] <wizardrydragon> Heh.
[20:03:08] <Marzo> OK, the script is working now
[20:03:13] --> dragonBot has joined #tfl
[20:03:14] --- ChanServ gives channel operator status to dragonBot
[20:03:21] <wizardrydragon> Hmm
[20:03:37] <Marzo> op status?
[20:03:46] <Marzo> *That* is a mighty bot :-)
[20:03:53] <wizardrydragon> It should be. Heh.
[20:04:19] * Marzo bows down to dragonBot
[20:04:35] <Marzo> !dragonBot diagnose
[20:04:46] <Marzo> Still dead, avatar :-p
[20:04:47] <wizardrydragon> Grr..
[20:05:03] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[20:05:03] <Marzo> !dragonBot commands
[20:05:15] <Marzo> Hey, it did something
[20:05:18] <wizardrydragon> Why's it appending :no text to send?
[20:05:19] <Marzo> Was it me?
[20:05:33] <wizardrydragon> No, I did that on the bots end
[20:05:42] <Marzo> :-(
[20:05:50] <wizardrydragon> PRIVMSG #tfl :I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[20:06:00] <wizardrydragon> Without :No text to send, it works
[20:06:04] <wizardrydragon> As above
[20:06:33] <Marzo> I think I have read an old thread from the exultbot logs in which WJP was as perplexed by exultbot not working as you are with [dragon, tfl]Bot :-)
[20:07:29] <wizardrydragon> It's probably the regex
[20:08:13] <wizardrydragon> !tflBot diagnose
[20:08:24] <wizardrydragon> Er
[20:08:28] <wizardrydragon> !dragonBot diagnose
[20:08:38] <Marzo> (that was the problem with exultbot too :-p)
[20:09:04] <wizardrydragon> Well no wonder.
[20:09:17] <wizardrydragon> Channel is getting the whole string because the regex isn't working.
[20:09:58] <wizardrydragon> Hmm
[20:09:59] <wizardrydragon> String ^channel = Regex::Replace(inputLine, "^.*?PRIVMSG\s(?<channel>.*?)\s.*?$","${channel}");
[20:10:03] <wizardrydragon> whats wrong there
[20:10:24] <Marzo> I am looking into it right now
[20:11:07] <wizardrydragon> It's supposed to be extracting the channel
[20:11:43] <wizardrydragon> From a line such as
[20:11:43] <wizardrydragon> :wizardrydragon!n=wizardry@CPE0011950b502d-CM0011aefd470a.cpe.net.cable.rogers.com PRIVMSG #tfl :It's supposed to be extracting the channel
[20:13:18] <Marzo> The first white space is between the server and PRIVMSG?
[20:14:33] <wizardrydragon> Yes.
[20:14:58] <wizardrydragon> Hmm
[20:15:11] <wizardrydragon> Seems C++ doesn't like the \s \s bit
[20:16:08] <Marzo> I think the problem is more at the beginning
[20:16:19] <Marzo> ^.*
[20:20:39] <wizardrydragon> Well that's whast the compiler chokes on.
[20:20:57] <-- dragonBot has left IRC (Read error: 131 (Connection reset by peer))
[20:21:24] <Marzo> Try: [^\s]\sPRIVMSG\s(?<channel>[#A-Za-z]*?)
[20:22:33] <wizardrydragon> Trying
[20:23:28] <Marzo> You can also add a '^' at the beginning for safety
[20:26:02] <Marzo> There is an asterix missing there
[20:26:37] <Marzo> Better is: ^[^\s]*\sPRIVMSG\s(?<channel>[#A-Za-z]*?)
[20:28:06] <wizardrydragon> Hmm
[20:28:24] <Marzo> What?
[20:29:24] <wizardrydragon> c:\documents and settings\peter\my documents\visual studio 2005\projects\bot\bot\Form1.h(580) : warning C4129: 's' : unrecognized character escape sequence
[20:32:03] <Marzo> It is right there in the VC++2005 docs
[20:32:18] <Marzo> (although it is in character classes)
[20:32:21] <wizardrydragon> ...
[20:32:23] <wizardrydragon> o_O
[20:32:32] <wizardrydragon> Well let me try it and see if it works
[20:32:36] <wizardrydragon> Thats a warning not an error
[20:32:43] <wizardrydragon> I don't think it will though
[20:34:15] <Marzo> Ah, you have to specify ECMAScript option for it to be recognized
[20:34:27] <wizardrydragon> How do I do that
[20:35:15] <Marzo> No, wait... this option only changes the behaviour
[20:35:22] <wizardrydragon> LOL
[20:35:25] --> dragonBot has joined #tfl
[20:35:25] --- ChanServ gives voice to dragonBot
[20:35:39] <Marzo> It makes \s act slightly different
[20:35:48] <wizardrydragon> !dragonBot diagnose
[20:36:05] <wizardrydragon> Nope
[20:36:07] <Marzo> Maybe the warning is because the compiler doesn't know that this is a regexp and is trying to escape it?
[20:36:10] <wizardrydragon> the PRIVMSG still fails
[20:36:16] <Marzo> Same error?
[20:36:30] <wizardrydragon> The compiler should know its a regex
[20:36:38] <wizardrydragon> Regex::Replace(inputLine, "^.*?PRIVMSG\s(?<channel>.*?)\s.*?$","${channel}");
[20:36:39] <wizardrydragon> Heh
[20:36:54] <wizardrydragon> It's thinking \ is an escape though
[20:36:55] <Marzo> The compiler is not that smart, trust me :-)
[20:37:03] <-- dragonBot has left IRC (Remote closed the connection)
[20:37:16] <Marzo> Try using \\s instead
[20:44:17] --> dragonBot has joined #tfl
[20:44:18] --- ChanServ gives voice to dragonBot
[20:44:27] <wizardrydragon> !dragonBot diagnose
[20:44:29] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[20:44:33] <wizardrydragon> Hah
[20:44:40] <Marzo> !dragonBot diagnose
[20:44:43] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[20:44:45] <wizardrydragon> Now to see if it actually works on another channel.
[20:44:49] <Marzo> :-)
[20:48:51] <wizardrydragon> And it does
[20:49:04] <wizardrydragon> It's still not properly reporting threads though.
[20:49:14] <wizardrydragon> !dragonBot diagnose
[20:49:15] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (2) Threadcount: [2] Flood delay: [2000].
[20:49:19] <wizardrydragon> Should be 3
[20:50:02] <-- dragonBot has left IRC (Remote closed the connection)
[20:53:15] --> dragonBot has joined #tfl
[20:53:16] --- ChanServ gives voice to dragonBot
[20:53:49] <wizardrydragon> !dragonBot diagnose
[20:53:51] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (2) Threadcount: [4] Flood delay: [2000].
[20:54:45] <wizardrydragon> !dragonBot diagnose
[20:54:47] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (3) Threadcount: [5] Flood delay: [2000].
[20:54:52] <wizardrydragon> Tehehe
[20:55:06] <wizardrydragon> Multithreading and multi-channel operation works now.
[20:55:30] <Marzo> Yay!
[20:55:42] <wizardrydragon> Now to get it to report the channels it is in.
[20:56:36] <Marzo> !dragonBot usecode
[20:56:37] <dragonBot> Usecode documentation may be found at http://seventowers.u7feudallands.com/downloads.php?section=1
[21:00:30] <wizardrydragon> LOL
[21:00:31] <wizardrydragon> [12/11/2006 16:00 EST-5] *** Linkwatcher has signed off IRC (Read error: 104 (Connection reset by peer)).
[21:00:31] <wizardrydragon> [12/11/2006 16:00 EST-5] Sagacious: Bad bot! That is not how to DIE :-/
[21:00:46] <Marzo> lol
[21:00:55] <wizardrydragon> Tehehe
[21:01:16] <wizardrydragon> Its funny im chatting with the IRC bot junkies who helped me with a lot of my bot, and my bots the only one working right now
[21:01:17] <wizardrydragon> :D
[21:01:57] <wizardrydragon> !dragonBot diagnose
[21:01:57] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (3) Threadcount: [5] Flood delay: [2000].
[21:04:10] <wizardrydragon> Hmm
[21:04:32] <wizardrydragon> I guess that would just be a while loop
[21:04:47] <Marzo> What would?
[21:05:09] <wizardrydragon> Stupid question
[21:05:20] <wizardrydragon> How do I code a variable in C++ to be optional?
[21:05:48] <Marzo> In the declaration, you must supply a default value for it
[21:05:57] <Marzo> (usually done in the header file)
[21:06:41] <wizardrydragon> I want it to be completely optional though.
[21:07:03] <wizardrydragon> Ie. If it isn't specified, it isn't used.
[21:07:21] <Marzo> When it is supplied with said value, you can skip passing it along on calls, it that is what you mean
[21:07:33] <wizardrydragon> I suppose that'd work.
[21:07:51] <Marzo> It will always be defined with the default value
[21:07:58] <Marzo> You can also overload the function
[21:08:57] <wizardrydragon> I think I'll just stick it all into one response for now. Easier.
[21:08:58] <wizardrydragon> Hehe
[21:10:53] <Crysta> working on finishing fixing gargoyles..
[21:11:27] <wizardrydragon> Marzo: response += " Threadcount: [" + System::Convert::ToString(numThreads) + "] Flood delay: [" + delay + "]."; that should work right?
[21:11:37] <wizardrydragon> as opposed to response = response + [etc] ?
[21:11:45] <Marzo> Yes
[21:11:51] <wizardrydragon> K good.
[21:12:28] <Marzo> I am starting work on the exult_intrinsics doc for the site; how does the beginning look so far? http://seventowers.u7feudallands.com/code.php?HEADLINE=Usecode%20C&TITLE_IMAGE=usecodetitle.png&DATAFILE=exult_intrinsics.dat
[21:12:56] <wizardrydragon> Hey that's pretty cool.
[21:13:19] <Marzo> There is also the text-only version, but I'll have to tweak the output: http://seventowers.u7feudallands.com/code.php?HEADLINE=Usecode%20C&TITLE_IMAGE=usecodetitle.png&OUTPUT=text&DATAFILE=exult_intrinsics.dat&TYPE=0
[21:13:42] <wizardrydragon> Theres one line thats not wrapped.
[21:13:43] <wizardrydragon> Heh.
[21:13:46] <wizardrydragon> Nice otherwise.
[21:13:56] <Marzo> That is more-or-less what I meant
[21:15:09] <wizardrydragon> Hehe
[21:15:13] <wizardrydragon> I figured
[21:15:25] <wizardrydragon> I wonder: should this work? Something about it bugs me
[21:15:34] <wizardrydragon> for (counter; counter++; counter > threads)
[21:15:34] <wizardrydragon> {
[21:15:34] <wizardrydragon> response += "[" + channel[count]->toString + "] ";
[21:15:35] <wizardrydragon> }
[21:16:09] <wizardrydragon> And before you saiy threads, threads == num of channels
[21:16:27] <Marzo> for (counter; counter < threads; counter++)
[21:16:45] <Marzo> (I also assumed that you typed a > for a <)
[21:16:59] <wizardrydragon> Ahah
[21:16:59] <Marzo> And I assume that counter already has a sensible value?
[21:17:09] <wizardrydragon> it's inited right before
[21:17:52] <wizardrydragon> Be back in a bit, dinner time.
[21:17:56] <wizardrydragon> Play nice with dragonBot
[21:18:10] * Marzo kicks dragonBot
[21:18:11] <Marzo> :-)
[21:35:28] * dragonBot eats Marzo
[21:35:51] <Marzo> That was an extremelly delayed answer, if I ever saw any
[21:35:59] <wizardrydragon> Pfft.
[21:36:10] <wizardrydragon> I can make the bot do whatever I want from the Bot console.
[21:36:14] <wizardrydragon> I'm back BTW
[21:36:16] <Marzo> 'Fess up, you induced dragonbot to do that
[21:36:21] <Marzo> wb
[21:36:27] <Marzo> brb, ordering pizza
[21:36:48] * dragonBot orders Marzo some pizza.
[21:48:16] <wizardrydragon> OK gonna kill dragonBot to recompile.
[21:48:22] <Marzo> Back
[21:48:29] <-- dragonBot has left IRC ("Rebuilding.")
[21:48:32] <Marzo> What are you adding now?
[21:48:44] <Marzo> Hey, that was a more stylish exit
[21:48:58] <wizardrydragon> The channel list to the diagnose.
[21:49:09] <wizardrydragon> It has a graceful quit and the PANIC button.
[21:49:17] <wizardrydragon> I usually just use the PANIC button. it's easier.
[21:49:24] <Marzo> :-)
[21:54:46] <wizardrydragon> Huh?
[21:54:57] <Marzo> What?
[21:54:59] <wizardrydragon> int count;
[21:54:59] <wizardrydragon> for (count; count < numChannels; count++)
[21:55:06] <wizardrydragon> c:\documents and settings\peter\my documents\visual studio 2005\projects\bot\bot\form1.h(558) : warning C4700: uninitialized local variable 'count' used
[21:55:10] * wizardrydragon twitches
[21:55:12] <Marzo> int count = 0;
[21:55:19] <wizardrydragon> Ah. Right.
[21:55:30] <Marzo> If you don't add it, C++ doesn't initialize it
[21:55:33] * wizardrydragon is used to Pascal defaulting ints to 0.
[21:55:55] <Marzo> It can contain any value which was in the allocated memory region, which can be bad
[21:56:42] <wizardrydragon> Pascal inits as NULL if you dont specify a value, actually.
[21:56:46] <wizardrydragon> Now that I think about it.
[21:59:09] --> dragonBot has joined #tfl
[21:59:09] --- ChanServ gives voice to dragonBot
[21:59:18] <wizardrydragon> !dragonBot diagnose
[21:59:28] <wizardrydragon> No dice.
[21:59:32] <Marzo> lol
[21:59:43] <wizardrydragon> hmm
[21:59:57] <Marzo> Shoot
[22:00:05] <dragonBot> Testing...
[22:00:14] <wizardrydragon> It doesnt seem to be picking up on channel chat.
[22:00:41] <-- dragonBot has left IRC (Remote closed the connection)
[22:01:35] --> dragonBot has joined #tfl
[22:01:36] --- ChanServ gives voice to dragonBot
[22:01:44] <wizardrydragon> !dragonBot diagnose
[22:01:58] <wizardrydragon> Yeah it's definetely not picking up on channel chat for some reason.
[22:02:33] <wizardrydragon> Hi dragonBot
[22:02:34] <dragonBot> Greetings wizardrydragon!
[22:02:38] <wizardrydragon> Hmm
[22:02:39] <Crysta> just about done with the gargoyles
[22:02:48] <wizardrydragon> Why isn't it outputting the text to stdoit then.
[22:03:22] <-- dragonBot has left IRC (Client Quit)
[22:09:37] --> dragonBot has joined #tfl
[22:09:37] --- ChanServ gives voice to dragonBot
[22:10:10] <wizardrydragon> !dragonBot diagnose
[22:10:17] <Crysta> done
[22:11:04] <wizardrydragon> Why doesn't diagnose work? >_<
[22:11:29] <wizardrydragon> !dragonBot diagnose
[22:11:49] <wizardrydragon> !dragonBot diagnose
[22:11:57] --> Kirben has joined #tfl
[22:11:57] --- ChanServ gives voice to Kirben
[22:12:25] <-- dragonBot has left IRC (Read error: 131 (Connection reset by peer))
[22:12:57] <wizardrydragon> Arg
[22:13:05] <wizardrydragon> Seems channel is coming up as undefined in that scope?
[22:13:06] <wizardrydragon> Arg
[22:13:22] <wizardrydragon> (channel == <array>String ^channel; )
[22:13:31] <wizardrydragon> Hi Kirben
[22:13:44] <Kirben> Hi
[22:13:50] <Marzo> Hi
[22:14:09] <Crysta> ........ dammit... stupid photobucket
[22:14:38] <wizardrydragon> Marzo: why would channel be coming up as undefined?
[22:15:03] <Marzo> Need to see more of the code
[22:15:17] <Marzo> (I assume that this is a condition you are checking?)
[22:15:30] <wizardrydragon> #pragma endregion
[22:15:30] <wizardrydragon> [...]
[22:15:30] <wizardrydragon> array<String^> ^channel;
[22:15:45] <wizardrydragon> No, in the debugger it comes up as undefined swhen I step through that section
[22:16:38] <Marzo> Has it been initialized anywhere?
[22:16:58] <wizardrydragon> It should be in the constructor
[22:17:40] <Marzo> Is it defined in the class you are using or in a more primitive class?
[22:17:40] <wizardrydragon> How should I initialize a dynamic array?
[22:17:53] <Marzo> (i.e., are you calling it in a derived class?)
[22:17:59] <wizardrydragon> Its a member of the namespace it's derived in.
[22:18:13] <wizardrydragon> The variable is inited in the namespace's constructor.
[22:18:37] <wizardrydragon> How should I init the dynamic array?
[22:18:43] * wizardrydragon suspects this may be the problem.
[22:18:50] <Marzo> When you declared it, which was the access specifier of the section you declared it in?
[22:18:55] <Marzo> (default is private)
[22:19:07] <wizardrydragon> er, it's in the constructor Marzo.
[22:19:11] <wizardrydragon> Public.
[22:19:33] <Crysta> http://img.photobucket.com/albums/v128/crystaelf/Image17a.gif there
[22:19:49] * Marzo must apologize, but he has no real experience with managed C++; he feels you aren't making sense
[22:19:50] <Crysta> all of the gargoyles fixed, including altered ducking frames that dont look like crap :p
[22:20:22] <wizardrydragon> Crysta: cool.
[22:20:35] <wizardrydragon> Marzo: Constructors asre public by default and convention.
[22:20:49] <wizardrydragon> public:
[22:20:49] <wizardrydragon> Form1(void)
[22:20:49] <wizardrydragon> {
[22:20:49] <wizardrydragon> // constructor
[22:20:51] <wizardrydragon> InitializeComponent();
[22:20:53] <wizardrydragon> line = gcnew ArrayList();
[22:20:54] <Marzo> The constructors are, but variables declared in them aren't
[22:20:55] <wizardrydragon> numThreads = 0;
[22:20:55] <Crysta> uh.. the last set can also be used for zhelkas.. this one is more complete than the last fix i did, as that time i didnt redo those frames
[22:20:57] <wizardrydragon> numChannels = 0;
[22:20:59] <wizardrydragon> array<String^> ^channel;
[22:21:01] <wizardrydragon> }
[22:21:42] <Marzo> Where numThreads and numChannels are declared?
[22:22:12] <wizardrydragon> Er, that doesn't matter right now, they're working, heh.
[22:22:12] <Marzo> brb, pizza is here
[22:22:23] <wizardrydragon> I think it's because channel is an array.
[22:22:28] <Marzo> I would reccomend placing the channel decl there too
[22:22:39] <Marzo> [19:20] Marzo: The constructors are, but variables declared in them aren't
[22:22:49] <wizardrydragon> How would I init the array then?
[22:26:45] <-- ChanServ has left IRC (lem.freenode.net irc.freenode.net)
[22:26:45] <-- Kirben has left IRC (lem.freenode.net irc.freenode.net)
[22:27:04] --> ChanServ has joined #tfl
[22:27:04] --> Kirben has joined #tfl
[22:27:15] <wizardrydragon> Ooh it's never a good thing when chanserv dies.
[22:27:27] <wizardrydragon> Better.
[22:27:27] <Crysta> lol o.O;
[22:27:37] <Marzo> You acn init it in the same way as the other vars
[22:27:41] <Marzo> back, BTW
[22:27:46] <wizardrydragon> Hmm
[22:27:48] <Marzo> *can
[22:28:01] <wizardrydragon> Reading the array documentation in MSDN seems to disagree with you Marzo
[22:28:05] <wizardrydragon> array< MyClass^ >^ local = gcnew array< MyClass^ >(ARRAY_SIZE);
[22:29:02] <Marzo> That is more or less what I meant
[22:29:15] <wizardrydragon> Lol.
[22:29:24] <wizardrydragon> What you said an meant are two different things then :)
[22:29:26] <Marzo> Except for the array< MyClass^ >^ at the start
[22:30:06] <Marzo> 'in thge same way as other vars' == 'in the constructor, initializing it to a sensible value'
[22:30:34] <wizardrydragon> Heh.
[22:30:58] * wizardrydragon sighs
[22:31:08] <wizardrydragon> The code I got from the MSDN doesn't work, heh
[22:31:52] <wizardrydragon> c:\documents and settings\peter\my documents\visual studio 2005\projects\bot\bot\Form1.h(48) : error C2748: managed array creation must have array size or array initializer
[22:32:00] <wizardrydragon> array<String^> ^channel = gcnew array<String^>;
[22:32:28] <Marzo> In the constructor, add the following code:
[22:32:33] <Marzo> ^channel = gcnew array<String^>(0);
[22:32:43] <Marzo> It should init the array with zero elements
[22:33:03] <Marzo> Near where the other vars are declared, put this:
[22:33:03] <wizardrydragon> Hmm.
[22:33:05] <Marzo> array<String^> ^channel;
[22:33:20] <wizardrydragon> Won't that make the array a static array with 0 elements?
[22:33:28] <wizardrydragon> Marzo: done already
[22:33:42] <Marzo> The array is dynamic
[22:34:14] <wizardrydragon> channel[numChannels] = txtChannel->Text->ToString();
[22:34:14] <wizardrydragon> will work, then?
[22:34:19] <Marzo> You can Resize() is to the correct size
[22:35:55] <Marzo> channel->Resize(channel->GetLength()+1);
[22:36:39] <Marzo> channel[channel->GetUpperBound()] = txtChannel->Text->ToString();
[22:37:20] <Marzo> I think it should be GetLength(0)
[22:37:48] <Marzo> And it should be :: instead of ->
[22:37:55] <wizardrydragon> c:\documents and settings\peter\my documents\visual studio 2005\projects\bot\bot\Form1.h(409) : error C2780: 'void System::Array::Resize(cli::array<Type,dimension> ^%,int)' : expects 2 arguments - 1 provided
[22:37:58] <Marzo> For GetLength, Resize
[22:38:29] <Marzo> Indeed: Array::Resize(array, size)
[22:38:48] <Marzo> (must learn to read the docs more carefully :-p)
[22:39:01] <wizardrydragon> Heh
[22:39:08] <Marzo> And it is channel->GetUpperBound
[22:39:15] <Marzo> (at least that hasn't changed)
[22:39:15] <wizardrydragon> c:\documents and settings\peter\my documents\visual studio 2005\projects\bot\bot\Form1.h(409) : error C2660: 'System::Array::GetLength' : function does not take 0 arguments
[22:39:25] <Marzo> [19:37] Marzo: I think it should be GetLength(0)
[22:39:28] <Marzo> :-)
[22:40:01] <Marzo> I must say that M$ make some really bonehead things in this Array class
[22:40:08] <Marzo> Why not base it in the STL vector?
[22:40:20] <wizardrydragon> Not telling me anything I don't already know Marzo.
[22:40:44] <Marzo> GetUpperbound should also have a 0 parameter
[22:41:28] <wizardrydragon> I figured that.
[22:41:36] <Marzo> :-)
[22:43:35] --> dragonBot has joined #tfl
[22:43:36] --- ChanServ gives voice to dragonBot
[22:43:46] <wizardrydragon> !dragonBot diagnostic
[22:43:47] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[22:43:52] <wizardrydragon> Hrm.
[22:44:03] <wizardrydragon> At least the error catching works.
[22:44:18] <Marzo> lol
[22:48:02] <wizardrydragon> :)
[22:49:21] <wizardrydragon> If you're interested in the other side of dragonBot, see http://en.wikipedia.org/wiki/User:DragonBot :D
[22:50:53] <Marzo> Hehe
[22:51:12] <Marzo> You are an honest thief I see :-)
[22:51:23] <wizardrydragon> :D
[22:56:20] <wizardrydragon> Marzo: there's still scope problems with the array
[22:57:03] <Marzo> How so?
[22:57:22] <wizardrydragon> It's coming up as undefined in the debugger when it reaches the diagnose function
[22:58:01] <-- dragonBot has left IRC ("Rebuilding.")
[22:58:06] <Marzo> You moved the declaration to the same place you declared numThreads?
[22:58:12] <wizardrydragon> Just a minute.
[23:00:48] <wizardrydragon> Does C++ have scope identifiers for types?
[23:01:28] <Marzo> Yes
[23:01:46] <wizardrydragon> How would I make a variable have global visibility?
[23:01:47] <Marzo> Are you calling the var from the same class it is defined?
[23:02:08] <wizardrydragon> Im calling it from a method of the namespace in which it is a variable of.
[23:02:26] <wizardrydragon> It is defined in the form namespace, and called by a form function.
[23:02:31] <Marzo> Let me see the code so I can have a clue
[23:02:34] <Marzo> :-)
[23:02:58] <wizardrydragon> Form1(void)
[23:02:58] <wizardrydragon> {
[23:02:58] <wizardrydragon> // constructor
[23:02:58] <wizardrydragon> InitializeComponent();
[23:02:58] <wizardrydragon> line = gcnew ArrayList();
[23:03:00] <wizardrydragon> numThreads = 0;
[23:03:02] <wizardrydragon> numChannels = 0;
[23:03:04] <wizardrydragon> array<String^> ^channel = gcnew array<String^>(0);
[23:03:06] <wizardrydragon> }
[23:03:14] <wizardrydragon> #pragma endregion
[23:03:22] <wizardrydragon> int numChannels;
[23:03:22] <wizardrydragon> int numThreads;
[23:03:22] <wizardrydragon> array<String^> ^channel
[23:03:56] <wizardrydragon> I hope I don't flood off with this, heh
[23:04:03] <wizardrydragon> void Diagnose(String ^text)
[23:04:03] <wizardrydragon> {
[23:04:03] <wizardrydragon> String ^delay = System::Convert::ToString(tmrDelay->Interval);
[23:04:03] <wizardrydragon>
[23:04:03] <wizardrydragon> String ^response = "I am currently working. Connected to: [irc.freenode.net] " +
[23:04:03] <Marzo> Change this:
[23:04:04] <Marzo> array<String^> ^channel = gcnew array<String^>(0);
[23:04:05] <wizardrydragon> "Channels (" + System::Convert::ToString(numChannels) + ") ";
[23:04:07] <Marzo> to this:
[23:04:07] <wizardrydragon>
[23:04:09] <wizardrydragon> if (!channel)
[23:04:11] <wizardrydragon> {
[23:04:11] <Marzo> channel = gcnew array<String^>(0);
[23:04:13] <wizardrydragon> }
[23:04:15] <wizardrydragon> else
[23:04:17] <wizardrydragon> {
[23:04:19] <wizardrydragon> if (numChannels != 0)
[23:04:21] <wizardrydragon> {
[23:04:25] <wizardrydragon> int count = 0;
[23:04:27] <wizardrydragon> for (count; count < numChannels; count++)
[23:04:29] <wizardrydragon> {
[23:04:31] <wizardrydragon> response += "[" + channel[count] + "] ";
[23:04:33] <wizardrydragon> }
[23:04:35] <wizardrydragon> }
[23:04:37] <wizardrydragon> }
[23:04:39] <wizardrydragon>
[23:04:41] <wizardrydragon> response += "Threadcount: [" + System::Convert::ToString(numThreads) + "] Flood delay: [" + delay + "].";
[23:04:44] <wizardrydragon>
[23:04:46] <wizardrydragon> CR(text, txtNickname->Text->ToString() + " [dD]iagnose" , response);
[23:04:48] <wizardrydragon> CR(text, txtNickname->Text->ToString() + " [dD]iagnostic" , response);
[23:04:50] <wizardrydragon> }
[23:06:19] --> dragonBot has joined #tfl
[23:06:19] --- ChanServ gives voice to dragonBot
[23:06:32] <wizardrydragon> Sigh.
[23:06:38] <wizardrydragon> Okay that kind of worked.
[23:07:04] <Marzo> Like I said: replace this:
[23:07:05] <Marzo> array<String^> ^channel = gcnew array<String^>(0);
[23:07:11] <Marzo> with this:
[23:07:11] <wizardrydragon> I did.
[23:07:15] <Marzo> Oh
[23:07:22] <wizardrydragon> That is what kind of worked.
[23:08:02] <Marzo> The thing is that you were declaring a local var (local to the constructor) which was initialized, while the other wasn't
[23:08:12] <Marzo> !dragonBot diagnostic
[23:08:13] <wizardrydragon> !dragonBot diagnose
[23:08:26] <wizardrydragon> It wont come upp imediately. I'm tracing it.
[23:08:48] <wizardrydragon> Huh.
[23:09:01] <wizardrydragon> void Diagnose(String ^text)
[23:09:01] <wizardrydragon> {
[23:09:01] <wizardrydragon> String ^delay = System::Convert::ToString(tmrDelay->Interval);
[23:09:01] <wizardrydragon>
[23:09:02] <wizardrydragon> String ^response = "I am currently working. Connected to: [irc.freenode.net] " +
[23:09:04] <wizardrydragon> "Channels (" + System::Convert::ToString(numChannels) + ") ";
[23:09:06] <wizardrydragon>
[23:09:08] <wizardrydragon> if (!channel)
[23:09:10] <wizardrydragon> {
[23:09:12] <wizardrydragon> }
[23:09:14] <wizardrydragon> else
[23:09:16] <wizardrydragon> {
[23:09:18] <wizardrydragon> if (numChannels != 0)
[23:09:20] <wizardrydragon> {
[23:09:22] <wizardrydragon> int count = 0;
[23:09:24] <wizardrydragon> for (count; count < numChannels; count++)
[23:09:26] <wizardrydragon> {
[23:09:28] <wizardrydragon> response += "[" + channel[count] + "] ";
[23:09:30] <wizardrydragon> }
[23:09:32] <wizardrydragon> }
[23:09:34] <wizardrydragon> }
[23:09:36] <wizardrydragon>
[23:09:38] <wizardrydragon> response += "Threadcount: [" + System::Convert::ToString(numThreads) + "] Flood delay: [" + delay + "].";
[23:09:41] <wizardrydragon>
[23:09:43] <wizardrydragon> CR(text, txtNickname->Text->ToString() + " [dD]iagnose" , response);
[23:09:45] <wizardrydragon> CR(text, txtNickname->Text->ToString() + " [dD]iagnostic" , response);
[23:09:47] <wizardrydragon> }
[23:09:49] <wizardrydragon> it skips over the last response +=
[23:09:51] <wizardrydragon> (the breakpoint never trips)
[23:10:40] <Marzo> What is the CR?
[23:11:24] <wizardrydragon> Something that never trips either
[23:11:36] <wizardrydragon> CR is the regex pattern matcher for the commands.
[23:12:16] <-- dragonBot has left IRC (Connection reset by peer)
[23:12:54] <wizardrydragon> It seems the array isn't getting added to when the bot joins channels
[23:13:19] <wizardrydragon> Applicable code is
[23:13:20] <wizardrydragon> try
[23:13:20] <wizardrydragon> {
[23:13:20] <wizardrydragon> writer->WriteLine ("JOIN " + txtChannel->Text);
[23:13:20] <wizardrydragon> txtStdOut->Text = txtStdOut->Text + "JOIN" + txtChannel->Text + "\r\n";
[23:13:22] <wizardrydragon> writer->Flush();
[23:13:24] <wizardrydragon> numThreads++;
[23:13:26] <wizardrydragon> numChannels++;
[23:13:28] <wizardrydragon> channel->Resize(channel, channel->GetUpperBound(0) + 1);
[23:13:30] <wizardrydragon> channel[numChannels] = txtChannel->Text->ToString();
[23:13:32] <wizardrydragon> }
[23:15:03] <Marzo> Try changinc this:
[23:15:04] <Marzo> channel->Resize(channel, channel->GetUpperBound(0) + 1);
[23:15:07] <Marzo> To this:
[23:15:13] <Marzo> Array::Resize(channel, channel->GetUpperBound(0) + 1);
[23:15:21] <wizardrydragon> Hmm
[23:15:24] <wizardrydragon> Worth a shot
[23:16:27] --> dragonBot has joined #tfl
[23:16:27] --- ChanServ gives voice to dragonBot
[23:16:40] <wizardrydragon> !dragonBot diagnose
[23:16:51] * wizardrydragon sighs.
[23:16:57] <wizardrydragon> !dragonBot commands
[23:17:00] <dragonBot> I currently have the following commands: commands, diagnostic [diagnose], usecode [ucc]
[23:17:09] <wizardrydragon> !dragonBot diagnostic
[23:17:26] <wizardrydragon> Let me put a breakpoint
[23:17:51] <-- dragonBot has left IRC (Client Quit)
[23:21:38] --> dragonBot has joined #tfl
[23:21:38] --- ChanServ gives voice to dragonBot
[23:22:09] <wizardrydragon> Marzo:
[23:22:13] <Marzo> !dragonBot diagnostic
[23:22:19] <Marzo> Yes?
[23:22:25] <wizardrydragon> The reason the loop is failing is the index is out of bounds.
[23:22:48] <Marzo> ?
[23:23:25] <Marzo> This means that the channels aren't getting added to
[23:24:07] <wizardrydragon> in stdout.txt:
[23:24:07] <wizardrydragon> caught exception ex 0x039af844 - Array index out of bounds in function Diagnose
[23:25:14] <wizardrydragon> Code to add to array is
[23:25:15] <wizardrydragon> try
[23:25:15] <wizardrydragon> {
[23:25:15] <wizardrydragon> writer->WriteLine ("JOIN " + txtChannel->Text);
[23:25:15] <wizardrydragon> txtStdOut->Text = txtStdOut->Text + "JOIN" + txtChannel->Text + "\r\n";
[23:25:17] <wizardrydragon> writer->Flush();
[23:25:19] <wizardrydragon> numThreads++;
[23:25:21] <wizardrydragon> numChannels++;
[23:25:23] <wizardrydragon> channel->Resize(channel, channel->GetUpperBound(0) + 1);
[23:25:25] <wizardrydragon> channel[numChannels] = txtChannel->Text->ToString();
[23:25:27] <wizardrydragon> }
[23:25:29] <wizardrydragon> Let me see if it catches an exception
[23:25:31] <Marzo> I know, I still have it
[23:25:44] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) Threadcount: [2] Flood delay: [2000].
[23:26:13] <wizardrydragon> (I made it catch on a no-listing message when it can't get the array to work)
[23:26:25] <wizardrydragon> (It was just paused in the debugger)
[23:31:10] <-- dragonBot has left IRC (Nick collision from services.)
[23:34:55] --> dragonBot has joined #tfl
[23:34:55] --- ChanServ gives voice to dragonBot
[23:35:06] <wizardrydragon> Ahahahahaha
[23:35:19] <Marzo> What?
[23:35:21] <wizardrydragon> It says the array is outta bounds when it tries to resize
[23:35:31] <Marzo> ?
[23:35:44] <wizardrydragon> I told you it'd make a static array >_>
[23:35:56] <-- dragonBot has left IRC (Read error: 131 (Connection reset by peer))
[23:36:25] <Marzo> Ah, I know why
[23:36:27] --> dragonBot has joined #tfl
[23:36:28] --- ChanServ gives voice to dragonBot
[23:36:45] <Marzo> If you replace this:
[23:36:46] <Marzo> numChannels++;
[23:36:46] <Marzo> channel->Resize(channel, channel->GetUpperBound(0) + 1);
[23:36:49] <Marzo> with this:
[23:38:01] <Marzo> numChannels++;
[23:38:01] <Marzo> channel->Resize(channel, numchannels);
[23:38:04] <Marzo> It should work
[23:38:59] <wizardrydragon> I still find it hilarious it said the index was out of bounds when trying to resize an array.
[23:39:32] <Marzo> I think that the GetUpperBound must not be very well written, if it is what I think
[23:39:42] <wizardrydragon> :)
[23:40:55] <Marzo> From what I am seeing, you can initialize an array also with this:
[23:41:15] <-- dragonBot has left IRC (Read error: 131 (Connection reset by peer))
[23:41:17] <Marzo> channel = Array::CreateInstance(String::typeid, size);
[23:41:36] <wizardrydragon> It init's
[23:41:40] <wizardrydragon> It just doesn't resize
[23:41:46] <wizardrydragon> Lemme try it with numChannels
[23:42:09] --> dragonBot has joined #tfl
[23:42:09] --- ChanServ gives voice to dragonBot
[23:42:11] <Marzo> [20:41] Marzo: From what I am seeing, you can initialize an array also with this:
[23:42:51] <wizardrydragon> !dragonBot diagnose
[23:42:52] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) [] Threadcount: [2] Flood delay: [2000].
[23:42:58] <wizardrydragon> Better, kinda
[23:43:06] <wizardrydragon> Now it's not getting the nasme of a channel in there.
[23:43:56] <-- dragonBot has left IRC (Read error: 131 (Connection reset by peer))
[23:44:26] --> dragonBot has joined #tfl
[23:44:27] --- ChanServ gives voice to dragonBot
[23:44:46] <-- dragonBot has left IRC (Read error: 131 (Connection reset by peer))
[23:45:57] --> dragonBot has joined #tfl
[23:45:57] --- ChanServ gives voice to dragonBot
[23:46:23] <wizardrydragon> !dragonBot diagnose
[23:46:24] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) [#tfl] Threadcount: [2] Flood delay: [2000].
[23:46:27] <wizardrydragon> Aha!
[23:48:50] <wizardrydragon> Too bad it doesn't update when it joins another channel >_>;;
[23:48:52] <wizardrydragon> !dragonBot diagnose
[23:48:54] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (1) [#tfl] Threadcount: [2] Flood delay: [2000].
[23:49:11] <Marzo> !tflBot diagnose
[23:49:31] <Marzo> It really doesn't like me :-(
[23:50:05] <-- dragonBot has left IRC (Client Quit)
[23:50:19] <wizardrydragon> It's not tflBot anymore silly
[23:51:24] <Marzo> Oh, right
[23:51:41] <Marzo> !dragonBot diagnose
[23:51:51] <Marzo> Oh, it left...
[23:52:01] --> dragonBot has joined #tfl
[23:52:02] --- ChanServ gives voice to dragonBot
[23:52:17] <wizardrydragon> !dragonBot diagnose
[23:52:19] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (2) [#wikipedia-spam-t] [#tfl] Threadcount: [3] Flood delay: [2000].
[23:52:23] <wizardrydragon> Hah
[23:52:26] <wizardrydragon> Sweet
[23:52:32] <Marzo> :-)
[23:53:19] <Marzo> On other notes, there is actually a bit of documentation now
[23:53:20] <Marzo> http://seventowers.u7feudallands.com/code.php?TITLE_IMAGE=usecodetitle.png&DATAFILE=exult_intrinsics.dat
[23:53:55] <wizardrydragon> So now I'm going to make the TFL functions channel-specific
[23:58:55] <-- dragonBot has left IRC ("Testing quit syntax")