Page 4 of 30 FirstFirst 123456789101112131429 ... LastLast
Results 61 to 80 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: Tut: To add other faction units for new factions

    I found that opening the file in Microsoft Word makes reading the text much easier.

  2. #2

    Default Re: Tut: To add other faction units for new factions

    anyone see anything wrong w/ this file for byzantine finatry for england.

    byzantine_infantry 1 4 68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod0.mesh 121 68

    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod1.mesh 900 68

    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod2.mesh 2500 68

    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod3.mesh 6400 2 7 england 80

    unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_byzantium.texture 77

    unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_normal.texture 52

    unit_sprites/byzantium_Byzantine_Infantry_sprite.spr 9 byzantium 80

    unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_byzantium.texture 77

    unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_normal.texture 52

    unit_sprites/byzantium_Byzantine_Infantry_sprite.spr 2 7 england 61 unit_models/AttachmentSets/Final

    Greek_byzantium_diff.texture 9 byzantium 61 unit_models/AttachmentSets/Final Greek_byzantium_diff.texture 61

    unit_models/AttachmentSets/Final Greek_byzantium_norm.texture 0 1 4 None 14 MTW2_Swordsman 0 2 18 MTW2_Sword_Primary 14

    fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 22 byzantine_infantry_ug1 1 3 72

    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_ug1_lod0.mesh 121 72

    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_ug1_lod1.mesh 1225 72

    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_ug1_lod2.mesh 6400 2 7 england 80

    unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_byzantium.texture 77

    unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_normal.texture 56

    unit_sprites/byzantium_Byzantine_Infantry_ug1_sprite.spr 9 byzantium 80

    unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_byzantium.texture 77

    unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_normal.texture 56

    unit_sprites/byzantium_Byzantine_Infantry_ug1_sprite.spr 2 1 7 england 61 unit_models/AttachmentSets/Final

    Greek_byzantium_diff.texture 61 unit_models/AttachmentSets/Final Greek_byzantium_norm.texture 0 1 4 None 14 MTW2_Swordsman 0

    2 18 MTW2_Sword_Primary 14 fs_test_shield 0 16 9 byzantium 61 unit_models/AttachmentSets/Final Greek_byzantium_diff.texture

    61 unit_models/AttachmentSets/Final Greek_byzantium_norm.texture 0 1 4 None 14 MTW2_Swordsman 0 2 18 MTW2_Sword_Primary 14

    fs_test_shield 0 16

  3. #3
    kleemann's Avatar Libertus
    Join Date
    Jan 2006
    Location
    In EU (Estonia)
    Posts
    74

    Default Re: Tut: To add other faction units for new factions

    Larry you have this code in wrong format. You made key strokes in wrong place.

    The string lenght number and string must be on same line!!!

    You have:
    byzantine_infantry 1 4 68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod0.mesh 121 68
    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod1.mesh 900 68
    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod2.mesh 2500 68
    unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod3.mesh 6400 2 7 england 80

    It must be:

    (here must be string lenght number of "byzantine_infantry" it is 18) byzantine_infantry 1 4
    68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod0.mesh 121
    68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod1.mesh 900
    68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod2.mesh 2500
    68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod3.mesh 6400
    2
    7 england
    80 (next string, the texture link)
    Last edited by kleemann; January 10, 2007 at 03:37 AM.
    Trading tip: Load your mercants on your (crapy, cheap upkeep) unit and place that crapy unit on the valuable trade ressource. All will earn money on that single ressourec AND other merchants can't do anything! ha:ha

    BUT it has bad side efect, if the unit rebel you will lose your merchants :hmmm:

    How-to: edit battle_model.modeldb to add new animations and skins.

  4. #4

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

    I have discovered that if you edit the battle_models in Medieval 2 Total War\data and have a have all the other changes in mymod\data it works well, recognising both changes. My question is, if I were to create a modification that would include the battle_models file, would they need to use the unpacker beforehand so that they can use my mod?

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

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

    Quote Originally Posted by Time Commander Bob View Post
    I have discovered that if you edit the battle_models in Medieval 2 Total War\data and have a have all the other changes in mymod\data it works well, recognising both changes. My question is, if I were to create a modification that would include the battle_models file, would they need to use the unpacker beforehand so that they can use my mod?
    I don't understand your text do you mean that editing battle_models in mymod\data still recognize the edits?

    And if you make a mod the other people won't need the unpacker but you will need to create the bat file or their game won't have the edits.

  6. #6

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

    Quote Originally Posted by M3rcury15 View Post
    I don't understand your text do you mean that editing battle_models in mymod\data still recognize the edits?

    And if you make a mod the other people won't need the unpacker but you will need to create the bat file or their game won't have the edits.
    No, the battle_models is in Medieval 2 Total War\data whilst the rest of my modded stuff is in Medieval 2 Total War\mymod.
    I can get battle_models working now due to adding a bit more text to the .bat file.
    My point was that to use this as a mod for other people to download it wouldn't just be the mymod folder and since you also have the battle_models file which would save somewhere else. Which brings up the question, could someone who has not used the unpacker use the modified model_battles file? (assuming the .bat was there and the cfg file)

  7. #7

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

    Can someone help me to get the cossack musketeers for the byzantines? I have this so far


    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    18 cossack_musketeers
    1 3
    66 unit_models/_Units/EE_Peasant_Leather/cossack_musketeers_lod0.mesh 121
    66 unit_models/_Units/EE_Peasant_Leather/cossack_musketeers_lod1.mesh 1225
    66 unit_models/_Units/EE_Peasant_Leather/cossack_musketeers_lod2.mesh 6400
    1
    6 byzantium
    77 unit_models/_Units/EE_Peasant_Leather/textures/mtw2_EE_Peasant_russia.texture
    77 unit_models/_Units/EE_Peasant_Leather/textures/mtw2_EE_Peasant_normal.texture
    49 unit_sprites/russia_Cossack_Musketeers_sprite.spr
    1
    6 byzantium
    68 unit_models/AttachmentSets/Final European CB Gun_russia_diff.texture
    68 unit_models/AttachmentSets/Final European CB Gun_russia_norm.texture 0
    1
    4 None
    16 MTW2_Fast_Musket
    20 MTW2_Non_Shield_Fast 1
    19 MTW2_Musket_Primary 1
    18 MTW2_Sword_Primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    22 cossack_musketeers_ug1 1 3
    70 unit_models/_Units/EE_Peasant_Leather/cossack_musketeers_ug1_lod0.mesh 121
    70 unit_models/_Units/EE_Peasant_Leather/cossack_musketeers_ug1_lod1.mesh 1225
    70 unit_models/_Units/EE_Peasant_Leather/cossack_musketeers_ug1_lod2.mesh 6400
    1
    6 byzantium
    77 unit_models/_Units/EE_Peasant_Leather/textures/mtw2_EE_Peasant_russia.texture
    77 unit_models/_Units/EE_Peasant_Leather/textures/mtw2_EE_Peasant_normal.texture
    53 unit_sprites/russia_Cossack_Musketeers_ug1_sprite.spr
    1
    6 byzantium
    68 unit_models/AttachmentSets/Final European CB Gun_russia_diff.texture
    68 unit_models/AttachmentSets/Final European CB Gun_russia_norm.texture 0
    1
    4 None
    16 MTW2_Fast_Musket
    20 MTW2_Non_Shield_Fast 1
    19 MTW2_Musket_Primary 1
    18 MTW2_Sword_Primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

  8. #8
    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

    I didn't check all your string lengths but right off
    the bat the faction name byzantium is 9 characters
    long so try changing all your
    6 byzantium
    faction entries to
    9 byzantium
    and see if the game loads.

  9. #9

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

    no, didnt work

  10. #10
    kleemann's Avatar Libertus
    Join Date
    Jan 2006
    Location
    In EU (Estonia)
    Posts
    74

    Default Re: Tut: To add other faction units for new factions

    I made some more study of the code and tested it. The best testing if you have mistakes in it is to just save and launch medieva2. If thare is mistake the medieval CTD. So easy to test?

    13 norse_archers
    1
    4
    60 unit_models/_Units/EN_Peasant_Padded/norse_archers_lod0.mesh 121
    60 unit_models/_Units/EN_Peasant_Padded/norse_archers_lod1.mesh 900
    60 unit_models/_Units/EN_Peasant_Padded/norse_archers_lod2.mesh 2500
    60 unit_models/_Units/EN_Peasant_Padded/norse_archers_lod3.mesh 6400
    1
    7 denmark
    79 unit_models/_Units/EN_Peasant_Padded/textures/EN_Peasant_Padded_denmark.texture
    78 unit_models/_Units/EN_Peasant_Padded/textures/EN_Peasant_Padded_normal.texture
    52 unit_sprites/denmark_Dummy_EN_Archers_ug1_sprite.spr
    1
    7 denmark
    60 unit_models/AttachmentSets/Final Danish_denmark_diff.texture
    60 unit_models/AttachmentSets/Final Danish_denmark_norm.texture 0
    1
    4 None
    11 MTW2_Bowman
    14 MTW2_Swordsman
    2 (<-number of string lines to come)
    19 MTW2_Bowman_Primary
    14 fs_test_shield
    2 (<-number of string lines to come)
    18 MTW2_Sword_Primary
    14 fs_test_shield
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

    I Edit it in MS Word also, because you can use track changes and see all spaces ant strokes. I keep text files in CVS also (use Tortoise CVS, it is freeware), i can handle the versions now more easy and have the all history.
    Trading tip: Load your mercants on your (crapy, cheap upkeep) unit and place that crapy unit on the valuable trade ressource. All will earn money on that single ressourec AND other merchants can't do anything! ha:ha

    BUT it has bad side efect, if the unit rebel you will lose your merchants :hmmm:

    How-to: edit battle_model.modeldb to add new animations and skins.

  11. #11
    Legionary Jezza's Avatar Praefectus
    Join Date
    Mar 2006
    Location
    Greece
    Posts
    6,530

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

    I still dont get how this file works can someone give me an example please. I'm adding units from HRE to Saxons. Such as most units. Lets used ballista for example I have invisible crew I want them have the HRE texture for saxons, how can I do this?

  12. #12
    Hans Kloss's Avatar J-23
    Join Date
    Oct 2004
    Location
    Richmond upon Thames
    Posts
    1,616

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

    You will need to add saxon ballista crew to battle_model file.Easiest way to add them is to copy/paste HRE entry.Don't forget to edit the whole section - number of factions using this unit etc.

  13. #13

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

    how do you create the neccsary .cfg file for "mymod", and what goes in it? do you just copy the medieval2.cfg and rename it or make a whole new one?

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

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

    Quote Originally Posted by larry View Post
    how do you create the neccsary .cfg file for "mymod", and what goes in it? do you just copy the medieval2.cfg and rename it or make a whole new one?
    Yeah just copy it and rename it and put this:

    Code:
    [features]
    mod=mymod
    to the end and make sure that it has the same name that the folder of your mod.

  15. #15

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

    hey i need help here im trying to give englands colors to the lancers, i have this so far.
    -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 7 lancers 1 4 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod0.mesh 121 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod1.mesh 900 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod2.mesh 2500 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod3.mesh 6400 2 6 france 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_france.texture 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 40 unit_sprites/france_Gendarmes_sprite.spr 7 england 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_france.texture 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 40 unit_sprites/france_Gendarmes_sprite.spr 2 6 france 59 unit_models/AttachmentSets/Final Heater_france_diff.texture 59 unit_models/AttachmentSets/Final Heater_france_norm.texture 0 7 england 59 unit_models/AttachmentSets/Final Heater_france_diff.texture 59 unit_models/AttachmentSets/Final Heater_france_norm.texture 0 1 5 Horse 13 MTW2_HR_Lance 18 MTW2_HR_Non_Shield 1 21 MTW2_HR_Lance_Primary 1 18 MTW2_Sword_Primary 16

    what do i need to change to give the lancers englands colors?
    Last edited by misfitsfiend138; January 11, 2007 at 11:48 AM.

  16. #16

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

    in here http://www.twcenter.net/forums/showthread.php?t=77362 is a post by me that might be able to help some people.

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

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

    Quote Originally Posted by misfitsfiend138 View Post
    hey i need help here im trying to give englands colors to the lancers, i have this so far.
    Code:
     -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 7 lancers 1 4 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod0.mesh 121 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod1.mesh 900 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod2.mesh 2500 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod3.mesh 6400 2 6 france 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_france.texture 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 40 unit_sprites/france_Gendarmes_sprite.spr 7 england 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_france.texture 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 40 unit_sprites/france_Gendarmes_sprite.spr 2 6 france 59 unit_models/AttachmentSets/Final Heater_france_diff.texture 59 unit_models/AttachmentSets/Final Heater_france_norm.texture 0   7 england 59 unit_models/AttachmentSets/Final Heater_france_diff.texture 59 unit_models/AttachmentSets/Final Heater_france_norm.texture 0   1 5 Horse 13 MTW2_HR_Lance 18 MTW2_HR_Non_Shield 1 21 MTW2_HR_Lance_Primary 1 18 MTW2_Sword_Primary 16
    what do i need to change to give the lancers englands colors?
    Change your edition to this:

    Code:
     -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 7 lancers 1 4 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod0.mesh 121 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod1.mesh 900 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod2.mesh 2500 55 unit_models/_Units/LN_Gothic_RN_Plate/lancers_lod3.mesh 6400 2 6 france 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_france.texture 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 40 unit_sprites/france_Gendarmes_sprite.spr 7 england 81 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_england.texture 80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 40 unit_sprites/france_Gendarmes_sprite.spr 2 6 france 59 unit_models/AttachmentSets/Final Heater_france_diff.texture 59 unit_models/AttachmentSets/Final Heater_france_norm.texture 0  7 england 60 unit_models/AttachmentSets/Final Heater_england_diff.texture 60 unit_models/AttachmentSets/Final Heater_england_norm.texture 0  1 5 Horse 13 MTW2_HR_Lance 18 MTW2_HR_Non_Shield 1 21 MTW2_HR_Lance_Primary 1 18 MTW2_Sword_Primary 16
    Marked edits with red be careful and check if the files are there what you edit...

    To Zorgrath: Thanks for the link now i can finally make dismounted templar knights more easily...
    Last edited by M3rcury15; January 11, 2007 at 03:31 PM.

  18. #18

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

    Does anyone have an idea when we might get a more streamlined version of the Battle.model file?

  19. #19

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

    Quote Originally Posted by Ahiga View Post
    Does anyone have an idea when we might get a more streamlined version of the Battle.model file?
    if i had a choice between this and a full exporter, this would be a close second

  20. #20

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

    I tryied to copy the dismounted conquistadors from the first page and paste it rigth to the needed file in mymod/dada/etc. the conquistadors are invisible. the unit cards show up right. but the troops are invisible, no shadows, or banners, nothing. has anyone else had this problem? i know my mod files are working but adding units has not. i also checked that this is not an ownership issue. help?

Posting Permissions

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