[U7:BG] Question about INTRO

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
lazar0

[U7:BG] Question about INTRO

Post 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.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: [U7:BG] Question about INTRO

Post 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... ;)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
lazar0

Re: [U7:BG] Question about INTRO

Post 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?
lazar0

Re: [U7:BG] Question about INTRO

Post 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 :) ;)
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: [U7:BG] Question about INTRO

Post 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.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: [U7:BG] Question about INTRO

Post by Dominus »

corrected in SVN - http://sourceforge.net/p/exult/code/7508

Thanks for quickly figuring that out :)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
lazar0

Re: [U7:BG] Question about INTRO

Post by lazar0 »

Ok, thanks! Now it is working flawlessly!

David.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: [U7:BG] Question about INTRO

Post by Dominus »

A screenshot please with your font replacement or it never happened! ;)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
lazar0

Re: [U7:BG] Question about INTRO

Post 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.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: [U7:BG] Question about INTRO

Post by Dominus »

he he, thanks a lot!
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Locked