#exult@irc.freenode.net logs for 29 Sep 2012 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:19:27] --> Dominus1 has joined #exult
[00:20:48] <-- Dominus has left IRC (Read error: Operation timed out)
[00:21:09] --> Marzo has joined #exult
[01:26:57] <-- eviltar has left IRC (Read error: Connection reset by peer)
[01:27:27] --> eviltar has joined #exult
[02:24:31] <-- Marzo has left IRC (Ping timeout: 246 seconds)
[02:43:31] --> Dominus has joined #exult
[02:43:31] --- ChanServ gives channel operator status to Dominus
[02:43:31] <-- Dominus1 has left IRC (Read error: Connection reset by peer)
[05:03:58] --> Matt_O1 has joined #exult
[05:07:36] <-- Matt_O has left IRC (Ping timeout: 246 seconds)
[10:23:20] <Dominus> next on my agenda, making the autonotes stuff proper. add them to the flex, make an option to turn them on, and adding a path override to the game sections...
[13:35:07] <-- Kirben has left IRC ()
[14:08:44] --> Marzo has joined #exult
[15:06:48] <-- Rottingbeef has left IRC ()
[15:15:14] <-- eviltar has left IRC (Read error: Connection reset by peer)
[15:15:52] --> eviltar has joined #exult
[15:27:27] --> Rottingbeef has joined #exult
[18:50:57] <Dominus> marzo, as I'm looking into adding the autonotes to the flx files I noticed that data/makefile.am lists bg/container.dat for the flx but makefile.common in the root doesn't. bad or not relevant?
[18:51:24] <Marzo> Probably bad
[18:52:16] <Dominus> (same for si/container.dat)
[19:04:06] <-- eviltar has left IRC (Quit: Leaving.)
[19:09:45] <-- sh4rm4 has left IRC (Ping timeout: 276 seconds)
[19:10:12] <Marzo> Dominus: it is bad :-)
[19:14:16] <Dominus> I'll send a fix up then
[19:15:18] --> Eviltar has joined #exult
[19:15:36] <Dominus> I hope I can get the autonotes stuff in. adding it to the flx isn't the big problem but adding the option and then determining form the option whether to use the file from the flx is... :)
[19:15:41] <Dominus> happy hacking...
[19:24:29] --> sh4rm4 has joined #exult
[19:49:03] <Serel> But "Happy hacking" doesn't refer to hacking, it's a term used by Nethack players.... Or I'm sleep deprived and rambling
[20:14:11] --> Dominus1 has joined #exult
[20:16:36] --- ChanServ gives channel operator status to Dominus1
[20:16:36] <-- Dominus has left IRC (Killed (zelazny.freenode.net (Nickname regained by services)))
[20:16:36] --- Dominus1 is now known as Dominus
[20:17:03] <Dominus> serel, in the context it was good enough for everyone to understand I think
[20:33:47] <Dominus> most of the times I seem to be too daft to understand code
[20:34:40] <Dominus> notebook_gump.cc #44 bool Notebook_gump::initialized_auto_text = false;
[20:35:35] <Dominus> so auto_text is false if I understand or does it just check whether it is false or I don't know
[20:37:16] <Dominus> then at the end at #906 it seems initialize_auto_text is always true, it just doesn't read anything in when there is no autotext file in static
[20:39:32] <Dominus> and in that block I understand how it checks for the file but I don't understand how it knows to read that file
[20:40:00] <Dominus> as I wrote, I'm not good at code... :)
[20:40:30] <wjp> did you look at the .h too?
[20:46:46] <Dominus> yes, but no closer to figuring it out :)
[20:48:52] <wjp> what do you want to know exactly?
[20:50:08] <Dominus> sorry I was mostly rambling how I don't understand things. In this case how auto_text knows it needs to read in AUTOTEXT
[20:50:21] <Dominus> aehm AUTONOTES
[20:51:58] <wjp> what do you mean, how it knows?
[20:52:53] <Dominus> at #908 Read_text_msg_file(in, auto_text);
[20:54:07] <wjp> what seems to happen is this:
[20:54:17] <Dominus> I don't see where that knows that it needs to read from the file AUTONOTES (which is defined as static/autonotes.txt in fnames.h or so)
[20:54:33] <wjp> ucinternal calls Notebook_gump::add_gflag_text when a flag is set
[20:55:00] <wjp> add_gflag_text checks if initialized_auto_text has already been set, and if not, calls read_auto_text
[20:55:33] <wjp> read_auto_text sets initialized_auto_text, checks if AUTONOTES exists, and if so reads
[20:55:38] <wjp> it
[20:57:58] <Dominus> so because it is in the same function that read_text_msg knows it reads in AUTONOTES?
[20:58:12] <wjp> no
[20:58:18] <wjp> it's the "in"
[20:58:37] <Dominus> phew... got it.
[20:59:35] <Dominus> as I'm going by the defaultkeys example to add this, I also don't really understand where defaultkeys are read from the flex. I guess the block at keys.cc #774 is the answer, that it first checks for whether there is some exult.cfg entry
[21:00:22] <Dominus> and in bggame.cc it gets added as resource it then reads the flx file?
[21:00:28] <wjp> 774?
[21:01:01] <Dominus> void KeyBinder::LoadDefaults()
[21:03:36] <wjp> yes, the add_resource/get_resource basically stores/gets a reference to a file inside a flex
[21:04:17] <Dominus> great, thanks. I might be able to pull this off after all then :)
[21:05:02] <Dominus> wjp, if you have time can you review http://pastebin.com/qLp0ufnC
[21:05:04] <Dominus> ?
[21:05:23] <Dominus> something other entirely, not that autonotes thing
[21:05:41] <Dominus> my ramblings on that at http://sourceforge.net/tracker/?func=detail&aid=3572527&group_id=2335&atid=302335
[22:00:59] <-- Dominus has left IRC (Quit: Leaving.)
[23:57:38] --> Kirben has joined #exult
[23:57:39] --- ChanServ gives channel operator status to Kirben