Page 1 of 1

Lugaru Language Support ?

Posted: Thu Dec 17, 2009 5:20 am
by ilkondom
What you guys think ? i think different language in Lugaru would be awesome.

Re: Lugaru Language Support ?

Posted: Thu Dec 17, 2009 6:02 am
by rudel_ic
You can actually change the strings in the EXE with the help of a decompiler of some sorts (I use OllyDbg on Windows, for example). Only ASCII strings are allowed though, and the string length is not to be changed.

Here's the decompiled Lugaru (Windows) text strings:
Image

004 is the type. The address of the string that's being PUSHed here is 0xB2304.

It is imperative that the length is preserved so that the addresses still match after alteration. You also don't know how the string's being processed. Always preserve the string length!

Now, I open XVI32 and go to 0xB2304:
Image

I change the text:
Image
(Strings end with \0, by the way, so make sure the \0 stays where it is - fill the string up with spaces or something)

I start the game tutorial with this changed EXE and voila:
Image

This works on all operating systems, of course, although there are some differences (mainly tools to use, addresses and endianness).

First and foremost, you want to be extra-careful. Only use ASCII letters:
Image

Never exceed the original string length. Never cut anything out. Overwrite the string letter for letter, from the first char to the last.

Never overwrite the string-ending \0.

Do not change variables in strings (%d and stuff like that). Change their position, but not the order and not the type.

In short, it's probably best if you keep your hands off it if you don't know what you're doing, to be honest.

Edit: Also, some menu texts are plain images.

Re: Lugaru Language Support ?

Posted: Thu Dec 17, 2009 12:08 pm
by ilkondom
Cool thanks

Re: Lugaru Language Support ?

Posted: Thu Dec 17, 2009 7:11 pm
by Johannes
Rudel_ic, you rock as usual, thanks for that! Would be cool if we can get this up on the Overt Ops to create translated versions of Lugaru =)

Re: Lugaru Language Support ?

Posted: Sat Jan 16, 2010 5:04 am
by Wilbefast
good job rudel :mrgreen:

Re: Lugaru Language Support ?

Posted: Mon Jan 18, 2010 12:44 pm
by Lotus Wolf
Love the avatar, Love Guru reference?