Page 3 of 3

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Mon Jan 04, 2016 2:15 am
by Asbeen
I know it's an old topic but I still use it with the new EHM and I want to share how I found a way to make it work because it's not working well by default with the new version.

First problem is the DOB format, the new version is with dot (01.03.2016) and the program was written for EHM2007 with date format like 01-03-2016.

So if you want it to read your rosters (text files), you have to edit each team player's DOB switching the " . " for a " - ".

That seems pretty long to do but you can do it with a program like Notepad++ by creating an easy macro to do it for you.

Second problem is the Arizona Coyotes, you have to edit with notepad++ the name Phoenix for Arizona in the file jersey_dl.py within the program directory.

Everything should work fine after this.

I wish their would be an easier way to update the program instead but I have no knowledge of Python programming.

Hope it helps.

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Mon Jan 04, 2016 3:07 am
by helmespc
Thanks for the update Asbeen.... I have been using this as well. Unfortunately it looks like NHL.com is starting to use a different format for their jerseys so it might get harder to get updated jerseys in the future...

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Mon Jan 04, 2016 8:58 pm
by archibalduk
Hmm it shouldn't take too much to write a little tool to do the same thing... It looks like the URL is always like this:

Code: Select all

http://lp.imageg.net/prod?set=key[name],value[IVERSON]&set=key[number],value[3]&set=key[displaysize],value[260]&load=url[http://chains.imageg.net/graphics/dynamic/chains/p3536103_customback.chain]
What are the different NHL.com formats that are appearing?

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Tue Jan 05, 2016 12:13 am
by helmespc
I think it was more that the newer jerseys do not allow you to just get the back of the jersey and the combo back/front jerseys don't fit in the available space quite as well (and are kind of ugly):

Here's an example of one that won't work: http://shop.nhl.com/Jerseys/Reebok_Buff ... sey_-_Gold

That's not to say its not possible to just get the back, I just wasn't successful in the hour or so I spent trying to figure it out.

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Tue Jan 05, 2016 5:42 am
by neuralhandshake
This looks really awesome if it still works--would it replace existing player photos, too, though? I like having the player pics, but I'm not a fan of faceless newgens and it'd be sweet to have their jerseys instead.

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Tue Jan 05, 2016 7:55 pm
by archibalduk
helmespc wrote:I think it was more that the newer jerseys do not allow you to just get the back of the jersey and the combo back/front jerseys don't fit in the available space quite as well (and are kind of ugly):

Here's an example of one that won't work: http://shop.nhl.com/Jerseys/Reebok_Buff ... sey_-_Gold

That's not to say its not possible to just get the back, I just wasn't successful in the hour or so I spent trying to figure it out.
Ah I see what you mean. It doesn't look like there's any way around that.

Incidentally, it's interesting how high quality the preview images are:

Code: Select all

http://images.fanatics.com/lf?set=key[name],value[TBL]&set=key[number],value[99]&call=url[http://dmimages.ff.p10/chains/1601733.txt]

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Wed Jan 06, 2016 6:35 pm
by Asbeen
A small jersey editor for the game would be nice.. =P~

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Fri Feb 12, 2016 7:33 pm
by helmespc
After looking at this a bit more, I think there's probably a way to mask just the back of the newer jerseys using the covert tool, I'll have to look into it a bit more when I get some free time...

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Fri Feb 12, 2016 7:35 pm
by helmespc
neuralhandshake wrote:This looks really awesome if it still works--would it replace existing player photos, too, though? I like having the player pics, but I'm not a fan of faceless newgens and it'd be sweet to have their jerseys instead.
If used, this will typically replace photos if the player changes teams or changes number. Its kind of hard to determine whether the original photo was a real player or generated player, unfortunately :)

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Sat Feb 13, 2016 7:38 am
by JakeTheSnake
helmespc wrote:After looking at this a bit more, I think there's probably a way to mask just the back of the newer jerseys using the covert tool, I'll have to look into it a bit more when I get some free time...
Might be a stupid question, but do you think it would be possible to make this work by creating a background picture for every team to appear in the player profile that would have a picture of the jersey on the spot where the player picture is? After that it would be a matter of creating a proflie picture for every player that has just the players last name and number that would align properly with the jersey in the background. So even when the player is traded the player picture stays the same but the jersey in the background image changes.

And is it possible to use data from the game in some way to create a small prorgram that generates the name and number of players automatically as player pictures?

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Fri May 27, 2016 4:48 pm
by Asbeen
I found the ID's number for St.Louis Blues (their jersey wasn't working)

The program as it, it's not working because of dob format but there is a way around but maybe a bit complicated.

I would like to change the dob 00.01.2016 for 00-01-2016 within the coding
(The program "Jersey generator" is not reading the roster files with DateOfBirth separate by dot but if you change them by "-" it works, the old EHM2007 was printing the rosters as 01-01-2016 but the new EHM is printing as 01.01.2016)

Anyone knows Pyhton programming that could have a look at the coding or tell me what to change?
def parse_dob(dob):
date_object = datetime.strptime(dob, '%m.%d.%y')
return date_object.day, date_object.month, date_object.year

def gen_filename(firstname, lastname, dob):
day, month, year = parse_dob(dob)
fn = firstname + "." + lastname + "." + str(day) + "." + str(month) + "." + str(year) + ".png"
return fn
Maybe it's somewhere else?

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Sat May 28, 2016 11:36 am
by archibalduk
Just looking at that code snippet, you'll want to find wherever it says something like this (assuming you want to replace the dashes with dots):

Code: Select all

str(day) + "-" + str(month) + "-" + str(year) + ".png"
... and replace it with this:

Code: Select all

str(day) + "." + str(month) + "." + str(year) + ".png"
Basically, the "day", "month" and "year" variables will be numbers. The "str()" function changes the number to a text string e.g. str(month) will convert the month number to a text string (numbers and strings are different data types which is why they have to be converted).

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Mon May 30, 2016 1:50 pm
by Asbeen
Switching dashes for dots or the other way around is not changing anything. It must be somewhere else in the coding.

I don't know if it would be possible to change the print fonction of EHM itself?

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Thu Mar 16, 2017 2:23 pm
by Asbeen
A small update on the Generator:

I manage to make it works.
I made a small macro in Notepad++ to convert all roster printout DOB from dot to dash. Then you need to manually change the Blues roster title (within the printout) from -> St. Louis to St- Louis Blues.

Other thing mentionned before; The Arizona Coyotes, you have to edit with notepad++, Phoenix for Arizona in the file jersey_dl.py within the program directory.

In jersey_dl.conf you need to make sure you have these numbers to have the St- Louis Blues jerseys: (You can use Notepad++ to open it)
St- Louis Blues 1: 3536454
St- Louis Blues 2: 3535960
St- Louis Blues 3: 4685102

I could upload the file jersey_dl.conf somewhere if needed

I know it seems a bit tricky to have it to work but I really like it to have the jerseys with numbers instead of the players faces since if you play with your franchise long enough to have new players.

Re: EHM 2007 Custom NHL Jersey Generator

Posted: Mon May 07, 2018 1:08 pm
by Asbeen
archibalduk wrote:Hmm it shouldn't take too much to write a little tool to do the same thing... It looks like the URL is always like this:

Code: Select all

http://lp.imageg.net/prod?set=key[name],value[IVERSON]&set=key[number],value[3]&set=key[displaysize],value[260]&load=url[http://chains.imageg.net/graphics/dynamic/chains/p3536103_customback.chain]
What are the different NHL.com formats that are appearing?
Where do you find the related team code?
ex.: p3536103
This one correspond to Anaheim Ducks but I would like to find Vegas and I don't know where to search. (I did found St-Louis Blues over a year ago but can't remember where)