X-Heroes (.bag)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
onelove1210
Posts: 58
Joined: Thu Jun 16, 2016 11:02 am

X-Heroes (.bag)

Post by onelove1210 »

This is Chinese game and .bag is a type of its archives.
sample files: https://drive.google.com/file/d/0B3xmTf ... FsSnM/view

I just found out in Hex Viewer that the structure of this file is: Each .dds file is sorted alternately, but seem like they were encrypted . I'm not good at this one.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: X-Heroes (.bag)

Post by aluigi »

The format is a sort of modified version of http://aluigi.org/bms/1gab_2gab_bag.bms (which doesn't work so don't try)
What I did was rotating the xor values for every read performed on the information table and it almost worked because the values were almost matching but are still wrong.
So I bet that the XOR values have been slightly changed.

Does someone have some bag files of the other games using the same format?
  • Dragon Sword
  • JianLong
  • Revelation Online
  • TianYu
onelove1210
Posts: 58
Joined: Thu Jun 16, 2016 11:02 am

Re: X-Heroes (.bag)

Post by onelove1210 »

aluigi wrote:Does someone have some bag files of the other games using the same format?
  • Dragon Sword
  • JianLong
  • Revelation Online
  • TianYu


I will download 1 of those games and then upload the samples soon :D
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Re: X-Heroes (.bag)

Post by godskin »

X-Heroes : What website
onelove1210
Posts: 58
Joined: Thu Jun 16, 2016 11:02 am

Re: X-Heroes (.bag)

Post by onelove1210 »

aluigi wrote:
Does someone have some bag files of the other games using the same format?
  • Dragon Sword
  • JianLong
  • Revelation Online
  • TianYu


http://www.mediafire.com/file/u617yf3iy ... area_04.7z. Here you are

godskin wrote:X-Heroes : What website

I don't know, my friend sent me for help
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: X-Heroes (.bag)

Post by aluigi »

From what game that area_04.bag comes from?

I asked for the bag archives of those other games to check if there is something in common with this (new?) format.
Because I have no idea of how to going forward with it.
Shine
Posts: 32
Joined: Fri Oct 17, 2014 4:56 pm

Re: X-Heroes (.bag)

Post by Shine »

Dragon Sword《网易龙剑》
http://lj.163.com/index.html
No update since June 2016


JianLong is the First Version of Dragon Sword《网易龙剑》
Then it renamed as Dragon Sword《网易龙剑》


X-Heroes《突击英雄》
http://tuji.163.com/
No update since Feb 2016


TianYu《天谕》
http://tianyu.163.com/fab/1/


Revelation Online is English version of TianYu
https://ro.my.com/en


All my client files are very old, can be open with old BMS script or JLBAGUnpacker.
no use to upload!?
And i belive area_04.bag was from Dragon Sword《网易龙剑》
williammc
Posts: 5
Joined: Thu Nov 24, 2016 11:33 am

Re: X-Heroes (.bag)

Post by williammc »

Does anyone know how I can extract Revelation files online?
The file extension is .PG
I need to extract them to translate the game.

Link of the file I'm trying to extract. https://mega.nz/#!nZghBKhR!jh1Nni79ZIEXkKFfdvQF4yYIqr5LwPSWM6Rd4izUogU
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: X-Heroes (.bag)

Post by aluigi »

@williammc
It's a problem of the compression algorithm of Revelation Online that quickbms uses from here: viewtopic.php?p=5412#p5412 (which is an original dump from the game)
Maybe the developers changed it a bit because the output is partially correct (but not correct as far as I can see) before the compression algorithms says that there is an error.
Personally I will not work on this so any external contribution is welcome.
jackolo
Posts: 1
Joined: Wed Dec 21, 2016 8:16 am

Re: X-Heroes (.bag)

Post by jackolo »

Here's another Netease game(WildFire Online) that uses .bag files, and is updated every 2 weeks.
Sample: https://mega.nz/#!PFVTzQBY!uODqrJAP6Gvu ... RAYTTYAhRA

Using http://aluigi.org/bms/1gab_2gab_bag.bms to attempt to unpack it yield this error message: http://i.imgur.com/WaO5afc.png
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: X-Heroes (.bag)

Post by aluigi »

Unfortunately there will be no further updates for the script because there is something that changed with the keys (their value, their possible modification for each cycle and how they are used in each cycle) as I analyzed some weeks ago just by making tests on the file (no reversing).
Sorry.