[nation.dat] Nation Extractor / IIHF Team Rankings

Discuss all aspects of editing the data and databases in EHM here. Have a question about the EHM Editor, EHM Assistant, editing the .cfg files, hex editing the .dat or .db files? Want to tweak the EHM exe file to change league rules/structure, start date etc? This is the place!
Forum rules
This is the forum to discuss all aspects of editing the EHM data and tweaking the game.

Have a bug or feature request for the EHM Editor? Post them in the EHM Editor thread. Please start a new thread or post in another thread if you have a question about how to use the EHM Editor.

Given the large number of questions on similar topics, we ask that you start a new thread for a new question unless you can locate a similar question in an existing thread. This will hopefully ensure that similar questions do not get buried in large threads.

Useful links: EHM 1 Assistant (Download) | EHM 1 Editor (Download) | EHM 1 Editor Tutorials | Editing Rules & Structures Guide | Converting EHM 2004 / 2005 DBs to EHM 1 | Converting an EHM 2007 DB to EHM 1 | Extra_config.cfg | Import_config.cfg | Player Roles
User avatar
archibalduk
TBL Admin Team
Posts: 20372
Joined: Tue Jul 06, 2004 8:44 pm
Custom Rank: Seaside + Fruit Juice Mode
Favourite Team: Guildford (EPL) / Invicta (NIHL)
Location: United Kingdom
Contact:

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by archibalduk »

Wow, I think Nino will be very interested in this! =P~

You can't just tease us with screenshots and not tell us how you did it!! :D How did you do it?

Lazion wrote:
archibalduk wrote:
Midas wrote:There are some hardcore "defunct" nations in game (like the Soviet Union) that I should try adjusting the game values on, to see if I can revive them in game :D (as I have long desired to do!).
Heh I'm way ahead of you! :-D I tried setting the Soviet Union to Importance of 1 but it didn't make them appear in game (presumably more hardcoded things going on here). :cry:
Luckily it wasn't that hardcoded. :joy:

Image
Image
User avatar
Lazion
Second Line
Posts: 661
Joined: Tue Oct 23, 2007 5:34 pm
Favourite Team: Flyers

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by Lazion »

There's just missing some major info in nation.dat file.

I filled these U.S.S.R. values with Russian values:
Image

First line:
CONTINENTS_PTR NationContinent;
CITIES_PTR NationCapitalCity;
ARENAS_PTR NationNationalStadium;

Second line:
CHAR NationRegion;
CHAR NationActualRegion;
CHAR NationFirstLanguage;
CHAR NationSecondLanguage;
CHAR NationThirdLanguage;
CHAR NationStateOfDevelopment;
CHAR NationGroupMembership;
CHAR NationGameImportance;
CHAR NationLeagueStandard;

Soviet Union stays unplayable.. that's hardcoded by nation.
User avatar
archibalduk
TBL Admin Team
Posts: 20372
Joined: Tue Jul 06, 2004 8:44 pm
Custom Rank: Seaside + Fruit Juice Mode
Favourite Team: Guildford (EPL) / Invicta (NIHL)
Location: United Kingdom
Contact:

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by archibalduk »

Lazion wrote:First line:
CONTINENTS_PTR NationContinent;
CITIES_PTR NationCapitalCity;
ARENAS_PTR NationNationalStadium;

Second line:
CHAR NationRegion;
CHAR NationActualRegion;
CHAR NationFirstLanguage;
CHAR NationSecondLanguage;
CHAR NationThirdLanguage;
CHAR NationStateOfDevelopment;
CHAR NationGroupMembership;
CHAR NationGameImportance;
CHAR NationLeagueStandard;

Soviet Union stays unplayable.. that's hardcoded by nation.
That's very interesting! I wonder which one of those affects whether the nation appears. Maybe it is a combination of them... :-k

I had thought that whether or not a nation is playable depends on whether there are enough players of that nation in the game. Is my understanding incorrect?
User avatar
Alessandro
Olympic Gold
Posts: 2865
Joined: Sat Aug 27, 2005 1:54 pm
Custom Rank: TBL Rosters Man
Favourite Team: Team Russia
WHL Team: Calgary Flames

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by Alessandro »

By playable you mean "manageable"? To manage a nation you must have at least 255 players in the DB
User avatar
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by nino33 »

Wow!...very cool! =D>

Those that hexedit amaze me! 8-)
User avatar
Lazion
Second Line
Posts: 661
Joined: Tue Oct 23, 2007 5:34 pm
Favourite Team: Flyers

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by Lazion »

Alessandro wrote:By playable you mean "manageable"? To manage a nation you must have at least 255 players in the DB
Is this strict rule? I have nations with only around 100 players manageable. (Australia, Iceland, Turkey, Estonia etc.) But then again Spain isn't even tho there's around 200 players.
NingDynasty
Junior League
Posts: 27
Joined: Wed Feb 08, 2012 10:36 pm

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by NingDynasty »

Pretty cool stuff, in a dream world as players retire we could run a utility that could adjust regens countries ca/pa's to reflect the IIHF ranking score... making player generation dynamic, therefore allowing you to build up a nation and it's hockey relevancy. Perhaps even making the national league of the country more important in the process.
User avatar
Tasku
TBL Admin Team
Posts: 8158
Joined: Sat Jul 10, 2004 9:36 pm
Custom Rank: W-WPoTBLfaSaD
Favourite Team: WSH Capitals
Location: Finland

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by Tasku »

NingDynasty wrote:Pretty cool stuff, in a dream world as players retire we could run a utility that could adjust regens countries ca/pa's to reflect the IIHF ranking score... making player generation dynamic, therefore allowing you to build up a nation and it's hockey relevancy. Perhaps even making the national league of the country more important in the process.
The only problem with that would be that the IIHF rankings are based on national team success in IIHF tournaments, like the World Championships and Olympic Tournaments. This would be unfair to countries that have a lot of players in the NHL, like USA and Canada, and other countries as well, who have players in teams that are still competing for the Stanley Cup when the WC annual tournament begins in early May.
NingDynasty
Junior League
Posts: 27
Joined: Wed Feb 08, 2012 10:36 pm

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by NingDynasty »

I don't think it'd be a problem at all as we could easily add some points to the two North American giants to make sure that is accounted for.
User avatar
Tasku
TBL Admin Team
Posts: 8158
Joined: Sat Jul 10, 2004 9:36 pm
Custom Rank: W-WPoTBLfaSaD
Favourite Team: WSH Capitals
Location: Finland

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by Tasku »

True. Good point.
rob_lee
Junior League
Posts: 17
Joined: Wed Aug 14, 2013 5:44 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by rob_lee »

Hello!

As some of you might have found out already I am a lot into national teams in these manager games and EHM is awesome for that except for one thing. It seems as it's impossible to edit national teams in both pre-game editor and saved game editor.

I wonder if there is anyway to add a national tournament like the summit series? If not, maybe add so 8 games occur during summer every 8th year between Canada and Russia?
Anyone got any ideas of how I could add this sort of tournament to the game?

Looking forward to hear if there is a way! :-)
User avatar
archibalduk
TBL Admin Team
Posts: 20372
Joined: Tue Jul 06, 2004 8:44 pm
Custom Rank: Seaside + Fruit Juice Mode
Favourite Team: Guildford (EPL) / Invicta (NIHL)
Location: United Kingdom
Contact:

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

I'm afraid it's not possible to add/edit/remove international tournaments. :-(

The best I can suggest is that you can make additional national teams playable using this tool: http://www.ehmtheblueline.com/forums/vi ... =88&t=9171 (there is more info about this tool here).
rob_lee
Junior League
Posts: 17
Joined: Wed Aug 14, 2013 5:44 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by rob_lee »

Okay, why is everything that's got with national teams to do so darn restricted >.<

Anyway, what can I accomplish by adding more playable national teams? Is there a possibility to schedule any friendly games that way or is it just it if I unlock Turkey as a playable team for examle?
zbguy
Top Prospect
Posts: 121
Joined: Wed Aug 28, 2013 7:01 pm

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by zbguy »

Will boosting the IIHF ratings and league importance of minor countries (like Albania, for example) eventually cause more Albanian players to appear in the world?
User avatar
Manimal
TBL Admin Team
Posts: 6344
Joined: Thu Apr 24, 2008 4:01 am
Custom Rank: EHM Rosters Man
Favourite Team: Djurgårdens IF
Location: Karlstad, Sweden

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by Manimal »

rob_lee wrote:Hello!

As some of you might have found out already I am a lot into national teams in these manager games and EHM is awesome for that except for one thing. It seems as it's impossible to edit national teams in both pre-game editor and saved game editor.

I wonder if there is anyway to add a national tournament like the summit series? If not, maybe add so 8 games occur during summer every 8th year between Canada and Russia?
Anyone got any ideas of how I could add this sort of tournament to the game?

Looking forward to hear if there is a way! :-)
I deleted your other thread with the same question.
Please, ask only in one thread
User avatar
archibalduk
TBL Admin Team
Posts: 20372
Joined: Tue Jul 06, 2004 8:44 pm
Custom Rank: Seaside + Fruit Juice Mode
Favourite Team: Guildford (EPL) / Invicta (NIHL)
Location: United Kingdom
Contact:

Re: EHM 2007 Updater (A Pre-Game & Saved Game Editor)

Post by archibalduk »

rob_lee wrote:Okay, why is everything that's got with national teams to do so darn restricted >.<

Anyway, what can I accomplish by adding more playable national teams? Is there a possibility to schedule any friendly games that way or is it just it if I unlock Turkey as a playable team for examle?
If you make them playable then I think it opens up the possibility for them to qualify for the World Championships and potentially some of the other tournaments. I can't say I've done enough testing, but assuming teams outside of the World Champs can accrue an IIHF score then it should allow them to qualify for the World Champs. You can edit the IIHF score using the editor I linked to, but the teams which play in the first season of World Champs (and all other international tournaments) are harcoded and so this lessens the effect of the updated IIHF scores (because the IIHF scoring system gives a greater weight to the most recent season of scores). However if you boost a team's IIHF score enough you can get them to qualify for the World Champs for season 2 (I managed this with the UAE).

If you want to make a team appear in the IIHF rankings then the nation's Importance must be set to at least 3. Setting the Importance to 4 makes them disappear from the IIHF rankings.

I recommend reading through this thread because it has a lot of useful pointers: http://www.ehmtheblueline.com/forums/vi ... 110&t=9049
zbguy wrote:Will boosting the IIHF ratings and league importance of minor countries (like Albania, for example) eventually cause more Albanian players to appear in the world?
No, unfortunately not. As you may know, all newly created players are known as regens. Each regen replaces a player who has retired and they inherit certain characteristics of the retired player (IIRC such as nationality). So this means that the number of nationals in a game doesn't change. The only way to get more Albanian players in the game is to add such players using the Pre-Game Editor.

If you're looking to add more nationals to the game, you may want to try using the Nationality filter on the Advanced Player Search screen on EuroHockey (unfortunately it doesn't have Albania though): http://www.eurohockey.com/players.html? ... r_search=1
zbguy
Top Prospect
Posts: 121
Joined: Wed Aug 28, 2013 7:01 pm

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by zbguy »

I didn't realize regens also incorporated nationality. But adding players to the DB won't break anything? I don't have to replace an already-existing player?
User avatar
nino33
Mr. Goalie
Posts: 6088
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: [nation.dat] Nation Extractor / IIHF Team Rankings

Post by nino33 »

zbguy wrote:I didn't realize regens also incorporated nationality.
If you're interested, here's the thread on regens http://www.ehmtheblueline.com/forums/vi ... lit=regens

zbguy wrote:But adding players to the DB won't break anything? I don't have to replace an already-existing player?
You can definitely add new players to a database, using either the PreGame Editor http://www.ehmtheblueline.com/forums/vi ... =88&t=6745 or the EHM Updater http://www.ehmtheblueline.com/forums/vi ... it=updater
Post Reply