Lugaru Language Support ?

The place to discuss all things Lugaru.
Post Reply
ilkondom
Posts: 178
Joined: Wed Apr 15, 2009 2:42 am

Lugaru Language Support ?

Post by ilkondom » Thu Dec 17, 2009 5:20 am

What you guys think ? i think different language in Lugaru would be awesome.

User avatar
rudel_ic
official Wolfire heckler
Posts: 2193
Joined: Sun Aug 28, 2005 11:19 pm
Location: Hamburg City
Contact:

Re: Lugaru Language Support ?

Post by rudel_ic » Thu Dec 17, 2009 6:02 am

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.

ilkondom
Posts: 178
Joined: Wed Apr 15, 2009 2:42 am

Re: Lugaru Language Support ?

Post by ilkondom » Thu Dec 17, 2009 12:08 pm

Cool thanks

User avatar
Johannes
Posts: 1374
Joined: Thu Dec 18, 2008 1:26 am
Contact:

Re: Lugaru Language Support ?

Post by Johannes » Thu Dec 17, 2009 7:11 pm

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 =)

User avatar
Wilbefast
Posts: 1204
Joined: Wed Dec 31, 2008 2:32 pm
Location: In a sealed box shielded against environmentally induced quantum decoherence
Contact:

Re: Lugaru Language Support ?

Post by Wilbefast » Sat Jan 16, 2010 5:04 am

good job rudel :mrgreen:

User avatar
Lotus Wolf
Posts: 2218
Joined: Sun Aug 31, 2008 6:03 pm

Re: Lugaru Language Support ?

Post by Lotus Wolf » Mon Jan 18, 2010 12:44 pm

Love the avatar, Love Guru reference?

Post Reply