Author Topic: Creating MPK file on Mac  (Read 3565 times)

chromed

  • Newbie
  • *
  • Posts: 7
    • View Profile
Creating MPK file on Mac
« on: April 04, 2015, 07:18:43 pm »
I can't seem to create a valid MPK file. I've just started modding and I've looked through the wiki and this forum. I think I've got the content of the mod down (it's just a simple change to the Orca hull), but when I add the mod to Macintosh HD ▸ Users ▸ Evan ▸ Documents ▸ AtomicTorchStudio ▸ VoidExpanse ▸ Mods the game hangs during the initial load screen. I've tried compressing to .zip with the built in mac tool, with Ez7z and with Risobaron's java7 tool: http://forums.atomictorch.com/index.php?topic=265.0. Oh, I also edited the ModsConfig.xml file to include my mod.

Another mod added from the Steam Workshop loads without issues.

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 989
    • View Profile
Re: Creating MPK file on Mac
« Reply #1 on: April 05, 2015, 02:40:02 am »
Hi!
The integrated into OS X tool is works very well. I just tried it on my Macbook.
You need to select this files and folders:
1. data folder (if you have it)
2. content folder (if you have it)
3. header.xml (required!)
4. icon.png / icon.jpg (if you have them)
then right click and select "Compress". It will create the zip archive, you need just to rename it to mod name with the .mpk extension.
Regards!

chromed

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Creating MPK file on Mac
« Reply #2 on: April 05, 2015, 10:04:36 pm »
OK. Well.... Then I'm doing something else wrong. Do I have the right file path? The game is obviously reading it there because it runs without it and fails if my mod is in that folder, but should it be somewhere else?

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 989
    • View Profile
Re: Creating MPK file on Mac
« Reply #3 on: April 05, 2015, 10:20:27 pm »
OK. Well.... Then I'm doing something else wrong. Do I have the right file path? The game is obviously reading it there because it runs without it and fails if my mod is in that folder, but should it be somewhere else?
Could you run the game until it fails and then upload the latest client log from /Documents/AtomicTorchStudio/VoidExpanse/Logs ? I will check what the problem is.

chromed

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Creating MPK file on Mac
« Reply #4 on: April 08, 2015, 03:17:57 pm »
I'm afraid it didn't generate a new log file. My last log file is still from yesterday. But I did notice that the loading screen that appears right after the AtomicTorch logo was a little different. Screenshot: http://i.imgur.com/m4OIPLd.png

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 989
    • View Profile
Re: Creating MPK file on Mac
« Reply #5 on: April 08, 2015, 08:13:30 pm »
This is usually means that the game mods cannot be loaded properly. We will add a error message for that case.
However, the game should run fine if you delete the ModsConfig.xml file from /Documents/AtomicTorchStudio/VoidExpanse/
Then you can active the mod from the Mods menu right in the game - click on save button and the game mods will be validated. If there are any issues with the mod the game will report about them.
Regards!

chromed

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Creating MPK file on Mac
« Reply #6 on: April 10, 2015, 04:52:50 pm »
That didn't fix it unfortunately. My mod is really simple and I pulled the data straight from core, but maybe I screwed something up somehow. Would you take a look at it?https://www.dropbox.com/s/9aswfgsujmv1caw/Evans.mpk?dl=0

Lurler

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1024
    • View Profile
Re: Creating MPK file on Mac
« Reply #7 on: April 10, 2015, 08:52:08 pm »
Of course it wouldn't work.

The structure of your file is

evans.mpk
---/_MACOSX
---/core Stripped

etc.

That's NOT how it should be :)
Plus there is no header file in the root.

Please read about creating mpk files on our wiki http://wiki.atomictorch.com/VoidExpanse/modding it's all here.

chromed

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Creating MPK file on Mac
« Reply #8 on: April 11, 2015, 12:12:55 pm »
I'm confused, the highlighted file is what I compressed and uploaded. http://i.imgur.com/flb4hit.png

askew1

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Creating MPK file on Mac
« Reply #9 on: April 11, 2015, 07:56:47 pm »
The problem you're having is how you're creating the zip file with OSX.

When you right click on a folder on mac and select compress, it creates a directory inside the root of the zip file first with the name of directory and then puts the files inside that directory.

Instead, you should go into the directory. Then select all the files in the directory, right-click, and select compress. It will create a zip file called Archive.zip. Rename it to what you need.

chromed

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Creating MPK file on Mac
« Reply #10 on: April 12, 2015, 10:22:24 pm »
Got it! The game loads my mod no problem now. It would be nice if someone could add that detail to the wiki somewhere, unless you know the structure of a Mac zip file it's not really obvious.

Unfortunately now the game is telling me my save file is corrupted. I can't be sure it's related, but it started doing it as soon as I started the game with my mod installed. I didn't even load it in the mods list yet. And it's claiming save file corruption on all my saves... including the manual backups I'd made several times throughout my progress and had been keeping in a separate directory. Any ideas?

askew1

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Creating MPK file on Mac
« Reply #11 on: April 12, 2015, 10:47:56 pm »
I think the current build (1.2.5) has a bug. I'd wait until the next version is pushed out to continue.

chromed

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Creating MPK file on Mac
« Reply #12 on: April 13, 2015, 10:17:07 am »
Thanks for the help and patience all of you, I really appreciate it :)

Getting back in to modding this game brings me back to my days of playing and modding EV Nova.

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 989
    • View Profile
Re: Creating MPK file on Mac
« Reply #13 on: April 13, 2015, 08:26:40 pm »
We've fixed the issue with corrupted savegames with the latest patch (v1.2.6).
Regards!