#exult@irc.freenode.net logs for 31 Jul 2003 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:06:49] <Fingolfin> https://sourceforge.net/project/shownotes.php?release_id=173048
[00:17:05] <Cahaan> ty
[00:46:45] <-- Fingolfin has left IRC ("42")
[01:04:44] --> Kirben has joined #exult
[01:04:44] --- ChanServ gives channel operator status to Kirben
[01:18:56] --> servus has joined #exult
[01:48:07] <-- Cahaan has left IRC (Read error: 60 (Operation timed out))
[02:12:44] <-- Matt_O has left IRC (Read error: 60 (Operation timed out))
[03:12:24] --> ShadwChsr has joined #exult
[03:35:20] <-- ShadwChsr has left IRC ()
[03:52:54] --> Matt_O has joined #exult
[08:08:24] <-- servus has left IRC (vinge.freenode.net irc.freenode.net)
[08:08:24] <-- DarkeZzz has left IRC (vinge.freenode.net irc.freenode.net)
[08:08:24] <-- Matt_O has left IRC (vinge.freenode.net irc.freenode.net)
[08:08:24] <-- Kirben has left IRC (vinge.freenode.net irc.freenode.net)
[08:08:24] <-- sb-x has left IRC (vinge.freenode.net irc.freenode.net)
[08:08:24] --> Kirben has joined #exult
[08:08:24] --> Matt_O has joined #exult
[08:08:24] --> servus has joined #exult
[08:08:24] --> sb-x has joined #exult
[08:08:24] --> DarkeZzz has joined #exult
[08:13:53] <-- DarkeZzz has left IRC (Read error: 54 (Connection reset by peer))
[08:21:33] --> ShadwChsr has joined #exult
[09:10:10] <-- ShadwChsr has left IRC ()
[10:01:39] <-- servus has left IRC ()
[10:32:10] --- sb-x is now known as sbx|afk
[11:52:57] --> Fingolfin has joined #exult
[11:52:57] --- ChanServ gives channel operator status to Fingolfin
[12:10:27] --> wjp has joined #exult
[12:10:27] --- ChanServ gives channel operator status to wjp
[12:11:22] <-- Fingolfin has left IRC ("42")
[12:37:47] --> curiousis has joined #exult
[13:42:09] <curiousis> Question for when someone who knows is around. What is the 'special' schedule option about?
[13:50:43] --> Colourless has joined #Exult
[13:50:43] --- ChanServ gives channel operator status to Colourless
[13:51:08] <Colourless> hi
[14:08:25] <curiousis> hello
[14:13:14] <curiousis> May I ask you a few Exult Studio questions?
[14:14:02] <Colourless> who?
[14:15:29] <curiousis> you
[14:17:13] <Colourless> me??? i don't know much about it, really. I can't even compile it
[14:18:35] <curiousis> drat
[14:19:15] <Colourless> the person who you really need to talk to is Jeff/DrCode, but he's never here
[14:19:23] <Colourless> of course it depends on the question
[14:21:58] <curiousis> I guess I'll have to get back on the mailing list again. I had gotten sick of being told how to increase my penis diameter by 18 inches, 2 inches is enough for any man
[14:28:15] <Colourless> diameter hey
[14:28:28] <Colourless> i'd pay to see that :-)
[14:32:01] <curiousis> Yes, there's no denying that would be something
[14:41:06] <-- curiousis has left IRC ()
[14:45:10] <wjp> I think I'll go home; bbl
[14:45:18] <-- wjp has left IRC ("bbl")
[15:05:09] --> wjp has joined #exult
[15:05:09] --- ChanServ gives channel operator status to wjp
[15:13:45] --> matto has joined #exult
[15:13:59] <-- Matt_O has left IRC (Read error: 104 (Connection reset by peer))
[16:05:37] --- Colourless is now known as Cless|Away
[16:08:33] <-- Kirben has left IRC ("System Meltdown")
[16:23:17] <-- wjp has left IRC ("Client exiting")
[16:24:28] --> wjp has joined #exult
[16:24:28] --- ChanServ gives channel operator status to wjp
[17:09:19] <wjp> Cless|Away: when you get back, can you reproduce that item description problem from the forum?
[17:12:08] <Cless|Away> yes i can confirm it
[17:13:24] <wjp> very weird
[17:13:35] <wjp> there's not really any difference in handling between npcs/items, AFAICT
[17:13:41] <wjp> can you check if the Text_effect gets created properly?
[17:13:57] <Cless|Away> i will
[17:14:09] <Cless|Away> the strangest thing though when set to win98 mode, it really does work
[17:14:14] <wjp> effects.cc, Effects_manager::add_text(const char*, Game_object*) is probably the easiest function to modify
[17:15:22] <Cless|Away> i'll do it the 'easy' way first (debug build + breakpoints)
[17:15:34] * wjp nods
[17:16:01] <wjp> this really puzzles me
[17:16:27] <wjp> 1) I don't see how NPCs/items are different, 2) I don't see why win98 compatibility mode would make a difference
[17:18:32] <Cless|Away> the text being passed is garbage
[17:19:00] <wjp> interesting
[17:19:14] <wjp> text passed is straight from a call to get_name()
[17:19:44] <wjp> (objnames.cc)
[17:20:09] <Cless|Away> yes, i'm currently running the func step by step
[17:20:17] <wjp> hmm
[17:20:26] <wjp> maybe a string is getting out of scope somewhere
[17:20:43] <wjp> (we're passing a char* to the text effect, and get_name returns a string)
[17:20:56] <Cless|Away> yes i think there is
[17:21:04] <wjp> const char *objname = obj->get_name().c_str();
[17:21:12] <wjp> bingo :-)
[17:21:33] <wjp> (gamewin.cc, around 1950)
[17:21:34] <Cless|Away> the string is local to the string display_name;
[17:21:36] <Cless|Away> string display_name;
[17:21:40] <Cless|Away> is what's returned
[17:22:08] <Cless|Away> but it's return as a string, not a reference
[17:22:24] <wjp> the problem is that the return value goes out of scope immediately after c_str() is called on it
[17:22:35] <Cless|Away> yeah
[17:22:50] <Cless|Away> stepping out of get_name()
[17:22:57] <Cless|Away> did a c_str()
[17:23:12] <wjp> std::string namestr = obj->get_name(); const char *objname = namestr.c_str(); should work better
[17:23:46] * Cless|Away thinks we need a 1.1Beta1-2 release :-)
[17:23:53] <wjp> :-)
[17:23:54] <Cless|Away> this is a 'bad' bug
[17:23:58] <wjp> indeed
[17:24:35] <wjp> luckily it only read from invalid memory (no writing)
[17:25:16] <Cless|Away> it does the basic_string::c_str() thenbasic_string::~basic_string()
[17:25:54] <wjp> it happens in more places in gamewin.cc
[17:26:10] <wjp> this same one a few lines up
[17:26:12] * Cless|Away sighs
[17:26:15] <wjp> and a Game::get_gametitle().c_str()
[17:26:46] <Cless|Away> in some cases it may not matter (if a reference is returned)
[17:27:09] <wjp> no such luck here :-)
[17:27:18] <Cless|Away> yay, item names now show :-)
[17:27:28] <wjp> I'll commit
[17:27:34] <wjp> btw, we're in 2003 now :-)
[17:27:50] <Cless|Away> we are??? :-)
[17:28:01] <wjp> maybe australia is different
[17:28:19] <Cless|Away> is this safe:
[17:28:20] <Cless|Away> std::strncpy(namebuf, Game_object::get_name().c_str(), 16);
[17:28:25] <Cless|Away> in actorio.cc
[17:28:43] <wjp> dinner was ready 5 minutes ago, so I should go :-)
[17:28:52] <wjp> bbl
[17:28:59] <Cless|Away> ok. i'll get back to what i was doing
[17:29:13] <wjp> I'll look through all the c_str() calls when I get back
[17:46:40] --> olivieryk has joined #exult
[18:31:40] --> Cahaan has joined #exult
[18:54:49] --> Fingolfin has joined #exult
[18:54:49] --- ChanServ gives channel operator status to Fingolfin
[18:55:17] <wjp> hi
[18:56:05] <Fingolfin> hi
[19:00:10] <Cahaan> hello
[19:02:07] <wjp> ok, I've been slightly overzealous in getting rid of those things, but this way it won't hurt :-)
[19:10:41] <Cless|Away> :-)
[19:11:40] <Cless|Away> are we going to release again?
[19:13:00] <wjp> duno
[19:13:04] <wjp> s/n/nn/
[19:13:08] <wjp> should we?
[19:13:44] <Cless|Away> well, i think i should re-release win32 at least, since it seemed to be having 'major' issues with the problem
[19:13:46] <-- matto has left IRC (Ping timeout: 14400 seconds)
[19:15:18] <Fingolfin> ?logs
[19:15:18] <exultbot> Logs are available at http://www.math.leidenuniv.nl/~wpalenst/exultlog.php
[19:17:08] <Cahaan> wow realtime logs :P
[19:18:06] * exultbot is spying on you all ;-)
[19:20:18] <Cless|Away> exultbot, you do your job best when you remain quiet
[19:21:24] * exultbot nods glumly
[19:21:40] * exultbot sighs and gets back to writing
[19:22:57] <wjp> Fingolfin: a std::string temporary was going out of scope while we were still using its c_str() value
[19:23:11] <Fingolfin> already read teh logs
[19:23:25] <Fingolfin> the logs, even
[19:33:42] <Cless|Away> i'm off
[19:33:45] <Cless|Away> cya
[19:33:45] <-- Cless|Away has left IRC ("casts invisibility")
[19:49:39] --> Dominus has joined #exult
[19:49:40] --- ChanServ gives channel operator status to Dominus
[19:51:01] <Dominus> hi
[19:52:33] <wjp> hi
[19:53:08] <Dominus> how is the book? :-)
[19:54:21] <wjp> not much happened so far
[20:01:20] <Fingolfin> does the book cover have any information at all about the plot?
[20:01:25] <wjp> none
[20:01:41] <wjp> it has the first couple of paragraphs of chapter 1 on it
[20:02:12] <wjp> I don't know much about the plot either, other than that there are some signs that things are going very wrong
[20:02:24] <wjp> (but that's common at the start of one of these books :-) )
[20:15:30] <Fingolfin> heh
[20:15:39] --> DarkeZzz has joined #exult
[21:02:34] <-- olivieryk has left IRC ()
[21:28:14] <wjp> well, the plot is starting to show itself now
[21:34:27] * Dominus really would like to know but he thinks he can wait for the book...
[21:34:43] * Dominus thinks he should actually order it...
[21:36:31] <-- Dominus has left IRC (vinge.freenode.net irc.freenode.net)
[21:38:24] --> Dominus has joined #exult
[21:38:43] --- ChanServ gives channel operator status to Dominus
[21:58:25] <wjp> time to go; night
[21:58:29] <-- wjp has left IRC ("Zzzz...")
[22:07:24] <Cahaan> which book ??
[22:07:56] <Dominus> new book in the "sword of truth" series
[22:10:00] <Cahaan> oh ok :)
[22:21:06] <-- Dominus has left IRC ("enough for now")
[22:52:04] <-- Fingolfin has left IRC ("42")