Results 1 to 4 of 4

Thread: How do you make a mod for rtw2?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How do you make a mod for rtw2?

    How do you make a mod for rtw2?

    I got PackFileManager,ModManager

    I have seen many good mods for rtw2,Do these mods replace the main data_rome2.pack,How do they work

    Thanks

  2. #2
    m_1512's Avatar Quomodo vales?
    Content Emeritus Administrator Emeritus

    Join Date
    Mar 2008
    Posts
    10,122
    Blog Entries
    3

    Default Re: How do you make a mod for rtw2?

    Well, I think you need to first figure out what you like to do in the mod. Modding can cover a lot of things.


  3. #3
    crzyrndm's Avatar Artifex
    Join Date
    Feb 2011
    Location
    New Zealand
    Posts
    2,576

    Default Re: How do you make a mod for rtw2?

    \/ Covers how you start making your own mod, but as m_1512 says, have a look through the db first and work out what you want to achieve and if its manageable
    Quote Originally Posted by crzyrndm View Post
    I guess you're probably trying to modify an official pack. Don't do it, theres a reason PFM tells you that you shouldn't. When you want to make a new mod, the first thing you do is set up a new pack. This means that if you screw up and do something which breaks the game, all you have to do to fix it is uninstall your mod.

    Step 1: Add a new personal mod in PFM
    File -> MyMods -> New. Enter the name and location that you want to store it. When it asks you to select data proceed to step 2
    When you have a mod selected under MyMods, extracted tables automatically locate themselves in the mod directory which makes extracting multiple tables much faster

    Step 2: Extract the files you want.
    Open the official pack (probably data_rome2.pack) in PFM, and navigate to the file you want (I'll use data_rome2/db/kv_rules as an example). Right click -> extract -> extract selected. If you navigate to the folder you created for your mod, you will find a folder structure representing the location of the table in the pack (eg. <mod name>/db/kv_rules in my case) with a binary file inside cotaining the details of the table.

    Step 3: Import the files into your mod
    File -> MyMods -> Select your mod
    Files -> Add -> File(s)
    Navigate to the binary files you extracted and add them. You can use the directory option to add a group of tables at once, but be careful to keep the structure the same and not accidentally add another level. Individual Files is safer

    Step 4: Make your changes

    Step 5: Install your mod
    PFM has a great feature where it can manage the user.script.txt entries and add your mod.pack to the Rome2 data folder for you.
    File -> MyMods -> Install ____ (depending on which of your mods you have selected)
    It’s better to excite some and offend others than be bland and acceptable to all
    Creating a mod.pack with PFM - Database Table Fragments

  4. #4

    Default Re: How do you make a mod for rtw2?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •