1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

How to zip and attach a mod

Discussion in 'Civ5 - Modding Tutorials & Reference' started by whoward69, Nov 26, 2013.

  1. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,201
    Location:
    Near Portsmouth, UK
    So you've created a mod and are having problems with it. You've posted on the forums asking for help and someone has said "zip your mod and attach it to your post", but how do you do that? See below!

    Before attaching your mod to a post, make sure you have enabled logging and checked the log files for obvious problems. Also check that each of the files in your mod has the correct settings.

    :c5capital: First we need to locate the mod and zip it up

    :nono: Do NOT upload the ModBuddy project. The ModBuddy project is typically located in "C:\Users\{username}\Documents\Firaxis ModBuddy" sub-directory and does NOT have a version number
    Spoiler :


    :goodjob: Locate the built mod. The mod is typically located in the "C:\Users\{username}\Documents\My Games\Sid Meier's Civilization 5\MODS" sub-directory and DOES have a version number


    :c5capital: Right click the mod folder and select "Send to" and then "Compressed (zipped) folder"
    Spoiler :


    :c5capital: Now we have the mod as a zipped file, we need to attach it to our post

    :c5capital: Underneath the message area click "Go Advanced"
    Spoiler :


    :c5capital: Scroll to the bottom of the message area and click "Manage Attachments"
    Spoiler :


    :c5capital: In the Attachments pop-up window, click "Browse"
    Spoiler :

    :c5capital: In the File Selection dialog, locate and select the zip you you created earlier, and click "Open"
    Spoiler :


    :c5capital: In the Attachments pop-up window, click "Upload"
    Spoiler :


    :c5capital: Wait for the Attachments pop-up window to refresh, the time taken will depend on the size of the file(s) being uploaded, when the attachment is listed click the "Close this window" link
    Spoiler :


    :c5capital: Make sure the file is listed under the "Attach Files" section, complete your post, and then click "Submit Reply"
    Spoiler :
     

    Attached Files:

  2. Nutty

    Nutty Chieftain

    Joined:
    Mar 9, 2011
    Messages:
    3,136
    Gender:
    Male
    Location:
    Orange County, California, U.S.A.
  3. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,201
    Location:
    Near Portsmouth, UK
    Very weird! OP now corrected
     
  4. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,201
    Location:
    Near Portsmouth, UK
    To answer a common question

    "Why a zip of the mod sub-directory?"

    Several reasons

    1) It proves that you've built the mod in ModBuddy and it's being correctly deployed to your MODS directory

    2) It really doesn't matter which files you think are in the mod, all that matters is what files are actually in the mod - and the zip clearly shows that

    3) It contains the generated .modinfo file - many errors are due to incorrect attributes on files in the mod, and this file can be used to quickly identify these.

    4) It saves us having to create the mod ourselves - we can just copy it into our own MODS directory for testing

    5) While you may think you know which portion of XML/SQL/Lua the error is in, it may be somewhere else. Having the complete file(s), and not snippets, makes it a whole lot easier to find the real cause of the error.
     

Share This Page