SWBFGamers

Modding for the Original SWBF1 and SWBF2 => Requests => Topic started by: Bugmenot2017 on October 13, 2021, 12:37:48 PM

Title: .LVL File Translator
Post by: Bugmenot2017 on October 13, 2021, 12:37:48 PM
Any possibility to create a .lvl files translator to translate them to another language?

It would be great to translate maps and sides into my language, which by the way is Spanish.

If this does not belong to this forum, excuse me.
Title: Re: .LVL File Translator
Post by: Led on October 13, 2021, 04:36:31 PM
I think what you might need is the Spanish "localization" for the files.
Title: Re: .LVL File Translator
Post by: Bugmenot2017 on October 13, 2021, 04:40:03 PM
Quote from: Led on October 13, 2021, 04:36:31 PMI think what you might need is the Spanish "localization" for the files.
I know, but a program would make things easier.
Title: Re: .LVL File Translator
Post by: Led on October 13, 2021, 04:58:47 PM
look for core.lvl tool to do localization
Title: Re: .LVL File Translator
Post by: Bugmenot2017 on October 13, 2021, 05:07:20 PM
Quote from: Led on October 13, 2021, 04:58:47 PMlook for core.lvl tool to do localization
But the core.lvl of an existing map has ".loc" and ".cfg" files inside that I can't modify.

If I extract them with the SleepKiller tool they become useless.
Title: Re: .LVL File Translator
Post by: Bugmenot2017 on October 14, 2021, 04:00:08 PM
I guess the only hope I have is that SleepKiller continues with "SWBF-Unmunge" and the extracted localization is useful for editing.
Title: Re: .LVL File Translator
Post by: Dark_Phantom on October 15, 2021, 08:01:40 AM
the core lvl tool has a "Multi-Language Tool" exe with it.  That's how you edit the localizations, and it's the only way to do it at this time.
Title: Re: .LVL File Translator
Post by: Bugmenot2017 on October 15, 2021, 10:03:38 AM
Quote from: Dark_Phantom on October 15, 2021, 08:01:40 AMthe core lvl tool has a "Multi-Language Tool" exe with it.  That's how you edit the localizations, and it's the only way to do it at this time.
I know friend, but in an existing map created by a person you have a "core.lvl" file and to edit the ".cfg" files I need to extract them with the SleepKiller tool, then put those ".cfg" files in your tool (very grateful for this by the way) and run "Multi-Language Tool.exe" and then translate the texts such as the name of the map, the description, etc...

The fact is that the ".cfg" files are not extracted correctly and it is impossible to translate them, so I can only wait for SleepKiller to continue working on its program.

What I am looking for is to translate all of this from English to my language, but from the existing mods the only way to get a mod in my language is to create it myself and I prefer to translate the existing ones.
Title: Re: .LVL File Translator
Post by: Led on October 15, 2021, 03:33:54 PM
another tactic is to Hexedit the file.  Any new words cannot be longer than the existing ones
e.g. use a hex editor, search for "hello"
and replace with "hola "
Title: Re: .LVL File Translator
Post by: Dark_Phantom on October 15, 2021, 04:08:51 PM
The odds of unmunge getting any more work are very low.
Led's method would be the only way to edit existing files or creating brand new ones using the tools provided.
Title: Re: .LVL File Translator
Post by: Bugmenot2017 on October 15, 2021, 05:57:23 PM
I know that too, I guess I'll do it like that.

Anyway thank you both very much for helping.
EhPortal 1.29 © 2022, WebDev