#exult@irc.freenode.net logs for 21 Jan 2001 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage

[01:25:16] <-- wjp has left IRC ([x]chat)
[01:39:00] --> matt0 has joined #exult
[02:48:48] <-- matt0 has left IRC (I'm too lame to make a quit message)
[02:48:53] --> matt0 has joined #exult
[05:15:09] <-- matt0 has left IRC (I'm too lame to make a quit message)
[12:14:24] --> Colourless has joined #Exult
[13:00:51] --> wjp has joined #exult
[13:01:25] <wjp> hi Ryan
[13:07:31] <Colourless> hi
[13:08:03] <wjp> did you see the "can't equip items" bugreport on SF?
[13:08:16] <Colourless> no.
[13:08:26] <wjp> http://sourceforge.net/bugs/?func=detailbug&bug_id=129577&group_id=2335
[13:08:36] <wjp> a bit weird
[13:08:49] <Colourless> looking now. I expected there to be reports
[13:10:02] <Colourless> hmmm. odd. I'll have a look
[13:13:01] <wjp> copy protection questions... bah...
[13:13:21] <Colourless> :)
[13:13:42] <Colourless> i have memorized most of them by now. especially the SI ones
[13:13:50] <wjp> I need to find my manual :-)
[13:14:14] <wjp> what circle does Create Automata appear in?
[13:14:18] <wjp> 5? 6?
[13:14:19] <Colourless> 6
[13:14:39] <wjp> thanks, that did it :-)
[13:15:45] * wjp watches Thoxa and Karnax fight
[13:16:44] <Colourless> the timing is abit out in the fight
[13:16:53] <wjp> yes, and most FX are missing
[13:17:53] <Colourless> i'm not sure what the problem is with them. Most of the sprites seem to be broken despite the fact I got them to work some months ago
[13:18:51] <wjp> hmm... wasn't Shamino supposed to join me again?
[13:19:35] <Colourless> yes. i know about that, its a usecode related bug. if you want to find him he is at location (0,0)
[13:19:45] <wjp> (0,0)? hehe :-)
[13:19:52] <Colourless> yes.
[13:20:24] <Colourless> of course the Ctrl-Alt-T teleport map cheat doesn't work properly since the corrds are slightly different
[13:20:35] <wjp> yes, map is horribly misaligned
[13:20:49] <wjp> hmm... where'd that sword go?
[13:21:11] <Colourless> things aren't working ?
[13:21:26] <wjp> no, the sword disappears like the bug report says
[13:21:55] <Colourless> now if this thing would finish compiling i could attempt to find the problem.
[13:21:57] <wjp> when I still had the shield in my hand, it went into the backpack when I equipped it,
[13:22:12] <wjp> but when I removed the shield, equipping the sword made it disappear
[13:22:20] <wjp> maybe it goes into the shield position?
[13:22:42] <Colourless> it should still show up
[13:22:50] <wjp> also, rings are drawn in the wrong position
[13:23:00] <Colourless> they are?
[13:23:53] <wjp> on the avatar's left hand it's too high, for the right hand it appears 'outside' of the paperdoll. (like in the original BG)
[13:24:46] <Colourless> hmmm. i'll have to check it out as well. i did have it all drawing properly. sounds like i've messed up an if somewhere
[13:25:00] <wjp> the shield also doesn't want to go on the shield arm, only on the avatar's back
[13:25:16] <wjp> (that did work before the sword disappeared)
[13:27:16] <Colourless> sounds like something to do with the blackgate changes. if there was a way to dump all the items of (like the originals Alt-4) you would probably find the items were all equiped on you
[13:27:43] <wjp> yes, probably
[13:28:00] <Colourless> checking it out now
[13:29:02] <wjp> 'dump all equiped items' might be a useful function for paperdolling debugging, btw
[13:29:49] <Colourless> well before it didn't need debugging. it all worked :)
[13:29:54] <wjp> :-)
[13:32:22] <Colourless> well, there is at least one bug I've found, my gender key doesn't work any more. probably to do with 'polymorphs'
[13:34:19] <Colourless> what did i do :(
[13:53:04] * wjp decides to fix the misaligned map bug
[13:58:01] <Colourless> :)
[14:00:50] <wjp> ok, the edges of the map line up now, but the rest is still horribly wrong
[14:03:24] <Colourless> :) tell me the mistake in the following code
[14:03:25] <wjp> this SI map is really weird
[14:03:25] <Colourless> if (itemtype == -1) itemtype = spot;
[14:03:25] <Colourless>
[14:03:25] <Colourless> Paperdoll_item *item = GetItemInfo (obj->get_shapenum(), obj->get_framenum(), itemtype);
[14:03:25] <Colourless> if (!item || item->frame == -1 || item->shape == -1)
[14:03:25] <Colourless> {
[14:03:27] <Colourless> if (itemtype != -1 || checkspot != -1) return;
[14:03:47] <Colourless> BTW spot is never -1
[14:04:22] <wjp> where in the code is this?
[14:04:51] <wjp> ah, found it
[14:05:14] <Colourless> i should shoot myself for writing that
[14:05:55] <wjp> you want to enter that { } when item->frame == -1?
[14:06:15] <wjp> hmm...
[14:06:23] * wjp tries to figure out what that code is supposed to do
[14:06:49] <Colourless> it attempt to detect if an item has a shape in paperdol.vga
[14:07:50] <Colourless> I messed it up when I thought I was making an improvement.
[14:07:52] <wjp> and itemtype is something like '1-h weapon', 'shield', 'armour' ?
[14:08:01] <Colourless> yeah
[14:08:53] <-- Colourless has left IRC (Apipoussan)
[14:09:11] --> Colourless has joined #Exult
[14:09:16] <Colourless> opps.
[14:09:23] <Colourless> I found the problem and it's fixed
[14:09:44] <wjp> so because of this it doesn't paint the items that don't have a 'ItemInfo'
[14:10:14] <Colourless> that is what ends up happening
[14:10:17] <wjp> (eg. the sword in the left hand)
[14:10:21] <Colourless> yep
[14:11:07] * wjp is wondering what to do about that map
[14:11:50] <Colourless> my mistake was simply setting itemtype to a number that wasn't -1 and then returning if itemtype wasn't -1. :)
[14:12:01] <wjp> yup :-)
[14:14:47] <Colourless> i actually did the same thing twice as the code to detect if a shape was clicked on is almost exactly the ame
[14:14:51] <Colourless> same even
[14:15:42] <wjp> hm... I can't open this bag
[14:16:23] <wjp> oh, must be because it was generated by a teleport storm
[14:17:25] <Colourless> sounds like a bug to me
[14:17:59] <wjp> the 'create item' code probably doesn't generate containers properly
[14:18:09] <Colourless> yeah probably.
[14:18:46] <Colourless> i can tell you why the sword wouldn't equip. after the teleport storm you hold the pumice in your righthand.
[14:18:51] * wjp runs into that Giants' football field
[14:19:11] <wjp> ah, I see
[14:19:46] <Colourless> or don't as the case may be
[14:20:18] <wjp> lol :-)
[14:21:03] <Colourless> you are saying there is a problem with rings?
[14:21:28] <wjp> yes
[14:21:54] <Colourless> so there is
[14:23:39] * wjp shifts entire map ten pixels left
[14:28:34] * wjp scales map
[14:28:52] <Colourless> :)
[14:29:13] * wjp is lost
[14:29:24] <Colourless> what exactly is the problem with the map?
[14:29:44] <wjp> it's not simply the game-world scaled down to map-size
[14:30:00] <Colourless> oh, you mean that problem :)
[14:30:13] <Colourless> the map isn't accurate.
[14:30:47] <Colourless> the person in game who gives you the map says so
[14:30:50] <wjp> yes, but other than that, it's also shifted and scaled a bit
[14:32:22] <wjp> the southern part of the map now matches pretty good
[14:33:30] <wjp> when you teleport to a spot, you now arrive within one screen of it
[14:33:37] <wjp> which is a lot better than it was at first :-)
[14:33:59] <Colourless> lots of tricks were used in SI
[14:34:09] <wjp> yup :-)
[14:35:28] <Colourless> I remember using the original map teleport cheat and being able to teleport to the edge of the map and still being able to walk quite a distance further
[14:37:01] <wjp> true
[14:37:45] <wjp> ok, Fawn bridge is working
[14:38:11] <wjp> far southeast point of Monitor's continent is working
[14:38:23] <wjp> far SE point of moonglow ok
[14:40:14] <Colourless> fixed the rings problem. I'm commiting the fixes for both
[14:42:39] <wjp> ok, I'll commit the map fix after that
[14:48:46] <Colourless> ok
[14:53:07] <wjp> hmm.. there's two unknown intrinsics in the part where Shamino is teleported away
[14:53:38] <Colourless> one of them gets the location to go to
[14:53:49] <wjp> yes
[14:54:03] <wjp> both are called with Shamino as a parameter too
[14:58:03] <Colourless> i find it strange how exult can run with so many intrinsics unknown and things don't crash
[14:58:45] <wjp> yes, it's pretty weird
[15:08:31] <Colourless> you know the new 'game pauses when not in focus' feature that was added, is there a way to disable it?
[15:10:15] <wjp> hmm... dunno
[15:10:51] <wjp> before it was added Exult acted really weird when it went out of focus, though
[15:11:22] <Colourless> what did it do, i never had any problems here
[15:12:58] <wjp> dozens of events piled up without the graphics updating
[15:13:06] <wjp> really weird
[15:14:24] <wjp> in the intro speech between Iolo and Petre (?) for instance, it would cause them to finish their entire speech at once, with all the text piled up
[15:17:06] <Colourless> sounds like exult was getting stuck somewhere
[15:18:28] <wjp> yes, maybe SDL stopped processing events or something like that
[15:19:39] <Colourless> oh well, it doesn't really matter.
[15:23:58] <Colourless> exult doesn't seem to be detecting alt, ctrl and shift properly. after changing resolutions the keys 'stick
[15:24:52] <wjp> all of them?
[15:25:22] <wjp> why do I get "test" messages when releasing a key in the exult menu?
[15:25:54] <Colourless> that didn't come out right. the alt key stick after changing resolutions.
[15:26:07] <Colourless> i have no idea about the test message
[15:26:22] <Colourless> the alt key also stick with other things as well.
[15:26:37] <Colourless> i don't think there is a problem with shift and ctrl
[15:27:06] <wjp> Exult handles alt itself partly, instead of relying on SDL
[15:27:14] <wjp> although I've never managed to figure out why
[15:28:36] <wjp> ok, when switching resolutions in fullscreen mode alt sticks for me too
[15:31:50] <Colourless> i have no idea what is actually going on with the alt detection code
[15:33:01] <wjp> try removing the "|| altkeys" in exult.cc, line 751
[15:42:25] <wjp> doesn't work... bah
[15:43:01] <wjp> apparently, SDL has a problem with its modifier keys state
[15:44:42] <Colourless> didn't do anything here either
[15:53:41] <-- wjp has left IRC (Ping timeout for wjp[2dyn142.ogt.casema.net])
[15:56:05] --> wjp has joined #exult
[15:56:22] <wjp> well... that was interesting
[15:56:41] <Colourless> care to explain
[15:57:06] <wjp> my brother has a friend over, who apparently thought it was a good idea to sit with his knee against our router's power switch
[15:57:10] <wjp> guess what happened ;-)
[15:57:27] <Colourless> i don't think a guess is required
[15:57:51] <wjp> :-)
[15:58:08] <wjp> did I miss anything?
[15:58:26] <Colourless> no
[15:59:06] <wjp> I'm constructing a small SDL demo program to see if I can duplicate the stuck alt key
[15:59:24] <Colourless> ok
[16:08:02] --> Cless has joined #Exult
[16:09:25] <-- Colourless has left IRC (Ping timeout for Colourless[ppp446.adelaide.on.net.au])
[16:09:54] --- Cless is now known as Colourless
[16:10:05] <wjp> wb
[16:10:28] <Colourless> i wasn't exactly gone for long
[16:10:33] <Colourless> less than a minute
[16:10:35] <wjp> :-)
[16:16:23] <wjp> ok, reproducible in a 50 line program
[16:16:34] <Colourless> :)
[16:19:58] <wjp> could you try it? URL is http://www.math.leidenuniv.nl/~wpalenst/modkeys.c
[16:20:19] <Colourless> sure
[16:21:22] <wjp> when you run it, it'll create a fullscreen 640x480 window
[16:22:01] <wjp> when you press a key, it'll show a little white square for each modifier key that has been pressed. (from left to right: shift, alt, ctrl)
[16:22:26] <wjp> press 'a' (with any modifiers) and it'll resize the surface (works just once)
[16:22:30] <wjp> press 'q' and it quits
[16:22:47] <Colourless> ok
[16:23:25] <wjp> when I press 'alt-a' to resize, and then press b, it reports alt is still down
[16:24:35] <wjp> (same for 'ctrl-alt-shift-a')
[16:32:56] <-- wjp has left IRC (Ping timeout for wjp[1dyn47.ogt.casema.net])
[16:40:15] --> wjp has joined #exult
[16:40:53] <wjp> nooooo.... he did it _again_
[16:41:02] <Colourless> :)
[16:41:49] <wjp> I need to get xchat to recognize it's been disconnected
[16:44:09] <wjp> anyway, it seems that the stuck keys I get in modkeys.c isn't SDL's program, but X's
[16:44:41] <wjp> when X changes resolution, it resets all key states to 'not pressed', even if they're actually pressed
[16:45:55] <Colourless> the program acts strange
[16:46:34] <Colourless> actually it acts fine.
[16:46:35] <wjp> strange?
[16:46:46] <Colourless> my alt always gets stuck after a key combination
[16:47:25] <wjp> in modkeys.c?
[16:48:39] <Colourless> yes
[16:48:43] <wjp> (it only updates the squares on a KEYDOWN, btw)
[16:48:52] <Colourless> i noticed
[16:49:07] <Colourless> that was the 'strange' behaviour
[16:49:34] <wjp> so alt doesn't get stuck?
[16:51:20] <Colourless> no it doesn't
[16:52:17] <wjp> hmmm... so that leaves a bug in Exult
[16:52:57] <Colourless> it seems like it
[16:57:20] <wjp> when you change the resolution, causing the mouse to leave exult's window, alt gets stuck
[16:58:01] <wjp> same goes for shift and ctrl
[16:58:16] <Colourless> alt also becomes stuck with the sound tester Alt-1
[16:58:35] <Colourless> Do Alt-1, then press Escape to leave it and Alt is stuck
[16:59:03] <wjp> do you have the "|| altkeys" in or out?
[16:59:49] <wjp> (I have removed it and the soundtester works ok)
[17:00:04] <Colourless> i'll check
[17:05:55] <Colourless> that seems to have fixed it
[17:06:08] <Colourless> still stick on res changes thogh
[17:08:04] <wjp> you're running in a window, right?
[17:08:56] <Colourless> yes
[17:09:32] <wjp> does Exult lose focus on a res. change?
[17:10:16] <Colourless> not as far as I can tell
[17:10:55] <wjp> I only have a problem when the mouse leaves the window because of the resize
[17:13:07] <Colourless> i've no idea.
[17:13:46] <wjp> I'm trying to expand modkeys.c to get it to produce the same bug
[17:14:15] <wjp> but I'm not having that much luck :-(
[17:20:30] <wjp> oops, there was kind of a big bug in modkeys.c :-)
[17:20:38] * wjp is very ashamed
[17:20:47] <Colourless> oh no
[17:21:24] <wjp> (when there were no events on the queue, it kept on processing the last one)
[17:22:03] <Colourless> big bug alright
[17:23:14] <wjp> although it shouldn't have had any effects on the results
[17:23:54] <wjp> (you can fix it by replacing 'SDL_PollEvent(&event);' with 'while (!SDL_PollEvent(&event));'
[17:24:45] <Colourless> exult seems to work well enough except for on Res Changes. I wonder if it's purely an alt thing? What would happen if you changed the res change to a Ctrl key combination. WOuld Ctrl get stuck as well?
[17:24:59] <wjp> yes, ctrl and shift get stuck too
[17:25:26] <wjp> (on my system they do, anyway)
[17:26:09] <wjp> I removed all modifier checking from the res.change keys, so it now changes on any key combination containing '+' or '-'
[17:27:40] <wjp> ok, modkeys.c now seems to reproduce the stuck key in windowed mode
[17:28:00] <Colourless> SDL problem?
[17:28:06] <wjp> probably, yes
[17:28:58] <wjp> maybe an X limitation
[17:29:05] <Colourless> i'm using Win32
[17:29:15] <wjp> I know, but it does act differently there
[17:29:27] <Colourless> but still acts wrong
[17:31:27] <wjp> could you try the new modkeys.c? (same URL)
[17:32:03] <Colourless> sure
[17:33:13] <Colourless> keys?
[17:33:38] <wjp> same
[17:34:01] <wjp> when I press alt-a to resize, and that causes the mouse to leave the window, alt gets stuck
[17:34:28] <wjp> (shift and ctrl too)
[17:36:31] <Colourless> interesting. if the program loses focus, the keys reset.
[17:36:47] <Colourless> yse, it was the same
[17:38:26] <wjp> the same as Exult?
[17:40:43] <Colourless> yes, exult acts the same
[17:41:12] <wjp> looks like an SDL bug then :-(
[17:42:39] <wjp> I have to go eat. bbl
[17:42:42] --- wjp is now known as wjp|dinner
[17:42:46] <Colourless> ok
[18:11:01] <Colourless> i'm off to bed
[18:11:16] <-- Colourless has left IRC (sleep)
[18:15:44] --- wjp|dinner is now known as wjp
[19:59:12] --> Fingolfin has joined #exult
[19:59:56] <Fingolfin> BOO
[20:14:33] * wjp is watching tv... back in 15 mins.
[20:16:54] <Fingolfin> sure
[20:16:56] <Fingolfin> ;)
[20:32:22] <wjp> b
[20:37:12] <Fingolfin> wb
[21:06:29] <-- Fingolfin has left IRC (Read error to Fingolfin[p3EE22545.dip.t-dialin.net]: Connection reset by peer)
[21:08:31] --> Fingolfin has joined #exult
[21:11:36] <Fingolfin> brb, gotta reboot
[21:11:36] <-- Fingolfin has left IRC (42)
[21:20:11] --> Fingolfin has joined #exult
[22:44:05] * wjp is writing yet another weekly homepage update
[22:44:12] <wjp> (wasn't Dancer supposed to do that? ;-) )
[22:45:57] <wjp> Not being satisfied with just having paperdolls in SI, Ryan has added paperdolling support to the Black Gate! We do, however, need art for the BG items/character not present in SI. If you're interested, please contact us.
[22:46:06] <wjp> sounds ok?
[22:48:12] <Fingolfin> hm
[22:48:18] <Fingolfin> lemme read it ;)
[22:48:27] <Fingolfin> sounds good
[22:48:32] <Fingolfin> actually..
[22:48:45] <Fingolfin> maybe we should post this "looking for artists" on jackchaos
[22:48:58] <Fingolfin> and also we might want to post a job at sourceforge
[22:49:25] <wjp> might be a good idea
[22:49:48] <wjp> better let Ryan do it, though. He knows exactly what we need :-)
[22:50:01] <Fingolfin> sure
[22:50:14] <Fingolfin> write an email to the ml telling ryan to do all the work ;)
[22:50:22] <wjp> hehe :-)
[22:51:17] <wjp> ok, another update done
[22:51:36] <wjp> almost 20K hits, btw
[22:53:19] <Fingolfin> nice
[22:53:26] <Fingolfin> nice
[22:53:27] <Fingolfin> argh
[22:53:30] <wjp> nice
[22:53:31] <wjp> nice
[22:53:32] <wjp> :-)
[22:53:45] <wjp> anyway, I have to go to bed
[22:53:58] <Fingolfin> sure
[22:53:58] <wjp> (HH's guide is really great, btw!)
[22:53:59] <Fingolfin> cya
[22:54:03] <wjp> g'night
[22:54:04] <Fingolfin> I know !!!!
[22:54:08] <Fingolfin> night
[22:54:13] <-- wjp has left IRC ([x]chat)
[23:02:23] <-- Fingolfin has left IRC (42)