View Poll Results: Was this Tutorial helpful to you?

Voters
31. You may not vote on this poll
  • This was helpful

    24 77.42%
  • This was helpful but needs more info

    4 12.90%
  • This was helpful but needs more pics

    1 3.23%
  • This was crap

    2 6.45%
Multiple Choice Poll.
Page 1 of 6 123456 LastLast
Results 1 to 20 of 116

Thread: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Icon2 DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    A Modding Tutorial by Dee Jay

    Getting Started

    This Tutorial will tell you everything you need to know about how to make your own mod; I’ve tried to make this simple, short, resourceful and with lots of pictures for a beginner modder.

    You will need the Napoleon Pack File Manager (PFM for short) to create a mod for Napoleon; click here for download and instructions it’s pretty easy to use.

    When you download it, run the program and go into File > Open, then you will have to find your Napoleon data directory, for most it’s:
    C:\Program Files (x86)\Steam\steamapps\common\napoleon total war\data

    When you find it, open the data.pack, this file is where just about every file is that affects the game.

    Spoiler Alert, click show to read: 





    First off I’m going to explain all the different files that you will definitely use in making your own mod;

    DB Files: These are located in data.pack, these files tell the game pretty much everything it needs to know for the campaign and battle filed, things like unit sizes, unit stats, abilities, morale effects, recruitment locations, buildings and a crap load more. Have a scroll through all these files just to get a quick look at them all, the name of the DB file pretty much tells you what it does.

    UI Files: These are also in the data.pack files, UI stands for User Interface and they are for nearly all the visuals you seen in the game, things like the unit abilities buttons, main menu, unit cards and icons and heaps more. You can scroll through them if you like.

    Varient_Models Files: These are in the variantmodels.pack file, these files are what visually makes a soldier, so the textures and meshes.
    There are heaps more of different files that can be used but we won’t worry about them for now and keep the PFM opened for this next bit.

    Creating a Basic Mod

    Now we are going to create a mod, let’s just make a mod that changes the stats of the Austrian Grenzers.

    You will need to create a folder on your desktop named “Mod”; this is where the files are going to be for your mod.

    Spoiler Alert, click show to read: 




    Now we are going to extract one of the files that we need to edit unit stats, so open patch4.pack with PFM and then go to this: patch4.pack > db> unit_stats_land_tables (were going to patch4.pack instead of data.pack because that has the latest of the file we need).

    Spoiler Alert, click show to read: 




    Now we are going to click on the file in there named “unit_stats_land”, on the right window it will show the DB file for editing, but were not doing that yet.

    Spoiler Alert, click show to read: 




    So now while you’re still selected on “unit_stats_land”, where going to go to the top were it says “Choose a Pack Action” and select “Extract Selected”.

    Spoiler Alert, click show to read: 




    Then were going to find your folder you made earlier named “Mod” and extract it to there.

    Spoiler Alert, click show to read: 




    Now you can click on: File > New; and select you “Mod” folder that you extracted that file to. After that you can click on “Choose a Pack Action” and click “Add Directory” and then pick your “Mod” folder again. After that we are going to pick “Choose a Pack Action” and click “Change Pack Type” and then pick “mod”.

    Spoiler Alert, click show to read: 




    Now were going to have to save your work before you make any changes, so go to: File > Save; and just save it as “Mod”.

    Spoiler Alert, click show to read: 




    Now that we have saved it we can start making changes to it, so go to this: mod.pack > db > unit_stats_land_tables; and open “unit_stats_land”.

    Spoiler Alert, click show to read: 




    This file shows every stat for every unit, so we are going to click on the top tab that says “Unit ID Ref” (this just puts everything in alphabetical order)

    Spoiler Alert, click show to read: 




    And scroll down until we see “Inf_Light_Austrian_Grenzers”. Once you see it click on it once, this bookmarks it on the left with an arrow so that you can see which line you’re on.

    Spoiler Alert, click show to read: 




    Then scroll across until you come across the columns named “Accuracy” and “Reloading Skill”.

    Spoiler Alert, click show to read: 




    And change them both to 50 (I’m just telling you to do what is most historical).

    Spoiler Alert, click show to read: 




    Then keep scrolling across until you see the columns “Melee Skill”, “Charge Bonus” and “Defence Skill” and increase them all by 1.

    Spoiler Alert, click show to read: 




    Now you can save it again.

    Now we are going to making it so that the game recognizes our mod, for this we need a .txt document, so create one on your desktop.

    Spoiler Alert, click show to read: 




    Open it and type this in there:
    mod “Mod.pack”;

    Spoiler Alert, click show to read: 




    Now go to Save As, call it user.script and then at the bottom were it says “Encoding: ANSI” change the “ANSI” to “Unicode” and save it.

    Spoiler Alert, click show to read: 




    Then we are going to have to paste it in this directory:
    C:\Users\*USER*\AppData\Roaming\The Creative Assembly\Napoleon\scripts
    Replace the *USER* with your own user name and you will also have to be able to see hidden folders to get to this; you can do that from your control panel.

    Spoiler Alert, click show to read: 




    SWEET! should be all done, play Napoleon and see if your changes have taken effects.
    If it works, you can have a look through the file that you addited and fiddle around with it.

    The other DB files for editing all the other stats of a unit and their abilities are;

    units
    unit_to_unit_abilities_junctions

    To add them into your mod, you will need to extract your mod into your folder on the desktop (say yes to over write the existing one) and then find the above files in patch4.pack and extract them into the same folder. Then make a new pack in the PFM, select your folder, add your folder, change the pack type to a mod, and save it over your old pack. Then you can edit them.


    Also, here are some important things that you need to know for making a mod:

    ONLY SAVE YOUR .PACK FILES, IF YOU SAVE ONE LIKE DATA.PACK, YOU COULD "BREAK" YOUR GAME. BUT IF YOU EVER DO THIS GOHERE FOR HELP.

    Also, whenever you open a DB table, click the tab at the top for the first column to put everything in the right order

    Hope you liked this tutorial and learnt some good stuff, Cheers DJ
    Last edited by Dee Jay; May 17, 2011 at 12:38 AM.

  2. #2
    Over the hills...
    Join Date
    May 2010
    Location
    Melbourne, Australia
    Posts
    1,204

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Nice tutorial!!
    It was good that you had screenshots of each step because it makes things clearer.

  3. #3
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Cheers, I'm making one for unit cards and it should be up tonight

  4. #4

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    hi Dee Jay can you please help me i had done your tutorial step by step but it does not work please help> sorry for may English

  5. #5
    Over the hills...
    Join Date
    May 2010
    Location
    Melbourne, Australia
    Posts
    1,204

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Great! I have always wanted to mod unit cards.

  6. #6
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Nice tutorial for small changes.

    I think you should explain quite quickly how to export tsv and impor them, as it's much more efficient when you cange a lot of things.

  7. #7
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    True, thanks steph.

  8. #8
    mattebubben's Avatar Senator
    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    1,043

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    very nice Tutorial thank you.
    cant wait untill u make the Retexture Tutorial as im in need of it maby it will help me to learn how to tangle with the Dreaded Normal.dds >=)

  9. #9
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Yeah, the normal.dds is definatly the hardest one out of the lot, but when I show you my tutorial, hopefully it will make it alot easier for you

  10. #10
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Is there anything else anyone wants me to add to this tutorial? And what other tutorials do you all what to see?

  11. #11

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Great tutorial! +rep

  12. #12

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    I made a little mod just editing some units upkeep and recruitment limit, I can't get the changes to appear, I am also using the LME and AUM mods, is there a certain order my new mod needs to be in in the user script?

  13. #13
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    When working with bug mods, you will have to edit the LME and AUM packs to change to upkeep of units.

  14. #14

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Ok, so just edit the stats within the LME 2.0 and AUM mods? I'll make copies first. Thanks!

    What I'm trying to do is, for example create four 42nd Foot Blackwatch units instead of one, to be treated as battalions of one regiment, to be used in my campaign where I have edited it to have 40 units in a stack. Everything I have read about the gameplay is that the battles are more realistic, with wing assaults, regroups and an actual reserve. Everyone is raving about how the AI handles it better than oversize units. I'm about to test it now myself.

    The major problem I foresee is after I group 4 battalions together to fight as a regiment, I will not be able to see but 20 unit cards and there will be no rapid way to select the grouped units.
    If the battle card tab could be modded somehow...

    **Update** *Editing those mods directly did work, thanks!*
    Last edited by Wolves In The Throne Room; June 26, 2011 at 03:08 PM. Reason: update

  15. #15
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    No problem, and it actually is possible to edit the Battle Cards tab at the bottom, although it is extremely difficult and I think the only person on TWC that can do it at the moment is TC

  16. #16
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    This is everyone's last chance to request a tutorial, just post something that you want a tutorial for here and I will try make one.

    Cheers DJ

  17. #17
    Miles
    Join Date
    Apr 2011
    Location
    California
    Posts
    396

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    great stuff man. I hope to get into modding and You just helped me complete step 1 +1 rep

  18. #18

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    You do the best tutorials.
    And when you showed me the picture "MOD" i loughed so much, I am not that stupid!
    Last edited by theodorsr; July 21, 2011 at 12:21 PM.
    Napoleon total war my mods

    Sweden is underrestimated! Sweden is underrestimated!

  19. #19

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Hi I have Empire Total War and I was wondering if this method works for Empire Total war. Thank You!

  20. #20
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: DJ's Beginner Tutorial To Modding: Getting Started & Making a Simple Mod

    Yes, this method will work for Empire, Napoleon and Shogun

Page 1 of 6 123456 LastLast

Tags for this Thread

Posting Permissions

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