Results 1 to 6 of 6

Thread: new unit problems

Hybrid View

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

    Default

    ive just finished making some new units for mtw vi

    "Unknown unit type incountered" when i run the game.


    can anyone tell me what this is likley to be ?

    im pretty sure all the correct files are there..
    [VDM]BuuKenshin


  2. #2
    Keeper of Glyphs Member [DnC]'s Avatar
    Join Date
    Jan 2003
    Location
    The Netherlands, Flevoland, Lelystad
    Posts
    561

    Default

    Quote Originally Posted by [b
    Citaat[/b] ]
    Posted by kekvitirae:

    BACKUP YOUR FILES

    To create a new faction, read this thread in its entirety: http://www.totalwar.org/cgi-bin....;t=6671

    To create new units follow these steps:
    1. Open up your unit_prod11.txt file in Notepad and search for a unit that is a close match to what you want to create. To create a new heavy spear chucker, simply find the Bonnachts (found in the Viking's unit_prod11.txt file).
    2. Highlight it all, right down to the beginning of the next unit under it.
    3. Select Copy.
    4. Scroll down to the point where the unit list ends and emptiness begins. If you have word wrap off, it wont be too far down.
    5. On the line under the last unit, hit Paste. You now have an exact copy of the Bonnacht unit in the file. Save the file.
    6. Download and install Gnome's editor from the Org's download tools.
    7. Open up the unit_prod11.txt file with Gnome editor and edit the stats of the new unit (all the way down at the bottom of the list) however you please.
    8. Rename the unit to something other than Bonnacht. Just dont put any spaces in the name. In this example, we'll choose the name SpearChuckers. Save the file.
    9. Open up Windows Explorer and go to your MTW directory. Go to the Battle\UnitIcons\ directory and copy the file Bonnachts.LBM and paste it in a temporary directory.
    10. Rename the file to SpearChuckers.LBM (remember, the file names must match that of the unit name) and move it back into the UnitIcons directory.
    11. Go to the campmap\ directory and do exactly the same thing with Bonnachts.bif files in the Info_Pics\Units\ directory and the Review_Panel\Units\ directory, copying/renaming/moving.
    12. In the Textures\Men\ directory, search every directory in there for references to Bonnachts*.txt and repeat the above. In this example, you should have a SpearChuckers.txt in the ActionsPage\ directory, and a SpearChuckers_W.txt and SpearChuckers_S.txt file in the NewPeasants\ directory.
    13. Because the weapons are hidden from view until they fire, Bonnachts dont require files in the Items\ directory. However, If you choose to create a unit that has their weapons and shields visable at all times in battle, repeat the above by copying and renaming the directories of the unit you are imitating to the unit you are creating. Example: In the ArabInfantry_S.txt file, you will see the number 2. Look in Items\Shields2 (note the 2), and you'll see ArabInfantry directory. Copy and paste it into a temp directory, rename it to your new unit, and move it back. Do exactly the same thing with ArabInfantry_W.txt (which has a 5 in it, so you should look in Items\Weapons5\.
    14. Go back to the root MTW directory and look in the Loc\Eng directory. Open up Names.txt in Notepad. Scroll down (or run a search) until you find this:
    ["Bonnachts_Singular"] {"Bonnacht"}
    ["Bonnachts_Plural"] {"Bonnachts"}
    15. Copy it and paste it at the end of the unit list, just a few more lines down. Rename Bonnanchts_Singular to SpearChuckers_Singular. In fact, rename all four Bonnachts references to SpearChuckers. Again, watch the spelling and capitalization. Save the file.
    16. Open up Descriptions.txt in the same directory with Notepad and run a search for ["Bonnachts_desc"]. Copy the whole line and paste it at the end of the unit list just a few lines down, exactly the same way you did with the Names.txt file.
    17. Rename Bonnachts_desc to SpearChuckers_desc, and then edit the description however you please. Just remember that since the unit description box in the game has to sliding bar, you have to limit the description of the unit. Otherwise the game will cut off the excess part, leaving you with an incomplete description when you view the unit. Save the file.
    18. Open up the DEADPAGE COORDS.txt file with Notepad in the Textures\Men directory.
    19. Run a search for Bonnachts, and highlight and copy that line and the numbers under it, and paste it at the bottom of the list. Rename the now-pasted Bonnachts to SpearChuckers. Save the file.

    Now, with any luck, you will have a new unit, the Spear Chuckers, at your beck and call. Just remember to assign it to a faction by tinkering with the Gnome editor and the unit_prod11.txt file.


    To transfer a building from the VI campaign over to the original campaign (or vice versa), repeat steps 1-7. Open up the VIKINGS_build_prod13.txt, copy the lines relevant to the building you want, open up CRUSADERS_build_prod13.txt and paste the lines in. Then just tinker with the Crusader build_prod13.txt file until you get the right requirements set.


    (I think think should be eligable for a sticky somewhere here or the Dungeon, since I havent seen a step-by-step for making new units)
    Have you gone through all these steps?
    If yes, then try and go through it again and see if there's anything missing like a specific file or a codeline.

    It should work if you follow this guide.

    By the way, open up Gnome Editor and go all the way to the last column (71 - Mercenary Unit - Period association - Faction association). Make sure all unnecessary spaces have been taken out. It should read something like this:

    'YES ALL_PERIODS "FN_ENGLISH,FN_FRENCH"' (taken from HighlandClansman)

    And not like this:

    'YES ALL_PERIODS "FN_ENGLISH,FN_FRENCH" '

    Without the ' ofcourse.

    This has caused problems for me in the beginning.




  3. #3
    Einherjer Member Norseman's Avatar
    Join Date
    Oct 2002
    Location
    Norway
    Posts
    289

    Default

    Quote Originally Posted by [b
    Quote[/b] ]
    ive just finished making some new units for mtw vi

    "Unknown unit type incountered" when i run the game.


    can anyone tell me what this is likley to be ?
    IIRC you get that error message if a cavalry unit is set to be able to dismount into a unit not defined. This is set in the 4th last entry on a unit line.


    In other words, you may have miss-spelled the name of the foot unit your new cavalry unit can dismount into.
    Example: You want Feudal Knights to dismount into FeudalMAA. If you write FedalMAA, missing a "u", in the 4th last entry of the Feudal Knights the game won't recognize that entry as a unit.

    OR

    You have a problem with the tabs in the file, so that you get a unexpected label in the 4th last entry. So instead of reading "FeudalMAA" the game reads "SWORD" or something, which of course isn't recognized as a unit.

    Fury of the Northmen mod

  4. #4
    Robot Unicorn Member Kekvit Irae's Avatar
    Join Date
    May 2003
    Location
    Alabama
    Posts
    3,758

    Default

    As posted from the TW.com forums:

    "the problem stems from the very last column, the one about needing to know if it's a mercenary units (and who/when can use it in custom battles) (column 71). The problem is that it most likely is reading the tabs wrong. To fix this, highlight everything in column 71 from a similar unit, hit Ctrl-C (for copy, highlight everything in the column 71 of the new unit and hit Ctrl-V (for paste), and edit it however you wish. It should be fixed."

    http://pub222.ezboard.com/fshogun....5.topic

  5. #5
    Keeper of Glyphs Member [DnC]'s Avatar
    Join Date
    Jan 2003
    Location
    The Netherlands, Flevoland, Lelystad
    Posts
    561

    Default

    Quote Originally Posted by [b
    Citaat[/b] (kekvitirae @ April 20 2004,19:17)]As posted from the TW.com forums:

    "the problem stems from the very last column, the one about needing to know if it's a mercenary units (and who/when can use it in custom battles) (column 71). The problem is that it most likely is reading the tabs wrong. To fix this, highlight everything in column 71 from a similar unit, hit Ctrl-C (for copy, highlight everything in the column 71 of the new unit and hit Ctrl-V (for paste), and edit it however you wish. It should be fixed."

    http://pub222.ezboard.com/fshogun....5.topic
    Aha so that is the problem?
    Mentioned it aswell, but wasn't quite sure if it was the problem seeing as it was a long time ago since I had this problem to.

  6. #6
    Robot Unicorn Member Kekvit Irae's Avatar
    Join Date
    May 2003
    Location
    Alabama
    Posts
    3,758

    Default

    It is, it's just that the tabs for that column in the Viking Invasion unit_prod file are a bit different from the tabs in the same column in the MTW file. A little copy-and-pasting keeps it all together

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO