Page 1 of 1

[U7:BG] Question about INTRO

Posted: Sun Jan 18, 2015 1:59 pm
by lazar0
Hi again,

I would like to know, about the INTRO in U7:Black Gate (it does not matter if it is with or without FoV), after the opening sequence with the butterfly, appears the Guardian.

Ok, here the Guardian speaks some things in red letters, like the same in the playing dialogs.

I've modified the original FONT (it is the SHAPE03 in MAINSHP.FLX) and it has worked in DOS.

But I assume that playing in Exult it does not uses this Font.

Where is the Font? Can I change it?

David.

Re: [U7:BG] Question about INTRO

Posted: Sun Jan 18, 2015 11:30 pm
by Dominus
It should use the game font, but maybe it uses the normal one in different color... Will look at the code and try to decipher it... ;)

Re: [U7:BG] Question about INTRO

Posted: Mon Jan 19, 2015 1:25 pm
by lazar0
I appreciate it Dominus. Thank you very much.

In Exult I think it does not uses the Font in MAINSHP.FLX (shape 03), this Font has red letters (and not yellow letters). It is editable with ES (when unpacked mainshp.flx).

I'm thinking that it could use an Exult own Font, maybe in exultbg.flx original shapes file?

Re: [U7:BG] Question about INTRO

Posted: Mon Jan 19, 2015 1:45 pm
by lazar0
Ok, looking a bit on the code, from "bggame.cc"

We can see here that text is getting END3_FONT:
======
// prepare Guardian speech
Font *font = fontManager.get_font("END3_FONT");
U7multiobject textobj(MAINSHP_FLX, PATCH_MAINSHP, 0x0D);
size_t txt_len;
next_txt = txt_ptr = txt = textobj.retrieve(txt_len);
======

Declaration at the beggining:
======
fontManager.add_font("MENU_FONT", MAINSHP_FLX, PATCH_MAINSHP, 9, 1);
fontManager.add_font("END2_FONT", ENDGAME, PATCH_ENDGAME, 4, -1);
------->>>>fontManager.add_font("END3_FONT", ENDGAME, PATCH_ENDGAME, 5, -2);
fontManager.add_font("NORMAL_FONT", FONTS_VGA, PATCH_FONTS, 0, -1);
fontManager.add_font("SMALL_BLACK_FONT", FONTS_VGA, PATCH_FONTS, 2, 0);
fontManager.add_font("TINY_BLACK_FONT", FONTS_VGA, PATCH_FONTS, 4, 0);
======

So, I assume it is getting the font from ENDGAME.DAT (SHAPE 05) witch really has
this Font, but as I've tested modifying the INTRO UltimaVII+Butterfly->Guardian
it uses MAINSHP.FLX (shape 03) font.

Am I correct? xD :) ;)

Re: [U7:BG] Question about INTRO

Posted: Mon Jan 19, 2015 5:32 pm
by Dominus
Thanks for already taking a look ;)
I'll see if I can find a specific reason for this in old committ- and mailinglist mails.

Re: [U7:BG] Question about INTRO

Posted: Mon Jan 19, 2015 8:51 pm
by Dominus
corrected in SVN - http://sourceforge.net/p/exult/code/7508

Thanks for quickly figuring that out :)

Re: [U7:BG] Question about INTRO

Posted: Wed Jan 21, 2015 4:01 pm
by lazar0
Ok, thanks! Now it is working flawlessly!

David.

Re: [U7:BG] Question about INTRO

Posted: Wed Jan 21, 2015 4:39 pm
by Dominus
A screenshot please with your font replacement or it never happened! ;)

Re: [U7:BG] Question about INTRO

Posted: Wed Jan 21, 2015 8:34 pm
by lazar0
Ok, here are some pictures.

Although I have not made a replacement Font, I only added the Spanish characters for Spanish translation. I've added the chars in ALL the fonts. In fact, I'm using the same shapes that I used in Serpent Isle:

You can see here, 'ñ', 'í', 'á'...
Image
Image
Image
Image


And this as a preview. This is the intro where the Font is embedded, I have changed only the shapes with the texts. Originally, the Font was another, without special spanish chars. In fact, it differs from english one also.
Image
Image
Image
Image
Image
Image
Image

I'm using for the translation (as done in SI) the medieval spanish language using "usía" terminology speaking.

Hope you enjoy it.

Re: [U7:BG] Question about INTRO

Posted: Wed Jan 21, 2015 10:08 pm
by Dominus
he he, thanks a lot!