CityBus Simulator Munich *.pak

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlterEGO
Posts: 6
Joined: Tue Nov 10, 2015 10:39 am

CityBus Simulator Munich *.pak

Post by AlterEGO »

Good day. Please help me to unpack *.pak files, namely BaseWorld.pak and GameData.pak.
Game - highly modified C4 engine. Scripts: bussimulator2012.bms, bussim2012.bms and c4.the bms is not able to unpack this archives.

I attach the beginning and the end of the files:

BaseWorld.pak.rar
GameData.pak.rar
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: CityBus Simulator Munich *.pak

Post by aluigi »

AlterEGO
Posts: 6
Joined: Tue Nov 10, 2015 10:39 am

Re: CityBus Simulator Munich *.pak

Post by AlterEGO »

aluigi wrote:http://aluigi.org/bms/bussimulator2012.bms

Thanks Luigi.
I tried to use 3 scripts:
Bus Simulator 2012 . 0x62 . deflate
Bus Simulator 2012 pak decrypter . xor
Bus Simulator 2012 PAK->ZIP decrypter . xor
but all 3 scripts do not allow to correctly unpack the file *.pak :(

Script PAK->ZIP decrypter . xor generates a zip file that cannot be opened due to error:"Archive is corrupt" and "Unexpected end of archive". I use Winrar and 7z archiver.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: CityBus Simulator Munich *.pak

Post by aluigi »

Try my zip.bms script and let me know if it can extract the generated zip file:
http://aluigi.org/bms/zip.bms
AlterEGO
Posts: 6
Joined: Tue Nov 10, 2015 10:39 am

Re: CityBus Simulator Munich *.pak

Post by AlterEGO »

aluigi wrote:Try my zip.bms script

The result of your script:

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

Re: CityBus Simulator Munich *.pak

Post by aluigi »

The bussimulator2012.bms script is perfect as visible from all the readable PK fields but, apparently, the deflate stream has an additional layer of obfuscation. Just guessing because a scanning by xoring your sample with the bytes from 0x to 0xff didn't give decompressed data.
AlterEGO
Posts: 6
Joined: Tue Nov 10, 2015 10:39 am

Re: CityBus Simulator Munich *.pak

Post by AlterEGO »

Luigi, thank you for your answer.
Is there a little chance to decompress these game archives?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: CityBus Simulator Munich *.pak

Post by aluigi »

The problem is caused by a different obfuscation key which differs just in few bytes.
Can you upload Game.vPlugin?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: CityBus Simulator Munich *.pak

Post by aluigi »

I no longer need it.
Script 0.2:
http://aluigi.org/bms/bussim2012.bms

It contains 3 different keys, all those that have been encountered till now.

All the other scripts have been removed because they were just duplicates.
AlterEGO
Posts: 6
Joined: Tue Nov 10, 2015 10:39 am

Re: CityBus Simulator Munich *.pak

Post by AlterEGO »

Thank you Luigi! The script works fine :)

I don't have time to write in the topic, but tonight my friend gave me the script, which is also successfully unpacked game archives:
City Bus Simulator Munich.rar

2 scripts work equally well :)

Thanks again for the help ;)
rafaelkaiz
Posts: 2
Joined: Mon Apr 18, 2016 2:27 pm

Re: CityBus Simulator Munich *.pak

Post by rafaelkaiz »

Hello! Thanks a lot!

The script working fine, so i have a question:
Is posible 'Packed' these files?

for modding the game, for example, translate the game.
rafaelkaiz
Posts: 2
Joined: Mon Apr 18, 2016 2:27 pm

Re: CityBus Simulator Munich *.pak

Post by rafaelkaiz »

ok, not need! work good withouth .pak files :)