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

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

The intent is that you make a new workspace for your league. That way when you inevitably need to update your photos next season, it only generates the ones that have changed.
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 »

Ok I finally got your example working, it generated players jersey image in dir players.

So if I want my own jerseys matching my rosters, what file should I take as workplace?
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

Create a new one (click the new workspace, type a name and click ok)
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 »

It works great!! Thanks!

The problem was because I run the game in french, it has to be in english for the program to read the rosters.
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

Asbeen wrote:It works great!! Thanks!

The problem was because I run the game in french, it has to be in english for the program to read the rosters.
Thanks for the heads up.... I wouldn't have thought to try!
User avatar
joehelmer
TBL Mod Team
Posts: 3483
Joined: Tue Jan 25, 2005 4:45 pm
Favourite Team: Djurgården (SHL)
Location: Sweden

Re: EHM 2007 Custom NHL Jersey Generator

Post by joehelmer »

Great tool. :-D

One question though, can I apply this on any league or is it only able to be used in the NHL? :-)
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

Only the NHL.... it makes use of the shop.NHL.com custom jersey applet, so only the teams that are available on there.
mpronger
Top Prospect
Posts: 106
Joined: Sat Apr 09, 2005 6:03 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by mpronger »

Hi,

Just trying this today and got this error:

Parsing C:/utils/jersey_dl/pensgame\Penguins.txt

Unexpected error 2: <type 'exceptions.ValueError'>

Complete!

Any ideas?

Regards,

Mpronger
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

Do you have any really long player names? I've seen this happen because a long player name will run into the position field in the roster file, if you manually edit the file to separate the position and player name, it should work.

Otherwise, you can send me your roster file so I can take a look and see if there is anything else that I wasn't aware of...
mpronger
Top Prospect
Posts: 106
Joined: Sat Apr 09, 2005 6:03 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by mpronger »

Hi,

I found the problem. My exported file has dates like 10.23.1980, whilst the example txt file that came with the program has dates 10-23-1980. After I manually edited my file like the example date style, it worked. I wonder which EHM option I need to tick to view dates like this.

Regards,

Mpronger
User avatar
Animal31
Fourth Line
Posts: 441
Joined: Tue Sep 27, 2011 2:54 am
Favourite Team: Abbotsford Heat

Re: EHM 2007 Custom NHL Jersey Generator

Post by Animal31 »

helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

I saw that on one of your other posts.... that is awesome stuff... I'd love to automate something like that, but it's probably impossible(?)
grits207
Fourth Line
Posts: 482
Joined: Mon Sep 01, 2008 5:47 pm
Favourite Team: Toronto Maple Leafs
SBHL Team: Los Angeles Kings
Location: Fredericton, N.B.

Re: EHM 2007 Custom NHL Jersey Generator

Post by grits207 »

This is awesome. Well done!
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 »

Hi, I really like your Jersey Generator.
Do you plan adding extra options?

Something I would like to see is choosing jersey by team instead of def, for and goalie. (I mean as another option)

Ex: I would like to be able to choose something like having 3rd jersey for Ottawa and Home jersey for Montreal

Would it be possible?

Thanks
User avatar
Alessandro
Olympic Gold
Posts: 2865
Joined: Sat Aug 27, 2005 1:54 pm
Custom Rank: TBL Rosters Man
Favourite Team: Team Russia
WHL Team: Calgary Flames

Re: EHM 2007 Custom NHL Jersey Generator

Post by Alessandro »

No matter what I do, I always get


Unexpected error 2: <type 'exceptions.ValueError'>

Complete!
User avatar
Alessandro
Olympic Gold
Posts: 2865
Joined: Sat Aug 27, 2005 1:54 pm
Custom Rank: TBL Rosters Man
Favourite Team: Team Russia
WHL Team: Calgary Flames

Re: EHM 2007 Custom NHL Jersey Generator

Post by Alessandro »

Then i changed dates to 1980-11-2 ... and get this
Downloading C:\Users\Alessandro\Desktop\players\Pekka_Rinne_11_3_1982.png

Unexpected error 2: <type 'exceptions.ValueError'>

Complete!

EDIT: Dates must be in NA format!
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 »

Is there a way to update the jerseys?

Like Dallas new jersey or Ottawa new third jersey (Classic heritage)
Leafsdude
Junior League
Posts: 37
Joined: Sat Apr 19, 2014 8:23 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by Leafsdude »

helmespc wrote:Only the NHL.... it makes use of the shop.NHL.com custom jersey applet, so only the teams that are available on there.
First off, awesome program. One thing I always felt EHM 07 was missing was jerseys.

Secondly, while technically true, a lot of youth teams (not to mention numerous minor league teams) use NHL jersey templates. Since they're just the rear of the jersey and not the front, you could make jerseys for those teams, too. :nod:
Astmakameli
Junior League
Posts: 16
Joined: Fri Nov 06, 2009 5:49 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by Astmakameli »

Wow, great job. I've been looking for something like this for years. Unfortunately I'm having a few problems and I was wondering if I could get some help. I only manage to generate one jersey before I get an "Unexpected error 2: <type 'exceptions.UnicodeEncodeError'>". So after generating one pic I'll have to remove the first player on the roster list text-file and then I can generate the next one and so on. The second problem I'm having is that the pictures won't center (check the link). http://tinypic.com/view.php?pic=21ne0ap ... _JdTvl_vQU The generated pics are 260x260 in size, is that normal?
User avatar
archibalduk
TBL Admin Team
Posts: 20384
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 »

Facepack images are normally 200 px wide. From your screenshot, it looks like there might be transparent edges either side of the image. I suggest opening up your image in a graphics editor to see whether that's the case. If so, you'll need to crop it in order to remove the transparent edges. That might explain why the image doesn't appear centred in game.

The error with the Generator might be because you're using an unsupported accent or character in your list (a Unicode error suggests a problem with a character). You might want to check whether you have any accented names in your list and try removing them to see if that fixes the problem.
User avatar
stone169
Checking Line
Posts: 549
Joined: Thu Aug 14, 2008 5:48 pm
Favourite Team: Ottawa Senators
Location: Southern Ontario

Re: EHM 2007 Custom NHL Jersey Generator

Post by stone169 »

This generator is great. I have EHM installed on two different machines. My home PC the generator is working great. My work laptop is not. I keep getting "Unexpected error 2: <class 'httplib.BadStatusLine'>" Anyone know what I might be doing wrong? ](*,)
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 might be wrong but I think the program needs to access a site online, so make sure your laptop has wifi available.

Other error i've seen is when saving roster in a different language than english.
User avatar
stone169
Checking Line
Posts: 549
Joined: Thu Aug 14, 2008 5:48 pm
Favourite Team: Ottawa Senators
Location: Southern Ontario

Re: EHM 2007 Custom NHL Jersey Generator

Post by stone169 »

Asbeen wrote:I might be wrong but I think the program needs to access a site online, so make sure your laptop has wifi available.

Other error i've seen is when saving roster in a different language than english.
The online site thing would make sense. They block the weirdest things at work.
User avatar
Vanaja
Junior League
Posts: 34
Joined: Tue Mar 15, 2005 6:09 pm
Favourite Team: Blue Jackets & Maple Leafs
Location: Finland

Re: EHM 2007 Custom NHL Jersey Generator

Post by Vanaja »

I did get this error too: Unexpected error 2: <type 'exceptions.ValueError'>

Changed EHM07 Preferences and now it works! :joy:

You have to use:

Language: English (US)
Date Format: North American
User avatar
stone169
Checking Line
Posts: 549
Joined: Thu Aug 14, 2008 5:48 pm
Favourite Team: Ottawa Senators
Location: Southern Ontario

Re: EHM 2007 Custom NHL Jersey Generator

Post by stone169 »

Vanaja wrote:I did get this error too: Unexpected error 2: <type 'exceptions.ValueError'>

Changed EHM07 Preferences and now it works! :joy:

You have to use:

Language: English (US)
Date Format: North American
Thanks, but I already have that and I'm still getting the error.
Post Reply