General asset questions

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
User avatar
psi29a
Posts: 5362
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: General asset questions

Post by psi29a »

Zini wrote:Okay. The GMST bug is fixed. The fix will not affect previously created omwgame files. These are broken.

@psi29a: Do you need a fix for your file or can you remake it? A fix would be possible, but it would require temporarily inserting a few lines into the source and the fixed file would still carry the surplus sBribe GMST.
No worries, I had just created the file yesterday for testing. :) I can easily reproduce what I was working on.

Thank you for looking into this! Lets see if I get any further... ;)
User avatar
psi29a
Posts: 5362
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: General asset questions

Post by psi29a »

A teaser... :P

Image


Obviously if anyone wants to help, I won't say no. ;)
User avatar
psi29a
Posts: 5362
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: General asset questions

Post by psi29a »

Another question... I can get text to render with the oldstyle fnt/tex fonts, but I want to use our new TTF that is being developed. How do I use one over the other?

-rw-rw-r-- 1 bcurtis bcurtis 262152 Jul 14 12:57 Magic_Cards_Regular_0_Lod_A.tex
-rw-rw-r-- 1 bcurtis bcurtis 14632 Jul 14 12:57 Magic_Cards_Regular.fnt
-rw-rw-r-- 1 bcurtis bcurtis 37624 Mar 9 07:41 Pelagiad-Regular.ttf

What file do I need to modify and where? Morrowind.ini and/or openmw.cfg?

I tried this, but it didn't work:
fallback=Fonts_Font_0,pelagiad_regular
fallback=Fonts_Font_1,magic_cards_regular
fallback=Fonts_Font_2,century_gothic_font_regular
fallback=Fonts_Font_3,daedric_font
User avatar
DestinedToDie
Posts: 1181
Joined: 29 Jun 2015, 09:08

Re: General asset questions

Post by DestinedToDie »

Pretty good work and I very much appreciate it too!

Where do you get your models? I'd offer some of my not up to bar with standards models, but I'm sure you can get better stuff online.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: General asset questions

Post by Zini »

openmw.cfg

Morrowind.ini is only for backwards-compatibility and is not considered unless you do an ini import.
User avatar
psi29a
Posts: 5362
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: General asset questions

Post by psi29a »

Zini wrote:openmw.cfg

Morrowind.ini is only for backwards-compatibility and is not considered unless you do an ini import.
OK, then how does this work?

fallback=Fonts_Font_0,pelagiad_regular <-- this doesn't work

If I wanted to include a ttf, how do I do that?

@DestinedToDie: at the moment, I'm not using any models... I have a empty (except for header) base_anim.nif file that OpenMW doesn't complain on. This should get me further. Right now I'm just working on the GUI (mygui) graphics.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: General asset questions

Post by Zini »

I am not sure about the current state of the font loader. @scrawl: ?
User avatar
psi29a
Posts: 5362
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: General asset questions

Post by psi29a »

TODO: Add examples
;)

Anyway, I tried and it won't load my font. I even tried DejaVuLGCSansMono.ttf and no-joy.

my openmw_font.xml looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Resource" version="1.1">
    <Resource type="ResourceTrueTypeFont" name="MonoFont">
        <Property key="Source" value="DejaVuLGCSansMono.ttf"/>
        <Property key="Size" value="17"/>
        <Property key="Resolution" value="50"/>
        <Property key="Antialias" value="false"/>
        <Property key="TabWidth" value="8"/>
        <Property key="OffsetHeight" value="0"/>
        <Codes>
            <Code range="33 126"/>
            <Code range="192 382"/>
            <Code range="1025 1105"/>
            <Code range="8470"/>
            <Code hide="128"/>
            <Code hide="1026 1039"/>
            <Code hide="1104"/>
        </Codes>
    </Resource>
    <Resource type="ResourceTrueTypeFont" name="Magic Cards">
        <Property key="Source" value="Pelagiad-Regular.ttf"/>
        <Property key="Size" value="24"/>
        <Property key="Resolution" value="50"/>
        <Property key="Antialias" value="true"/>
        <Property key="TabWidth" value="8"/>
        <Property key="OffsetHeight" value="0"/>
        <Codes>
            <Code range="33 126"/>
            <Code range="173"/>
            <Code range="180"/>
            <Code range="192 255"/>
            <Code range="260 263"/>
            <Code range="268 271"/>
            <Code range="280 283"/>
            <Code range="305"/>
            <Code range="321 324"/>
            <Code range="327 328"/>
            <Code range="339"/>
            <Code range="344 347"/>
            <Code range="352 353"/>
            <Code range="356 357"/>
            <Code range="366 367"/>
            <Code range="377 382"/>
            <Code range="1040 1103"/>
	    <Code range="8208 8212"/>
            <Code range="8216 8217"/>
            <Code range="8220 8221"/>
            <Code range="8228 8230"/>
            <Code hide="198"/>
            <Code hide="208"/>
            <Code hide="215 216"/>
	    <Code hide="222"/>
            <Code hide="230"/>
            <Code hide="240"/>
            <Code hide="247 248"/>
            <Code hide="254"/>
        </Codes>
    </Resource>
</MyGUI>
I have both DejaVuLGCSansMono.ttf and Pelagiad-Regular.ttf in my fonts directory (where the other bitmap font is that does work). Is there any other place I need to update/modify?
User avatar
psi29a
Posts: 5362
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: General asset questions

Post by psi29a »

DataManager::getData: Failed to open 'Pelagiad-Regular.ttf'
I get this... the file exists, I've tried making it simple, and still no go.
Post Reply