How to add a new nation from scratch?

Discussion in 'Modding' started by SuperVizor, Oct 21, 2017.

  1. SuperVizor

    SuperVizor New Member

    Hi cossacks fans!

    Ive been searching everywhere and trying lots of things myself on how to add a new nation to the game from scratch, seems I always get a error telling that the name is unknown of the nation aborting the game loading.

    I wanted to add a new nation to test out age of empires 2 units in the massive cossacks environment without touching the original nations, can anybody give insight on what ive been missing?

    Allthough there are tutorials on adding new units etc, there are none about adding a new nation
     
  2. Wralth

    Wralth Active Member

    >there are none about adding a new nation

    Yeah because we modders dont really have the resources yet to just casually stroll in and add an entirely new nation. It has not been done before so obviously there is no tutorial.

    Good luck swimming through the code trying to find what you need to edit.
     
  3. SuperVizor

    SuperVizor New Member

    Thanks, and what I just need is a working nation slot, I dont care about the nation's content yet, ive even searched thru the gigs of entire data of all gamefiles and the only places where nations appear are language files and the country script and map script and some ai files, so atleast I think im working at the right files
     
  4. Wralth

    Wralth Active Member

    Pretty sure that nations are (as everything in the game) tied to global constants defined in dmscript.global
     
  5. SuperVizor

    SuperVizor New Member

    Nope, its not defined there, anyways ive finally managed to make the code work and add a nation, but despite all effort it didn't show up, I guess its hard coded, maybe its to prevent players from adding new nations because of dlc content mods, well Ive decided to pick england and build my mod from that point, if its still figured out how to add a nation I would really appreciate it :)
     
  6. Hansol333

    Hansol333 Active Member

    I think that there are already more then enough nations in the game.
    Simply take one and make them more different.
     
  7. Francesco_Cavalli

    Francesco_Cavalli Active Member

    Yes, as a real kick in the teeth use a nation that really had no bearing in the timeframe (cough cough, Ukraine)
     
  8. Wralth

    Wralth Active Member

    You just go to country.script and misc.script and add the nations + change the procedures that use them and make an entry for the locale to show up.

    Took me like 30 mins to add a nation (minus assigning units and such, i will get to that eventually.
     
  9. SuperVizor

    SuperVizor New Member

    wow wait, you mean selectable from the drop down menu in game start?
    also maybe old news, but I managed to switch player in the game editor via Alt+1 (til 8)
     
  10. Wralth

    Wralth Active Member

    Pretty much, as soon as you increase the max number of countries in dmscript it just pretends like there are more nations and you just have to implement them into the specific functions related to them
     
  11. SuperVizor

    SuperVizor New Member

    could you please add me on steam? it's alexandra_r95
    would love if you made an example mod and shared it with me, I can check it out and apply the changes :D
     
  12. SuperVizor

    SuperVizor New Member

  13. SuperVizor

    SuperVizor New Member

    for now I used the originals as refuge nation for my edits, but i can't wait to add a seperate nation and select it from game start

    edit: what value do I need to edit in dmscript?
     
    Last edited: Oct 26, 2017
  14. SuperVizor

    SuperVizor New Member

    gc_MaxCountryCount = 24;
    gc_MaxCountryCountRelease = 13; (does this have to do anything with this?)
     
  15. SuperVizor

    SuperVizor New Member

    also data\game\var\startingsettings.var seems hold curcial info:

    countries : struct.begin
    [*] : struct.begin
    allowedcountries : struct.begin
    [*] = aus
    [*] = fra
    [*] = eng
    [*] = spa
    [*] = rus
    [*] = ukr
    [*] = pol
    [*] = swe
    [*] = pru
    [*] = ven
    [*] = tur
    [*] = alg
    [*] = net
    [*] = den
    [*] = bav
    [*] = sax
    [*] = sco
    [*] = por
    [*] = hun
    [*] = pie
    [*] = swi
    struct.end
     
  16. SuperVizor

    SuperVizor New Member

    Hmm wel ive been busy adding the nation, it appears, but I cant add the new var everywhere and the game won't recognize the nation tag in the country file
    I have found a temporary solution by using the "If not" argument with all the game's nation tags listed, so it will only include the new nation, but this is a cheap non functional workaround
     
  17. Wralth

    Wralth Active Member

    Works fine for me so far so idk what youre doing wrong. Anyways, im busy creating all the needed content for my new nation
     
  18. SuperVizor

    SuperVizor New Member

    well somehow it didnt work out for me, I made a new and working nation, but putting it in slot 25 simply didnt work because the game told it couldnt pass the function argument

    edit: for now I used slot 24, (lit) and changed it to (aoe)
     
  19. SuperVizor

    SuperVizor New Member

    also seems the scotts provided some nice unit models for my age of empires 2 mod :)
     
  20. Wralth

    Wralth Active Member

    Cossack Annihilation has a new nation now btw.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice