Creating MPK file on Mac

Started by chromed, April 04, 2015, 07:18:43 PM

chromed

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 (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

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

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

Quote from: chromed 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?
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

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 (http://i.imgur.com/m4OIPLd.png)

ai_enabled

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

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 (https://www.dropbox.com/s/9aswfgsujmv1caw/Evans.mpk?dl=0)

Lurler

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

I'm confused, the highlighted file is what I compressed and uploaded. http://i.imgur.com/flb4hit.png (http://i.imgur.com/flb4hit.png)

askew1

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

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

I think the current build (1.2.5) has a bug. I'd wait until the next version is pushed out to continue.

chromed

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

We've fixed the issue with corrupted savegames with the latest patch (v1.2.6).
Regards!