READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Wolfenstein: The New Order (PC)

Need help translating games in other languages? Have your language problems solved here.
Killermannvs
ultra-n00b
Posts: 8
Joined: Wed Nov 06, 2013 9:57 pm
Location: Czech Republic

Re: Wolfenstein: The New Order (PC)

Post by Killermannvs » Sun Jul 06, 2014 4:42 pm

I think the big deal is in compression method...

A lot of files is compressed and if you try to reimport them it will fail coz the game uses some modified zlib compression.

If someone know how to get exactly the same result of compressed file as is used in the game, it will be very usefull.
Maybe we dont need to compress edited files at all, but than u need to change offsets (I didnt try this method yet).

BTW Im working on resources and index file editor...
You do not have the required permissions to view the files attached to this post.

User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 197
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 5 times

Re: Wolfenstein: The New Order (PC)

Post by lostprophet » Mon Jul 07, 2014 1:24 pm

Killermannvs wrote:I think the big deal is in compression method...

A lot of files is compressed and if you try to reimport them it will fail coz the game uses some modified zlib compression.

If someone know how to get exactly the same result of compressed file as is used in the game, it will be very usefull.
Maybe we dont need to compress edited files at all, but than u need to change offsets (I didnt try this method yet).

BTW Im working on resources and index file editor...
Wow nice! So with this it will be easier to export and modify the fonts too?
Hungarian translator and member of Indies4indies.com | Previous translations: http://lostprophet.hu

Killermannvs
ultra-n00b
Posts: 8
Joined: Wed Nov 06, 2013 9:57 pm
Location: Czech Republic

Re: Wolfenstein: The New Order (PC)

Post by Killermannvs » Wed Jul 09, 2014 10:21 am

Well, after some playing with zlib library I can finally to decompress all files correctly.

Now, I need to try if replaced file has to be compressed as well as original file.

After this test I will be able to release first usable version of my app.

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Wolfenstein: The New Order (PC)

Post by michalss » Wed Jul 09, 2014 3:58 pm

Killermannvs wrote:Well, after some playing with zlib library I can finally to decompress all files correctly.

Now, I need to try if replaced file has to be compressed as well as original file.

After this test I will be able to release first usable version of my app.

Would this support also Big Endian pls?
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

Killermannvs
ultra-n00b
Posts: 8
Joined: Wed Nov 06, 2013 9:57 pm
Location: Czech Republic

Re: Wolfenstein: The New Order (PC)

Post by Killermannvs » Thu Jul 10, 2014 7:06 pm

Well guys here it is...

I have successfuly tested all fonts and english.lang file and it works great.

Quick overview:
"Load file" - accepts resources or index file, you need both of them
"Export all" - exports all files into selected folder
"Export" - exports selected file into selected folder
"Import" - imports selected file back to .resources file and re-index .index file (this function will use a lot of memory, expect this)

You need to have .Net Framework 4.0 installed.

I hope that will help you guys and looking forward for your feedback.


If some will successfuly edit and than import font file and the game will work, let me know pls!
You do not have the required permissions to view the files attached to this post.

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Wolfenstein: The New Order (PC)

Post by michalss » Thu Jul 10, 2014 7:36 pm

Killermannvs wrote:Well guys here it is...

I have successfuly tested all fonts and english.lang file and it works great.

Quick overview:
"Load file" - accepts resources or index file, you need both of them
"Export all" - exports all files into selected folder
"Export" - exports selected file into selected folder
"Import" - imports selected file back to .resources file and re-index .index file (this function will use a lot of memory, expect this)

You need to have .Net Framework 4.0 installed.

I hope that will help you guys and looking forward for your feedback.


If some will successfuly edit and than import font file and the game will work, let me know pls!
Did you also test it with different sizes i mean bigger then original ?
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

folkemon1977
n00b
Posts: 16
Joined: Mon Aug 19, 2013 8:57 am
Has thanked: 2 times
Been thanked: 1 time

Re: Wolfenstein: The New Order (PC)

Post by folkemon1977 » Fri Jul 11, 2014 7:21 pm

Hi there,
your tool works great. Tested for translation menu.
Great work!!

But how edit .bimage fonts? Many characters of my native language are missing :-( Some help??

Is there somebody, who has german.lang file? German version o Wolf isn´t avaiable in my country...

Regards


Killermannvs wrote:Well guys here it is...

I have successfuly tested all fonts and english.lang file and it works great.

Quick overview:
"Load file" - accepts resources or index file, you need both of them
"Export all" - exports all files into selected folder
"Export" - exports selected file into selected folder
"Import" - imports selected file back to .resources file and re-index .index file (this function will use a lot of memory, expect this)

You need to have .Net Framework 4.0 installed.

I hope that will help you guys and looking forward for your feedback.


If some will successfuly edit and than import font file and the game will work, let me know pls!

albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Wolfenstein: The New Order (PC)

Post by albert1905 » Sat Jul 12, 2014 12:40 pm

In my opinion, it seems that 64_df.dat file is a dummy file and I can not change font mapping information.
Although I tried to change 64_df.dat file to another lang 64_df.dat file, it didn't change anything on the game when I used quickbms reimport option.
Is it working on that tool? Hmm.. I didn't tried it but I guess that it will not work. I mean, no change.

User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 197
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 5 times

Re: Wolfenstein: The New Order (PC)

Post by lostprophet » Sat Jul 12, 2014 3:10 pm

albert1905 wrote:In my opinion, it seems that 64_df.dat file is a dummy file and I can not change font mapping information.
Although I tried to change 64_df.dat file to another lang 64_df.dat file, it didn't change anything on the game when I used quickbms reimport option.
Is it working on that tool? Hmm.. I didn't tried it but I guess that it will not work. I mean, no change.
Search is your friend: viewtopic.php?f=10&t=11556&p=96257
Hungarian translator and member of Indies4indies.com | Previous translations: http://lostprophet.hu

albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Wolfenstein: The New Order (PC)

Post by albert1905 » Sat Jul 12, 2014 10:16 pm

lostprophet wrote:
albert1905 wrote:In my opinion, it seems that 64_df.dat file is a dummy file and I can not change font mapping information.
Although I tried to change 64_df.dat file to another lang 64_df.dat file, it didn't change anything on the game when I used quickbms reimport option.
Is it working on that tool? Hmm.. I didn't tried it but I guess that it will not work. I mean, no change.
Search is your friend: viewtopic.php?f=10&t=11556&p=96257
You misunderstand what I said. I mean, font mapping file. Not bimage. And that thread was what I asked so I knew it.

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Wolfenstein: The New Order (PC)

Post by michalss » Sun Jul 13, 2014 8:19 am

albert1905 wrote:
lostprophet wrote:
albert1905 wrote:In my opinion, it seems that 64_df.dat file is a dummy file and I can not change font mapping information.
Although I tried to change 64_df.dat file to another lang 64_df.dat file, it didn't change anything on the game when I used quickbms reimport option.
Is it working on that tool? Hmm.. I didn't tried it but I guess that it will not work. I mean, no change.
Search is your friend: viewtopic.php?f=10&t=11556&p=96257
You misunderstand what I said. I mean, font mapping file. Not bimage. And that thread was what I asked so I knew it.

I have never check font mapping, but im planning to i guess :) not sure when
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

Killermannvs
ultra-n00b
Posts: 8
Joined: Wed Nov 06, 2013 9:57 pm
Location: Czech Republic

Re: Wolfenstein: The New Order (PC)

Post by Killermannvs » Sun Jul 13, 2014 12:03 pm

I hate that ads!!!








I did a little research on font mapping file "64_df.dat" and I got this.

I can partialy confirm this:
Thief1987 wrote: 1 byte - width
1 byte - height
4 bytes - unknown(need test, maybe yadvance, yoffset, xadvance, xoffset)
2 bytes - x (little endian)
2 bytes - y (little endian)
2 bytes - unknown
I have tested that 4 bytes and...
1. y axis (yadvance)
2. yoffset? (did nothing)
3. x axis (xadvance)
4. xoffset? (did nothing)

I still dont know what 2 last bytes do.

I have successfuly edited font 64_df.bimage file and my glyphs are shown in the game, but I had to replaced some original glyphs (I have choosen which ones are not used in english.lang file)
So if I want to use my glyph, I have to type original glyph and that is ugly.

I tried to replace original glyph with my glyph by unicode table, but it doesnt work.
The game shows only "*" (unknown character).

Do you have any idea how to make this work?

EDIT:
After more digging I have idea about header bytes.
Here is my struct description of 64_df.dat.

Code: Select all

header
4B - 0x6964662B (idf+)
  font config
1B - size
1B - scale
1B - y shift
1B - y shift
1B - multi-line, CR size
1B - multi-line, CR size
2B - number of glyphs (big endian)
  glyph description
1B - width
1B - height
1B - y axis (yadvance)
1B - yoffset? (did nothing)
1B - x axis (xadvance)
1B - xoffset? (did nothing)
2B - x (little endian)
2B - y (little endian)
2B - unknown
  glyph character (unicode)
4B - char (little endian)
  kerning pairs?
2B - number of pairs (big endian)
xB - pair struct?

User avatar
volfin
ultra-veteran
ultra-veteran
Posts: 444
Joined: Sun Jul 06, 2014 6:30 am
Has thanked: 107 times
Been thanked: 294 times

Re: Wolfenstein: The New Order (PC)

Post by volfin » Tue Jul 15, 2014 7:40 pm

Killermannvs wrote:Well guys here it is...

I have successfuly tested all fonts and english.lang file and it works great.

Quick overview:
"Load file" - accepts resources or index file, you need both of them
"Export all" - exports all files into selected folder
"Export" - exports selected file into selected folder
"Import" - imports selected file back to .resources file and re-index .index file (this function will use a lot of memory, expect this)

You need to have .Net Framework 4.0 installed.

I hope that will help you guys and looking forward for your feedback.


If some will successfuly edit and than import font file and the game will work, let me know pls!
I notice some filenames in the list are black, and some are red. what do the colors mean?

Killermannvs
ultra-n00b
Posts: 8
Joined: Wed Nov 06, 2013 9:57 pm
Location: Czech Republic

Re: Wolfenstein: The New Order (PC)

Post by Killermannvs » Thu Jul 17, 2014 5:53 pm

volfin wrote:
Killermannvs wrote:Well guys here it is...

I have successfuly tested all fonts and english.lang file and it works great.

Quick overview:
"Load file" - accepts resources or index file, you need both of them
"Export all" - exports all files into selected folder
"Export" - exports selected file into selected folder
"Import" - imports selected file back to .resources file and re-index .index file (this function will use a lot of memory, expect this)

You need to have .Net Framework 4.0 installed.

I hope that will help you guys and looking forward for your feedback.


If some will successfuly edit and than import font file and the game will work, let me know pls!
I notice some filenames in the list are black, and some are red. what do the colors mean?

Red are compressed files, if you look at size and zsize is always different.

albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Wolfenstein: The New Order (PC)

Post by albert1905 » Sat Jul 19, 2014 6:07 pm

I'd tried to edit font mapping file and successfully reimported it but there are no change.
Below the image is chinese version. I mean, I can't change the position of glyphs. Was 64_df.dat really font mapping file..?
It doesn't read on game! Even if I make it blank file and reimported it, there are no changes!
You do not have the required permissions to view the files attached to this post.

Post Reply