Map Database  •  FAQ  •  RSS  •  Login

Lewin's KaM Text Editor (LIB files)

<<

Litude

User avatar

King Karolus

Posts: 1233

Joined: 01 May 2006, 22:00

Website: http://www.knightsandmerchants.net

Location: Finland

Post 25 Aug 2008, 05:31

Maina.fnt happens to be the main menu font, so it's quite important :D. Basically it's just maina.fnt that is incompitable with the font from TPR, but minimapgold.fnt (used for TPR briefings) is completely missing from TSK and needs to be created.
AFAIK it was just those and then some kmlobby font files which are useless at least the way things are now.

@Lewin:
Considering that French never was an official language, it would make more sense to make it a separate patch (making sure the patcher would patch all different language versions correctly into SR3 and French could be a pain).
If what you meant was to make sure that the French translation would be up-to-date to reflect the changes in Service Release 3, then I completely agree :).

@Fitz chevalerie:
If you send me all your French TSK font files zipped via some rapidshare or similar I could help you update the font to work correctly in TPR.
<<

Fitz chevalerie

Serf

Posts: 9

Joined: 25 Aug 2008, 22:00

Location: France

Post 26 Aug 2008, 01:51

hello !
Maina.fnt happens to be the main menu font, so it's quite important :D. Basically it's just maina.fnt that is incompitable with the font from TPR, but minimapgold.fnt (used for TPR briefings) is completely missing from TSK and needs to be created.
AFAIK it was just those and then some kmlobby font files which are useless at least the way things are now.

@Lewin:
Considering that French never was an official language, it would make more sense to make it a separate patch (making sure the patcher would patch all different language versions correctly into SR3 and French could be a pain).
If what you meant was to make sure that the French translation would be up-to-date to reflect the changes in Service Release 3, then I completely agree :).

@Fitz chevalerie:
If you send me all your French TSK font files zipped via some rapidshare or similar I could help you update the font to work correctly in TPR.
Thank you for the explaination !

it's with pleasure i send you the french fonts ! :wink:

" Registered member must have at least 5 postings to post any URL/Website Link " ... bla,bla,bla ....

I do it by MP ( if it's works )

if you want the french translated setup&text lib's , i send it after reading and testing the game with the new updated fonts ... :mrgreen:
if you're interested by the original french sounds l ... :roll: but the files are big ...
<<

Litude

User avatar

King Karolus

Posts: 1233

Joined: 01 May 2006, 22:00

Website: http://www.knightsandmerchants.net

Location: Finland

Post 26 Aug 2008, 12:48

I was lucky this time. Turns out the original English TPR font (SR2 replaces it with the German one?) has exactly the same letters (+ some additional ones) as the the French font, so I only had to do some minor changes to one of the fonts to make it work (add &NBS; and reduce spacing between lines).
You can download the font from here.
Do tell if you still have any problems!
<<

Fitz chevalerie

Serf

Posts: 9

Joined: 25 Aug 2008, 22:00

Location: France

Post 26 Aug 2008, 20:49

the download is ok !

I can now finish the translation , and testing if all the messages and items descriptions will be on place ...

another long night on my PC ! :D

the letters are ok ! youpi !
<<

Litude

User avatar

King Karolus

Posts: 1233

Joined: 01 May 2006, 22:00

Website: http://www.knightsandmerchants.net

Location: Finland

Post 09 Sep 2008, 23:13

I thought I'd report some new discoveries I made as some of the information I previously posted regarding the fonts has turned out being incorrect.
As a matter of fact, maina.fnt uses a different palette in TPR than it did in TSK, but for the most part the conversion is done automatically by the game itself. However, the Russian version of TSK uses different color values for its main menu font and the colors will therefore be messed up as they are not to be used with the new palette.
Another thing I thought would be worth pointing out is that mainmapgold.fnt and maina.fnt are 100% identical in all versions of the game I know about, so you can just simply create another copy of maina.fnt and name it mainmapgold.fnt and you have the missing TPR font.
For the kmlobby%.fnt files, they are not even necessary at all but I recommend that you use the ones from German, Polish or English TPR.
Using the information above, porting the fonts from TSK to TPR should be no problem at all.

Oh and there's one little problem though, antiqua.fnt lacks the &NBS; character by default so it has to be added manually and you also need to squish the row size. To squish the row size, change the first byte with a hex editor from 0D to 0B.
Adding the &NBS; is significantly harder though, as you will have to add a lot of bytes into the EXE and the location varies depending on the font language. First you need to change the byte at $87 from 00 to 01. In the English antiqua.fnt, the location where you need to add the &NBS; code is at $30F5, but if you try adding the letter to another language font, you might have better luck looking for
  Code:
86D88600860086393939863986D839D8393939D800D800D886D80000000000 00000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000[/quote]Just add it to the end of those bytes and it should work fine. Oh and these are the bytes you need to add: [code]09000E00000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000[/quote] If you're still having problems, just send me the antiqua.fnt file and I'll do the changes for you.
<<

pastuh

Serf

Posts: 7

Joined: 29 Dec 2008, 23:00

Post 30 Dec 2008, 19:18

Hello :)
I have problem with lib editor.. I want translate all text to lithuanian language.
All the time i see strange text.. And i cant save normal.. all the time .lib file changes to 11kb and in game text beeing randomized..

Image

Please help me :) Thx a lot
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 30 Dec 2008, 21:20

Are you sure you've got the latest version (8.5, if I'm right)? I've had this too, but that was an old version.
<<

pastuh

Serf

Posts: 7

Joined: 29 Dec 2008, 23:00

Post 31 Dec 2008, 10:07

I have 8.1 version from Lewin website.
Tryed all versions but all similars.. and i cant fix that... And translate....
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 01 Jan 2009, 00:11

Hi pastuh,
I see that you have the latest version, (in the screenshot) so that is not the problem.

Possibly you have Unicode LIB files, which my program doesn't support.
Could you please email me your two LIB files and I will see what the problem is and let you know. My email address is lewin@namsys.com.au

Thanks for reporting this!
Lewin.
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 07 Mar 2009, 01:52

Hi Everybody,
A while ago Litude suggested an option to choose the character encoding for my LIB Decoder. I tried at the time, but I couldn't see how to. Then a few days ago, after reading the posts about the Spanish text, I thought "that can't be too hard. Why don't I try again?"
So I did. :) And here is the result:
http://lewin.namsys.com.au/kam/downloads/LIBDecoder-0.8.2.zip

There is now a new option under Main Menu -> File -> Character Set. I added all of the available ones which you can choose in Lazarus. I tried it with those new Spanish LIBs and it worked! If you select the ANSI character set then the Spanish characters are displayed correctly, and the Polish ones are all weird. If you select "Eastern European" then the Polish ones are fine and the Spanish ones are weird. If you select "Chinese" then all sorts of weird characters appear, but I won't go into that. :D

Now for the bad new: Russian still doesn't work. :( Even if you use the Russian character set. My guess is that KaM uses some non-standard character set for Russian, and I would need to make a custom character set for it to work. (and I have no idea how to do that) Anyway, at least I've achieved something. Oh and I haven't fixed the Unicode issues either.

Please report bugs and make suggestions,
Lewin.
<<

Greninho

Woodcutter

Posts: 19

Joined: 19 Mar 2009, 23:00

Location: Brasil

Post 22 Mar 2009, 06:06

Lewin! Great work!! Is possible add tabs? or recent opened file? or maybe translation for your program? If you want a translation for you program in portuguese tell me XD and...
in the about window is good to put a link for your website @__@
Ah! and I've found a bug... when the application is opened the icon doesn't display
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 22 Mar 2009, 22:22

What do you want tabs for?

Recent files is possible, but it would require a config INI file which I was trying to avoid. (currently you only need the EXE to run it)
However, if you think it's worth it then please say so.

I have thought about translating it, but I thought that the program was so simple that it's hardly nececary. A German who knows no English could very easily click on the standard "Open" icon and then edit the German words. And also this program is more advanced, so beginers won't really need to use it. Translations make programs complicated, and make releases slow. But that's not to say I couldn't do it.

Putting a link to my site in About is a good idea.

The icon bug happens for all of my programs. (mission editor included) It's something to do with my programming language, and I've never really bother to find out why. I could probably fix it if I really wanted to, but it's not that important IMO.

Thanks for the feedback,
Lewin.
<<

harold

Knight

Posts: 562

Joined: 19 Nov 2007, 23:00

Post 22 Mar 2009, 22:46

You could dump the INI data in the registry, it's a bit crude but it would work in a way you can still move the exe as much as you want and you only have 1 file..
<<

Krom

User avatar

Knights Province Developer

Posts: 3280

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 23 Mar 2009, 06:58

I wonder how many recent files do you need when translating LIBs, 2? :lol:
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
<<

Litude

User avatar

King Karolus

Posts: 1233

Joined: 01 May 2006, 22:00

Website: http://www.knightsandmerchants.net

Location: Finland

Post 16 May 2009, 19:26

I happened to test the LIB Editor with the Russian SR3 and after changing the encoding everything displayed completely fine?

Return to “Other Creations”

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests