DerelictStudios Forums: Localized Versions Of Your Mod - DerelictStudios Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Localized Versions Of Your Mod Easy way of making translated versions

#1 User is offline   Count von Phoib 

  • Dark Volcano Lord
  • Group: Volcano Lord
  • Posts: 15,322
  • Joined: 05-April 03
  • Mod Registrations:

Posted 03 September 2007 - 11:56 PM

A small tutorial on how to make multilangual mods, or more precisely, multiple versions of your mod with just the string file altered.

Name of the mod I use for this is EXAMPLE, with the Dutch version as EXAMPLENL and the German version as EXAMPLED

Copy your BuildMod.bat, and name it something easy. Example.bat would work best in this case. Then edit the lines up to @echo Copying built mod..., to read as following, not forgetting to replace EXAMPLE with your mod name.
CODE
@echo off
@echo Mod Name: %1
@echo Building Mod Data...
tools\binaryAssetBuilder.exe "%cd%\Mods\EXAMPLE\data\mod.xml" /od:"%cd%\BuiltMods" /iod:"%cd%\BuiltMods" /ls:false /gui:false /UsePrecompiled:true /vf:true /LinkedStreams:true"
@echo Copying str file if it exists...
IF EXIST "%cd%\Mods\%1\data\mod.str" copy "%cd%\Mods\%1\data\mod.str" "%cd%\BuiltMods\mods\%1\data"
@echo Copying Shaders...
IF NOT EXIST "%cd%\BuiltMods\mods\EXAMPLE\Shaders" md "%cd%\BuiltMods\mods\%1\Shaders"
copy "%cd%\Shaders\*.fx" "%cd%\BuiltMods\mods\%1\Shaders"
@echo Copying ini files...
IF NOT EXIST "%cd%\BuiltMods\mods\%1\data\ini" md "%cd%\BuiltMods\mods\%1\data\ini"
copy "%cd%\Mods\EXAMPLE\data\ini\*.*" "%cd%\BuiltMods\mods\%1\data\ini\"
@echo Creating Mod Big File...
tools\MakeBig.exe -f "%cd%\BuiltMods\mods\%1" -x:*.asset -o:"%cd%\BuiltMods\mods\%1.big"
@echo Copying built mod...

Do not forget the lines under Copying built mod, those should remain!
Do not forget to change every instance of EXAMPLE with your original mod name!

Then run it as explained in the commandline as Example.bat ExampleNL and Example.bat ExampleD.

Both commands make versions of your EXAMPLE mod with their own string files.

Of course, you still have to make those string files yourself...

Addendum: this installer automaticly has the right INI lines built in as well.
0

#2 User is offline   Dibelius 

  • Private
  • Group: Volcano Citizen
  • Posts: 43
  • Joined: 25-August 07

Posted 16 September 2007 - 09:55 PM

How does the game recognize that the mod version called "EXAMPLENL" contains a dutch mod.str, the version "EXAMPLED" a german mod.str etc.?
Aren't these only different mod versions and you have to select the right one manually via Control Panel?

I don't get it blink.gif
0

#3 User is offline   Count von Phoib 

  • Dark Volcano Lord
  • Group: Volcano Lord
  • Posts: 15,322
  • Joined: 05-April 03
  • Mod Registrations:

Posted 16 September 2007 - 10:29 PM

The user still has to manually select the right version. But its easier to make this way.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users