Since december 2012 Battlestations: Midway is supported by GameSpy no longer. The only one possibility for Midway players is GameRanger. Please visit www.gameranger.com, download Gameranger client and make new account. You can find other Midway players in the Gameranger rooms. BS:M patch 1.1.1 is required to play online battles. Iowa Mission Pack and Midway Modders Mappacks 1 and 2 are recommended.

mpkg files

mpkg files

I asked aclair (rin.ru) about this. She gave a quick reply
1. It's xor encrypted using a table @ bsp.exe+A114E8
2. It then processes the data backwards
3. File is organized into blocks of encrypted compressed chunks, maybe ~538 bytes per section??
4. Some mess later you get this for bsp.mpkg. It's now a PK (zip) file.
http://s000.tinyupload.com/index.php?fi … 3063822247

She'll uncook the other 3 DLC mpkg when she has time.


If possible, aclair will also try to hack up some raw mpkg loader that skips the decoder and loads straight PK raw file.

acentri
Seaman
Activity Points: 62
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

So, we are going to get a .mpgk unpacker? Sweet! There's one in the DLC files that nobody knows what's inside (but most suspect it's code for the units and maps). If anyone could unpack those it may be possible to use that to make the DLCs rather than having to recreate the code.

commander1234
Lieutenant
Activity Points: 954
ranks
useravatar
Offline
149 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

Dlc packs uncooked, now with .zip extension
http://s000.tinyupload.com/index.php?fi … 6412953982

She's going to try and work out the mathematics for a proper tool next.


edit:
Says that the algorithm is some bit unknown complicated somewhere (function arguments) so she won't be making a tool. But this is her notes.

Code:


  if ( v9 > 0 )
  {
    v10 = (signed int)((unsigned __int64)(1460174805i64 * v9) >> 32) >> 8;
    v11 = v9 / 753;  // 2F1h


    for ( i = v10 + ((unsigned int)v10 >> 31); 1; v11 = i )
    {
      v12 = 753;
      if ( v5 / 0x2F1 == v11 )
        v12 = v17 - 753 * v11;


      // find next src byte
      v13 = 753 * v5 / 0x2F1 - v5 % v12 + v12 - 1;
      ++v5;


      // xor src byte
      *(_BYTE *)(*(_DWORD *)(a2 + 8) + v5 - 1) = byte_E114E8[v13 % 537] ^ *(_BYTE *)(sub_BECEA0(v18) + v13);


      // check done
      if ( (signed int)v5 >= v17 )
        break;
    }


    v8 = v18;
    v5 = 0;
  }

bsp.exe+7B73A2 = start decrypt
bsp.exe+7B743E = decrypt done, grab data here

acentri
Seaman
Activity Points: 62
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

woah
lemme take a look

Blitzkrieg
Lieutenant
Activity Points: 865
ranks
useravatar
Offline
157 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

@acentri  that is a job well done.

Would it be possible to do the same with the mpkg found in the BSP main directory too?

Axis_Crusher
BSmodHQ/Riot Police
Moderator
Activity Points: 10405
ranks
useravatar
Offline
1694 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

@axis_crusher
Yes ab.  It's in the 1st post - http://s000.tinyupload.com/index.php?fi … 3063822247

You can open it with 7-zip or rename it to bsp.mpkg.zip. Contents:
- lockit\*.lan, *.lng, *.lanx
- models\textures\noseart\*.dds
- SCRIPTS\datatables\DLC.lua (blank), Inputs.lua
- universe\scenes\missions\IJN\*.ema
- universe\scenes\missions\USN\*.ema

acentri
Seaman
Activity Points: 62
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

Apologies for my ignorance  ah

Axis_Crusher
BSmodHQ/Riot Police
Moderator
Activity Points: 10405
ranks
useravatar
Offline
1694 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

Sorry - haven't checked up on my PMs. xx(

aclair has posted a mpkg decrypter + loader:
http://cs.rin.ru/forum/viewtopic.php?p=917594#p917594


mod instructions:
0. install mpkg loader by aclair
1. get decrypted files
2. extract mpkg using zip, 7-zip
3. make changes to mpkg files
4. make new zip package from files
5. rename bsp.zip ==> bsp.mpkg
6. replace old encrypted file
7. play game


edit:
Received info from aclair about the lan files. They are "double" packed:
1. normal ASCII text
2. unicode text

ex. english.lan

Code:


FE<space>briefing<space><unicode = "Briefing"><000A><000D>
FE<space>change_filter<space><unicode = "Change"><000A><000D>
..
usn14 obj_s1_success <You have succesfully escorted the supply ship to safety!><000A><000D>

You can use a hex editor, but I don't know of any text editor that will correctly format the 2 styles.

Edited By: acentri
28-May-14 23:36:22

acentri
Seaman
Activity Points: 62
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

A hex editor won't allow one to add more lines to the .lan file. Any way you can add data to it?

Axis_Crusher
BSmodHQ/Riot Police
Moderator
Activity Points: 10405
ranks
useravatar
Offline
1694 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

LAN <=> TXT converter was done by Velcor. It was working pretty with BSM. Midway Modders Mappack 2 is fully translated to polish, italian, german, french by players, using buil-in game support for LAN files. But i remember it was written in Pascal (No GUI. DOS commands).

I am playing Midway as EST_PL
I am playing Pacific as PL EST PL

EST_PL
Battlestations Fan
Rear Admiral
Activity Points: 6184
ranks
useravatar
Offline
2072 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

This is news to me

Axis_Crusher
BSmodHQ/Riot Police
Moderator
Activity Points: 10405
ranks
useravatar
Offline
1694 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

aclair has posted the crypto tool
http://cs.rin.ru/forum/viewtopic.php?p=921762


Tested on base game + all 5 dlcs. Decrypts files so I can view them. And can re-encrypt them back to original file.

acentri
Seaman
Activity Points: 62
ranks
useravatar
Offline
8 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

Thanks a lot for this.

Please forward my sincerest thanks.

Axis_Crusher
BSmodHQ/Riot Police
Moderator
Activity Points: 10405
ranks
useravatar
Offline
1694 Posts
User info in posts
Administrator has disabled public posting

Re: mpkg files

So this is the DLC maps for BSP? If it is, can I get a copy as I always wanted to play them, but LIVE took them down. The links kinda work, but the link that contains the file say access is denied. Would be nice to play the DLC maps online.

N_Trainz
Ensign
Activity Points: 475
ranks
useravatar
Offline
57 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1690
Total Polls:
69
Total Posts:
23071
Total Posts Today:
1
User Info:
 
Total Users:
20738
Newest User:
ngan34017136902821
Members Online:
0
Guests Online:
780

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked

Login Form

Battlestations Shoutbox

Latest Message: 19 hours, 40 minutes ago
  • N_Trainz : What game and mod are you dealing with?
  • Runsva : Can someone PLEASE help me i can't install anything on my game it just keeps crashing!!
  • N_Trainz : Legendary Da: Its now live on Moddb and here is the link, requires a Batlestations Midway game to be installed to work «link» - midway - skinpack/addons/international - bsm - collection - light - version Enjoy
  • Runsva : are we still talikg about the zyy modding pack??
  • N_Trainz : Yeah I wanted to do this, but the installers were being a pain giving me errors about something. I finally got it working, and just figured out how to make the updater now since it'll be two parts with one containing the misc files and the other mostly the mpak files. It'll be a stand - alone DLC mod just like the Bismarck Mission Pack was. Like I said I plan to have it all completed and uploaded by this weekend
  • Legendary Da : No, no, not problem at all; I am already grateful that you were thinking about this subject, I can wait as long as you need to. Thanks for the help (again), and feel no need to rush this subject; we all know that the life comes first. :)
  • N_Trainz : Hope you won't mind the wait, it'll be worth it if you ask me, and yes I do understand that you can't download due to that cap Mege has. I heard the PM was down, but haven't tried it as I been busy helping the BSmodHQ team with things and then those that are life - in - general.
  • N_Trainz : To Legendary Da: I been trying to work on that actually, what I'm experiencing is the pack size> I already made it a light version of the mod, so hopefully this weekend maybe, might be sooner
  • Legendary Da : To N_Trainz: So, um... I can't exactly download from Mega for some reason; so could u upload that mod to Moddb? I am sorry for making extra work for you, and I TOTALLY understand if u can't upload it again; so, do as you want; I just wanted to say somehow I couldn't dl the mod (btw, why isn't the PM working?). U don't have to post the link either; I'll find it from the site if u upload it. Thanks whatever u do, and so sorry for the extra wish. :/
  • Runsva : Anyone there??
  • Runsva : That is on the zyy modding pack v1.0.3 forum.
  • Runsva : If that hepls...
  • Runsva : The link that I donloaded from is the one message before the last one on page 4 on this forum because all the others are for some reason down.
  • YamatoFavor : Zyy eh... doubt I installed successfully and seems like I lost the build
  • Axis_Crusher : Well I am aware of that mod, but I've never installed it. I'll ask around if I can find someone that successfully installed it.
  • Runsva : The zyy modding pack v1.0.3
  • Axis_Crusher : Just so we're on the same page which mod are you trying to install?
  • Runsva : Game*
  • Runsva : Do i need to make a copy of my gamr folder like Battlestations Midway?
  • Runsva : No I didn't install it into a separate directory, it is in steamapps - - > common like any other steam game.

Only registered users are allowed to post

Now Online

None

Birthdays

BusyOCAMPO Send PM
birthday is today!

samuraj Send PM
birthday will Wednesday, 01 March 2017

Gabriel_03 Send PM
birthday will Thursday, 02 March 2017

TorpedoFish Send PM
birthday will Friday, 03 March 2017