Page 1 of 2 12 LastLast
Results 1 to 20 of 29

Thread: adding custom general??

  1. #1
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Icon5 adding custom general??

    i would like to know how to add a custom general to a faction... have not tried "modding" myself before so i am a noob and i have tried searching but didn't find anything

    any help is appreciated

  2. #2
    Senator
    Join Date
    May 2005
    Location
    Rochester, Michigan
    Posts
    1,104

    Default Re: adding custom general??

    what do you mean by custom general? you mean a custom model for a general or a custom general that you have named and given ancillaries and traits to?

  3. #3
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Default Re: adding custom general??

    the later

  4. #4
    Senator
    Join Date
    May 2005
    Location
    Rochester, Michigan
    Posts
    1,104

    Default Re: adding custom general??

    ok, what you need is a decent text editor(i use notepad ++) but wordpad or notepad will work. go to your Call of Warhammer directory and open up data\world\map\campaign\imperial_campaign\descr_strat. this file holds the info for where you can add in a new general. here is an example:
    Spoiler Alert, click show to read: 
    character Drakar, named character, male, age 41, x 6, y 192
    traits GoodCommander 1 , Intelligent 2 , VictorVirtue 3 , PublicFaith 2 , BattleDread 2 , StrategyDread 2 , ReligionStarter 1, elf 1
    army
    unit Cold one knights bodyguard exp 3 armour 0 weapon_lvl 1
    unit Dark elf Executioner exp 3 armour 3 weapon_lvl 1
    unit Black guard exp 3 armour 3 weapon_lvl 1
    unit Dark elfs Warriors exp 3 armour 1 weapon_lvl 1
    unit Dark elf Shades exp 3 armour 1 weapon_lvl 1
    unit Dark elfs corsairs exp 3 armour 1 weapon_lvl 1


    This is a dark elf general. You can change name and age. the x and y coordinates are where we he will show on the map. Second line is the traits he will have starting off. If you want you can add another line for ancillaries and give the general ancillaries. To see an example of this use the search function in your text editor and look up ancillaries.
    next line is the units under his command. maximum experience is nine. armour level depends on the specific unit so i wouldn't mess with that.

    You can't change the character's name to anything. there is a set list of names for each faction you can use. to see what names you can use for a certain faction open up data/descr_names. You might be a little confused as the factions are labeled as vanilla factions. Each warhammer factions is one of the vanilla factions (hre=reikland, england=high elves) find a name you like and change the name in the desc strat file to the one you like.
    make sure your x and y coordinates is not the same as another general, add or subtract 1 from the x or y so he will be right next to one of your other generals.

    that's all i can think of for right now but with that you should be able to get a general ingame.

  5. #5
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Default Re: adding custom general??

    which one of the notepad ++ should i download?? (for binary files, source files and so on)

    http://notepad-plus.sourceforge.net/uk/site.htm

    Edit:

    Got it working now but the character don't have his surname?
    Last edited by Gondoriangrunt; April 16, 2010 at 02:42 AM.

  6. #6

    Default Re: adding custom general??

    You have to ensure that the surname matches that of the descr_names, descr_names_lookup and text/export_names files (all of them are text files).

    For example, if you're creating "Kurt Helborg", then you'd have to ensure that both Kurt and Helborg were in all of those files (Ctrl+F) helps wonders. Incidentally, in descr_names, you'd have to double check that Kurt is under the particular entry specific for the faction. If it doesn't tell you, then these entries can be found in descr_strat, using your own experience (i.e if you wanted to create one for Reikland, then search for altdorf in descr_strat and see what faction that's listed under. Simplest way of discovering

    [ Cry Havoc:: ] - [ link ] - [ An Expanded World Submod for Call of Warhammer ]
    My turban brings all the muslims to the yard and they're like العنصرية ش

  7. #7
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Default Re: adding custom general??

    i can't find this one: text/export_names

    can i simply just add another name to the faction or is the only option to overwrite of a "vanillia" name?

    Edit:

    Which folder should the file be in??
    Last edited by Gondoriangrunt; April 16, 2010 at 06:19 AM.

  8. #8

    Default Re: adding custom general??

    Sorry, my mistake - text/descr_names.

    You can easily add another name to the game - just ensure that it's in all those files, so the game can recognise and use them.

    [ Cry Havoc:: ] - [ link ] - [ An Expanded World Submod for Call of Warhammer ]
    My turban brings all the muslims to the yard and they're like العنصرية ش

  9. #9
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Default Re: adding custom general??

    for some reason i still have a lot of trouble adding the surname.. both surname and name are in these files:

    descr_names
    descr_names_lookup
    descr_strat
    (even added it in descr_names(2))

  10. #10
    Senator
    Join Date
    May 2005
    Location
    Rochester, Michigan
    Posts
    1,104

    Default Re: adding custom general??

    copy and paste your descr_strat entry so i can see what's wrong. also did you add your surname in the text/names.txt file?

  11. #11

    Default Re: adding custom general??

    Quote Originally Posted by Gondoriangrunt View Post
    for some reason i still have a lot of trouble adding the surname.. both surname and name are in these files:

    descr_names
    descr_names_lookup
    descr_strat
    (even added it in descr_names(2))

    Edit these files...

    data/descr_names.txt
    data/text/descr_names_lookup.txt
    data/text/names.txt

  12. #12
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Default Re: adding custom general??

    Got it!!

    thanks for the help
    and here comes another question if you don't mind

    how do I give said general a specific portrait?

  13. #13

    Default Re: adding custom general??

    Quote Originally Posted by Gondoriangrunt View Post
    Got it!!

    thanks for the help
    and here comes another question if you don't mind

    how do I give said general a specific portrait?
    Heres an example of William..

    in descr_strat..
    character William Plantagenet, named character, male, leader, age 50, x 109, y 147, portrait william

    and then in ui..

    ui/custom_portraits/william/portrait_dead.tga, portrait_old.tga, portrait_young.tga

  14. #14
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Default Re: adding custom general??

    Thanks it's working like a charm

    i have noticed that most generals have inner circle knights as the first entry in their starting army.... so if i change that to greatswords will he have them as bodyguards instead?

  15. #15

    Default Re: adding custom general??

    That's correct.

    However, that's only for those generals. ANY Unit can be a generals bodyguard - however, to have a general appear upon Birth of a Child and adoption, they need to have general_unit in the data/export_descr_unit.txt under the attribute line. If multiple are present for the faction, the random general bodyguard would be the first general_unit located in that file.

    If you're editing the files in desr_strat, only the noted generals which you edit would have that Bodyguard.

    [ Cry Havoc:: ] - [ link ] - [ An Expanded World Submod for Call of Warhammer ]
    My turban brings all the muslims to the yard and they're like العنصرية ش

  16. #16
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Default Re: adding custom general??

    thanks!! but how do i give the unit a max size (a bit overpowered to have 30 knights of morr as bodyguards)

    and also
    if i want my custom general to appear as a mercenary for empire factions like volands venators which files should i mod?
    and of course he should make a custom unit available for recruitment through dogs of war camp (example knights of morr can be trained there)

  17. #17
    Senator
    Join Date
    May 2005
    Location
    Rochester, Michigan
    Posts
    1,104

    Default Re: adding custom general??

    data\world\campaign\imperial_campaign\campaign script, you will need to learn some scripting

  18. #18
    Gondoriangrunt's Avatar Civis
    Join Date
    Jan 2010
    Location
    Denmark, Ikast
    Posts
    141

    Default Re: adding custom general??

    i have looked at the file and it looks fairly manageable as far that i can see.. bt i just need to double check

    Spoiler Alert, click show to read: 
    add_events
    event counter voland_spain which factions that can recruit?
    event counter voland_scotland
    event counter voland_portugal
    event counter voland_venice
    event counter voland_hre
    event counter voland_sicily
    event counter voland_milan
    event counter voland_saxons
    event counter voland_france
    date 0
    end_add_events
    set_event_counter voland_capitan 0 ?


    Spoiler Alert, click show to read: 

    if not I_IsFactionAIControlled milan player controls the faction?
    add_money milan -5000 player need to pay?
    spawn_army
    faction milan
    character Voland, named character, age 29, x 65, y 91, direction S, battle_model Sergeant_Republican_Guard, portrait Voland
    traits Voland 1
    unit venators bodyguard exp 9 armour 0 weapon_lvl 0
    unit venators exp 3 armour 0 weapon_lvl 0
    unit venators exp 3 armour 0 weapon_lvl 0
    unit venators exp 3 armour 0 weapon_lvl 0
    end
    historic_event voland_recruitment_player i need to add an historic event?
    set_event_counter voland_capitan 1 ?
    set_event_counter voland_milan 1 ?
    terminate_monitor
    end_if


    im guessing most of the file i could just copy and change to my general and army he spawns with?

  19. #19
    Senator
    Join Date
    May 2005
    Location
    Rochester, Michigan
    Posts
    1,104

    Default Re: adding custom general??

    i think so, not sure though, im a novice at scripting right now.

  20. #20

    Default Re: adding custom general??

    Without adding a completely new unit, you cannot change the Bodyguard Size for a general if it's also buildable elsewhere, as the actual Knights of Morr will be too small.

    [ Cry Havoc:: ] - [ link ] - [ An Expanded World Submod for Call of Warhammer ]
    My turban brings all the muslims to the yard and they're like العنصرية ش

Page 1 of 2 12 LastLast

Posting Permissions

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