Jump to content

How to package your mods on Windows


Recommended Posts

Due to the recent increase in interest for mods as well as the relative simplicity with which you can install them (either through .pyromod files or mod.io) I decided to make a little guide to explain how to package mods. It's a relative tedious process when you are not familiar to it, so don't worry if you do not get it right the first time.

Requirements: You need to have the package_mod installed

Spoiler


binaries/data/mods
  • First go to 0 .A.D.'s root folder (This the one that contains the binaries folder):
Spoiler

image.png

  •   In the adress bar type "powershell"
Spoiler

image.png

  • A wild window will appear. (Notice the path is correct one):
Spoiler

image.png

  • Type or copy paste the following command, but replace "{yourmod}" by the mod folder name, for instance, terra_magna, delenda_est, milleniumad
binaries/system/pyrogenesis -mod=package_mod -mod={yourmod} -archivebuild="binaries/data/mods/{yourmod}" -archivebuild-output="{yourmod}.pyromod" -archivebuild-compress
  • You should have something like this after copy pasting/typing:
Spoiler

image.png

  • It will take some time to compile the modfile. For Ponies Ascendant which is like 300MB big,  it takes like 5 mins.

Optional: You can monitor the output of the packaging in Visual Studio or using a tool called DebugView by SysInternals (Recommended as fewer setup steps are required)

  • Open the zip and double click on Dbgview.exe:
Spoiler

image.png

  • It will open a window like this, and the output will appear when you run the packaging steps above.

Hope it helps.

Edited by wowgetoffyourcellphone
  • Like 4
Link to post
Share on other sites

Debug View is good to run while compiling so that if there are any troubles with the archiving process they will show up there in Debug View. 

You can see pyrogenesis.exe show up in Windows Task Manager and it'll stay there as long as the archiver is working. When it disappears, you can be relatively sure the archiver has completed the job. 

Spoiler

image.png.faeaa5de63e054c5fdc7c89ec25aa1c8.png

 

Link to post
Share on other sites
binaries/system/pyrogenesis -mod=mod -mod=public -mod=theban_greeks_working -archivebuild="binaries/data/mods/theban_greeks_working"  -archivebuild-output="theban_greeks_a24_4.pyromod" -archivebuild-compress

 

Apparently, -mod=mod and -mod=public are important.

Edited by wowgetoffyourcellphone
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...