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

EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

2/20/2013: I tend to play with all custom-players and have never had player photos, and got sick of looking at the default images. So, I created a custom NHL jersey generator (based on an idea I saw on this forum somewhere)... using the shop.nhl.com jersey generator, I wrote a Linux python script that downloads custom jerseys based on exported roster's from EHM 2007. I think results are actually pretty awesome.... right now it probably requires *some* technical skills to run correctly.

2/21/2013: I added a working Windows version, see below

3/1/2013: New Windows executable with graphical user interface. Extensive rework of the entire thing, this adds a ton of features, such as caching previous runs so as to not re-generate prior generated uni's on subsequent runs, configurable home/road/3rd jersey based on position, etc. Should be much more usable now. I've removed previous versions in lieu of the latest.
- Export rosters to a single folder
- Run executable and follow steps
- Generate
- Copy results to the data/pictures/players/ folder under EHM
- Enjoy!

Download: https://docs.google.com/file/d/0B3grrFQ ... sp=sharing (Go to File->Download at the top of the page)

Known Issues:
- Extremely long names do not download properly. The format of the name in the roster file ends up merging with the position and causes issues. This can be edited manually to get it to work.

Example:
Image
Image
Image
Last edited by helmespc on Sat Mar 02, 2013 4:31 am, edited 6 times in total.
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 »

Wow :thup:
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 »

Wow, they're brilliant! :notworthy:

I'd love to see a full pack of these.
User avatar
Manimal
TBL Admin Team
Posts: 6344
Joined: Thu Apr 24, 2008 4:01 am
Custom Rank: EHM Rosters Man
Favourite Team: Djurgårdens IF
Location: Karlstad, Sweden

Re: EHM 2007 Custom NHL Jersey Generator

Post by Manimal »

Awesome!
User avatar
CeeBee
All-Star
Posts: 1140
Joined: Tue Dec 23, 2008 12:38 pm
Location: The old guy in Chase BC Canada

Re: EHM 2007 Custom NHL Jersey Generator

Post by CeeBee »

archibalduk wrote:Wow, they're brilliant! :notworthy:

I'd love to see a full pack of these.
likewise, and easy to install/use for the computer challenged people like me. :-D
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 »

archibalduk wrote:Wow, they're brilliant! :notworthy:

I'd love to see a full pack of these.
Well, it's an utility, so we won't see a pack, I'd say :-)
Does it work under windows or what?
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

Alessandro wrote:
archibalduk wrote:Wow, they're brilliant! :notworthy:

I'd love to see a full pack of these.
Well, it's an utility, so we won't see a pack, I'd say :-)
Does it work under windows or what?
No Windows support yet.... I'll look into it, since Linux is not the ideal long-term solution.... It looks like I can do most of what I'm doing with curl through native python, not sure about the image cropping yet. I'd like to make it more intuitive.... maybe I'll add a GUI. Does anyone know if there is a way to dump roster information from a saved game without doing it in-game?
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:No Windows support yet.... I'll look into it, since Linux is not the ideal long-term solution.... It looks like I can do most of what I'm doing with curl through native python, not sure about the image cropping yet. I'd like to make it more intuitive.... maybe I'll add a GUI. Does anyone know if there is a way to dump roster information from a saved game without doing it in-game?
I can dump NHL rosters from the database. Is that of any help?

I have made some work on dumping rosters from saved games, but I won't be able to put more work into it until possibly next month.
User avatar
batdad
The Great One
Posts: 12616
Joined: Thu Aug 17, 2006 7:46 pm
Custom Rank: Mr Technology
Favourite Team: Syracuse Bulldogs.
Location: Look behind you, you peon

Re: EHM 2007 Custom NHL Jersey Generator

Post by batdad »

Wow. So amazing. Great work.
User avatar
Círyatan
Leading Scorer
Posts: 829
Joined: Fri Oct 09, 2009 12:00 am
Custom Rank: Eagle eyes!
Location: Gdańsk, Poland

Re: EHM 2007 Custom NHL Jersey Generator

Post by Círyatan »

This is seriously amazing. A brilliant idea. Can't wait for the instructions on how to use it on Snow Leopard (MacOS X 10.6.8). The jerseys look outstanding! :notworthy:
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

I just uploaded the Windows version.... see details in the original post. Hope this gets you guys started....
This is seriously amazing. A brilliant idea. Can't wait for the instructions on how to use it on Snow Leopard (MacOS X 10.6.8). The jerseys look outstanding!
As far as Mac goes, unfortunately I don't have a system to try it on.... I believe if you get python and ImageMagick's "convert" tool installed, you can use the Linux version as-is, but I'm not really familiar with how Mac works. I'd love to help if I could!
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

archibalduk wrote:
helmespc wrote:No Windows support yet.... I'll look into it, since Linux is not the ideal long-term solution.... It looks like I can do most of what I'm doing with curl through native python, not sure about the image cropping yet. I'd like to make it more intuitive.... maybe I'll add a GUI. Does anyone know if there is a way to dump roster information from a saved game without doing it in-game?
I can dump NHL rosters from the database. Is that of any help?

I have made some work on dumping rosters from saved games, but I won't be able to put more work into it until possibly next month.
I'm thinking ultimately this utility is most useful on saved games since new players are introduced and players change teams and stuff, so from time to time, the images need to be updated during the course of the game. Ideally, the user would just point the utility at a saved game and click go and the utility would automagically update the player jerseys. Right now, the only way I know how to do this is to dump the roster files manually, which is kind of a pain, but maybe once a year (in game time) this wouldn't be so bad.
User avatar
watts555
Minor League
Posts: 295
Joined: Thu Nov 06, 2008 2:00 am
Favourite Team: Toronto Maple Leafs

Re: EHM 2007 Custom NHL Jersey Generator

Post by watts555 »

Stuck on installing these on windows, I open the command prompt. Have python loaded, but cant seem to get the jerseys to generate. Any help would be appreciated.
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

The command I have been using on windows is: "C:\Python27\python.exe jersey_dl.py -o out". You must make sure you "cd" to the directory where the script is living. You must also have ".txt" files that are the output from printing a the roster in EHM 2007. What are you seeing?
User avatar
watts555
Minor League
Posts: 295
Joined: Thu Nov 06, 2008 2:00 am
Favourite Team: Toronto Maple Leafs

Re: EHM 2007 Custom NHL Jersey Generator

Post by watts555 »

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

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

Ah hah! You need to run the command from the dos prompt, not the python prompt.... So don't run python.exe like you did on the first line there...

... also, make sure you're cd'ing to the directory where you unzip the scripts to. It looks like you're cd'ing to c:\Python33, which is fine if you're unzipping the scripts to that directory. You're close, though!
User avatar
watts555
Minor League
Posts: 295
Joined: Thu Nov 06, 2008 2:00 am
Favourite Team: Toronto Maple Leafs

Re: EHM 2007 Custom NHL Jersey Generator

Post by watts555 »

i still legit have no idea what im doing lol!
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

watts555 wrote:i still legit have no idea what im doing lol!
I'll try to get a better solution worked out here.... sorry it's confusing!
User avatar
watts555
Minor League
Posts: 295
Joined: Thu Nov 06, 2008 2:00 am
Favourite Team: Toronto Maple Leafs

Re: EHM 2007 Custom NHL Jersey Generator

Post by watts555 »

I'll try to get a better solution worked out here.... sorry it's confusing!
Up to you man! Would appreciate it very much though!
helmespc
Top Prospect
Posts: 114
Joined: Fri Jan 11, 2008 11:51 pm

Re: EHM 2007 Custom NHL Jersey Generator

Post by helmespc »

I did an extensive rewrite, details and a download link are in the original post. It is now a Windows executable GUI, that should be much more intuitive than trying to deal with python and the command line. I have only tested this on Windows 8, but I believe it should work for other Windows systems, let me know if it doesn't and I'll investigate further.
User avatar
watts555
Minor League
Posts: 295
Joined: Thu Nov 06, 2008 2:00 am
Favourite Team: Toronto Maple Leafs

Re: EHM 2007 Custom NHL Jersey Generator

Post by watts555 »

helmespc wrote:I did an extensive rewrite, details and a download link are in the original post. It is now a Windows executable GUI, that should be much more intuitive than trying to deal with python and the command line. I have only tested this on Windows 8, but I believe it should work for other Windows systems, let me know if it doesn't and I'll investigate further.
Great job man. Worked PERFECT. These make the game much better lol. Appreciate the time and effort!!
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 »

Too bad it works just with the NHL, though. If we had someone good in graphics we should create jersey templates with colors and so on...
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 »

Don't know what I'm doing wrong, everything seems to work but it doesn't generate any files.
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:Don't know what I'm doing wrong, everything seems to work but it doesn't generate any files.
Make sure that the selected roster directory has .txt files for each team you want to generate (NHL only).... also, you might try unclicking the check box that says "Only Generate New And Modified Jerseys" if it keeps saying "so-and-so found in the cache, skipping..."
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 try using your example.wsp, when I hit the generate button , it takes like 10 sec and then I quit.
Then I look in the file generated "players" but there's nothing in it.

I'm probably doing something wrong, can you make a step by step instruction?

My OS is windows 7

Thanks
Last edited by Asbeen on Sun Mar 03, 2013 6:08 pm, edited 1 time in total.
Post Reply