#exult@irc.freenode.net logs for 17 Jun 2001 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage

[00:57:24] --> Noth has joined #exult
[01:14:59] <-- Noth has left IRC ()
[01:16:30] --> Kirben has joined #exult
[03:41:58] <-- exultbot has left IRC (signing off...)
[03:45:15] <-- exultbot has left IRC (signing off...)
[03:45:42] --> exultbot has joined #exult
[03:45:42] --- Topic for #exult is: * Colourless sets mode matt0 +stand_in_corner
[03:45:42] --- Topic for #exult set by wjp at Sat Jun 16 22:12:19 2001
[03:45:53] <-- chimera|wookin has left IRC (farmer.openprojects.net benford.openprojects.net)
[03:46:14] --> chimera|wookin has joined #exult
[03:46:47] --> Kirben has joined #exult
[03:47:15] <-- matt0 has left IRC (Read error to matt0[1667079149-yippy.dsl.xmission.com]: EOF from client)
[03:47:19] --> matt0 has joined #exult
[08:08:03] <-- Kirben has left IRC (Read error to Kirben[co3007967-a.brasd1.vic.optushome.com.au]: Connection reset by peer)
[08:20:32] --> Kirben has joined #exult
[08:20:39] <matt0> kirben!!!!!!!!!!
[08:20:49] <Kirben> Hi
[08:25:39] --> smartass has joined #exult
[08:25:50] <smartass> morning
[08:26:17] <Kirben> Hi smartass
[08:27:33] <matt0> hey smartass
[08:47:25] <smartass> nothing's worth the sunday morning idling on irc
[08:48:16] <smartass> nothing, except ultima 7
[08:48:18] <smartass> !
[08:48:39] <-- smartass has left IRC (off to britain)
[10:24:44] <-- matt0 has left IRC (Laserdisc Arcade Emulation Project: http://daphne.rulecity.com , get your CVS password today! =])
[11:24:49] --> ariannerpg has joined #exult
[11:24:56] <ariannerpg> hi
[11:29:59] <Kirben> Hi
[11:54:04] --> LordTech has joined #exult
[12:00:12] <-- LordTech has left #exult
[13:00:16] <-- ariannerpg has left IRC (Read error to ariannerpg[]: EOF from client)
[13:54:11] --> Colourless has joined #Exult
[13:54:28] <Colourless> hi
[13:59:06] <Kirben> Hi Colourless
[14:09:48] --> wjp has joined #exult
[14:09:55] <wjp> hi
[14:10:05] <Colourless> hi
[14:23:44] * wjp is implementing the serpent jawbone gump
[14:24:04] * Colourless says "That's a good idea"
[14:24:29] * wjp says ":-)"
[14:25:45] * Colourless says ":-)" as well
[14:28:45] <wjp> before I forget this time, the jawbone gump didn't "do" anything, right?
[14:28:59] <Colourless> what do you mean do anything?
[14:29:26] <wjp> did it just display the teeth, or was there some way to do something else with it?
[14:29:40] <Colourless> you could remove the teeth as well
[14:30:39] <wjp> ok, should be doable
[14:31:07] <-- Kirben has left IRC (Ping timeout for Kirben[co3007967-a.brasd1.vic.optushome.com.au])
[14:31:28] <Colourless> if you want to know, i haven't tried implimenting the jawbone because i wasn't sure what would need to have been done to get the jawbone to actually work. I'm guessing that it'a container that can only have serpent teeth in it. But it's frame changes to show the amount of teeth in it.
[14:31:41] <Colourless> or is the object something else
[14:32:02] <Colourless> there is no other objects really like it
[14:32:07] <wjp> travelling with the jawbone already works
[14:32:30] <Colourless> ah ok :)
[14:32:41] <Colourless> i had no idea
[14:32:42] <wjp> all handled by usecode :-)
[14:32:45] <Colourless> in fact, I'm amazed
[14:32:55] <wjp> no, me neither, but I just checked 30 minutes ago :-)
[14:33:24] <Colourless> i don't recall anyone having had done anything to get it to work.... it looks like it just works :)
[14:33:29] <wjp> it was pretty cool, all those rotating doors open properly in the 'dark path' and all that
[14:33:47] <Colourless> is this a first for exult?
[14:34:09] <wjp> what do you mean?
[14:34:35] <Colourless> we didn't have to fix the usecode intrinsics used by something fairly complex like thta
[14:34:53] <wjp> ah, yes, could be a first :-)
[14:35:01] <wjp> looks like we're getting there :-)
[14:35:09] <Colourless> yeah
[14:35:57] * Colourless decides to go do that global flag editor now
[14:36:09] <wjp> uh oh.... looks like the serpent teeth don't have their coordinates "built in"
[14:36:23] <wjp> looks like it's going to be a session of coordinate tweaking again
[14:36:33] <Colourless> fun fun fun !
[15:03:27] <wjp> oooops...
[15:03:31] <wjp> segfault when opening backpack :-)
[15:03:55] <Colourless> :)
[15:03:56] <Colourless> nice
[15:04:10] <wjp> oh wait... uninitialized var.
[15:08:02] --> mrod has joined #exult
[15:08:43] <wjp> hi
[15:08:51] <mrod> hello
[15:09:19] <Colourless> hi
[15:10:34] <wjp> hmm... somehow the Jawbone_gump has paperdoll_shape = true
[15:10:54] <wjp> oh, that would be because I set it to that :-)
[15:10:55] <wjp> oops :-)
[15:10:56] <Colourless> that doesn't sound correct
[15:11:32] <wjp> I seem to be making an awful lot of typos in my code today :/
[15:42:39] --> exultbot has joined #exult
[16:07:59] <wjp> looks like most of the code is done
[16:08:04] <wjp> time to tweak coordinates :/
[16:47:15] <wjp> Colourless?
[16:47:25] <Colourless> yes
[16:47:43] <wjp> do you have a original SI savegame where you have all 18 teeth?
[16:47:49] <Colourless> no
[16:48:13] <Colourless> actually... i might
[16:48:15] <Colourless> :
[16:48:16] <Colourless> )
[16:48:34] <Colourless> i'm pretty sure i've got some old SI save games around here somewhere
[16:48:59] <wjp> if you find it, could you send me a screenshot of the (full) jawbone?
[16:49:34] <wjp> (no rush, I've got it reasonably okay already)
[16:49:56] <Colourless> yep. i've got some here
[16:50:47] <Colourless> they are 2 and a half years old :)
[16:52:04] <Colourless> well i'll be. Savegame 5 is called "Got All Teeth"
[16:52:40] <wjp> :-)
[16:55:26] <Colourless> http://www.users.on.net/triforce/teeth.png
[16:56:15] <wjp> thanks
[16:56:31] <wjp> looks like I got most of them right
[16:58:29] <Colourless> no problem
[17:01:28] <wjp> no, on second thought I got most of them off by a pixel :-)
[17:08:17] <Colourless> well, it still looked like you go most of them right
[17:09:07] <wjp> umm, you can see what I'm doing? :-)
[17:09:47] <Colourless> ye... umm... *cough* *cough* ... no... no I can't
[17:09:54] <Colourless> :)
[17:10:17] <wjp> :-)
[17:10:55] <wjp> I've got all of them pixel perfect now
[17:10:59] <wjp> *phew*
[17:11:10] <wjp> time for dinner; bbl
[17:11:37] <Colourless> cya
[17:38:33] <wjp> b
[17:38:42] <Colourless> wb
[17:49:34] <wjp> I just committed the gump
[17:50:22] <Colourless> ok
[17:50:39] <Colourless> i'm working on the cheat stuff at the moment
[17:51:18] <wjp> cool
[17:51:20] <wjp> the global flags?
[17:51:24] <Colourless> yeah
[17:51:48] <wjp> could be very useful, if we get the functions of the flags properly documented
[17:53:31] <wjp> if I subclass Jawbone from Container_game_object, where do I have to let the Jawbone object be created?
[17:54:01] <Colourless> last time i knew it was somewhere in gamewin.cc
[17:54:28] <Colourless> it's somewhere in the object reading code
[17:55:02] <wjp> ah, I think I got it
[17:55:09] <wjp> in read_ireg_objects
[17:55:21] <Colourless> yeah, that's it
[17:55:35] <wjp> and create_ireg_object
[17:56:00] <Colourless> yeah, that too
[17:56:40] <wjp> Container_gump_object should handle the writing, right?
[17:57:06] <Colourless> i would think so
[17:57:39] <wjp> this is the first time I'm looking into this read/write architecture :-)
[17:57:48] <wjp> never did anything with it :/
[17:58:26] <Colourless> i would think that the reading would be the same as the container game object as well.
[17:58:58] <wjp> yes, except for that a Jawbone_object should be created instead of a Container_game_object
[17:59:03] <Colourless> yeah
[17:59:23] <Colourless> the difference between the jawbone and container will be minimal
[17:59:34] <wjp> yeah, luckily :-)
[17:59:47] <wjp> just a check if you're adding a tooth or not, and adjusting the frame
[17:59:56] <Colourless> yeah
[18:00:12] <Colourless> i think the frame may just be the number of teeth in the jawbone
[18:00:31] <wjp> yeah, that was my guess too
[18:00:45] <wjp> they probably show the teeth in the orer you're supposed to get them
[18:00:49] <wjp> s/orer/order/
[18:00:56] <Colourless> yeah, probably
[18:06:02] <wjp> I'd better catch the '::attacked
[18:06:06] <wjp> ' method too :-)
[18:46:55] <wjp> ...committing...
[18:52:23] <wjp> oh, wait, need to add a keybinding too
[18:52:48] <Colourless> :
[18:52:50] <Colourless> )
[18:56:39] <wjp> from Jackchaos: "I have the spellbook and I can open it now, but it didn't come with the transcribe spell. How do I get my magic scrolls into my spellbook? ahh!" :-)
[18:56:59] <wjp> oops :-)
[18:57:17] <Colourless> hmmm
[18:57:28] <wjp> I doubt anyone sells that spell, too
[18:57:32] --> mrod has joined #exult
[18:57:42] <wjp> hi again
[18:57:46] <Colourless> but you still wont be able to add spells
[18:57:48] <Colourless> hi
[18:57:56] <Colourless> everyone sells scrolls
[18:58:03] <wjp> they do?
[18:58:13] <Colourless> yeah, they do in SI
[18:59:12] <mrod> hello.
[19:02:41] <wjp> there is an unknown intrinsic in the 'conjuring spellbook' sequence, but the 'add spell' _is_ called
[19:04:10] <Colourless> any idea of what that intrinsic does?
[19:04:28] <wjp> siintrinsics.h guesses 'remove all spells'
[19:04:54] <wjp> // add_spell(spell# (0-71), ??, spoolbook).
[19:05:32] <wjp> there's an unknown parameter in that intrinsic, apparently
[19:05:41] <wjp> oh, but it's always 0
[19:06:06] <Colourless> nice one boys (boys being the origin programmers)
[19:11:07] <-- mrod has left IRC (Changing server)
[19:13:53] <wjp> hmm, I wonder what triggers those mandrake roots... there are none if I teleport to Monk Isle
[19:14:32] <Colourless> travelling the dark path?
[19:14:46] <Colourless> I know they are controlled by usecode eggs
[19:15:02] <wjp> do you remember which portal was to Monk Isle?
[19:17:17] <wjp> ah, found it
[19:19:22] <wjp> still nothing :/
[20:18:06] <Colourless> at the start of SI after talking to iolo on the ship, the songs Stones starts to play. Odd thing is, there doesn't appear to be a call to start track anywhere in the usecode that gets executed
[20:23:23] <Colourless> another thing, it looks like that bags created by Teleport Storms are not being created as containers
[20:23:46] <wjp> yeah, I noticed that bag thing too
[20:24:08] <wjp> hmm, stones doesn't start to play
[20:24:27] <Colourless> no it doesn't, but in the original it does. I've no idea what causes it to start playing
[20:24:37] <wjp> oh, I see
[20:25:03] <wjp> there is at least one unknown intrinsic
[20:25:28] <wjp> I see a call to intrinsic 0x86 from 0x6cb
[20:25:41] <wjp> several to 0x72
[20:26:00] <wjp> (from 0x954)
[20:27:07] <wjp> one to 0x85
[20:29:30] <wjp> when exactly does the song start?
[20:29:51] <Colourless> just after the conversation with iolo finishes
[20:30:04] <wjp> weird
[20:33:50] <wjp> is there a white flash in the original right before the ship appears?
[20:34:03] <Colourless> yeah
[20:34:10] <Colourless> i think so
[20:34:19] <Colourless> lets find out
[20:34:30] <wjp> if so, I think 0x72 should do that
[20:35:30] <Colourless> no there isn't
[20:35:43] <wjp> hmm, pity :/
[20:36:05] <wjp> (the interesting thing is that it's between the same two intrinsics as a possible 'white flash' in BG)
[20:36:31] <Colourless> then it probably is white flash
[20:37:08] <wjp> oh wait... 0x72 is called more than once
[20:39:49] <wjp> once on each npc or something
[20:40:51] <wjp> maybe that one in BG isn't white flash after all then
[20:42:03] <wjp> in BG it's called for the lightning strikes in magic storm
[20:42:34] <wjp> (and other lightning strikes, for that matter)
[20:43:29] <Colourless> it could be
[20:43:48] <Colourless> when exactly is it called.
[20:43:59] <wjp> SI or BG?
[20:44:06] <Colourless> si
[20:44:57] <wjp> during the 'ship appears' sequence
[20:45:32] <wjp> [0xbd]: set_npc_id(fffd, 0001) = 0000
[20:45:37] <wjp> [0x6f]: is_pc_female() = 0001
[20:45:40] <wjp> [0xbc]: get_npc_id(fffd) = 0001
[20:45:44] <wjp> [0x72]: UNKNOWN() = 0000
[20:45:51] <wjp> [0x02]: delayed_execute_usecode_array(fffd, [ 0023, 0055, 01d1 ], 0000)
[20:46:11] <wjp> that sequence is repeated about 6 times
[20:46:16] <Colourless> calli or callis?
[20:46:37] <wjp> intrinsic trace doesn't show :/
[20:46:52] <wjp> get_npc_id() return 1 to 7, in order
[20:47:23] * wjp checks disasm. usecode
[20:48:18] <Colourless> it should
[20:48:22] <Colourless> :)
[20:48:32] <Colourless> though the things are handled in different places
[20:48:37] <wjp> calli
[20:48:48] <Colourless> so it obviously does something
[20:49:24] <wjp> this instance seems to be in Iolo's usecode
[20:50:04] <wjp> in fact, all those calls to 0x72 are from that function
[20:50:24] <Colourless> what's iolos usecode number?
[20:50:47] <wjp> 1d1
[20:50:57] <Colourless> ok
[20:51:01] <wjp> there's also a call from 0124, which seems to be Filbercio's barge
[20:51:56] <wjp> and one from 02AF, which has as strings: "Where am I?", "Where are my belongings?", "Back here again?", which is in that Furnace test, I think
[20:53:12] <wjp> it's called quite a lot, in fact
[20:53:13] <Colourless> yeah, sounds like it
[20:53:50] <wjp> it's always called along with a sprite effect and a sound effect
[20:54:31] <wjp> no, almost always
[20:55:31] <Colourless> i'm searching through all the instances of play_music to see if I can find the function that starts the stone track
[20:57:29] <Colourless> how many MB is the complete disassembled usecode?
[20:57:52] <wjp> SI: 10Mb, BG: 6Mb
[20:58:12] * wjp tries to zip them
[20:58:25] <wjp> SI: 2.4Mb, BG: 1.5Mb
[20:58:39] <Colourless> i take it that it's just one huge file
[20:58:45] <wjp> yeah
[20:59:12] <Colourless> grrr. That's not really what I want. I want all functions in separate files.
[20:59:37] <wjp> do you have a copy of .... *checks tools/ dir*
[21:00:43] <wjp> wud?
[21:01:47] <Colourless> yeah
[21:01:54] <wjp> that does just that
[21:02:44] <wjp> "./wud -s /data/u7si/static/usecode 954" produces a dump of SI usecode function 954
[21:02:56] <Colourless> yeah i know. i use that alot
[21:03:01] <wjp> ah, ok
[21:10:18] <wjp> hey, Iggy submitted a savegame for the spellbook bug... nice
[21:12:23] <wjp> time left: 00:0-41 :-)
[21:12:28] <wjp> 120K of 0K
[21:12:32] <wjp> oops :-)
[21:12:39] <Colourless> :)
[21:14:32] <wjp> hey, he doesn't have dupre with him
[21:14:54] <wjp> oh, wait, _she_ doesn't have dupre with her :-)
[21:15:02] <Colourless> hehe
[21:15:17] <wjp> do you still know the copy prot. answers? :-)
[21:15:46] <Colourless> yes
[21:16:00] <wjp> reagents for mass death?
[21:16:10] <Colourless> 6
[21:16:18] <wjp> materials for armour?
[21:16:24] <Colourless> 4
[21:16:24] <wjp> 4?
[21:16:32] <wjp> other landmarks?
[21:16:40] <Colourless> 3
[21:16:55] <wjp> characters in ophidian?
[21:16:59] <Colourless> 36
[21:17:10] <wjp> reasons for history?
[21:17:12] <wjp> oh, 1 :-)
[21:17:29] <wjp> hmm, one must've been wrong... he's asking too many questions
[21:17:38] <Colourless> it was other landmarks. there are 4
[21:17:41] <wjp> words of power? 27?
[21:17:56] <Colourless> yeah
[21:18:10] <wjp> [0x66]: add_spell(0017, 0000, 0858d618) = Add_spell - Not a spellbook!
[21:18:45] <wjp> right after: [0x67]: UNKNOWN(0858d618) = 0000
[21:19:32] <Colourless> i bet it's the same problem as the bags
[21:19:51] <Colourless> usecode created items aren't being created of the correct type
[21:21:36] --> I-like-Exult has joined #exult
[21:21:45] <wjp> hehe :-)
[21:21:46] <wjp> hi :-)
[21:21:51] <Colourless> hi
[21:22:13] <wjp> this specific intrinsic is called in two places... once by Fedabiblio, and once by.... *checks*
[21:22:15] <I-like-Exult> hi!
[21:23:31] <wjp> hmmm, the other call is right after a call to create_new_object, which creates a spellbook too
[21:24:23] <wjp> how weird, where would a spellbook be created?
[21:24:29] <Colourless> start of the game
[21:24:49] <Colourless> the spell book the avatar starts with is created by usecode
[21:25:04] <wjp> but that one is recognized as a spellbook
[21:25:10] <wjp> (or is that hacked in?)
[21:26:21] <Colourless> it's not hacked in
[21:27:10] <wjp> ah, 0x67 _is_ called during the intro sequence!
[21:27:32] <wjp> I think we could safely say that it means "convert to spellbook" then
[21:28:02] <Colourless> but the first spell book works
[21:28:15] <wjp> does it also work when you dblclick on it?
[21:28:26] <Colourless> yes
[21:28:37] <wjp> confusing
[21:30:11] <wjp> oh, it _is_ hacked in... see Game_window::create_ireg_object
[21:31:24] <wjp> the one in the intro is created by create_new_object
[21:31:28] <Colourless> heh, so it is
[21:31:35] <wjp> while the other one is conjured up from god-knows-where
[21:32:11] <wjp> (seriously, I don't have a clue where that 'spellbook' comes from, maybe it's from one of those mandrakes or something)
[21:32:32] <Colourless> it could be from a 'path egg'
[21:32:46] <Colourless> i would doubt it though
[21:33:11] <wjp> hmm, it may be a call to find_nearest
[21:33:46] <wjp> hehe: ""Ummm.... For some reason, I cannot locate the spellbook that I was going to give thee. Thou wilt have to return at a later time."
[21:34:03] <wjp> (from Fedabiblio's 'vocabulary')
[21:34:14] <wjp> it must be hidden somewhere
[21:34:34] <I-like-Exult> Do any of you know a free progam that graphically displays a C++ class hierarchy?
[21:34:50] <wjp> I-like-Exult: doxygen does something of the sort
[21:38:05] * wjp Ctrl-D's the entire place
[21:38:12] <I-like-Exult> I've looked at the Doxygen homepage, and I think this is exactly what I was looking for. Thanks!
[21:38:55] <wjp> Doxygen is quite nice... I'm using it to map exult's code occasionally
[21:40:01] <wjp> now we might have a bit of a problem...
[21:40:13] <wjp> we need to convert a Game_object* to a Spellbook_object*
[21:40:40] <wjp> but there is no way 'new' can put an object on the same memory location
[21:40:59] <wjp> and unfortunately it's not the same size :/
[21:41:04] <Colourless> now, that is a problem
[21:41:18] <wjp> one that isn't easily fixed either
[21:41:42] <Colourless> so, what happens when the spell book is created?
[21:42:07] <wjp> what do you mean?
[21:43:07] <wjp> I'd better go catch this in the debugger, maybe we're wrong about what 0x67 is
[21:43:08] <Colourless> how does is do it
[21:43:15] <wjp> (hopefully it's just a bug elsewhere)
[21:43:30] <wjp> in the Fedabiblio sequence?
[21:43:34] <Colourless> yeah
[21:43:45] <Colourless> which function is it?
[21:44:49] <wjp> 411
[21:44:54] <wjp> (hex)
[21:45:32] <-- I-like-Exult has left IRC (gtg try out doxygen)
[21:45:39] <wjp> the thing that is passed to 0x67 is returned from 'find_nearest' with parameters 10, 761, -356
[21:45:45] <Colourless> i just search through every function that calls the play music intrinsic, and guess what, only one of them starts stones, and that one is the magic jukebox
[21:47:24] <wjp> do you know the "how many beasts in bestiary?" ?
[21:47:36] <Colourless> 52
[21:47:46] <wjp> thanks :-)
[21:48:12] <wjp> oh, wait... it's not 'find_nearest'
[21:48:20] <wjp> (my disassembly seems to be outdated)
[21:48:31] <wjp> it's get_cont_items
[21:48:52] <wjp> which is called on the avatar
[21:49:02] <Colourless> uh oh. sounds like it's a call to the 'get path egg' usecode func
[21:49:08] <wjp> after a call to add_cont_items, with a spellbook as parameter
[21:49:40] <wjp> 'get path egg'?
[21:49:54] <Colourless> it's to do with the mystical usecode container
[21:50:07] * wjp doesn't see that one in siintrinsics.h
[21:50:28] <Colourless> it's not an intrinsic, it's a usecode function
[21:50:39] <wjp> oh, I see
[21:50:51] <wjp> which one?
[21:51:37] <Colourless> 09a0
[21:52:27] <wjp> doesn't seem to be called
[21:53:00] <Colourless> where is the save game?
[21:53:11] <wjp> attached to the bug in the bug tracker
[21:53:22] <Colourless> ok. i'll grab it
[21:53:32] <wjp> the spellbook is created by a call to add_cont_items
[21:53:45] <wjp> which calls Container::create_quantity
[21:53:48] <Colourless> ah. opps.
[21:53:57] <wjp> which uses newobj = new Ireg_game_object
[21:54:14] <Colourless> i was thinking that you said "get_cont_item"
[21:54:47] <wjp> I did :-)
[21:55:13] <Colourless> can't that be change to a call to create_ireg_object
[21:55:16] <wjp> anyway, the ugly-hack-way to fix this would be patching create_quantity
[21:55:20] <wjp> right
[21:56:12] <Colourless> if that is the right thing, then 0x67 might still just be remove all spells as it is currently said to be
[21:56:30] <wjp> it might be
[21:56:52] <Colourless> the think is. it wont hurt if it is
[21:58:31] <wjp> what is that "Shape_info" thing?
[21:58:40] <wjp> (that is passed to create_ireg_object)
[21:59:45] <Colourless> shapes/shapeinf.h... there is someway of getting it
[21:59:52] <Colourless> try looking in gamewin :)
[21:59:53] <wjp> gamewin::get_info
[21:59:57] <wjp> just did that :-)
[22:00:32] <Colourless> if you need it.... it's probably in class Game_window
[22:01:01] <wjp> oh, it's already retrieved in create_quantity
[22:01:05] <wjp> oops :-)
[22:01:13] <Colourless> hehe
[22:02:31] <wjp> ok, patch is in...
[22:02:35] <wjp> recompiling...
[22:03:32] <Colourless> i've committed my cheat stuff
[22:03:43] <wjp> prepare for another session of copy prot questions :-)
[22:03:56] <wjp> great! I'll try it out in a few mins
[22:03:57] <Colourless> fun fun fun!
[22:04:06] <Colourless> they are the best part of the game
[22:04:15] <Colourless> it's a memmory recall test
[22:04:21] <Colourless> memory even
[22:04:29] <wjp> nm, already knew them :-)
[22:04:44] <wjp> clans in monitor, boiling ginseng, armour materials
[22:04:56] <Colourless> easy as pie
[22:04:59] <wjp> yay! works :-)
[22:05:18] <Colourless> now patch the create_ireg_object to work with bags
[22:05:23] <wjp> hmm... it's 18 june
[22:05:35] <wjp> which means it's my brother's birthday...
[22:05:41] <wjp> I'd better go and congratulate him :-)
[22:05:55] <wjp> bbiab
[22:06:04] <Colourless> k
[22:12:17] <wjp> b
[22:12:21] <Colourless> wb
[22:12:29] <wjp> only one log mail? :-)
[22:12:34] <wjp> is that the best you can do? ;-)
[22:12:42] <Colourless> :)
[22:12:44] <Colourless> yea
[22:14:40] <wjp> maybe create_ireg_object should be a static member of Ireg_game_object itself
[22:16:32] <Colourless> that would probably be a good idea.
[22:16:42] <Colourless> we need to move stuff out of Game_window
[22:16:47] <wjp> using the 'factory' design pattern :-)
[22:17:16] <wjp> (if you know the book "design patterns")
[22:17:47] <Colourless> would it be a good idea to make the Ireg_game_object constructors private?
[22:18:04] <wjp> along with the static factory function, yes
[22:18:21] <wjp> that would force using it
[22:21:36] <wjp> there, two commit log mails for one single line! ;-)
[22:23:13] <Colourless> hehe
[22:24:12] <wjp> ugh... there really is a ton of special cases if we need to check for containers
[22:24:37] <wjp> backpacks, boxes, bags, baskets, crates, barrels, hollow trees, jawbones, chest, bones...
[22:25:02] <wjp> or is there a shapeinfo field for this?
[22:25:20] <Colourless> i don't think there is
[22:25:55] <wjp> enum Shape_class { ...., container, ..., spellbook, ... };
[22:26:11] <Colourless> so there is :)
[22:26:19] <wjp> == tfa[1]&15, apparently
[22:26:19] <Colourless> is it properly filled though
[22:26:58] <wjp> good point
[22:27:11] <wjp> and it could be horribly outdated, too
[22:28:23] <wjp> it is used
[22:28:44] <wjp> in actors.cc, browser.cc, exult.cc, gamewin.cc, chunks.cc, objs.cc
[22:33:49] <wjp> "Vana level" :-)
[22:33:59] <Colourless> ?
[22:34:07] <wjp> in the npc tool
[22:34:08] <Colourless> ah
[22:34:17] <Colourless> it;s [V]
[22:34:24] <wjp> yeah, I know
[22:34:24] <Colourless> which is supposed to be a M
[22:34:35] <wjp> there, 30/30/30/30/30/30/30 stats :-)
[22:34:48] <Colourless> you can go higher if you want
[22:34:58] <wjp> how many bits are reserved for them?
[22:35:08] <Colourless> lots :)
[22:35:16] <wjp> in the saves too?
[22:35:18] <Colourless> i think it could be 16
[22:35:35] <Colourless> no
[22:35:47] <Colourless> the save in si limit you to 31 max
[22:36:01] <Colourless> in bg you are limited to 8 bit values
[22:39:14] <wjp> SI plot seems to be progressing quite nicely, if you can already get a spellbook
[22:41:36] <wjp> hmm, I suddenly get an error while compiling exult studio
[22:41:48] <wjp> one I didn't get a few hours ago
[22:41:57] <Colourless> not my fault.
[22:42:08] <wjp> yeah, I know :-)
[22:43:31] <wjp> undefined reference to `Npc_actor_in(unsigned char *, int, unsigned long &, int &, int &, int &, int &, int &, basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > &, short &, int &, short *, short &, short &, unsigned long &, unsigned long &, unsigned long &)'
[22:43:34] <wjp> ouch :-)
[22:46:22] <wjp> screwed up dependencies... it rebuilt the mapedit directory before the server dir.
[22:48:17] <Colourless> heh
[22:50:18] <wjp> I guess the dirs. with executables should be built last
[23:00:38] <wjp> hehe, small bug in SF bug tracker: it says "Project: $1" at the top of bug reports
[23:00:47] <Colourless> heh
[23:02:39] <wjp> I should go to bed
[23:02:42] <wjp> night
[23:02:56] <Colourless> night
[23:02:57] <Colourless> me to
[23:02:59] <Colourless> o
[23:03:07] <-- wjp has left IRC ([x]chat)
[23:04:04] <-- Colourless has left IRC (Got Coloured)
[23:49:37] --> Kirben has joined #exult