Page 1 of 1

Facepack DOB Updater for Updated Rosters

Posted: Sat Mar 12, 2011 5:41 pm
by McQwak
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

Re: Facepack DOB Updater for Updated Rosters

Posted: Tue Mar 22, 2011 7:31 pm
by archibalduk
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Fri Aug 26, 2011 2:00 am
by Smaby32
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 ????

Re: Facepack DOB Updater for Updated Rosters

Posted: Fri Aug 26, 2011 10:01 am
by McQwak
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Fri Aug 26, 2011 7:52 pm
by archibalduk
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Fri Aug 26, 2011 9:14 pm
by Smaby32
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Wed Oct 05, 2011 8:23 pm
by batdad
So just to be sure...for the 2011 patch, and 3.2 csd rosters...use the photo updater -4?

Re: Facepack DOB Updater for Updated Rosters

Posted: Wed Oct 05, 2011 9:39 pm
by archibalduk
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Thu Oct 06, 2011 4:09 am
by batdad
Thanks. I did not have the 3.2 photos.

Re: Facepack DOB Updater for Updated Rosters

Posted: Sat Oct 15, 2011 5:34 pm
by CarrotHead
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...

Re: Facepack DOB Updater for Updated Rosters

Posted: Sat Oct 15, 2011 10:27 pm
by archibalduk
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Wed Nov 09, 2011 2:20 am
by vanillaacid
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?

Re: Facepack DOB Updater for Updated Rosters

Posted: Wed Nov 09, 2011 8:40 am
by archibalduk
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Wed Jul 31, 2013 12:42 am
by nino33
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?

Re: Facepack DOB Updater for Updated Rosters

Posted: Wed Jul 31, 2013 1:37 am
by nino33
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!

Re: Facepack DOB Updater for Updated Rosters

Posted: Thu May 01, 2014 11:15 pm
by luminouscarcass
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Fri May 02, 2014 7:04 pm
by archibalduk
I have re-uploaded the file. See the new link in the first post of this thread.

Re: Facepack DOB Updater for Updated Rosters

Posted: Fri May 02, 2014 10:37 pm
by luminouscarcass
Thanks Archi! Works great.

Re: Facepack DOB Updater for Updated Rosters

Posted: Sun Mar 22, 2015 8:25 pm
by geckon
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.

Re: Facepack DOB Updater for Updated Rosters

Posted: Sun Mar 22, 2015 9:24 pm
by archibalduk
Nice one! Thanks for sharing that for us Linux users. :-)

Changing Birth Dates in facepack

Posted: Fri May 27, 2016 8:24 pm
by leafstoaster
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.

Re: Changing Birth Dates in facepack

Posted: Fri May 27, 2016 8:32 pm
by nino33
I think this is what you're looking for http://www.ehmtheblueline.com/forums/vi ... =88&t=6857

Re: Facepack DOB Updater for Updated Rosters

Posted: Sun May 29, 2016 7:47 pm
by leafstoaster
Thanks alot nino!