#tfl@irc.freenode.net logs for 10 Nov 2008 (GMT)

Archive Today Yesterday Tomorrow
tfl homepage

[01:20:31] --> Marzo has joined #tfl
[01:20:32] --- ChanServ gives voice to Marzo
[01:31:18] --- Marzo is now known as Marzo_away
[03:11:14] <-- Marzo_away has left IRC ("Marzo vanishes suddenly.")
[03:15:58] --> NotADragon has joined #tfl
[03:15:58] --- ChanServ gives voice to NotADragon
[08:47:36] <NotADragon> For Marzo, should he think to check the logs: bool UI_add_spell(int index, int unk, object obj) the int unk is for the quality of the spell object, though I am not sure what difference it made. I remember some speculation when we were first trying to figure UC out that it may have had to do with spells have a certain amount of 'charges', an idea given some amount of creedance by my sources,...
[08:47:38] <NotADragon> ...as an idea that was discarded in development. Recall, in earlier Ultima games you had to pre-prepare the spells, and you could have so many of them prepared.
[08:48:51] <NotADragon> That was, however, just an educated guess supported by a bit of 'we thought about adding that kinda thing in, but didn't'.
[08:52:19] <NotADragon> As well in UI_book_mode_ex(bool is_scroll, int font, int gump) there could possible be added a bool is_translateable or somesuch that, if nonzero, reads the READ flag (har) and translates the text if it is set.
[08:55:17] <NotADragon> A convinence intrinsic could be UI_replace_item(var item1, var item2, var quality) to replace a given item1 with an item2 of the quality specified, which would save a call. Just a convinence, but an idea of something to add nonetheless. I just mention it because I am writing in a little utility file something to do that in TFL.
[11:07:47] <-- NotADragon has left IRC (Read error: 110 (Connection timed out))
[12:31:17] --> Marzo has joined #tfl
[12:31:18] --- ChanServ gives voice to Marzo
[23:00:24] --> NotADragon has joined #tfl
[23:02:27] --- ChanServ gives voice to NotADragon
[23:02:46] <NotADragon> Hello
[23:02:58] <Marzo> Hyia
[23:03:23] <NotADragon> Read the log? :)
[23:03:32] <Marzo> Nope
[23:03:36] <Marzo> Been busy all week
[23:04:26] <Marzo> Just read it
[23:05:21] <Marzo> As for add_spell intrinsic: the unk parameter does nothing at all that can be detected (if it does anything)
[23:05:45] <Marzo> I tried full binary diffs on all gamedat files for several different values of it
[23:06:05] <Marzo> And there was nothing different that could be uniquely traced to that parameter
[23:07:28] <Marzo> My sources (when I got them) then confirmed that the idea had been dropped after a certain stage of development
[23:08:10] <NotADragon> Yeah I was told it was part of that, but it got dropped. Just thought you may be interested in that little tidbit
[23:08:11] <Marzo> The UI_book_mode_ex: yes, the option to translate if a given flag is true is a good idea
[23:10:11] <Marzo> (I also remember some hints that the unk in add_spell might have been related to the circle of magic, and index being the spell index in the circle, at certain points of development)
[23:10:14] <NotADragon> Generally in BG, the translation could be a bad idea, for the reason you specified (gargish), but it still should be an option, especially for new mods that may have different 'languages' (I'm probably not going to go that far, but I'm sure someone would want to) ... and even then, if I have a custom gump I want to use for SI things, I can only use it with the _ex version really, AFAIK
[23:11:36] <Marzo> Maybe instead of a flag, the last parameter (if present) specifies the font to be used to perform the translation according to the 'standard' translation rules too
[23:12:22] <NotADragon> That, is an incredibly good idea.
[23:12:32] <NotADragon> I approve :)
[23:13:04] <Marzo> re: UI_replace_item proposal: what exactly would it do? Delete item1 and put item2 in its place, changing quality to the last value?
[23:14:40] <NotADragon> The quantity would be to properly specify things in multi's such as food or desk items. Otherwise, yes, that is correct. It's something we have to do with two calls, currently. Four, if you're pushing the LIFO. It's not essential, but it would be a timesaver.
[23:29:12] --- Marzo is now known as Marzo_away
[23:53:02] --- Marzo_away is now known as Marzo
[23:53:51] <NotADragon> Welcome back :-)
[23:53:54] <Marzo> Thunderstorm brewing here (damn rainy season); I will be turning off my computer for safety, so I will be back only tomorrow
[23:54:10] <NotADragon> Alright. Take care.
[23:54:10] <Marzo> So I guess it is actually good night
[23:54:55] <Marzo> (and by the way: 90% of the time, I am right at the computer even when it says I am away; I just set Miranda to turn to away mode if it is unattended for 10 minutes)
[23:55:15] * NotADragon nods.
[23:55:17] <Marzo> (unless I specifically say I am away, it is a fair bet that I am here)
[23:55:28] <Marzo> Farewell
[23:55:29] <NotADragon> Take care then, I'll talk to you tomorrow if I get the chance.
[23:55:36] <-- Marzo has left IRC ("Marzo vanishes suddenly.")