Tropico 4 HPK translation

Need help translating games in other languages? Have your language problems solved here.
Post Reply
ferar720
ultra-n00b
Posts: 3
Joined: Fri Apr 08, 2016 5:37 pm
Has thanked: 1 time

Tropico 4 HPK translation

Post by ferar720 » Sun Aug 08, 2021 5:02 pm

Good evening,

I was trying create Update1.hpk with edited text file but translated text don´t show. Using HPK.exe.

Steam version or GOG don´t show.

Thank you for advice.

User avatar
ikskoks
Moderator
Posts: 1040
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 523 times
Been thanked: 255 times
Contact:

Re: Tropico 4 HPK translation

Post by ikskoks » Sun Aug 08, 2021 7:40 pm

What is HPK.exe and how exactly did you use it?

Can you upload some samples of the language files?

ferar720
ultra-n00b
Posts: 3
Joined: Fri Apr 08, 2016 5:37 pm
Has thanked: 1 time

Re: Tropico 4 HPK translation

Post by ferar720 » Mon Aug 09, 2021 7:24 pm

HPK.exe unpacker and packer
https://github.com/nickelc/hpk

Use cmd-line and no problem with unpacking and packing.

Sure.
https://www.dropbox.com/s/c0lofswh8g2zj ... 1.hpk?dl=0

User avatar
ikskoks
Moderator
Posts: 1040
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 523 times
Been thanked: 255 times
Contact:

Re: Tropico 4 HPK translation

Post by ikskoks » Mon Aug 09, 2021 8:30 pm

I'm getting this error while unpacking:

Code: Select all

Error: Hpk(Io(Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" }))
So maybe you didn't encode your text files in proper way? Try to save them as UTF8 files.

ferar720
ultra-n00b
Posts: 3
Joined: Fri Apr 08, 2016 5:37 pm
Has thanked: 1 time

Re: Tropico 4 HPK translation

Post by ferar720 » Mon Aug 09, 2021 8:39 pm

No, file is original from Steam.

And my edited file.
https://www.dropbox.com/s/3soi0f0ayqofc ... z.hpk?dl=0

And yes, file saved with utf-8 coding.
https://www.dropbox.com/s/s2txg6t5qfhb3 ... s.lua?dl=0

nickelc
ultra-n00b
Posts: 1
Joined: Thu Sep 16, 2021 6:20 pm
Been thanked: 2 times

Re: Tropico 4 HPK translation

Post by nickelc » Thu Sep 16, 2021 6:37 pm

Hi,

There was an issue with the processing of the file dates after unpacking.
The argument --ignore-filesdates would prevent this error but I also released a new version of my tool that should fix the problem.

Post Reply