Facepack DOB Updater for Updated Rosters

Utilities and roster editors for Eastside Hockey Manager 2007. These will be useful for Eastside Hockey Manager: Early Access because EHM 2007 rosters can be edited and then imported into EHM:EA.
Forum rules
NOTE: Although all of these tools are designed for Eastside Hockey Manger 2007, they can be used indirectly with Eastside Hockey Manager: Early Access. This is because EHM 2007 databases can be converted and imported into EHM:EA. CLICK HERE for more details.
Post Reply
User avatar
McQwak
Stanley Cup Winner
Posts: 1437
Joined: Mon Nov 05, 2007 1:59 pm
Custom Rank: Now with capital letters!
Location: Prague, Czech rep.

Facepack DOB Updater for Updated Rosters

Post by McQwak » Sat Mar 12, 2011 5:41 pm

Changes players/nonplayers picture names to match specific database birthdates.

This archive consists of 6 files:
  • update_plus_1.bat
  • update_plus_2.bat
  • update_plus_3.bat
  • update_plus_4.bat
  • update_minus_1.bat
  • update_minus_2.bat
  • update_minus_3.bat
  • update_minus_4.bat
These are scripts for PC that can be ran in \data\pictures\players\ or \data\pictures\nonplayers\ folder. It changes every year of birthdate by one, two or three years, depending on which script you run.

update_plus_1.bat is to be used for transition between Lidas1.3 to Lidas2.0 roster.
update_plus_2.bat is to be used for transition between original db to Lidas1.3 roster.
update_plus_3.bat is to be used for transition between original db to Lidas2.0 roster.
update_plus_4.bat is to be used for transition between original db to Lidas3.0 roster.

update_minus_x.bat files can be used in opposite way (backward).

Download: http://1drv.ms/1fWm1FP

User avatar
archibalduk
TBL Admin Team
Posts: 19217
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: Facepack DOB Updater for Updated Rosters

Post by archibalduk » Tue Mar 22, 2011 7:31 pm

Domingues - there is no need to ask the same question in several threads. I have deleted your post here because you've already posted it another more suitable thread.

User avatar
Smaby32
Junior League
Posts: 30
Joined: Fri Jul 22, 2011 3:46 pm

Re: Facepack DOB Updater for Updated Rosters

Post by Smaby32 » Fri Aug 26, 2011 2:00 am

can you help me i am updating my pictures from the 3.0 database would i just add 1 year on or keep it the same ????

User avatar
McQwak
Stanley Cup Winner
Posts: 1437
Joined: Mon Nov 05, 2007 1:59 pm
Custom Rank: Now with capital letters!
Location: Prague, Czech rep.

Re: Facepack DOB Updater for Updated Rosters

Post by McQwak » Fri Aug 26, 2011 10:01 am

What roster do you want to use? As far as I understand you've got pictures created for 3.0 database. So if you intend to play with the latest roster (3.2) then you don't have to change anything.

User avatar
archibalduk
TBL Admin Team
Posts: 19217
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: Facepack DOB Updater for Updated Rosters

Post by archibalduk » Fri Aug 26, 2011 7:52 pm

The best way to check is to pick one of the player pictures at random and see what the date of birth is in the filename. Then start a new game using the rosters and see what the player's date of birth is in game. Just compare the two dates of birth and you'll be able to calculate by how many years you need to adjust.

User avatar
Smaby32
Junior League
Posts: 30
Joined: Fri Jul 22, 2011 3:46 pm

Re: Facepack DOB Updater for Updated Rosters

Post by Smaby32 » Fri Aug 26, 2011 9:14 pm

thank you i found out to use the newest rosters you need to add one year on after the 3.0 update so if it was from the original database it would be 5 years.

User avatar
batdad
The Great One
Posts: 12612
Joined: Thu Aug 17, 2006 7:46 pm
Custom Rank: Mr Technology
Favourite Team: Syracuse Bulldogs.
Location: Look behind you, you peon

Re: Facepack DOB Updater for Updated Rosters

Post by batdad » Wed Oct 05, 2011 8:23 pm

So just to be sure...for the 2011 patch, and 3.2 csd rosters...use the photo updater -4?

User avatar
archibalduk
TBL Admin Team
Posts: 19217
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: Facepack DOB Updater for Updated Rosters

Post by archibalduk » Wed Oct 05, 2011 9:39 pm

batdad wrote:So just to be sure...for the 2011 patch, and 3.2 csd rosters...use the photo updater -4?
Had you previously updated the photos for the original 3.2 rosters? In that case, it would be -5.

Easiest way to check is to find the picture for someone you know and look at what year of birth is included in the filename. E.g. if the filename for the Milan Lucic pic says 1983 then you'll need to use -5 as his real year of birth is 1988.

User avatar
batdad
The Great One
Posts: 12612
Joined: Thu Aug 17, 2006 7:46 pm
Custom Rank: Mr Technology
Favourite Team: Syracuse Bulldogs.
Location: Look behind you, you peon

Re: Facepack DOB Updater for Updated Rosters

Post by batdad » Thu Oct 06, 2011 4:09 am

Thanks. I did not have the 3.2 photos.

User avatar
CarrotHead
Junior League
Posts: 33
Joined: Fri Nov 19, 2010 11:12 am
Location: Finland, Nokia

Re: Facepack DOB Updater for Updated Rosters

Post by CarrotHead » Sat Oct 15, 2011 5:34 pm

I don't know what I do wrong but there is no changes in file names when I run this file...I have windows 7...

User avatar
archibalduk
TBL Admin Team
Posts: 19217
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: Facepack DOB Updater for Updated Rosters

Post by archibalduk » Sat Oct 15, 2011 10:27 pm

CarrotHead wrote:I don't know what I do wrong but there is no changes in file names when I run this file...I have windows 7...
Right-click on the .bat file -> Properties -> Compatibility -> Tick the box titled 'Run this program as an adminstrator'. Click on OK.

If the files are located within the Program Files folder then you have to enable the Run as Admin option if using Windows Vista or 7.

vanillaacid
Junior League
Posts: 6
Joined: Sat Apr 02, 2011 8:35 pm

Re: Facepack DOB Updater for Updated Rosters

Post by vanillaacid » Wed Nov 09, 2011 2:20 am

I am trying to run this but I do not know what I am supposed to do. I am using the newest Lidas Rosters so I try to use update+4 correct?

I first ran the program in the extracted folder but did not work, so I tried to move it into the players pictures folder and ran it there and still did nothing. When I run the program a text window flashes up and disappears, and each line gives this type of message for each year:

Code: Select all

C:\windows\system32>rename *_1964.* with *_1960.*
The system cannot find the file specified.
What am I doing wrong?

User avatar
archibalduk
TBL Admin Team
Posts: 19217
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: Facepack DOB Updater for Updated Rosters

Post by archibalduk » Wed Nov 09, 2011 8:40 am

The .bat file should be placed in your player pictures folder.

Are you using Windows Vista or 7? If so, you will need to use the "run as administrator" option. Windows prevents applications making changes to files within C:\Program Files\..\ unless you use the run as admin option. Right click on the .bat file -> Properties -> Compatibility -> Tick the box titled 'Run this program as an adminstrator'. Click on OK.

User avatar
nino33
Mr. Goalie
Posts: 5875
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: Facepack DOB Updater for Updated Rosters

Post by nino33 » Wed Jul 31, 2013 12:42 am

vanillaacid wrote:I am trying to run this but I do not know what I am supposed to do. I am using the newest Lidas Rosters so I try to use update+4 correct?

I first ran the program in the extracted folder but did not work, so I tried to move it into the players pictures folder and ran it there and still did nothing. When I run the program a text window flashes up and disappears, and each line gives this type of message for each year:

Code: Select all

C:\windows\system32>rename *_1964.* with *_1960.*
The system cannot find the file specified.
What am I doing wrong?
I'm getting the same results. I've used "Run as Administrator" each time, tried it on C Drive, on my desktop, and in My Documents and can't get it to work...I'm trying to use it on XenHL's facepack for the 1974 database (the facepack was made when the 2006 start date was the only option...but now the CSD Patch can be used with the 1974 database, so I'm trying to reduce the birth year by 32 on all the pics) - anyone know why I can't get it to work?

User avatar
nino33
Mr. Goalie
Posts: 5875
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: Facepack DOB Updater for Updated Rosters

Post by nino33 » Wed Jul 31, 2013 1:37 am

nino33 wrote:
vanillaacid wrote:I am trying to run this but I do not know what I am supposed to do. I am using the newest Lidas Rosters so I try to use update+4 correct?

I first ran the program in the extracted folder but did not work, so I tried to move it into the players pictures folder and ran it there and still did nothing. When I run the program a text window flashes up and disappears, and each line gives this type of message for each year:

Code: Select all

C:\windows\system32>rename *_1964.* with *_1960.*
The system cannot find the file specified.
What am I doing wrong?
I'm getting the same results. I've used "Run as Administrator" each time, tried it on C Drive, on my desktop, and in My Documents and can't get it to work...I'm trying to use it on XenHL's facepack for the 1974 database (the facepack was made when the 2006 start date was the only option...but now the CSD Patch can be used with the 1974 database, so I'm trying to reduce the birth year by 32 on all the pics) - anyone know why I can't get it to work?
I got it to work! I did not use "Run as Administrator" (the folder was in My Documents) and to decrease the birth years I used update_plus_4 and not update_minus_4 and it worked! I ran the update_plus_4 eight times and as a result the birth years were reduced by the required 32 years! Woo Hoo!

luminouscarcass
Junior League
Posts: 20
Joined: Sun Jun 10, 2012 4:26 pm

Re: Facepack DOB Updater for Updated Rosters

Post by luminouscarcass » Thu May 01, 2014 11:15 pm

Could somebody please re-post just the batch file? I think the zip is corrupt; I've tried using 7zip and WinRAR to extract, and both throw corruption errors.

User avatar
archibalduk
TBL Admin Team
Posts: 19217
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: Facepack DOB Updater for Updated Rosters

Post by archibalduk » Fri May 02, 2014 7:04 pm

I have re-uploaded the file. See the new link in the first post of this thread.

luminouscarcass
Junior League
Posts: 20
Joined: Sun Jun 10, 2012 4:26 pm

Re: Facepack DOB Updater for Updated Rosters

Post by luminouscarcass » Fri May 02, 2014 10:37 pm

Thanks Archi! Works great.

geckon
Prospect
Posts: 96
Joined: Tue Dec 04, 2012 10:30 pm

Re: Facepack DOB Updater for Updated Rosters

Post by geckon » Sun Mar 22, 2015 8:25 pm

Hi!

I'm sorry for "hijacking" a thread (I sincerely hope it won't be understood as hijacking, by no means I want to do any harm). Your solution didn't work for me (I use Linux and play EHM in Wine, although your bat scripts didn't work for me - maybe it was my mistake, I didn't really try and find out why).

Once again, I don't mean do to any harm, I'm just trying to help people who don't want to or can't use McQwak's solution for any reason. If anyone consider my post offensive, I'm willing to delete it.

Thus, I wrote my own solution, it's the following python script:

Code: Select all

import argparse
import os
import re


def adjust_files(dir, years, should_print):

    filename_re = re.compile("(.*_.*_(\d|\d\d)_(\d|\d\d)_)(\d\d\d\d).png")

    os.chdir(dir)

    for filename in os.listdir("."):
        matches = filename_re.match(filename)
        if matches:
            old_year = int(matches.group(4))
            new_year = str(old_year + years)
            new_name = matches.group(1) + new_year + ".png"
            os.rename(filename, new_name)
            if should_print:
                print("Renaming %s to %s" % (filename, new_name))
        else:
            print(filename + " doesn't match.")


if __name__ == "__main__":
    ap = argparse.ArgumentParser()
    ap.add_argument("-d", 
                    "--directory", 
                    help="Directory with the face pack",
                    default=os.getcwd())
    ap.add_argument("-v", 
                    "--verbose",
                    help="Print what is being done",
                    action="store_true")
    ap.add_argument("-y",
                    "--years",
                    help="How many years should be added (works for negative)",
                    type=int,
                    default=0)
    args = ap.parse_args()

    adjust_files(args.directory, args.years, args.verbose)
IMPORTANT! Use only if you understand how to use it and use it at your own risk only! I tested it and it worked but I don't guarantee it will work for every case you might try, so always make a backup of your data.

Maybe I will try and make it more user friendly later but now I'm quite busy.

User avatar
archibalduk
TBL Admin Team
Posts: 19217
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: Facepack DOB Updater for Updated Rosters

Post by archibalduk » Sun Mar 22, 2015 9:24 pm

Nice one! Thanks for sharing that for us Linux users. :-)

leafstoaster
Junior League
Posts: 38
Joined: Sun Apr 12, 2015 9:35 am
Favourite Team: leafs

Changing Birth Dates in facepack

Post by leafstoaster » Fri May 27, 2016 8:24 pm

So I while back while gathering facepacks I saw an .exe file that would increase/decrease the year in every file by 1.

Anyone know where that is located? I need it to get facepacks working on the Lidas Rosters.

User avatar
nino33
Mr. Goalie
Posts: 5875
Joined: Sat Aug 07, 2010 3:37 am
Custom Rank: Retro Rosters Specialist
Favourite Team: 1970s hockey

Re: Changing Birth Dates in facepack

Post by nino33 » Fri May 27, 2016 8:32 pm

I think this is what you're looking for http://www.ehmtheblueline.com/forums/vi ... =88&t=6857

leafstoaster
Junior League
Posts: 38
Joined: Sun Apr 12, 2015 9:35 am
Favourite Team: leafs

Re: Facepack DOB Updater for Updated Rosters

Post by leafstoaster » Sun May 29, 2016 7:47 pm

Thanks alot nino!

Post Reply

Return to “Utilities (EHM 2007)”