View Poll Results: Was this Tutorial useful to you?

Voters
20. You may not vote on this poll
  • Yes, It was useful

    17 85.00%
  • Needs more pics

    3 15.00%
  • Needs more info

    1 5.00%
  • No, It was crap

    0 0%
Multiple Choice Poll.
Page 1 of 3 123 LastLast
Results 1 to 20 of 41

Thread: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

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

    Icon2 DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    A Modding Tutorial by Dee Jay

    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. Im assuming that you have already read my "Making a Simple Mod" tutorial for this one.


    Creating Your Own Unit

    Now, the first thing were going to do is extract the DB files that we need from patch4.pack in the Napoleon data folder. Extract the following into the "Mod" folder on your desktop;

    building_units_allowed
    uniforms_to_faction_colours
    uniforms
    unit_stats_land
    unit_to_unit_abilities
    units
    unit_to_exclusive_faction_permission

    All of these are needed to create your own unit. Now, were going to create a French "Middle Guard" unit for an example. So after extracting all those files to the folder, you can create a new mod.pack with them and save it (just like we did in my "Making a Simple Mod" tutorial) over your old "Mod.pack" file.

    So were going to go to the "unit_to_exclusive_faction_permission" table, find and then clone the row for Inf_Elite_French_Old_Guard

    Spoiler Alert, click show to read: 





    And then replace the "Old" in the first column with "Middle". DONE


    Spoiler Alert, click show to read: 





    Next is the Units table, find the Inf_Elite_French_Old_Guard, and click COPY ROW while your clicked on that row


    Spoiler Alert, click show to read: 





    Then click ADD ROW and go up to the new row (it automaticaly goes to the top, I think)

    Spoiler Alert, click show to read: 





    Click on it, and then click PASTE ROW, and replace the "Old" with "Middle". DONE


    Spoiler Alert, click show to read: 





    Now for the unit_to_unit_abilities table, find the Old Guard rows again (there are about 5 this time) and then clone each row and replace the "Old" in each row with "Middle". DONE


    Spoiler Alert, click show to read: 





    For unit_stats_land table, were going to find the Old Guard row again, copy it, add a new row, find the new row, click on it, and paste over it. Then replace the "Old" with "Middle" again, just like in the units table. DONE


    Spoiler Alert, click show to read: 





    For the uniforms table, find this row: France_Inf_Elite_French_Old_Guard; clone it, and then replace all the "Old" in the 3 columns with "Middle". DONE

    Spoiler Alert, click show to read: 





    For the uniforms_to_faction_colours table, clone the France_Inf_Elite_French_Old_Guard row and replace the "Old" with "Middle" again. DONE

    Spoiler Alert, click show to read: 





    Finally, for building_units_allowed, we just want to do the same thing clone and then rename it. and DONE


    Spoiler Alert, click show to read: 





    After you have done all that, we are going to save it.

    Now were going to get all the varient.models files and the unit cards and icons that we need for the unit. So extract all of those files from your new saved mod to the "Mod" folder on your desktop (say yes to over write the old files)


    Spoiler Alert, click show to read: 





    And then open the data.pack file again with the PFM. go to UI > units > icons and find the unit card for the Young Guard (because they look closes to the Middle Guard), its called france_inf_elite_french_young_guard_icon.tga


    Spoiler Alert, click show to read: 




    Then extract that file to your "Mod" folder on your desktop


    Spoiler Alert, click show to read: 




    Then go to UI > units > info and find the Young Guard info pic and extract that one too.


    Spoiler Alert, click show to read: 




    Now were going into the varientmodels.pack in the Napoleon data folder


    Spoiler Alert, click show to read: 





    So go to varientmodels > units, now find all the files that begin with france_inf_elite_french_old_guard

    Spoiler Alert, click show to read: 





    and extract them to your Mod folder. So now create a new Mod.pack using your "Mod" folder (the same way in my first tutorial) and save it over your old Mod.pack. Now replace all the "old" with "middle" in the varientmodels


    Spoiler Alert, click show to read: 




    and all the "young" with "middle" in the unit cards

    Spoiler Alert, click show to read: 




    and save it again.


    Adding a New Units Name


    Now, last of all we need to create the name for our new Middle Guard unit, so open that pack file you made in my "Changing and Adding a Units Name" tutorial called "Mod_Names.pack"


    Spoiler Alert, click show to read: 





    Open the localisation.loc file


    Spoiler Alert, click show to read: 





    click on the "Tag" tab to put all the entries in order


    Spoiler Alert, click show to read: 





    Then go find the units_on_screen_name_Inf_Elite_French_Young_Guard entry


    Spoiler Alert, click show to read: 





    Clone it, then replace the the "Young" in the first and second column with "Middle"


    Spoiler Alert, click show to read: 





    Then save it, and your all done.

    Now, just test it to see if it works, if it does thats great, so now if you want you can just fiddle around with your new unts stats and cost and all that, I would suggest just putting the cost and stats half-way between the Old and Young Guard.

    Now if ou’de like to continue strait onto my next Tutorial “Changing Unit Parts” which is when we make your new Middle Guard unit look more like the Middle Guard.

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

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

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    Anohter quality tutorial!

    Keep it up
    Last edited by E.K; May 17, 2011 at 03:08 AM.

  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: Creating Your Own Unit

    Cheers EK, the only tutorial I have left now is the retexture one.

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

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

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

  5. #5
    kenniston5's Avatar TAR local moderator
    Join Date
    Jul 2010
    Location
    San Diego,California,USA
    Posts
    330

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    +rep!! wondering i know i read from Aldgarkalaughskel about changing unit skin colors and textures, but to me seems hard to follow and to many directions it goes, like the way you make them easy to understand and simple,and hope you post one about how to change unit skin colors and thanks for these tutorials

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

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    The next tutorials I will be making are Making Your Own Loading Screens and How to Retexture a Unit. Many people have been asking for a retexture one for a while now. But I will make one on how to change unit colour too.

  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: Creating Your Own Unit

    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

  8. #8
    Ordinarius
    Join Date
    Aug 2010
    Location
    On a rocket ship.
    Posts
    756

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    Hey, really well done tutorial, but i've got a problem i've follow all of the steps but when i start the game after few seconds after the loading napoleon screen it exit and return to the desktop without any kind of error report, but if i remove the mod.packs it runs normally, any ideas :S ?

  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: Creating Your Own Unit

    It could be because you done it wrong.

    Sometimes this happens when you clone a row that you are not supposed too, some rows you have to copy and paste them, like the units and unit stats DB.

    Or you could have missed 1 table

  10. #10
    Ordinarius
    Join Date
    Aug 2010
    Location
    On a rocket ship.
    Posts
    756

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    Hey thanx for the infos, i'll try again!!

    p.s. waiting for your re-texture units mod

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

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    Retexture units mod?

    What do you mean?

  12. #12
    Ordinarius
    Join Date
    Aug 2010
    Location
    On a rocket ship.
    Posts
    756

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    Sorry i meant Retexture units tutorial...

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

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    Great stuff but im wondering. In any of your tuts have you touched on changing the unit info?

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

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    No sorry I have not, I should add that to the unit names tutorial, because it involves the same file.

    Thanks for pointing that out Romulus

  15. #15

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    I bewlieve this is also the way to make units in shogun 2?

  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: Creating Your Own Unit

    Damn strait, this is the way to do it in ETW, NTW & S2TW

  17. #17

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    It happens that local_en_patch is not a pack file in shogun 2 folder

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

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    was going to make french marines so I was cloning the gaurd seamen but I couldnt find there files in the variant models. are they even there?

  19. #19

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    Thanks Dee Jay for the tutorials! +REP

    What files would I need to edit to ad a navel unit?

  20. #20

    Default Re: DJ's Beginner Tutorial To Modding: Creating Your Own Unit

    how would i chose what voices troops have like i want the black watch voice to be the same as highland foot

Page 1 of 3 123 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
  •