Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 5 6 [7] 8 9 ... 17

Author Topic: Dwarf Fortress localization patch  (Read 113045 times)

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #90 on: August 29, 2014, 12:19:21 pm »

â = ├ó
ç = ├º

The font likely needs to be swapped, but this particular set of characters also shows you have saved your file as UTF-8, but the game and/or the utility doesn't handle that encoding. You need to save the file in the appropriate single-byte code page (which your editor will likely call something like Windows-1252, Latin1, or possibly ANSI).
You are right, the utility (and DF itself) does not support UTF-8. The native codepage for DF is cp437.
Logged

TioFuna

  • Escaped Lunatic
    • View Profile
    • DF Localization Tool
Re: Dwarf Fortress localization patch
« Reply #91 on: August 29, 2014, 05:04:17 pm »

â = ├ó
ç = ├º

The font likely needs to be swapped, but this particular set of characters also shows you have saved your file as UTF-8, but the game and/or the utility doesn't handle that encoding. You need to save the file in the appropriate single-byte code page (which your editor will likely call something like Windows-1252, Latin1, or possibly ANSI).
You are right, the utility (and DF itself) does not support UTF-8. The native codepage for DF is cp437.

Yesss.  :D

I open in other editor and save in MS-DOS format.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #92 on: August 30, 2014, 03:06:52 am »

Can someone share a template.lng for 0.40.10 please? I tried to prepare one from string dump and it looked like it worked, but then my game stopped understanding what "SHIELD" is.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

scamtank

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #93 on: August 30, 2014, 04:31:58 am »

That'd be kinda finicky, considering that Pastebin doesn't like 500+ KB entries. This regular expression does the job fine in Notepad++:

Code: [Select]
^.{1,8}\|

replaced with

\|

If it comes down to it, you don't really need to prepare them. The interpreter only looks at things between the ||:s. Getting rid of the hex addresses only makes it look neater.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #94 on: August 31, 2014, 10:27:57 am »

I did that, why the hell does my game not like SHIELD type after that :P. Weird. Just as soon as I used the .exe dump, it told me that 5 raws are modified even though I did not change anything. I will try to find out what caused it.

P.S. Also you could just upload the .txt file anywhere :).
« Last Edit: August 31, 2014, 12:56:50 pm by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

scamtank

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #95 on: August 31, 2014, 01:13:21 pm »

Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #96 on: August 31, 2014, 01:21:20 pm »

Nah, I already did what you suggested (because it was listed a page or two back) and it was breaking something in the game. I literally removed ^.{1,8}\| and then duplicated \1\1. My notpad++ crashed once but then worked, and then the game started to understand what a SHIELD is. I still wonder what did I do wrong :D. Thanks for the upload bro.

So I already was able to fish, but I fished out an abomination instead of a carp. Thanks for the help!
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #97 on: November 01, 2014, 07:17:36 am »

Just uploaded stringdump_0_40_13_noprefix.txt, stringdump_0_40_14_noprefix.txt (without hexadecimal prefixes):
https://bitbucket.org/dfint/stringdumps/src
Logged

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #98 on: November 28, 2014, 06:43:17 am »

Now string dumps from 0.40.15 through 0.40.19 available here:
https://bitbucket.org/dfint/stringdumps/src

Also string extracting script extract_strings.py (Python 3) is now available in this repo:
https://bitbucket.org/dfint/dfrus-py
P.S. You need to download the whole repository (except maybe dfrus.py and disasm.py), because extract_string.py depends on modules from it.
« Last Edit: November 28, 2014, 10:04:44 am by insolor »
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #99 on: November 28, 2014, 08:08:19 am »

Hah, it's almost as if you noticed me poking around your repositories, looking if you had the string extraction tool lying around somewhere. Thank you.
Logged

insolor

  • Bay Watcher
    • View Profile
    • My projects on the Github
Re: Dwarf Fortress localization patch
« Reply #100 on: November 29, 2014, 11:40:39 am »

Hah, it's almost as if you noticed me poking around your repositories, looking if you had the string extraction tool lying around somewhere. Thank you.
I've translated it to Python (earlier it was in Euphoria) and considered it could be usefull for somebody. Glad to see that I was right :)
« Last Edit: November 29, 2014, 11:42:32 am by insolor »
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Dwarf Fortress localization patch
« Reply #101 on: November 29, 2014, 01:42:19 pm »

Thank you kindly :)
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Dwarf Fortress localization patch
« Reply #102 on: December 06, 2014, 10:29:51 pm »

Edit: I posted a string dump, but apparently it doesnt work correctly with the current version.
« Last Edit: December 08, 2014, 06:16:48 pm by Meph »
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

scamtank

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress localization patch
« Reply #103 on: December 19, 2014, 09:43:55 am »

Hey, now that a new version is on the table again, I have a problem. After guessing how it works, I do this:



...but that's all it does. Do you know what's up?
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Dwarf Fortress localization patch
« Reply #104 on: December 19, 2014, 12:42:01 pm »

Forgot a ' before the stringdump.txt' ? Just guessing, I dont know python. Maklak always knows quite a bit.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::
Pages: 1 ... 5 6 [7] 8 9 ... 17