From: PATRICK B. <p1....@st...> - 2000-06-30 13:42:15
|
On Thu, 29 Jun 2000, Jeff Freedman wrote: [snip lots of bugs fixed (cool!)] > When the Guardian talks to you during sleep, his face and text appear correctly > on the screen (though he really should talk; haven't figured out the usecode > function for this yet). Function 0614H is the one that is called to place the Guardians Text on screen. It takes one argument, and the function is more-or-less a giant switch statement. <3 hours later after re-writing a pile of code> The first few lines of Func0614: SwitchTalkTo(65259, 0) var0000=IFunc0069(); if(var0000!=1) goto label0614_0027; /*001b 1c 00 00<>*/ /*001e 33<>*/ HideNPC(65259) exit2 1c and 33 are addsi (add string to string reg) and say (display string reg on string), currently uncoded (still working out how to implement the string reg on them). According to ucdump.cc: /* Function 0x69 - GetSpeechTrack() Returns a speech track number previously set by SetSpeech() */ /* Function 0x75 - SetSpeech(speech_number) Remembers a speech track number, returns false if speech effects are disabled or no sound card */ /* Function 0x7e - PlaySpeech() Plays a speech track set by SetSpeech() */ ... whether the're correct or not is unknown. If someone wants to go digging, here's a function trace: 614 -----^----- 940 941 ------------------------------^- -^- 2d9 622 63a 6d7 6d8 6d9 82e 608 608 -^- -^----- 633 6d6 3d5 -^- 8fa -------^------- 927 928 152 812 -^- -^----- 6b3 348 634 -^- 124 The ^'s are showing that the function number below it calls the function number above it. > Bodies for dead monsters are somewhat more correct now. I gave up looking for > an algorithm, and am just putting them in by hand. (Probably around the time > I'm done, CoderInfidel will have figured out the pattern/data.) If you want to > add to the list or fix anything, look in bodies.cc. It's just a list of > triples: (liveshape, deadshape, deadframe). Done by usecode? Given the other junk stored in this file (the entire contents of every book, all the signposts, I wouldn't be surprised to fund an entire copy of the Encyclopaedia Britannica tomorrow), it's possible. Oh, well, back to code, :) Patrick -- Any sufficiently advanced technology is indistinguishable from magic.-A C Clarke Any technology distinguishable from magic is insufficiently advanced.-Barry Gehm Any technology, no matter how primitive, is magic to those who don't understand it. - Florence Ambrose. (FreeFall-255) |