EHM 2007 Custom NHL Jersey Generator

Want to ask EHM graphics questions, questions about a project or make requests for a project? Don't know what files go where? Are you working on a new addon or roster update? This is the place to discuss!
Forum rules
Data Editing Forum: Editing the game, databases or saved games. Home of the EHM Editor and the EHM Assistant.

Game Add-ons Forum: Database projects, graphics and sounds. Any discussion which does not relate to editing databases or saved games.

Game Knowledge Discussion: Attributes, coaching, drafting, scouting, tactics and training/practice.

Rosters Forum: Discussion relating to all database and roster projects for Eastside Hockey Manager.

TBL Rosters: Discussion, crashes, data issues, questions, etc relating to the TBL Rosters update for Eastside Hockey Manager.

Technical Support: Difficulties, crashes and errors when installing or running the game (and nothing else). Any issues relating to the TBL Rosters must be posted in the TBL Rosters forum. Questions about how to install add-ons must be posted in the Game Add-ons Forum.

General EHM Chat: Anything relating to Eastside Hockey Manager 2004 / 2005 / 2007 / 1 which does not fall within any of the other forums.

Useful Links: Find your EHM 1 installation folder locationConverting an EHM 2007 database into EHM 1Logo sizesWhere to install add-ons
User avatar
Asbeen
Drafted
Posts: 161
Joined: Wed May 03, 2006 2:41 pm
Location: Gatineau
Contact:

Re: EHM 2007 Custom NHL Jersey Generator

Post 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.
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post 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...
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 Custom NHL Jersey Generator

Post 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?
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post 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.
neuralhandshake
Junior League
Posts: 38
Joined: Sat Nov 28, 2015 12:07 am
Favourite Team: Toledo Walleye

Re: EHM 2007 Custom NHL Jersey Generator

Post 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.
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 Custom NHL Jersey Generator

Post 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]
User avatar
Asbeen
Drafted
Posts: 161
Joined: Wed May 03, 2006 2:41 pm
Location: Gatineau
Contact:

Re: EHM 2007 Custom NHL Jersey Generator

Post by Asbeen »

A small jersey editor for the game would be nice.. =P~
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post 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...
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post 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 :)
User avatar
JakeTheSnake
Prospect
Posts: 73
Joined: Fri May 06, 2011 9:07 am
Location: Finland

Re: EHM 2007 Custom NHL Jersey Generator

Post 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?
User avatar
Asbeen
Drafted
Posts: 161
Joined: Wed May 03, 2006 2:41 pm
Location: Gatineau
Contact:

Re: EHM 2007 Custom NHL Jersey Generator

Post 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?
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 Custom NHL Jersey Generator

Post 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).
User avatar
Asbeen
Drafted
Posts: 161
Joined: Wed May 03, 2006 2:41 pm
Location: Gatineau
Contact:

Re: EHM 2007 Custom NHL Jersey Generator

Post 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?
User avatar
Asbeen
Drafted
Posts: 161
Joined: Wed May 03, 2006 2:41 pm
Location: Gatineau
Contact:

Re: EHM 2007 Custom NHL Jersey Generator

Post 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.
User avatar
Asbeen
Drafted
Posts: 161
Joined: Wed May 03, 2006 2:41 pm
Location: Gatineau
Contact:

Re: EHM 2007 Custom NHL Jersey Generator

Post 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)
Post Reply