Jump to content

[Eternity Engine] Help with Replacing colours in default fonts (EFONTS)


Arsinikk

Recommended Posts

So, I'm currently working on a wad that uses a custom colour palette.

 

One of the colours I changed in the palette happens to be colour 249, which Eternity uses for some of it's gold colour translations for it's modern HUD.

And when Eternity tries to use this changed palette colour, the modern HUD looks really bad and unreadable.

 

So I thought I'd try and replace the font colortable values.

 

I have taken this from the default doom2 fonts.edf file:
 

Quote

// fonts.edf - EDF File for Eternity Engine 3.35.92

// Modern HUD overlay small font - arms numbers and kills/items/secrets
font ee_fshudsmallfont
{
   start       '/'
   end         'Z'
   colorable   true
   uppercase   true
   spacesize   1
   tallestchar 6
   defaultcolor gray

   filter { chars { '/' };                mask "NHUD_SLS"  }
   filter { start 'A'; end = 'Z';         mask "NHUD_%c"   }
   filter { start '0'; end = '9';         mask "NHUD_DS%c" }

   colortables
   {
      gray:    @identity
      green:   "80=112,95=117"
      gold:    "80=161,95=163"
      red:     "80=179,95=184"
      blue:    "80=194,95=197"
      custom1: "80=128,95=134"
      custom2: "80=95,95=102"
   }
}

// Modern HUD overlay medium font - ammo numbers
font ee_fshudmediumfont
{
   start       '/'
   end         '9'
   colorable   true
   uppercase   true
   spacesize   1
   tallestchar 6
   defaultcolor gray

   filter { chars { '/' };                mask "NHUD_SLS"  }
   filter { start '0'; end = '9';         mask "NHUD_DM%c" }

   colortables
   {
      gray:    @identity
      green:   "80=112,95=117"
      gold:    "80=161,95=163"
      red:     "80=179,95=184"
      blue:    "80=194,95=197"
      custom1: "80=128,95=134"
      custom2: "80=95,95=102"
   }
}

// Modern HUD overlay large font - health/armor numbers
font ee_fshudslargefont
{
   start       '0'
   end         '9'
   colorable   true
   uppercase   true
   spacesize   10
   tallestchar 10

   filter { start '0'; end = '9';         mask "NHUD_DL%c" }

   colortables
   {
      gray:    @identity
      green:   "80=112,95=117"
      gold:    "80=161,95=163"
      red:     "80=179,95=184"
      blue:    "80=194,95=197"
      custom1: "80=128,95=134"
      custom2: "80=95,95=102"
   }
}

 

the main line I've tried to change is the gold colour translation from "80=249,95-163" to "80=161,95-163".

 

The problem is that I keep getting an error with this text in the EFONTS lump in my wad:
 

Quote

Error at EFONTS:20:
no such option 'gray:'

 

I've tried to look for any Eternity Engine font replacement examples or documentation, but could only find this page, which isn't that helpful.

 

Can anyone help me figure out how to get these fonts replaced/working?

I'm not that familiar with EDF coding and I've found the documentation to be a bit lacking.

Edited by Arsinikk
Better specified the topic

Share this post


Link to post

The error message suggests you need to put the line "setdialect(ALFHEIM)" at the top of your EDF. Colons are not supported as a syntactic character otherwise.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...