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
>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.
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
Pretty sure that nations are (as everything in the game) tied to global constants defined in dmscript.global
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
I think that there are already more then enough nations in the game. Simply take one and make them more different.
Yes, as a real kick in the teeth use a nation that really had no bearing in the timeframe (cough cough, Ukraine)
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.
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)
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
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
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?
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
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
Works fine for me so far so idk what youre doing wrong. Anyways, im busy creating all the needed content for my new nation
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)