Page 1 of 3
					
				EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 6:32 am
				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:
 
 
 

 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 1:58 pm
				by Alessandro
				Wow 

 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 2:07 pm
				by archibalduk
				Wow, they're brilliant! 
 
 
I'd love to see a full pack of these.
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 2:15 pm
				by Manimal
				Awesome!
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 2:26 pm
				by CeeBee
				archibalduk wrote:Wow, they're brilliant! 
 
 
I'd love to see a full pack of these.
 
likewise, and easy to install/use for the computer challenged people like me. 

 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 2:27 pm
				by Alessandro
				archibalduk wrote:Wow, they're brilliant! 
 
 
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?
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 3:22 pm
				by helmespc
				Alessandro wrote:archibalduk wrote:Wow, they're brilliant! 
 
 
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?
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 6:00 pm
				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.
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 6:06 pm
				by batdad
				Wow. So amazing. Great work.
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 8:47 pm
				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! 

 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 20, 2013 10:50 pm
				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!
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Thu Feb 21, 2013 2:50 pm
				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.
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Thu Feb 21, 2013 8:37 pm
				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.
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Thu Feb 21, 2013 9:52 pm
				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?
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Thu Feb 21, 2013 11:08 pm
				by watts555
				
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Thu Feb 21, 2013 11:26 pm
				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!
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Tue Feb 26, 2013 4:46 am
				by watts555
				i still legit have no idea what im doing lol!
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Tue Feb 26, 2013 7:09 pm
				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!
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Wed Feb 27, 2013 1:14 am
				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!
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Sat Mar 02, 2013 3:55 am
				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.
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Sat Mar 02, 2013 8:48 am
				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!!
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Sat Mar 02, 2013 11:09 am
				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...
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Sat Mar 02, 2013 8:01 pm
				by Asbeen
				Don't know what I'm doing wrong, everything seems to work but it doesn't generate any files.
			 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Sat Mar 02, 2013 9:11 pm
				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..."
 
			
					
				Re: EHM 2007 Custom NHL Jersey Generator
				Posted: Sun Mar 03, 2013 5:22 pm
				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