XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu May 25, 2017 5:54 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: King's Quest 8 Font
PostPosted: Thu Mar 24, 2016 9:20 pm 
Offline
ultra-n00b

Joined: Wed Aug 20, 2014 4:31 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time














You can make the ads go away by registering

Hello,

I'm currently working on polish translation of the computer game King's Quest VIII. I ask you for help, because I have a problem with opening and editing fonts that I put below. I would be grateful for help. :)


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: King's Quest 8 Font
PostPosted: Sat Apr 02, 2016 7:08 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Fri Nov 06, 2009 12:13 am
Posts: 579
Has thanked: 64 times
Have thanks: 123 times
i spent a bit of time on this.


do you want to make your own fonts? or add new glyphs? there is a fixed table of 256 ascii mappings which you could use for patch new glyphs.

(const32 is just an int)

Code:
struct Chunk;

struct Unk
{
  ubyte Index;
  ubyte unknown;
  ubyte flags; // 0x2e?
  ubyte unknown_2;

  Const32 e(EQ, 0x2e);
};

struct Font(int max)
{
  local int pos = FTell();
  Const32 a(EQ, 2);
  Const32 b(EQ, 65);
  Const32 c(EQ, 0);

  uint MappedItemCount;

  uint aa, bb; // aa>=bb

  Const32 another(EQ, 255);
  Const32 z(EQ, 0);

  uint cc;

  Const32 d(EQ, 65536);
  Const32 e(EQ, 65536);
  Const32 f(EQ, 0);
 
  uint MapSize;

  short map[MapSize]; // -1 is unmapped


  Unk mapped[MappedItemCount] <optimize=false>;

  struct CH
  {
    char Name[4]; uint unknown; // not size!
  };

  CH test;
 
while((FTell()-pos) < max)
{
  Chunk blah;
}

  ubyte Data[max - (FTell()-pos)];
};

struct Chunk
{
  char Name[4]; // can be none

  if( Name[0] == 0 ) Exit(0);
  uint Size;

  if(Name == "PFON")
  {
     Font Data(Size);
  }
  else if(Name == "PBMA")
  {
     // head/data
     ubyte Data[Size];
  }
  else if(Name == "DETL")
  {
    // ??
ubyte Data[Size];
  }
  else if(Name == "PBMP")
  {
    // nothing this size is incorrect
  }
  else
  {
    ubyte Data[Size];
  }
};

while(!FEof())
{
  Chunk chunk;
}

_________________
Useful tool links:


Top
 Profile  
 
 Post subject: Re: King's Quest 8 Font
PostPosted: Sun Feb 12, 2017 8:57 pm 
Offline
ultra-n00b

Joined: Wed Aug 20, 2014 4:31 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time
I would like to patch existing glyphs. Can anyone help?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group