Order of War. pkg file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Order of War. pkg file

Post by InKviZ »

Hi guys. Who can help unpack and repack archives pkg. They are text.
I will be glad of any help.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Order of War. pkg file

Post by aluigi »

The script was already available in my collection:
http://aluigi.org/papers/bms/order_of_war.bms
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: Order of War. pkg file

Post by InKviZ »

aluigi wrote:The script was already available in my collection:
http://aluigi.org/papers/bms/order_of_war.bms

Thank you for your script. Archives it decompresses fine. But how do I back importing text. After translation of a few lines of text and importing back into the archive.The game does not start. Is it possible to somehow create a new archive????
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Order of War. pkg file

Post by aluigi »

Try this test, re-extract the text file you want to edit and then just replace a character with a different one in a string you want to edit.
Or maybe be sure at 100% that your new file has the same size of the old one, you can just fill it with spaces to reach the original size.
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: Order of War. pkg file

Post by InKviZ »

New file a few kb larger than the original.
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: Order of War. pkg file

Post by InKviZ »

It seems you can not import translated text.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Order of War. pkg file

Post by aluigi »

Come on they are just 2 bytes more, can't you cut some useless spaces? After all it's just xml so plenty of ways to improve the space.
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: Order of War. pkg file

Post by InKviZ »

aluigi wrote:Come on they are just 2 bytes more, can't you cut some useless spaces? After all it's just xml so plenty of ways to improve the space.


In the text there that removed. So why translate to remove half of the text. I see no other way but to remove the text.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Order of War. pkg file

Post by aluigi »

You must cut the tabs/spaces used for the xml tags, not the text.
For example before the first "<rating>" there are 3 tabs so if you remove 2 of them you reach the exact original size.