#gemrb@irc.freenode.net logs for 29 Sep 2010 (GMT)

Archive Today Yesterday Tomorrow
GemRB homepage


[00:04:18] <-- edheldil_ has left IRC (Ping timeout: 245 seconds)
[02:31:57] --> raevol has joined #GemRb
[05:45:32] <-- raevol has left IRC (Quit: Leaving.)
[06:36:39] --> spike411 has joined #GemRb
[07:40:48] <-- |Cable| has left IRC (Remote host closed the connection)
[08:04:38] --> lubos has joined #GemRb
[09:11:05] --> SiENcE has joined #GemRb
[13:58:48] <-- spike411 has left IRC (Quit: Manga & anime pokec na Jabberu: manga.cz@conf.netlab.cz)
[14:58:50] --> lynxlynxlynx has joined #GemRb
[14:58:50] --- ChanServ gives channel operator status to lynxlynxlynx
[15:40:06] --> Maighstir has joined #GemRb
[15:47:18] <-- lubos has left IRC (Quit: Leaving.)
[16:51:01] <-- SiENcE has left IRC (Quit: @all: cya)
[17:37:21] --> Avenger has joined #GemRb
[17:37:21] --- ChanServ gives channel operator status to Avenger
[17:37:28] <Avenger> hi
[17:44:02] --> spike411 has joined #GemRb
[18:10:00] --> edheldil_ has joined #GemRb
[18:22:38] <-- tomprince has left IRC (Ping timeout: 245 seconds)
[18:28:36] <-- edheldil_ has left IRC (Ping timeout: 265 seconds)
[18:33:33] --> tomprince has joined #GemRb
[18:42:08] <lynxlynxlynx> oj
[18:42:22] <lynxlynxlynx> questions for you avenger
[18:42:35] <Avenger> sure
[18:43:34] <lynxlynxlynx> is IE_INV_ITEM_EQUIPPED meant to be true only for equipped weapons or also for other gear?
[18:44:38] <lynxlynxlynx> my understanging is that it is
[18:45:36] <lynxlynxlynx> we set it only in SetEquippedSlot, but that deals mostly with weapons
[18:46:45] <Avenger> yes
[18:46:56] <Avenger> equipped should be cleared when you drop the weapon, that's good
[18:48:33] <lynxlynxlynx> i fixed that :)
[18:48:33] <Avenger> for weapons, it should be set only for the equipped slot, as you said
[18:48:50] <Avenger> actually stealing should check this flag
[18:49:00] <Avenger> it is cheaper :)
[18:49:13] <Avenger> or both
[18:49:13] <lynxlynxlynx> next is bashing
[18:49:27] <lynxlynxlynx> a whole lot of confusion here, but let's start with something simple
[18:49:57] <lynxlynxlynx> http://pastebin.ca/1951276 <-- since we do our bashing elsewhere, i thought of just modifying the action to call that code directly
[18:50:29] <Avenger> hmm waiting for pastebin
[18:50:47] <Avenger> ok, loaded
[18:51:09] <Avenger> well, bash is only for livings, that's correct
[18:51:14] <lynxlynxlynx> not tested at all, just wanted to know if you want the code to move out of attackcore
[18:51:52] <Avenger> hmm, bash doesn't really 'attack' the door
[18:51:57] <lynxlynxlynx> (the action is not used by any game resource)
[18:52:04] <fuzzie> what does the original engine do?
[18:52:19] <Avenger> the original calculates a bend_bars value
[18:52:35] <Avenger> compares it against the lock removal chance
[18:52:39] <Avenger> it is more like a pick lock
[18:52:41] <fuzzie> if you get a BashDoor action when you bash a door in the GUI, and it does the work in the action, we should do the same
[18:52:56] <Avenger> yes it does that
[18:53:01] <fuzzie> but i couldn't work out anything from the action disasm
[18:53:05] <lynxlynxlynx> http://pastebin.ca/1951278 <-- something like this? :)
[18:53:08] <Avenger> the gui runs the BashDoor action
[18:53:38] <fuzzie> is it really hardcoded to some pixel number?
[18:53:54] <fuzzie> oh right, the 1024 thing maybe
[18:53:54] <Avenger> 100 difficulty means impossible, yes
[18:54:11] <Avenger> that code is much closer to what i read in IE
[18:54:13] <fuzzie> lynxlynxlynx: use SquaredMapDistance
[18:54:14] <lynxlynxlynx> yes, we have that elsewhere, you just didn't mention it the other day, so i put a mark there
[18:54:22] <fuzzie> oh, no
[18:54:38] <fuzzie> hum, we didn't finish impementing the squared dist code?
[18:55:20] <Avenger> fuzzie, not all variations exist
[18:55:22] <Avenger> but some do
[18:55:49] <fuzzie> i was trying to look at the disasm the other day to see which triggers get added, i guess
[18:56:35] <fuzzie> but i leave this all in lynx's capabe hands since i am not so coherent
[18:56:45] <Avenger> still feeling ill?
[18:57:24] <Lightkey> lynxlynxlynx: did you just buy a t-shirt?
[18:57:32] <fuzzie> well: i am well enough to attend lectures, but not well enough to understand them :P
[18:57:44] <fuzzie> but an improvement
[18:57:52] <lynxlynxlynx> Lightkey: just as in right now?
[18:58:10] <lynxlynxlynx> fuzzie: ouch
[18:58:33] <Lightkey> or today, dunno from when the data for this thingamabob is ;-)
[18:58:45] <Lightkey> http://de.threadless.com/everywhere#
[18:58:54] <lynxlynxlynx> no
[18:59:42] <fuzzie> Avenger: but do you have some list of triggers which would make it easier to decode the disasm, maybe?
[18:59:54] <fuzzie> rather than having to ask you about everything
[19:00:06] <Avenger> i have a list of trigger addresses
[19:00:17] <Avenger> which ones you want to know
[19:00:31] <fuzzie> well, i wanted to know whether failing to bash a door ran any trigger
[19:01:06] <Avenger> that is in the bashdoor action
[19:01:18] <fuzzie> but i don't know if that is important, i just went to look at the action and realised it was useless to me
[19:01:29] <fuzzie> since it all seems to use addresses and not trigger ids
[19:01:43] <Avenger> the code starts at 0094C737
[19:02:17] <Avenger> this one when it succeeds: 0094CEF5 66 8B 0D 16 5F AA 00 mov cx,word ptr ds:[0AA5F16h] ;;0x57 Unlocked
[19:03:26] <Avenger> sadly my textfiles don't contain all the comments
[19:03:37] <fuzzie> but there's also a 0AA5F28 in there
[19:03:53] <Avenger> yes, that should be another trigger constant
[19:04:12] <Avenger> you don't look at it with ida, i guess?
[19:04:28] <Avenger> ;;0x60 PickLockFailed(O:Object*)
[19:04:59] <Avenger> i got that one commented in PickLock ;)
[19:05:17] <fuzzie> ah, i guess i should look for your comments :)
[19:05:47] <fuzzie> but ok, that one is useful
[19:06:20] <Avenger> i will send you the ida disasm of it next time
[19:06:38] <Avenger> it almost looks like C code now :P
[19:06:41] <fuzzie> well, i don't think any of it is important, unless lynx needs to know something
[19:06:57] <fuzzie> i just wondered if i could usefully decode some stuff myself
[19:07:33] <lynxlynxlynx> not yet, i want to fix the obvious stuff first
[19:07:37] <Avenger> i could export my structure definitions, or send you the whole 100M ?
[19:07:45] <lynxlynxlynx> like the trap launching
[19:07:57] <fuzzie> Avenger: maybe i'll ask you when i'm well again? :)
[19:08:01] <Avenger> ok
[19:08:41] <lynxlynxlynx> ok, to the most confusing bit - Highlightable::TriggerTrap
[19:09:19] <lynxlynxlynx> first, neither me or fuzzie know why it does the CanDetectTrap check (i certainly don't remember it from any game)
[19:10:07] <lynxlynxlynx> but even with that commented out, i can't make failed bashes to trigger traps by calling it
[19:10:11] <fuzzie> well, i think the bit Avenger added was the skill check and the SetTrapDetected(1);
[19:10:14] <lynxlynxlynx> nothing happens at all
[19:10:43] <fuzzie> and the trap scripts only check for Entered and Opened
[19:10:55] <lynxlynxlynx> if iwd2 has this as part of improved evasion or something, it should be properly ifdefed
[19:11:14] <fuzzie> and so if the only other trigger in BashDoor is PickLockFailed, it would be pretty strange if the trap scripts were meant to run..
[19:11:15] <lynxlynxlynx> oh, right
[19:11:40] <fuzzie> so this is why i thought it might be useful to confirm that
[19:11:55] <Avenger> well, try to bash the trapped container in bg2's beginning
[19:12:14] <Avenger> i guess the trap triggers only after you 'open' the container
[19:12:37] <Avenger> it is possible to write traps that trigger on picklockfailed
[19:13:00] <Avenger> i'll be back a little later
[19:13:01] <-- Avenger has left IRC (Quit: bye!)
[19:13:04] <lynxlynxlynx> good, then this is not an issue
[19:13:07] <fuzzie> drat :)
[19:24:01] <lynxlynxlynx> oh, except that wierd check
[19:35:25] <-- Maighstir has left IRC (Quit: ~ Trillian Astra - www.trillian.im ~)
[19:38:26] --> Maighstir has joined #GemRb
[19:47:38] <lynxlynxlynx> fuzzie: what bothered you wrt SquaredMapDistance?
[19:50:23] <fuzzie> it's not the right one, i thought at a glance
[19:50:27] <fuzzie> it has to be SquaredPersonalDistance?
[19:51:06] <lynxlynxlynx> just a squared/onrooted PersonalDistance?
[19:51:34] <fuzzie> yes, so i guess you could just do that by subtracting size*100 instead
[19:52:04] <lynxlynxlynx> *10
[19:52:15] <lynxlynxlynx> ah
[19:52:16] <lynxlynxlynx> hehe
[19:52:43] <fuzzie> would be useful to add, if you feel like doing it
[19:53:14] <fuzzie> i'm just surprised we didn't do it with the other ones
[19:53:35] <lynxlynxlynx> currently we do the size adjustment after sqrt btw
[19:54:40] <lynxlynxlynx> ok, i can do that
[19:55:30] <fuzzie> i think the original engine doesn't use sqrt versions at all
[20:05:04] --> Avenger has joined #GemRb
[20:05:04] --- ChanServ gives channel operator status to Avenger
[20:05:08] <Avenger> fuzzie: http://pastebin.com/NFA1KgEv
[20:07:09] <-- Avenger has left IRC (Client Quit)
[20:13:52] <fuzzie> hehe, 'consTrigger'
[20:18:19] <fuzzie> ok, so the only skill check i see in there is the ==100 one
[20:23:37] <fuzzie> and i guess DOOR_16 is DOOR_BROKEN, then
[20:31:41] --> SiENcE has joined #GemRb
[20:32:57] <Lightkey> SiENcE: http://www.devmania.org/programm/vortrag-linux-handheld-entwicklung-dingoo-caanoo/ is that you?
[20:33:57] <SiENcE> yep
[20:34:11] <SiENcE> i though, handheld are interesting
[20:38:03] <Lightkey> well, we will see on saturday :-)
[20:40:19] <SiENcE> its not that much
[20:41:02] <SiENcE> just present dingoo and caanoo, run gemrb + iwd or bg on dingoo and show some other apps. than i tell how to use the toochain and port some app
[21:43:54] <-- Maighstir has left IRC (Quit: ~ Trillian Astra - www.trillian.im ~)
[22:26:51] <-- tomprince has left IRC (Remote host closed the connection)
[22:28:46] --> tomprince has joined #GemRb
[22:33:39] <-- lynxlynxlynx has left IRC (Remote host closed the connection)
[22:40:30] --> |Cable| has joined #GemRb
[22:41:25] <-- SiENcE has left IRC (Quit: cya @all)
[22:54:54] <-- tomprince has left IRC (Quit: tomprince)
[22:56:19] --> tomprince has joined #GemRb
[22:59:21] <-- tomprince has left IRC (Client Quit)
[23:00:55] --> tomprince has joined #GemRb