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: 10360
ranks
useravatar
Offline
1690 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: 10360
ranks
useravatar
Offline
1690 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: 10360
ranks
useravatar
Offline
1690 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: 6174
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: 10360
ranks
useravatar
Offline
1690 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: 10360
ranks
useravatar
Offline
1690 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: 447
ranks
useravatar
Offline
53 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1690
Total Polls:
69
Total Posts:
23055
Dormant:
User Info:
 
Total Users:
20284
Newest User:
kristianheine2045149
Members Online:
0
Guests Online:
432

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: 2 weeks, 3 days ago
  • Axis_Crusher : Bismarck Mission Pack incoming!
  • jon_man0499 : Happy belated New year to all
  • Axis_Crusher : HAPPY NEW YEAR!!!
  • YamatoFavor : Would be great if the models are from Wows
  • alantay11 : Is there a way to fill up the empty ship slots when using SurgeonSasha's Yamato? Or is it my game not showing the models?
  • Axis_Crusher : Thanks, but we already implemented both ships in the Advanced Warfare Pack a few months ago...
  • SurgeonSasha : Северная каролина («link» ямато 1945 («link»
  • Legendary Da : Hi everyone, I have one (or two) quick question about BS:M modding. I try to figure out sp mapmaking, and my first act on it was to convert a MP map to SP. However I can only play as Allies in those maps. What parameter do I have to change to play those maps as Japanese in the respective map .mpak (And where is the parameter I have to change?)?
  • N_Trainz : G'day mates, I just wanted to let those who use Windows 10 and also for those who are having troubles getting the game launching because of Games for Windows LIVE, I made a tutorial of how to get it working successfully again like on Windows 8.1. Its on my channel and here's the link to the video. «link»
  • Mokeo67 : The dictator, I downloaded the mmod2txm and I added four slots to the fletcher and a couple to the lexington.Thanks for the help though.
  • The Dictator : Makeo67 i've explained how to find the unused slots in the topic and the mmod2txm it's a program that has been shared. However there aren't so many ships with unused platforms and sme of them are in wrong positions and for move them you need to know how to change the mmod file. But if you know how to do it you can make new platfors as you want. I've shared the south dakota disposition and this one is the most intersting in my opinion
  • N_Trainz : Well it looks like we have spammers again
  • Mokeo67 : No problem Thanks for the help
  • Axis_Crusher : Not really
  • Mokeo67 : Ok thanks anyway. Do you know who does?
  • Axis_Crusher : Unfortunately I don't deal with that part of modding
  • Mokeo67 : Sorry forgot the link. «link»
  • Mokeo67 : This is the forum topic I meant. The dictator said he found the unused slots in the TXM file obtainable with the mmod2txm, what is this and is it available to use.
  • Axis_Crusher : This is your best bet: «link»
  • Mokeo67 : Also I saw on the forum that ships have unused platform slots. How do I use these?

Only registered users are allowed to post

Now Online

None

Birthdays

N_Trainz Send PM
birthday was Saturday, 21 January 2017

tromp74 Send PM
birthday will Thursday, 26 January 2017

warszawa Send PM
birthday will Friday, 27 January 2017

Ghostface Send PM
birthday will Saturday, 28 January 2017

Captain saken Send PM
birthday will Sunday, 29 January 2017