#gemrb@irc.freenode.net logs for 5 Aug 2011 (GMT)

Archive Today Yesterday Tomorrow
GemRB homepage

[02:10:16] <-- BaldimerBrandybo has left IRC (Ping timeout: 260 seconds)
[02:10:17] --> Drakkar has joined #gemrb
[02:30:17] --> PixelScum has joined #gemrb
[02:32:42] <-- Drakkar has left IRC (Ping timeout: 240 seconds)
[03:42:18] <-- Demitar has left IRC (Ping timeout: 276 seconds)
[04:33:39] <Maighstir> exit
[04:33:47] <-- Maighstir has left #gemrb
[05:09:51] --> Maighstir has joined #gemrb
[05:10:16] <-- Maighstir has left IRC (Client Quit)
[06:41:15] --> lynxlynxlynx has joined #gemrb
[06:41:15] <-- lynxlynxlynx has left IRC (Changing host)
[06:41:15] --> lynxlynxlynx has joined #gemrb
[06:41:15] --- ChanServ gives channel operator status to lynxlynxlynx
[06:58:18] --> adominguez has joined #gemrb
[07:25:21] --> lubos has joined #gemrb
[07:45:47] --> test32894789234u has joined #gemrb
[08:32:11] --> spike411 has joined #gemrb
[08:33:41] --> Demitar has joined #gemrb
[09:02:31] --> Drakkar has joined #gemrb
[09:03:06] <-- PixelScum has left IRC (Ping timeout: 260 seconds)
[09:36:20] --> Avenger has joined #gemrb
[09:36:31] --- ChanServ gives channel operator status to Avenger
[09:37:34] <Avenger> lynx: if difficulty is less than -25 (i guess this is the easy mode), then all players get +6 luck. I don't know if this is displayed in the character record, though.
[09:37:56] <lynxlynxlynx> woah
[09:38:04] <lynxlynxlynx> +6 is a major bonus
[09:38:12] <lynxlynxlynx> think of all the rolls
[09:38:22] <Avenger> yes
[09:38:27] <Avenger> easy is easy ;)
[09:38:29] <lynxlynxlynx> difficulty as is stored in the config is in the 1-5 range though
[09:38:37] <Avenger> hmm
[09:38:53] <Avenger> -25 included
[09:39:20] <lynxlynxlynx> -25, 0, 25, 50, 75, 100 :)
[09:39:37] <Avenger> yes, i guess that's how it gets converted internally
[09:39:51] <Avenger> but i'll check
[09:42:29] <Avenger> no, there is also -50
[09:42:55] <Avenger> normal is 0
[09:43:10] <Avenger> so far: -50, -25, 0
[09:44:19] <Avenger> oh no, normal is -25 :)
[09:44:56] <Avenger> ok, i go back on the last one...
[09:45:02] <lynxlynxlynx> core 0 etc
[09:46:04] <Avenger> yes core should be 0
[09:46:16] <Avenger> this is basically the raw damage modifier
[09:47:15] <Avenger> in death opcode no chunks if it is <0 too
[09:47:44] <Avenger> and in learn spell, no failure
[09:49:44] <Avenger> -50, -25, 0, 50, 100
[09:52:15] <Kiranos> anyone heard of beholder? would be nice with an updated android version
[09:52:31] <Avenger> no
[09:53:05] <Avenger> i last heard of him just before our new release
[09:56:30] <lynxlynxlynx> i don't know what he's waiting for, maybe he's just out of time currently
[10:02:19] <Kiranos> yes summer and vacation time
[10:14:21] <-- spike411 has left IRC (Quit: Manga & anime pokec na Jabberu: manga.cz@conf.netlab.cz)
[10:22:51] <CIA-26> GemRB: 03lynxlupodian * r0cf7bc63bfef 10gemrb/gemrb/GUIScripts/GUICommon.py: GUICommon: rewrote IsWarrior to be simpler
[10:42:51] <-- lynxlynxlynx has left IRC (Ping timeout: 246 seconds)
[10:44:12] --> lynxlynxlynx has joined #gemrb
[10:44:12] <-- lynxlynxlynx has left IRC (Changing host)
[10:44:12] --> lynxlynxlynx has joined #gemrb
[10:44:12] --- ChanServ gives channel operator status to lynxlynxlynx
[11:02:32] --> HenneNWH has joined #gemrb
[11:19:29] <Kiranos> does gemrb support shadow of the sword coast?
[11:19:37] <Kiranos> cant see any specific issues for it here: http://www.gemrb.org/wiki/doku.php?id=todo
[11:24:47] <Kiranos> I would like to do a marathon :) go from BG1 to SOTSC import to BG2 and do bhaal. but wondering how BG1 to Sotsc work
[11:26:06] <fuzzie> you mean TotSC?
[11:26:14] <Kiranos> yea sorry tales
[11:26:25] <fuzzie> but the bugs for it are under "Baldur's Gate"
[11:26:45] <fuzzie> i don't think any extras..
[11:26:50] <Kiranos> ok great
[11:27:29] <Kiranos> "The westernmost area of Cloakwood (the “third” area) is not selectable on the world map where it is expected to be. It's selection area is over the “second” area."
[11:27:34] <Kiranos> will have to remember this :)
[11:28:02] <Kiranos> "Random encounters are still to tough (too many monsters, the level seems fine)." and this I', worried it will make the playthrough frustrating
[11:29:00] <lynxlynxlynx> ctrl-y is instakill
[11:37:09] <HenneNWH> Hi there. I'm toying a bit with TotSC, too. And the GUI did not response anymore, when I clicked at the map button.
[11:37:10] <HenneNWH> Traceback (most recent call last):
[11:37:10] <HenneNWH> File "/usr/local/share/gemrb/GUIScripts/bg1/GUIMA.py", line 162, in OpenMapWindow
[11:37:10] <HenneNWH> GUICommonWindows.MarkMenuButton (OptionsWindow)
[11:37:10] <HenneNWH> File "/usr/local/share/gemrb/GUIScripts/bg1/GUICommonWindows.py", line 147, in MarkMenuButton
[11:37:10] <HenneNWH> for button in range (9):
[11:37:10] <HenneNWH> TypeError: function takes at least 2 arguments (1 given)
[11:39:17] <lynxlynxlynx> uhh
[11:39:33] <lynxlynxlynx> are you using python 3?
[11:40:07] <HenneNWH> No, python2.6-dev, atm but I could use 2.5 and 2.7 also.
[11:40:51] <fuzzie> i second that 'uhh'
[11:40:52] <lynxlynxlynx> well, range with one argument works for me on 3 too anyway
[11:41:12] <lynxlynxlynx> not that we support python3
[11:41:23] <HenneNWH> :D
[11:41:26] <lynxlynxlynx> python2 -c "print range(4)"
[11:41:34] <lynxlynxlynx> also errors out?
[11:42:13] <HenneNWH> No, that works.
[11:42:14] <fuzzie> seems more likely to be a redefinition
[11:43:06] <lynxlynxlynx> not by us
[11:43:29] <lynxlynxlynx> and we pull only core modules in
[11:44:23] <fuzzie> that really doesn't make much sense
[11:45:36] <fuzzie> maybe it's reporting the wrong error or something
[11:46:51] <lynxlynxlynx> anyway, reload and retry
[11:47:07] <lynxlynxlynx> anytime the gui breaks apart, this is the simple workaround
[11:48:04] <HenneNWH> Okay, thanks.
[11:48:25] <fuzzie> if it's reproducible then please give a recipe
[11:50:44] <HenneNWH> I'll keep my eyes open.
[11:53:20] <HenneNWH> Heres the recipe: Press the map button while quicksaving.
[11:54:49] <fuzzie> did you have an old gemrb installed?
[11:55:43] <HenneNWH> Nope, git from 2 hour ago.
[11:56:02] <fuzzie> i mean, previously
[11:56:48] <Avenger> for button in range (9): <-- functio ntakes at least 2 arguments. Is this some new python version that doesn't let you use one?
[11:56:58] <fuzzie> no
[11:57:03] <HenneNWH> Yes.
[11:57:13] <fuzzie> it is probably an invalid error due to python being confused
[11:57:18] <HenneNWH> I had some git verions before that.
[11:57:42] <fuzzie> which is why i am wondering if HenneNWH had an old gemrb installed and didn't remove it first, and there's old .pyc files lying around, like a GUISAVE.py in bg1/
[12:01:03] --> HenneNWH1 has joined #gemrb
[12:01:51] <-- HenneNWH has left IRC (Ping timeout: 255 seconds)
[12:02:16] <Avenger> so, what is the output of print range(4) ?
[12:02:26] <fuzzie> Avenger: 0,1,2,3, surely
[12:02:33] <Avenger> not you fuzzie :P
[12:03:11] <HenneNWH1> Sry, my WLAN broke down. I did "make uninstall; make install" but the problem is still there.
[12:03:37] <fuzzie> do you have a /usr/local/share/gemrb/GUIScripts/bg2/GUISAVE.py ?
[12:04:03] <fuzzie> Avenger: i know, but maybe you should be more specific about where you want it ;p
[12:04:58] <HenneNWH1> This file is neither in bg1, nor in bg2.
[12:05:08] <fuzzie> asking around, python folks don't seem to have a better suggestion than "you redefined range" (we don't, in any .py) or "your C++ is corrupting python's state"
[12:05:21] <Avenger> meh
[12:05:43] <fuzzie> it's probably something more obvious but i can't run gemrb right now
[12:06:22] <HenneNWH1> FYI, I use gcc 4.6.1
[12:12:21] <HenneNWH1> The same problem occurs here with python2.7-dev
[12:15:27] <Avenger> well, you can try to modify it to range(0,9)
[12:15:52] <Avenger> that would at least comply with the error message ;D
[12:15:53] --> HenneNWH has joined #gemrb
[12:16:21] <-- HenneNWH1 has left IRC (Quit: Leaving.)
[12:18:47] <Avenger> modify it to range(0,9), lets see what python says to that
[12:21:42] <HenneNWH> MarkMenuButton
[12:21:42] <HenneNWH> for button in range (0, 9):
[12:21:42] <HenneNWH> TypeError: function takes at least 2 arguments (1 given)
[12:21:45] <HenneNWH> ???
[12:22:38] <HenneNWH> That was not what I expected.
[12:22:58] <lynxlynxlynx> better than it working
[12:22:59] <fuzzie> that was, however, predictable
[12:23:14] <fuzzie> it is quite possible that python is reporting completely the wrong line
[12:23:53] <fuzzie> in fact, it is probably Avenger's fault
[12:24:07] <Avenger> yeah, usually
[12:24:15] <fuzzie> who has hacked SaveGame() to fail
[12:24:38] <fuzzie> the TypeError is just a delayed exception from SaveGame
[12:26:34] <fuzzie> if that is the case, i don't see an obvious way to fix that, other than splitting SaveGame() into two functions, which is probably how it should be
[12:26:36] <Avenger> so, i need to clear some error state coming from the first parsetuple?
[12:26:48] <fuzzie> well i don't know how it works, so :)
[12:26:59] <Avenger> meh
[12:27:41] <Avenger> PyErr_Clear()
[12:27:53] <Avenger> just add PyErr_Clear() before the second call
[12:28:07] <Avenger> if (!PyArg_ParseTuple( args, "Os|i", &obj, &folder, &Version )) {
[12:28:09] <Avenger> PyErr_Clear();
[12:28:10] <Avenger> if (!PyArg_ParseTuple( args, "i|i", &slot, &Version)) {
[12:28:32] <fuzzie> i think if you do that, you leak the exception
[12:29:36] <fuzzie> hm, other code seems to just do PyErr_Clear
[12:29:39] <fuzzie> so probably that is ok
[12:30:13] <Avenger> we do that elsewhere as well
[12:30:33] <fuzzie> HenneNWH: as Avenger says, try PyErr_Clear(); there, just before gemrb/plugins/GUIScript/GUIScript.cpp line 3953
[12:31:02] <Avenger> thanks for reporting too
[12:31:09] <Avenger> this is a nasty bug
[12:31:11] <fuzzie> Avenger: ah, ok :)
[12:32:23] <HenneNWH> mom
[12:33:05] <HenneNWH> Works perfect! Thank you!
[12:39:22] <fuzzie> Avenger: you apply?
[12:39:42] <Avenger> i'm in windows, but i will if no one did
[12:39:46] <Avenger> in a few hours
[12:39:56] <Avenger> i work on pst overlays :)
[12:50:05] <Avenger> phew, finally, black barbed shield works :)
[12:51:39] <Avenger> fuzzie, what to do with pain mirror
[12:52:32] <fuzzie> just do the same as contingency?
[12:53:10] <Avenger> it should damage the hitter
[12:53:21] <Avenger> the same amount of damage that was caused
[12:53:24] <fuzzie> the hitter should be in the trigger
[12:53:30] <Avenger> the damage isn't
[12:53:32] <fuzzie> oh, ok, that is more difficult :P
[12:53:49] <Avenger> black barbed shield causes 2d6 damage to the hitter, THAT is easy
[12:53:53] <fuzzie> add a new internal trigger maybe
[12:54:21] <Avenger> can't i simply store the damage in hitby
[12:54:58] <fuzzie> if nothing ever checks the param2, sure
[12:55:21] <fuzzie> but i thought a lot of things did check it
[12:55:55] <fuzzie> yeah, they do
[12:55:59] <fuzzie> so you'd have to add a new field
[12:56:03] <lynxlynxlynx> add param3 to the yeah :)
[12:57:00] <lynxlynxlynx> or some shifting hack, since the ids are all over 1000
[12:57:31] <Avenger> well, this won't work
[12:57:51] <Avenger> we already store LastHitter and LastDamageType
[12:57:58] <Avenger> so, why we can't have LastDamage
[12:58:06] <fuzzie> because it doesn't work if you get hit twice in one frame
[12:58:17] <fuzzie> so using them in an effect is weird
[12:58:19] <Avenger> it won't work with LastDamageType either
[12:58:30] <fuzzie> sure, i would prefer to get rid of all of them
[12:58:39] <fuzzie> but i mean, go ahead and add it, it just seems like a hack
[12:59:33] <Avenger> i would be happier with the trigger entry, but it needs like 2 new fields
[13:00:32] <fuzzie> i don't think it is any more expensive to add 2 fields than to add 1 field
[13:01:18] <fuzzie> since it's already 16 bytes
[13:02:47] <Avenger> that is 50% increase :D
[13:03:21] <fuzzie> the allocations are padded anyway
[13:04:02] <Avenger> ok, i will let this sit for a while, skipping to easier overlays
[13:04:20] --> Sindikat has joined #gemrb
[13:04:52] <CIA-26> GemRB: 03avenger_teambg * r999db2604ffd 10gemrb/gemrb/plugins/GUIScript/GUIScript.cpp: GemRB_SaveGame: clear potential python errors
[13:08:08] <-- Sindikat has left #gemrb
[13:09:07] <-- adominguez has left IRC (Quit: Saliendo)
[13:50:32] <-- Avenger has left IRC (Quit: ChatZilla 0.9.87 [Firefox 5.0/20110615151330])
[13:54:07] <HenneNWH> I had a SEGFAULT:Looking up key: m (m)
[13:54:07] <HenneNWH> [KeyMap]: RunFunction(GUIMA::OpenMapWindow)
[13:54:07] <HenneNWH> Program received signal SIGSEGV, Segmentation fault.
[13:54:07] <HenneNWH> 0x00007ffff7b0696c in Interface::CloseCurrentContainer (this=0x602010)
[13:54:07] <HenneNWH> at /home/henne/dev/games/gemrb/gemrb/core/Interface.cpp:4747
[14:01:08] <CIA-26> GemRB: 03avenger_teambg * rb6d5023a05c7 10gemrb/gemrb/ (4 files in 3 dirs):
[14:01:08] <CIA-26> GemRB: PST: implemented shroud of shadows spell
[14:01:08] <CIA-26> GemRB: Projectile: fixed projectiles with no effect in SPL header
[14:10:41] <lynxlynxlynx> when did you press it, during an area move?
[14:11:30] <HenneNWH> I pressed the map button in the Nashkel mine Lvl2 after a fight.
[14:13:11] <lynxlynxlynx> hmm, were you already looting?
[14:13:29] <HenneNWH> I think so.
[14:13:57] <lynxlynxlynx> that would explain the call, but not why it crashed
[14:14:59] <lynxlynxlynx> can you run it in gdb?
[14:15:15] <lynxlynxlynx> i'm in the middle of a session, so can't jump in
[14:15:30] <HenneNWH> I have done that wisely :) Want a bt?
[14:16:57] <HenneNWH> http://pastebin.com/59CxfCNj
[14:21:09] <lynxlynxlynx> i want the null
[14:21:11] <lynxlynxlynx> p CurrentContainer->GetCurrentArea()
[14:21:14] <lynxlynxlynx> if that's not it
[14:21:23] <lynxlynxlynx> CurrentContainer->GetCurrentArea()->TMap
[14:22:37] <HenneNWH> (gdb) print "%p\n", CurrentContainer->GetCurrentArea()
[14:22:37] <HenneNWH> $5 = (Map *) 0x6e6f7261746e6f4d
[14:23:00] <HenneNWH> (gdb) print "%p\n", CurrentContainer->GetCurrentArea()->TMap
[14:23:01] <HenneNWH> Cannot access memory at address 0x6e6f7261746e74c5
[14:23:24] <lynxlynxlynx> corruption
[14:23:30] <lynxlynxlynx> let me see if i can reproduce
[14:23:53] <lynxlynxlynx> turns out i was careless when testing yesterday, so my gdb run was smooth sailing :)
[14:24:59] <lynxlynxlynx> i guess it's your save from the forum
[14:25:30] <lynxlynxlynx> looting the closet nearby or some ground piles and opening the map while doing so causes no problems here
[14:26:14] <lynxlynxlynx> so what exactly are you doing?
[14:34:05] <HenneNWH> I can't remember what I exactly did, but now I'll be more careful when looting.
[14:35:16] <HenneNWH> BTW, I'm using the german version of TOTSC, which should be the newest available datafiles.
[14:38:52] <lynxlynxlynx> ok
[14:39:43] <HenneNWH> Thx, for the bugfix and the patience. CU.
[14:39:51] <-- HenneNWH has left #gemrb
[14:43:26] --- lynxlynxlynx has changed the topic to: GemRB 0.6.5 | http://gemrb.org | Be wary of your words for there are Modron sensors in this channel: http://log.usecode.org/gemrblog.php | Hey <CHARNAME>, we need some awesome screenshots! | import pdb; pdb.set_trace()
[14:58:58] --> barra_home has joined #gemrb
[15:35:01] <-- lubos has left IRC (Quit: Leaving.)
[17:04:25] --> PixelScum has joined #gemrb
[17:07:31] <-- Drakkar has left IRC (Ping timeout: 240 seconds)
[18:41:17] <-- jschall has left IRC (Read error: Connection reset by peer)
[18:41:38] --> jschall has joined #gemrb
[19:02:00] <-- test32894789234u has left #gemrb
[19:46:58] <-- edheldil has left IRC (Ping timeout: 264 seconds)
[20:00:02] --> duckpunch has joined #gemrb
[20:04:56] <-- |Cable| has left IRC (Read error: Connection reset by peer)
[20:06:39] --> |Cable| has joined #gemrb
[21:11:03] <-- duckpunch has left IRC (Read error: Connection reset by peer)
[21:11:31] --> duckpunch has joined #gemrb
[21:15:56] <-- |Cable| has left IRC (Remote host closed the connection)
[21:15:56] --> Avenger has joined #gemrb
[21:16:04] <Avenger> lynx: i can reproduce the container crash with cheatconsole
[21:16:15] <Avenger> go to any container in a non master area
[21:16:18] <Avenger> open container
[21:16:32] <Avenger> then in cheat console: movetoarea("some master area")
[21:16:51] <Avenger> this will unload the area with the container, but won't close the container
[21:17:29] <Avenger> solution is probably trivial :)
[21:21:23] <Avenger> i will fix it
[21:23:33] --> |Cable| has joined #gemrb
[21:29:50] <-- |Cable| has left IRC (Remote host closed the connection)
[21:31:49] --> |Cable| has joined #gemrb
[21:32:38] <CIA-26> GemRB: 03avenger_teambg * r03dcdb845265 10gemrb/gemrb/core/Interface.cpp: cleaned up some old garbage
[21:32:48] <CIA-26> GemRB: 03avenger_teambg * r4ce348776cb5 10gemrb/gemrb/core/Map.cpp: close current container before destructing its owner map
[21:32:54] <Avenger> ok i fixed it, i think
[21:34:02] <Avenger> shit, i added some floattext code :)
[21:36:25] <CIA-26> GemRB: 03avenger_teambg * r1b969bf773e9 10gemrb/gemrb/core/Map.cpp:
[21:36:25] <CIA-26> GemRB: Revert "close current container before destructing its owner map"
[21:36:25] <CIA-26> GemRB: This reverts commit 4ce348776cb5ca7cfbfd5bcdc0f32b26686212b5.
[21:36:36] <CIA-26> GemRB: 03avenger_teambg * r6b622f2f9664 10gemrb/gemrb/core/Interface.cpp:
[21:36:36] <CIA-26> GemRB: Revert "cleaned up some old garbage"
[21:36:36] <CIA-26> GemRB: This reverts commit 03dcdb8452653789f2209b7939aca46174d9672d.
[21:42:12] <CIA-26> GemRB: 03avenger_teambg * raf6cf0d69412 10gemrb/gemrb/core/Map.cpp: close current container before destructing its owner map
[21:43:48] <-- |Cable| has left IRC (Remote host closed the connection)
[21:44:03] <-- duckpunch has left IRC (Read error: Connection reset by peer)
[21:44:07] --> duckpunch has joined #gemrb
[21:45:14] --> |Cable| has joined #gemrb
[21:57:29] <-- Avenger has left IRC (Quit: bye!)
[22:05:32] --> maighstir has joined #gemrb
[22:05:33] <-- maighstir has left IRC (Read error: Connection reset by peer)
[22:06:58] --> maighstir has joined #gemrb
[22:21:21] <-- maighstir has left IRC (Remote host closed the connection)
[22:24:09] <-- barra_home has left IRC (Quit: Verlassend)
[22:54:45] <CIA-26> GemRB: 03avenger_teambg * rc3d2924f440d 10gemrb/gemrb/plugins/PSTOpcodes/PSTOpcodes.cpp: apply tint to some overlay graphics
[23:11:33] <CIA-26> GemRB: 03lynxlupodian * r02778c569c96 10gemrb/gemrb/core/Scriptable/Actor.cpp: fixed the constitution bonus to hp for dual-classed chars
[23:11:33] <lynxlynxlynx> finally done
[23:16:43] <CIA-26> GemRB: 03lynxlupodian * r5ac1504c6278 10gemrb/gemrb/core/Scriptable/ (Actor.cpp Actor.h): moved the hp bonus calculation into its own function
[23:23:44] <-- lynxlynxlynx has left IRC (Ping timeout: 246 seconds)