Any graphics artist looking for something different? Why not join us and create 8-bit graphics in the C64 scene! Click here for more info.
Join also our Discord channel! Click here.

Valiant Hearts The Great War BMS script

Need help translating games in other languages? Have your language problems solved here.
Post Reply
albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

Valiant Hearts The Great War BMS script

Post by albert1905 » Mon Jul 21, 2014 6:52 am

Here it is. Valiant Hearts The Great War BMS script.

Code: Select all

# Valiant Hearts The Great War PC
# Based on BMS script for Child of Light
# script for QuickBMS http://quickbms.aluigi.org

endian big
goto 0xc
get BASE_OFF long
goto 0x38   # 0x2c for Rayman Legends
get FILES long
for i = 0 < FILES
    get DUMMY1 long
    get SIZE long
    get ZSIZE long
    get TSTAMP longlong
    get OFFSET longlong
    if DUMMY1 == 2
        get DUMMY4 long
        get DUMMY5 long
    endif
    get FOLDERSZ long
   getdstring FOLDER FOLDERSZ
   get NAMESZ long
   getdstring NAME NAMESZ
   string FOLDER + NAME
   string NAME = FOLDER
    math OFFSET += BASE_OFF
    if ZSIZE == 0
        log NAME OFFSET SIZE
    else
        clog NAME OFFSET ZSIZE SIZE
    endif
   get DUMMY6 long
   get DUMMY7 long
next i

namquang93
veteran
Posts: 116
Joined: Mon Apr 09, 2012 8:40 am
Has thanked: 50 times
Been thanked: 5 times

Re: Valiant Hearts The Great War BMS script

Post by namquang93 » Mon Jul 21, 2014 9:24 am

albert1905 wrote:Here it is. Valiant Hearts The Great War BMS script.

Code: Select all

# Valiant Hearts The Great War PC
# Based on BMS script for Child of Light
# script for QuickBMS http://quickbms.aluigi.org

endian big
goto 0xc
get BASE_OFF long
goto 0x38   # 0x2c for Rayman Legends
get FILES long
for i = 0 < FILES
    get DUMMY1 long
    get SIZE long
    get ZSIZE long
    get TSTAMP longlong
    get OFFSET longlong
    if DUMMY1 == 2
        get DUMMY4 long
        get DUMMY5 long
    endif
    get FOLDERSZ long
   getdstring FOLDER FOLDERSZ
   get NAMESZ long
   getdstring NAME NAMESZ
   string FOLDER + NAME
   string NAME = FOLDER
    math OFFSET += BASE_OFF
    if ZSIZE == 0
        log NAME OFFSET SIZE
    else
        clog NAME OFFSET ZSIZE SIZE
    endif
   get DUMMY6 long
   get DUMMY7 long
next i
Do you know where is text located ? Thanks !

albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Valiant Hearts The Great War BMS script

Post by albert1905 » Mon Jul 21, 2014 10:25 am

localisation.loc8 contains all of the language scripts of Valiant Hearts.

Work with rayman tool(made by swuforce).

How to usage

1) export localisation.loc8 to text files.
2) choose the one tex(one language) and edit it
3) import that one text file to *.loc8 files.

For example, use rayman tool(made by swuforce) to export text from localisation.loc8. And edit 'RaymanLegendsText_0'(English). After that, use import and select 'RaymanLegendsText_0' and then select 'localisation.loc8'. Then you can get NEW_localisation.loc8. Rename it to localisation.loc8 and check it on the game.

You can find font data at C:\Program Files (x86)\Valiant Hearts The Great War\Bundle_unpack\cache\itf_cooked\pc\enginedata\misc\fonts and child of light template(made by tomsolo) also work with Valiant Hearts. So you can edit the font mapping data by 010 editor with that template.

For the '*.tga.ckd', just delete header(0x38h) and rename it to dds. Then you can edit it on the photoshop.
Last edited by albert1905 on Mon Jul 21, 2014 11:41 am, edited 3 times in total.

swuforce
veteran
Posts: 121
Joined: Thu Nov 05, 2009 8:46 pm
Has thanked: 11 times
Been thanked: 105 times

Re: Valiant Hearts The Great War BMS script

Post by swuforce » Mon Jul 21, 2014 11:17 am

Did you just rename my tool, upload again(original still available), and post it here?

albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Valiant Hearts The Great War BMS script

Post by albert1905 » Mon Jul 21, 2014 11:26 am

swuforce wrote:Did you just rename my tool, upload again(original still available), and post it here?
If you upset it, I'm sorry for that. But I post it here because namquang93 asking how to adjust merlinsvk's bms script to valiant hearts. viewtopic.php?f=10&t=11475.
So, I just give he or she the information about it. I mentioned the author of template but don't know the writer of rayman tools so I just post it without your nickname. I just grab the tool, template and show namquang93 how to localizing it, instead of link, for the simplest information.

namquang93
veteran
Posts: 116
Joined: Mon Apr 09, 2012 8:40 am
Has thanked: 50 times
Been thanked: 5 times

Re: Valiant Hearts The Great War BMS script

Post by namquang93 » Mon Jul 21, 2014 12:13 pm

swuforce wrote:Did you just rename my tool, upload again(original still available), and post it here?
albert1905 wrote:
swuforce wrote:Did you just rename my tool, upload again(original still available), and post it here?
If you upset it, I'm sorry for that. But I post it here because namquang93 asking how to adjust merlinsvk's bms script to valiant hearts. viewtopic.php?f=10&t=11475.
So, I just give he or she the information about it. I mentioned the author of template but don't know the writer of rayman tools so I just post it without your nickname. I just grab the tool, template and show namquang93 how to localizing it, instead of link, for the simplest information.
Sorry for that! Beacause of my asking! And thanks swuforce with albert1905. :)

swuforce
veteran
Posts: 121
Joined: Thu Nov 05, 2009 8:46 pm
Has thanked: 11 times
Been thanked: 105 times

Re: Valiant Hearts The Great War BMS script

Post by swuforce » Mon Jul 21, 2014 6:36 pm

loc8 tool here: viewtopic.php?f=10&t=11295
localization and font templates by tomsolo here: viewtopic.php?f=35&t=11494&p=94481
This is the simplest way...

Then you can write your detailed information about usage, if you want.

namquang93
veteran
Posts: 116
Joined: Mon Apr 09, 2012 8:40 am
Has thanked: 50 times
Been thanked: 5 times

Re: Valiant Hearts The Great War BMS script

Post by namquang93 » Tue Jul 22, 2014 4:12 am

swuforce wrote:loc8 tool here: viewtopic.php?f=10&t=11295
localization and font templates by tomsolo here: viewtopic.php?f=35&t=11494&p=94481
This is the simplest way...

Then you can write your detailed information about usage, if you want.
Thanks! :D

survfate
n00b
Posts: 11
Joined: Fri Jul 13, 2012 6:43 am
Has thanked: 7 times
Been thanked: 1 time

Re: Valiant Hearts The Great War BMS script

Post by survfate » Sun Jul 27, 2014 8:26 am

swuforce wrote:loc8 tool here: viewtopic.php?f=10&t=11295
localization and font templates by tomsolo here: viewtopic.php?f=35&t=11494&p=94481
This is the simplest way...

Then you can write your detailed information about usage, if you want.
Unlike CoL, Valiant Hearts got no templateinstance_pc32.ipk file for the bypass trick by tomsolo. Does it meant either we have to Patch the .exe for using the modified font in the root or worse - extracted the whole Bundle_PC.ipk? Anybody have a solution here? Also is it possible to repack the ipk in the first place?

EDIT: Try repack using quickbms, but not working... :[

sarzamin
beginner
Posts: 38
Joined: Fri Nov 19, 2010 3:19 pm
Location: Dubai
Has thanked: 3 times
Contact:

Re: Valiant Hearts The Great War BMS script

Post by sarzamin » Thu Sep 25, 2014 4:42 pm

albert1905 wrote:For the '*.tga.ckd', just delete header(0x38h) and rename it to dds. Then you can edit it on the photoshop.
Hi, i want some help with these files.

there are a lot of ".tga.ckd". I want convert all of them to dds. is there any program or bms script to do this?

sorry for my bad english.

merlinsvk
ultra-veteran
ultra-veteran
Posts: 411
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 117 times

Re: Valiant Hearts The Great War BMS script

Post by merlinsvk » Thu Sep 25, 2014 7:01 pm

Code: Select all

# .tga.ckd to .dds
# Valiant Hearts

get NAME basename
get SIZE asize
math SIZE -= 0x38
string NAME += ".dds"
log NAME 0x38 SIZE

sarzamin
beginner
Posts: 38
Joined: Fri Nov 19, 2010 3:19 pm
Location: Dubai
Has thanked: 3 times
Contact:

Re: Valiant Hearts The Great War BMS script

Post by sarzamin » Sat Sep 27, 2014 12:34 pm

merlinsvk wrote:

Code: Select all

# .tga.ckd to .dds
# Valiant Hearts

get NAME basename
get SIZE asize
math SIZE -= 0x38
string NAME += ".dds"
log NAME 0x38 SIZE
Thanks, man :keke:

Post Reply