Page 1 of 1

Editing the World Championships and World Juniors

Posted: Tue May 04, 2021 6:59 pm
by ideawithoutamind
I am working on trying to get the World Championships and World Junior setup similar to these tournaments following the originally planned 2021 tournaments/teams; I'm wondering how much is hardcoded via ID/names. I'm using the base of the new Pivot 6 in hopes to add this format to the upcoming year.
I'm using the new Pivot6 template, but for World Championships, it's the same set up as 5.5 and I think the previous few years.

Note: I have the National Teams all pulling into the desired divisions using either a tweaked IIHF for Senior WC, and Previous Jnr team settings for Junior WC.
World Championships: https://www.iihf.com/en/tournaments?tou ... ory=worlds
World Championships - Same as Pivot 5, 16 teams split into two 8 team stages A & B. Playoffs for Gold, Silver, Bronze, bottom teams from each group relegated.
WC Div 1 - (renamed from WC-D1A) - Updated 12 teams, split into two 6 team stages A & B. Top 2 teams from each group promoted, bottom 2 teams relegated *potentially split back into 2 competitions
WC Div 2 - (renamed from WC-D1B) - Updated 12 teams, split into two 6 team stages A & B. Top 2 teams from each group promoted, bottom 2 teams relegated
*potentially split back into 2 competitions
WC Div 3 - (renamed from WC-D2A) - Updated 10 teams, split into two 5 team stages A & B. Top 2 teams from each two teams promoted, bottom 2 teams play relegation game, loser relegated. *potentially renamed to 3A, and adding a 3B competition
WC Div 4 - (renamed from WC-D2B) - Updated 5 teams, 1 top team promoted, bottom team relegated (no lower competition, so team actually doesn't relegate) *potentially needing to create this one

*Original Div 3 (ID = 49010) - Marked to extinct. I had originally changed it to a International Junior and tried to move it as Div 2, but there was issues pulling teams correctly, so I opted to mark as extinct and not use this ID).

World U-20 Championships: https://www.iihf.com/en/tournaments?tou ... ory=worlds
World Junior Championships - Same as Pivot 5, 10 teams split into two 5 team stages A & B. Playoffs for Gold, Silver, Bronze, bottom teams from each group play a relegation playoff, loser relegated.
WJC Div 1 - Updated 12 teams, split into 2 groups of 6, top teams from each group play a promotion playoff, winner promoted, bottom teams from each group relegated.
WJC Div 2 - Added (renamed USP3HL, ID=11651), and changed the club competition settings appropriately). 12 teams, split into 2 groups of 6, top teams in each group promoted.
WJC Div 3 - Not created yet, part of why I am creating this post. Seeing the teams from the link above that would be in WC-U20 (Mexico, Turkey, Bulgaria, Chinese Taipei), I'm not sure how I'd be able to set them properly without tweaking the senior rankings.

tl;dr:
Part of setting the specific teams into the correct divisions uses IIHF, but also partly uses the Previous 3 years into the editor under Nation > Miscellaneous.
The drop downs and options seem hardcoded for Senior and Junior positions. Senior uses WC, Div 1A, Div 1B, Div2A, Div2B, and Div 3. Junior uses WC, Div 1, and Div 2. I'd like to properly set the teams to be in the divisions from the IIHF page (or for future potential groupings), but wasn't sure what was hard coded into the game, vs the editor settings.

I can share what I have, but I was using the Pivot v6 ongoing db, so may not want to publicly share that publicly without xECK29x permission yet, or I could email/msg you a link.

Editing the World Championships and World Juniors

Posted: Tue May 04, 2021 9:46 pm
by ideawithoutamind
I just noticed this got moved to it's on thread, there are some overlapping editor questions, (league ID, dropdown values for previous positions) Adding screen shots, just as example.

Example setup screen caps:
Image

Image

Image

Image

Image

Drop down in the editor, are these hard coded in the game or the editor?

Image

Image

Editing the World Championships and World Juniors

Posted: Wed May 05, 2021 7:55 am
by archibalduk
They're hardcoded into the game. The list can actually be expanded via the "common" sub-folder of the Editor but it probably wouldn't have any impact on the game and would likely crash it.

Editing the World Championships and World Juniors

Posted: Wed May 05, 2021 5:49 pm
by ideawithoutamind
archibalduk wrote: Wed May 05, 2021 7:55 am They're hardcoded into the game. The list can actually be expanded via the "common" sub-folder of the Editor but it probably wouldn't have any impact on the game and would likely crash it.
Thanks! I'll play around with it (making frequent backups). If I make any progress (or failures), I'll post any updates.

Editing the World Championships and World Juniors

Posted: Thu May 06, 2021 9:35 pm
by ideawithoutamind
I apologize for the lengthy post. This is likely lower priority than many of the other things going on, but just wanted to document it while I did it. End of the day, lower priority, and I'm sure we can get by just using real IIHF scores updated, leave the previous IIHF positions to and just letting the game sort them out. But it would be nice to know how to correctly mod these or make additional layers to the World Championships if we want to add these to match to in-real life.

Most of this is to document everything, so two parts of this.
Modifying the common/txt files:

So, I found the txt files and tried a few things, but mostly the changes didn't show up in the editor (or exports at all). Each of the following things I tried still showed the original format in editor and for exports). So not sure if it's getting pulled in again elsewhere or hardcoded in the editor app itself?) These are the desired formats I was trying to change to

Following changes to the text files:
iihf_senior_division.txt
0,[None],0
1,World Championships,0
2,Div 1,0
3,Div 2,0
4,Div 3,0
5,Div 4,0
6,Div 3 (extinct),0
0,_none,1
1,wc,1
2,1,1
3,2,1
4,3,1
5,4,1
6,5,1

iihf_junior_division.txt
0,[None],0
1,WJC U-20,0
2,Div 1,0
3,Div 2,0
4,Div 3,0
0,_none,1
1,wc,1
2,1,1
3,2,1
4,3,1


A few behaviors I found with them, upon starting up, no matter what changes I made, the 2 files (iihf_senior_division.txt, iihf_junior_division.txt) always reset to the previous data. Something on the loading of the database into the application, rewrote the 2 files (and others in the common folder) each time.

I tried importing using the new names (thinking maybe the names were in there, but just not in the drop down), but received errors on each of the nations on the attempt to import. I tried making the two files read only, which solved the issue of the txt files getting overwritten, but nothing changed in the editor or importing.


My work around was to make those 2 files read only. That kept the files intact when loading the database in the editor, but in the actual editor and exports, the original Division 1A,1B,2A,2B, 3 showed up (and just WC and Div 1 and 2 for WJC). Since the renaming of the common txt files, didn't seem to do anything, I left them as is. And tried modding as is.


Without any common txt file changes, using the current naming schematic:

World Championships - Same
Division 1A - Division 1
Division 1B - Division 2
Division 2A - Division 3
Division 2B - Division 4
Division 3 - Extinct

Another interesting thing happened.

For International Seniors, using ONLY tweaked IIHF scores, I can arrange all of the divisions to match the divisions of the real life counterpart: https://www.iihf.com/en/tournaments?tou ... ory=worlds (Stages are a bit mixed up, but all Div 1, Div 2, Div 3, and Div 4 will work using JUST IIHF, and making all of the IIHF Senior final positions = [None].

*Spreadsheet screenshot colors reflect Senior groupings.
Interestingly, using the IIHF Senior final positions works successful for World Championships, Div 1, Div 2, and Div 4. Division 3, strangely took most of the division 2 teams, and duplicated them. To assign the divisions, I used the original counterpart in the spreadsheet.
World Championships - (same name) - 16 teams - correct
Image
Image

WC Div 1 - (Assigned WC-D1A) - 12 teams - correct
Image
Image

WC Div 2 - (Assigned WC-D1B) - 12 teams - correct
Image
Image

WC Div 3 - (Assigned WC-D2A) - 10 teams - INCORRECT
Image
Image

WC Div 4 - (Assigned WC-D2B) - 5 teams - correct
Image
Image


For Juniors using:
World Championships - World Junior Championships U-20 - 10 teams - Correct
Image
Image

Division 1 - World Junior Championships U-20 Div 1 - 12 teams - Correct
Image
Image

Division 2 - World Junior Championships U-20 Div 2 - 12 teams - Correct
Image
Image

Nederlands U17 (extinct league, UID 11744) - World Junior Championships U-20 Div 3 - 4 teams (can't be added in spreadsheet currently) - Unset, likely by IIHF score. (additionally, I tried adding all of these to Division 2, hoping the remainder would trickle down, but it then skips them for the Division 3 seeding)
Image
Image
Image

Editing the World Championships and World Juniors

Posted: Fri May 07, 2021 6:30 pm
by archibalduk
Interesting... I'll take a look at what's going on with the txt files in the next Editor patch. It should only be overwriting the txt files if the common data version has changed (which it hasn't for some time) or the file is missing values (I don't think it is missing anything).

Editing the World Championships and World Juniors

Posted: Sat May 08, 2021 4:57 pm
by ideawithoutamind
Thanks! Let me know if there's anything else I can do to help or any info I can give.

I don't think I messed with any versioning, and it wasn't just the iihf txt files being rewritten each time. But I'd say about 2/3 of the txt files got rewritten, ones that I hadn't touched either.