#exult@irc.freenode.net logs for 1 Oct 2012 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:00:55] --- Sevalecan is now known as TheOneAndOnlySev
[00:27:06] --> Kirben has joined #exult
[00:27:07] --- ChanServ gives channel operator status to Kirben
[01:32:21] --- TheOneAndOnlySev is now known as Sevalecan
[08:04:34] --> Rottingbeef has joined #exult
[10:06:59] --> Dominus1 has joined #exult
[10:07:00] <-- Dominus has left IRC (Read error: Connection reset by peer)
[10:07:19] --- ChanServ gives channel operator status to Dominus1
[10:07:19] --- Dominus1 is now known as Dominus
[10:30:16] <-- Matt_O1 has left IRC (Ping timeout: 252 seconds)
[10:35:09] --> Matt_O has joined #exult
[12:14:03] --> TheCycoONE has joined #exult
[13:15:49] --> Dominus1 has joined #exult
[13:15:49] <-- Dominus has left IRC (Read error: Connection reset by peer)
[14:03:58] <-- Kirben has left IRC ()
[14:51:06] --> Marzo has joined #exult
[14:55:57] --> shazza has joined #exult
[15:09:27] --- ChanServ gives channel operator status to Dominus1
[15:09:28] --- Dominus1 is now known as Dominus
[15:11:14] <Dominus> please anyone... http://pastebin.com/6jxFUP3n how do I make read_text_msg_file accept game->get_resource....? Other th<n that tiny detail of loading the autonotes file, it seems to work fine :)
[15:16:24] <wjp> that's a bit annoying to do :-(
[15:17:06] <wjp> first follow defaultkeys' LoadDefaults a bit further
[15:17:32] <wjp> up to and including "if (txt && len > 0)"
[15:18:16] <wjp> then create a BufferDataSource from txt and len with BufferDataSource buf(txt,len);
[15:18:42] <wjp> and then Read_text_msg_file(&buf, auto_text)
[15:33:19] <Dominus> thanks, I'll try this out later, I got as far as taking more from defaultkeys and at least already included u7file.h... :)
[15:33:45] <Dominus> right now got to prepare dinner for the liuttle one...
[15:34:25] <wjp> I can go into some more detail later tonight
[15:35:47] --> Marzo1 has joined #exult
[15:35:48] <-- Marzo has left IRC (Disconnected by services)
[15:51:44] <-- Marzo1 has left IRC (Read error: Connection reset by peer)
[15:51:48] --> Marzo has joined #exult
[15:52:14] <Dominus> thanks, wjp. I'll see where this leads me later tonight and if I get stuck I'll cry for more help. Maybe you can spot some plunders I made in this patch...
[15:52:35] <Dominus> right now I have to go for a bit..
[16:00:49] --> Marzo1 has joined #exult
[16:00:50] <-- Marzo has left IRC (Disconnected by services)
[16:06:40] --> Marzo has joined #exult
[16:06:40] <-- Marzo1 has left IRC (Read error: Connection reset by peer)
[16:24:13] --> Marzo1 has joined #exult
[16:24:14] <-- Marzo has left IRC (Disconnected by services)
[16:30:44] <-- Marzo1 has left IRC (Ping timeout: 248 seconds)
[16:48:32] --> Marzo has joined #exult
[17:22:31] <-- Marzo has left IRC (Ping timeout: 245 seconds)
[17:23:22] --> Marzo has joined #exult
[17:29:47] <-- Marzo has left IRC (Ping timeout: 250 seconds)
[17:34:41] <-- shazza has left IRC (Ping timeout: 255 seconds)
[17:58:14] <-- Dominus has left IRC (Read error: Connection reset by peer)
[17:58:26] --> Dominus has joined #exult
[17:58:26] --- ChanServ gives channel operator status to Dominus
[18:47:12] --> Marzo has joined #exult
[19:54:38] <-- Marzo has left IRC (Ping timeout: 255 seconds)
[20:30:23] --> Dominus1 has joined #exult
[20:30:36] --- ChanServ gives channel operator status to Dominus1
[20:30:36] --- Dominus is now known as Guest76207
[20:30:36] <-- Guest76207 has left IRC (Killed (hubbard.freenode.net (Nickname regained by services)))
[20:30:36] --- Dominus1 is now known as Dominus
[20:35:19] <-- Colourless has left IRC (Ping timeout: 255 seconds)
[20:40:43] --> Colourless has joined #exult
[20:40:44] <-- Colourless has left IRC (Changing host)
[20:40:44] --> Colourless has joined #exult
[20:40:44] --- ChanServ gives channel operator status to Colourless
[20:53:23] <Dominus> wjp, http://pastebin.com/gxUu9snT I tried some variations of this but always get error: use of undeclared identifier 'buf'
[20:53:24] <Dominus> Read_text_msg_file(&buf, auto_text);
[20:54:07] <wjp> you're missing {}'s in the ifs
[20:54:25] <wjp> C++ doesn't use whitespace for determining where the if starts/ends, but {}'s
[20:54:30] <wjp> (whitespace is Python)
[20:57:39] <Dominus> ok, that compiled http://pastebin.com/7mpd5gMq
[20:58:35] <Dominus> I wonder why that works in other parts of the source. For example the defaultkeys part in keys.cc #774 and following...
[20:58:38] <wjp> and then probably a "delete[] txt;" after the Read_text_msg_file
[20:58:54] <Dominus> yeah, I was meaning to ask whether to do this :)
[20:59:21] <wjp> if there are no {}'s it takes just a single statement
[20:59:50] <wjp> so the specific compile error you got was because that was the definition of 'buf' inside the inner if
[20:59:58] <wjp> so that 'buf' didn't exist outside of that inner if
[21:00:11] <Dominus> in the defaultkeys there is a Flush(); in the beginning is this needed, too? And does it need the "ifstream in;" anymore?
[21:00:33] <Dominus> thanks, understanding the if rules now. makes sense
[21:00:55] <wjp> Flush() is a specific function in KeyBinder
[21:01:02] <Dominus> ok
[21:01:24] <Dominus> the delete probably outside of the if buf stuff?
[21:01:58] <wjp> no, all the way inside
[21:02:23] <wjp> well
[21:02:36] <wjp> hm, wonder what txtobj.retrieve does with an empty file
[21:02:55] <wjp> just put it all the way inside
[21:04:07] <Dominus> wow, I just stumbled over something potentially bad
[21:04:16] <Dominus> nothing to do with the autonotes
[21:05:02] <Dominus> when you open the setup in the meain exult menu and you have all four games setup (BG, SI, FoV and SS), Exult will mix the files when starting a game
[21:05:30] <Dominus> Example, I have started Fov but Exult is using fonts.vga of BG
[21:09:46] <wjp> that sounds a bit wrong
[21:10:42] <wjp> but I have to go; good night
[21:10:47] <Dominus> seems that the settings gumps load some stuff and don't release it
[21:10:53] <Dominus> thanks a lot wjp
[21:10:57] <Dominus> good night
[21:22:32] <-- TheCycoONE has left IRC (Quit: And then there were n-1)
[21:26:50] <Dominus> hmm, autonotes working somewhat. Except it only toggles on restarting Exult and doesn't read in files set in the config...
[21:59:19] <Dominus> ah, I see that loading external file needs much more code...
[22:06:54] <-- Rottingbeef has left IRC ()
[22:40:44] <Dominus> colourless that exult doesn't release the game files after setting things up in the main setup is caused by your rework of the settings back in october 2010