Page 6 of 30 FirstFirst 12345678910111213141516 ... LastLast
Results 101 to 120 of 692

Thread: How-To: Add other faction units for new factions

Hybrid View

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

    Default Re: How-To: Add other faction units for new factions

    thanks for the help
    my mistake it wasn't venice but spain so the textures are close anyway
    ive just got to re give spain the militia and maybe just try to create a new unit of pikemen just for england maybe like the french pikemen

    kleemann
    Make sure you:
    1. stringlenght and lenght number not mach
    2. number of factions is not correct in both sections (texture and weapons)
    3. you have wrong space somewhere
    do you mean make sure check if

  2. #2

    Default Re: How-To: Add other faction units for new factions

    First of all, many thanks for this great guide from M3rcury15 and the much more modder friendly modeldb file from KnightErrant! Really good work!

    But I have a big problem:
    I wanted to add the Saxons as a faction on campaign map.
    Well, all added units work fine, except cavalry units (cavalry is invisible or, with the imperial knights, the riders are invisible!).
    And when I put the saxons to the mounts, as described in the guide, the game won't start... No matter to which horse I put them.

    Here is an example, what I added (red) and changed (blue) to the mounts:

    5 Horse
    14 fs_heavy_horse 0
    0 0 -1 0 0 0 0 0 0
    20 mount_armoured_horse 1.12 3
    73 unit_models/Mounts/European_Armoured_Horse/mount_armoured_horse_lod0.mesh 121
    73 unit_models/Mounts/European_Armoured_Horse/mount_armoured_horse_lod1.mesh 1225
    73 unit_models/Mounts/European_Armoured_Horse/mount_armoured_horse_lod2.mesh 10000
    16
    7 england
    91 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_england.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    52 unit_sprites/england_Mount_Armoured_Horse_sprite.spr
    8 scotland
    92 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_scotland.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    53 unit_sprites/scotland_Mount_Armoured_Horse_sprite.spr
    6 france
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_france.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    51 unit_sprites/france_Mount_Armoured_Horse_sprite.spr
    3 hre
    87 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_hre.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    48 unit_sprites/hre_Mount_Armoured_Horse_sprite.spr
    7 denmark
    91 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_denmark.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    52 unit_sprites/denmark_Mount_Armoured_Horse_sprite.spr
    5 spain
    89 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_spain.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    50 unit_sprites/spain_Mount_Armoured_Horse_sprite.spr
    8 portugal
    92 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_portugal.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    53 unit_sprites/portugal_Mount_Armoured_Horse_sprite.spr
    5 milan
    89 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_milan.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    50 unit_sprites/milan_Mount_Armoured_Horse_sprite.spr
    6 venice
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_venice.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    51 unit_sprites/venice_Mount_Armoured_Horse_sprite.spr
    12 papal_states
    96 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_papal_states.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    57 unit_sprites/papal_states_Mount_Armoured_Horse_sprite.spr
    6 sicily
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_sicily.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    51 unit_sprites/sicily_Mount_Armoured_Horse_sprite.spr
    6 poland
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_poland.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    51 unit_sprites/poland_Mount_Armoured_Horse_sprite.spr
    7 hungary
    91 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_hungary.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    52 unit_sprites/hungary_Mount_Armoured_Horse_sprite.spr
    5 slave
    91 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_denmark.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    50 unit_sprites/slave_Mount_Armoured_Horse_sprite.spr
    4 merc
    91 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_denmark.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    49 unit_sprites/merc_Mount_Armoured_Horse_sprite.spr 0 1
    6 saxons
    87 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_hre.texture
    90 unit_models/Mounts/European_Armoured_Horse/textures/european_armoured_horse_normal.texture
    48 unit_sprites/hre_Mount_Armoured_Horse_sprite.spr


    ..the red text (except the line: 6 saxons) was copied and pasted from the hre...


    Can anyone help??

    Many thanks in advance!
    Last edited by King Kong; February 06, 2007 at 06:26 AM.

    Winner of 'Favorite M2TW Mod' and 'Favorite M2TW Modder' Award 2007 & 2008

  3. #3
    KnightErrant's Avatar Decanus
    Join Date
    Jan 2007
    Location
    Huntsville, Alabama USA
    Posts
    578

    Default

    @King Kong
    Look at the 15th entry (the mercs). See the 0 1 at the end of that line?
    I think you need to cut this and put it at the end of your added lines.
    Make sure it ends with a space character.

    @TheEmperorsPointyStick
    As with all things related to this file its hard to say what
    will work and what wont. Short answer is I THINK its ok
    to be at the end of a line, hit ENTER, and begin putting in
    a new entry. However, from your example most people just
    copy/paste a section from somewhere else and that should already
    have the correct formatting i.e. spaces at the end of a line, double
    spaces after the special 0's and so on. Just doing a quick read it
    looks like you're doing the right thing, counting the characters in the
    line, changing the number of factions when you add an entry, etc.

    But, like I said, there's no knowing until you try it out. Best of luck.
    Last edited by Trajan; February 06, 2007 at 05:26 PM. Reason: Merged non-duplicate double post.

  4. #4

    Default Re: How-To: Add other faction units for new factions

    Thanks a bunch for your reply. I guess I'll have to find out the good ol' way - trial and error.
    I'm not at all experienced in all those different file versions (mesh, sprite, texture, etc.). Can you tell me which of those (if any) I added is responsible for shield appearance (black with white cross)?

  5. #5
    KnightErrant's Avatar Decanus
    Join Date
    Jan 2007
    Location
    Huntsville, Alabama USA
    Posts
    578

    Default Re: How-To: Add other faction units for new factions

    To be honest I don't really know. I only started looking at this file last
    Thursday and wrote the formatting script at lunchtime. This past weekend
    I did my first unit add in following this tutorial (I added Scotland's noble
    pikemen to England just for fun.) My very rudimentary understanding is
    that the .mesh files define the shape or animation maybe of the figure,
    the .texture file is what puts "the clothes" on, i.e. faction colors and symbols
    maybe, and the .spr are the sprites, the tiny figures you see when the unit
    is far away. My guess is that the stuff under the /AttachmentSets directory
    might have something to do with shields (just judging from the name) but it
    could equally well be their helmuts or lances, don't know. Interesting
    experiment, take a screenie of the unit now and then change the
    /AttachmentSets entry to something else and see what happens.

  6. #6

    Default Re: How-To: Add other faction units for new factions

    hey i need help adding the norse axemen to england. im not sure how to add units with multiple armor upgrades, i only knw how to add units with no upgrades. can someone help me out.
    Last edited by misfitsfiend138; February 09, 2007 at 11:22 AM.

  7. #7

    Default Re: How-To: Add other faction units for new factions

    heres wat i put so far.

    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 12 norse_axemen 1 4 56 unit_models/_Units/LN_Lmail_Hmail/norse_axemen_lod0.mesh 121 56 unit_models/_Units/LN_Lmail_Hmail/norse_axemen_lod1.mesh 900 56 unit_models/_Units/LN_Lmail_Hmail/norse_axemen_lod2.mesh 2500 56 unit_models/_Units/LN_Lmail_Hmail/norse_axemen_lod3.mesh 6400 2 7 denmark 73 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_denmark.texture 72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture 44 unit_sprites/denmark_Norse_Axemen_sprite.spr 7 england
    73 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_england.texture
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture
    44 unit_sprites/denmark_Norse_Axemen_sprite.spr 2 7 denmark 60 unit_models/AttachmentSets/Final Danish_denmark_diff.texture 60 unit_models/AttachmentSets/Final Danish_denmark_norm.texture 0 7 england
    60 unit_models/AttachmentSets/Final Danish_england_diff.texture 60 unit_models/AttachmentSets/Final Danish_england_norm.texture 0 1 4 None 11 MTW2_2H_Axe 0 2 19 MTW2_2H_Axe_primary 14 fs_test_shield 0 16
    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 16 norse_axemen_ug1 1 3 66 unit_models/_Units/LN_3QPlate_HalfPlate/norse_axemen_ug1_lod0.mesh 121 66 unit_models/_Units/LN_3QPlate_HalfPlate/norse_axemen_ug1_lod1.mesh 1225 66 unit_models/_Units/LN_3QPlate_HalfPlate/norse_axemen_ug1_lod2.mesh 6400 2 7 denmark 82 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_denmark.texture 81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture 48 unit_sprites/denmark_Norse_Axemen_ug1_sprite.spr 7 england
    82 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_england.texture
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture
    48 unit_sprites/denmark_Norse_Axemen_ug1_sprite.spr 2 7 denmark 60 unit_models/AttachmentSets/Final Danish_denmark_diff.texture 60 unit_models/AttachmentSets/Final Danish_denmark_norm.texture 0 7 england
    60 unit_models/AttachmentSets/Final Danish_england_diff.texture 60 unit_models/AttachmentSets/Final Danish_england_norm.texture 0 1 4 None 11 MTW2_2H_Axe 0 2 19 MTW2_2H_Axe_primary 14 fs_test_shield 0 16

    it crashses just as the custom battle screen loads
    Last edited by misfitsfiend138; February 09, 2007 at 11:28 AM.

  8. #8

    Default Re: How-To: Add other faction units for new factions

    Hi mercury,
    I've got a question for you : I tried to give the scots guard model to french mounted archers using both battle_models & export_descr_unit (for the guys not 2 be standing on the horses), but it appears that they have giant longbows in front of their horses without actually holding them, do you know what I have to modify to make them have the same longbow as regular french mounted archers ug1 ?

  9. #9

    Default Re: How-To: Add other faction units for new factions

    Still cant get anything to work... help someone?

  10. #10

    Default

    that's what I thought, but thx a lot 4 making me sure, otherwise I'd have kept searching :-D

    by the way, thx also for this tutorial & the two first links, helped me a lot ;-)
    Last edited by Trajan; February 16, 2007 at 05:53 PM. Reason: Merged non-duplicate double post.

  11. #11

    Default Re: How-To: Add other faction units for new factions

    First I want to say thank you M3rcury15, for writting down this wonderful tutorial.

    I made a search for the thing I'm going to ask, but didn't find anything.
    I gave the normans(I modded them in) Mongol Light Lancer unit. Everything is fine except that when this unit is the leading one of my army, the captain is "invisible". I've added many mercs and their captains are OK, but the captain of the MLL is invisible.
    Interesting thing is that I've added also Dismounted Druzhina and their captain is OK as well.

    Can s'one help?

  12. #12

    Default Re: How-To: Add other faction units for new factions

    another question, lol, how could I create a unit from nothing ?

    and where are the files where written informations about units can be found ( & if u also know, where are the files where the traduced versions of these informations are located (because I have a non-english version)) ?

  13. #13

    Default Re: How-To: Add other faction units for new factions

    I was wondering if anyone could help me with dismounted/mounted russian feudal knights. I pretty much understand eveything except the battle_models.modeldb code, i've found most of the code (i think) but I keep over looking parts and i'm not exactly sure what to change , I know I have put "7 russia" and some other simple stuff but that's about it. I went to the link about the battle_models.modeldb turtorial, but it it didn't help me much.

    I was just thinking about copying one coded line for one faction (lets say england) ,pasting it to another notepad, editing it for russia and then pasting that edited line back in to the battle_models.modeldb . I still need help getting the exact code and how to edit properly. thanks

  14. #14

    Default Re: How-To: Add other faction units for new factions

    well ive come to a conclusion that u cant give the norse axemen to any faction. the reason is because only 2 factions carry the " Final Danish_X_diff.texture
    and Final Danish_X_norm.texture ". those factions are denmark and russia.

  15. #15

    Default Re: How-To: Add other faction units for new factions

    guys I gotta problem, I added new units 2 france from nothing, and it works well on custom battles, but when I play on campaign I can't recruit any infantry unit, even though I check the export_descr_buildings file , which is correct. So could any 1 help me plzzzz

  16. #16
    M3rcury15's Avatar Libertus
    Join Date
    Dec 2006
    Location
    Estonia
    Posts
    97

    Default Re: How-To: Add other faction units for new factions

    @misfitsfiend138: No like this
    Code:
    This is code with many       spaces
    @m.minkov: Hmm... i don't know why the general is invisible the general can't be invisible if you added the unit properly in descr_units file

    @glitch: Do exactly as you just said that's how i did the first time but remember edit 1by1 not whole together, first thing you should edit first is faction name then check if it works if it does then start editing textures text

    @funky_kiwi: There is a different tutorial for export_descr_buildings

  17. #17

    Default Re: How-To: Add other faction units for new factions

    @m3rcury, i finally figured out by wat u mean by "code" the thing is it just wont work. enlgand doesnt have a Final Danish_X_diff.texture and Final Danish_X_norm.texture in the attachment file.

  18. #18
    M3rcury15's Avatar Libertus
    Join Date
    Dec 2006
    Location
    Estonia
    Posts
    97

    Default Re: How-To: Add other faction units for new factions

    I know that but you still can edit that file to put english colors or you don't edit the file at all just keep it dutch clothes but english faction...

  19. #19

    Default Re: How-To: Add other faction units for new factions

    o ok, ill give it a shot tomorrow.

  20. #20

    Default Re: How-To: Add other faction units for new factions

    @ M3rcury15

    do you happen to have the mounted/ dismounted feudal knight code ? I keep missing parts.

Posting Permissions

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