Papers, Please (PC) Art.dat

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Papers, Please (PC) Art.dat

Post by puggsoy »

There's an extraction tool for it here, but it appears to only support versions 1.0.3 and 1.0.4. I don't have a XeNTaX account anyway so I can't download it. Haoose's tool is simply a packer, and the latest extracted files he uploaded are from version 1.1.60, while the latest version is 1.1.65.

Any help would be appreciated, I've attached the file in question.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers, Please (PC) Art.dat

Post by aluigi »

I have attached the decrypted Art.dat.
I'm sure that Ekey will be kind enough to share PPTool also here on zenhax.

I think that your decision to not register on xentax while it was free wasn't a good idea, not a surprise that xentax returned to be payware just as I expected :)
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: Papers, Please (PC) Art.dat

Post by puggsoy »

Unfortunately I only discovered XeNTaX when it was already payware, it's a shame because it's definitely a great place that has helped me a lot. Luckily you made this forum which I'm very thankful for :)

In any case thank you for decrypting that! I thought it wasn't able to support the newer version but apparently I was wrong.

EDIT: Made a QuickBMS script:

Code: Select all

# Papers, Please decrypted Art.dat format
#
# Written by puggsoy
# script for QuickBMS http://quickbms.aluigi.org

get OFFSET short
math OFFSET += 2

goto 4

for STOP = 0 == 0
   callfunction READSTRING 1
   
   if STR == "name"
      print "foo"
      callfunction READSTRING 1
   endif
   
   set NAME STR
   string NAME replace "%2F" "/"
   
   get TEST byte
   
   if TEST == 0x79
      getct SKIPSTR string 0x3A
      set SKIP long SKIPSTR
      getdstring DUMMY SKIP
   elif TEST == 0x52
      idstring "2"
   endif
   
   get TEST byte
   
   if TEST == 0x69
      getct SZSTR string 0x67
      set SIZE long SZSTR
      
      log NAME OFFSET SIZE
      
      math OFFSET += SIZE
   elif TEST == 0x7A
      idstring "g"
   else
      print %TEST%
   endif
   
   get TEST byte
   
   if TEST == 0x6F
      idstring "R0"
   elif TEST == 0x68
      set STOP 1
   endif
next

startfunction READSTRING
   idstring "y"
   getct LNSTR string 0x3A
   set LN long LNSTR
   
   getdstring STR LN
endfunction


It's sorta hacked together (the format is weird), but it works. Feel free to suggest any improvements though.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Papers, Please (PC) Art.dat

Post by Ekey »

here tool.

Code: Select all

PPTool -d -2 Art.dat Art.dat.dec


more info
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers, Please (PC) Art.dat

Post by aluigi »

My script for extracting the files from the decrypted archive is available here:
http://aluigi.org/papers/bms/others/papers_please.bms
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers, Please (PC) Art.dat

Post by aluigi »

Script updated to version 0.2 for automatically decrypting the input file without using pptool (thanks Ekey)
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: Papers, Please (PC) Art.dat

Post by puggsoy »

Thanks! Guess I should always check your website before I make a script myself :P

And thank you Ekey for your help :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers, Please (PC) Art.dat

Post by aluigi »

Don't worry, I made the script just before posting so there was nothing on the website.
ZickLeArtist
Posts: 5
Joined: Sun Apr 19, 2020 2:36 am

Re: Papers, Please (PC) Art.dat

Post by ZickLeArtist »

Question, the packer packs things up in .dec. How do i turn it to .dat?
ZickLeArtist
Posts: 5
Joined: Sun Apr 19, 2020 2:36 am

Re: Papers, Please (PC) Art.dat

Post by ZickLeArtist »

aluigi wrote:Don't worry, I made the script just before posting so there was nothing on the website.


I don't know how to deal with this

Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers, Please (PC) Art.dat

Post by aluigi »

It's clearly written that the script is not valid for reimporting, I can't help with the packer.
ZickLeArtist
Posts: 5
Joined: Sun Apr 19, 2020 2:36 am

Re: Papers, Please (PC) Art.dat

Post by ZickLeArtist »

Here's the thing though. I extract the files using QuickBMS using Papersplease.bms. And try to reimport it using the same .bms file. I get the whole "Script is not valid for reimporting"

I only changed assets, and those assets are smaller than original.

Image

Besides that, I didn't touch anything. What's going on?

Edit: I actually did try reimport the original files itself and it came out the same error. and I didn't touch anything.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers, Please (PC) Art.dat

Post by aluigi »

You canNOT use the script in reimport mode, doesn't matter what you changed or didn't.
I don't know how to say it differently.
ZickLeArtist
Posts: 5
Joined: Sun Apr 19, 2020 2:36 am

Re: Papers, Please (PC) Art.dat

Post by ZickLeArtist »

Then how can i reimport it? I just....can't? That's it?
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: Papers, Please (PC) Art.dat

Post by Haoose »

ZickLeArtist wrote:How do i turn it to .dat?

Use PPTool by EKey
viewtopic.php?p=26108#p2403
ZickLeArtist
Posts: 5
Joined: Sun Apr 19, 2020 2:36 am

Re: Papers, Please (PC) Art.dat

Post by ZickLeArtist »

Haoose wrote:
ZickLeArtist wrote:How do i turn it to .dat?

Use PPTool by EKey
viewtopic.php?p=26108#p2403


Thanks but I'm using version 1.0.65-S. The pptool in that post only for 1.0.4X

The latest one, even with a new UI, doesn't let me encrypt it or at least shows me how
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: Papers, Please (PC) Art.dat

Post by Haoose »

ZickLeArtist wrote:Thanks but I'm using version 1.0.65-S. The pptool in that post only for 1.0.4X

No, you're wrong. For 1.0.65-S too use "-2" option, like for 1.0.4X
LaserVenom
Posts: 1
Joined: Sun Jun 19, 2022 11:37 pm

Re: Papers, Please (PC) Art.dat

Post by LaserVenom »



Recently Papers Please was updated to version 1.2.76 which the packer cannot support packing the files for the new version.

The files from the new version are still able to be extracted using the previous methods but cannot be packed without an update to the packer tool.

I was hoping you might be able to update your packer to add support for version 1.2.76