The rules have been updated, read them now: Rules!

Port Royale 4 wrong unpacking global.res

Need help translating games in other languages? Have your language problems solved here.
Post Reply
slawek
ultra-n00b
Posts: 3
Joined: Sat Mar 27, 2021 11:25 am

Port Royale 4 wrong unpacking global.res

Post by slawek » Sun Mar 28, 2021 8:37 pm

hi

I have a problem with unpacking the global.res file for the game Port Royale 4 version 1.5 (the latest).It extract file but there is empty global.txt file I use tools from Port Royale 3 that worked in older versions of Port Royale 4: port_royale3_text_export.exe and port_royale3_text_import.exe, . Needed files are in attachments, I also thought about quickbms but there is no batch file .bms ...Please help
global-new.7z
You do not have the required permissions to view the files attached to this post.

slawek
ultra-n00b
Posts: 3
Joined: Sat Mar 27, 2021 11:25 am

Re: Port Royale 4 wrong unpacking global.res

Post by slawek » Sun Mar 28, 2021 8:56 pm

Tools pack/unpack txt for Port Royale 3 - works on older versions of Port Royale 4 (less than 1.5)

link to tools
https://dark0946.tistory.com/m/47?category=537202

in the attachment the older version of global.res by Port royale 4 .Please help unpacking globalnew.res
global-oldres.7z
You do not have the required permissions to view the files attached to this post.

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

Re: Port Royale 4 wrong unpacking global.res

Post by ikskoks » Fri Apr 02, 2021 10:36 pm

Hello. I have compared both of your samples and there are indeed some differences as you said.
Here you can see my documentation http://wiki.xentax.com/index.php/Port_Royale_4_RES

I have also created a tool which will extract data to TXT file.
You can check it here https://github.com/bartlomiejduda/Tools ... ES_Tool.py


After extraction you will see something like this https://i.imgur.com/SQ0mixO.png

slawek
ultra-n00b
Posts: 3
Joined: Sat Mar 27, 2021 11:25 am

Re: Port Royale 4 wrong unpacking global.res

Post by slawek » Sat Apr 03, 2021 12:51 pm

Hello

It works!! :mrgreen:
You are the master - thank you. Global.res unpacking works.
I have a question: how to pack this txt file back to thearchive global.res :?:

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

Re: Port Royale 4 wrong unpacking global.res

Post by ikskoks » Sat Apr 03, 2021 1:09 pm

Repacking would require creating custom import tool. Some values are stil unknown in the header section, also there is some new field (checksum?) in the info section which was not present in the 1.4 version of the game.

Theoretically copying unknown values from original global.res as-is to the new one could work,
but someone would need to do some testing on that.

So until someone will figure it out, you can only export.

Post Reply