| Welcome to NHL04 Rebuilt 2017. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| HTML/Java Help; Only NHL selectable | |
|---|---|
| Tweet Topic Started: Aug 5 2015, 02:18 PM (1,009 Views) | |
| The Cheese | Aug 5 2015, 02:18 PM Post #1 |
|
Mr. Jersey
|
I'm looking for someone's help with some HTML/Javascript. I'm looking to make ONLY the NHL selectable (in play now/shootout/edit lines etc.) in all parts of the game, wherever it may be. Anyone's help on this would be amazing! |
| |
![]() |
|
| trent | Aug 5 2015, 02:29 PM Post #2 |
|
Project Leader
|
That'd be cool for the 1996 and 1999 mods as well. ![]() |
|
My Blues 1995-1996 Season Report My Blues 1998-1999 Season Report My Flyers 1998-1999 Season Report | |
![]() |
|
| Sence | Aug 5 2015, 05:43 PM Post #3 |
|
Hall of Famer
|
You can find the example codes from "All national teams mod". I don't have codes right now but there were functions "changeLeague()" or "initDrpAwayLeague()" and "initDrpHomeLeague()". In these spots in the all national teams you can find the way to do these where is just one selected league. ![]() game_setup_interface.js and .html are for exhibition mode. |
|
A video is worth of thousand pictures. http://www.youtube.com/watch?v=bFq2dGSVdOI My Sharks 2015-16 season (finished) | |
![]() |
|
| The Cheese | Aug 5 2015, 06:33 PM Post #4 |
|
Mr. Jersey
|
Thank you Sence for the helpful info! I'll look into that later tonight ![]() Trent if I succeed I'll share my findings
|
| |
![]() |
|
| The Cheese | Aug 9 2015, 05:37 PM Post #5 |
|
Mr. Jersey
|
I got it! Here are the javascript files. This overwrites the string found in local.viv, so you have to open it, search for any instances of "QMJHL", and change it to your desired league name
|
| |
![]() |
|
| The Cheese | Aug 10 2015, 02:58 AM Post #6 |
|
Mr. Jersey
|
Has anybody tried on their end? |
| |
![]() |
|
| trent | Aug 10 2015, 03:14 AM Post #7 |
|
Project Leader
|
I will give it a shot tomorrow Nick. 1996 and 1999 mods could use this.
|
|
My Blues 1995-1996 Season Report My Blues 1998-1999 Season Report My Flyers 1998-1999 Season Report | |
![]() |
|
| trent | Aug 10 2015, 03:18 AM Post #8 |
|
Project Leader
|
Actually I just tested it. Works like a charm.![]() Where in \fe\nhl\local.viv the string "QMJHL" is located? Where should I search it from? Can you do it for this file, so I could use it for both 1999 and 1996. http://www.mediafire.com/download/gutu170frfhcb7f/Local.viv |
|
My Blues 1995-1996 Season Report My Blues 1998-1999 Season Report My Flyers 1998-1999 Season Report | |
![]() |
|
| stlouis26 | Aug 10 2015, 07:17 AM Post #9 |
|
PNHL v2 Project Leader
|
I don't think that you have to change something in local.viv. Edit the file game_setup_interface.js: Line 547 + 615 Edit the file edit_lines_interace.js: Line 1455 |
| |
![]() |
|
| trent | Aug 10 2015, 12:30 PM Post #10 |
|
Project Leader
|
Perfect, thanks. ![]() I will add this to 1996 and 1999 patch. Much more professional when you don't have non-supported leagues in the menus. |
|
My Blues 1995-1996 Season Report My Blues 1998-1999 Season Report My Flyers 1998-1999 Season Report | |
![]() |
|
| The Cheese | Aug 10 2015, 08:31 PM Post #11 |
|
Mr. Jersey
|
Excellent! Happy to hear they worked for you
|
| |
![]() |
|
| CgyFlames | Aug 10 2015, 09:44 PM Post #12 |
|
Mr. AHL
![]() ![]() ![]() ![]() ![]() ![]()
|
Great work, Nick. Heads up for other modders, I was able to adapt this to the AHL mod by simply opening up both .js files and changing instances of QMJHL to AHL. For the NHL vintage seasons, just change it to NHL or whatever league name you want. |
![]() |
|
| trent | Aug 10 2015, 09:56 PM Post #13 |
|
Project Leader
|
Yep... already done for both 1996 and 1999.
|
|
My Blues 1995-1996 Season Report My Blues 1998-1999 Season Report My Flyers 1998-1999 Season Report | |
![]() |
|
| Ocelar | Aug 23 2015, 06:23 AM Post #14 |
|
ELHmod Moderator
|
Hi guys,can you help me what to do if i want only DEL league select mable?Thank you |
|
New Home is coming!!! HC OCELARI TRINEC - Proud to be a Fan ==BEREGIS AVTOMOBILYA== ===AVTOMOBILIST FAN=== | |
![]() |
|
| Sence | Aug 23 2015, 08:59 AM Post #15 |
|
Hall of Famer
|
Edit the file game_setup_interface.js, you can use these: Just one (international) league code It is made for All national teams patch. There is no league dropdown at all. Don't extract over your codes because there is also something else and if you have already changes in your game setup menu. Also it has older interface in the base code. Just take a look of game_setup_interface.js and make the same changes what I have made. For example all: - drpAwayLeagues and drpHomeLeagues lines are commented. All of them! - initDrpAwayLeague() and initDrpHomeLeague() are commented Inside functions initDrpAwayTeam() and initDrpHomeTeam() you should change number 1 to 4. 1 = international and 4 is DEL. Inside the functions setAwayTeam() and setHomeTeam() there are multiple lines commented and just one new line. The last one. Check the changes in the function SwapTeams(). You can use my game_setup.html code from the .zip. It should work. Or you can comment those league lines like in my code. ![]() Good luck! |
|
A video is worth of thousand pictures. http://www.youtube.com/watch?v=bFq2dGSVdOI My Sharks 2015-16 season (finished) | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
![]() Our users say it best: "Zetaboards is the best forum service I have ever used." |
|
| Go to Next Page | |
| « Previous Topic · Problem Reports / Tech Support · Next Topic » |
- Pages:
- 1
- 2












![]](http://z4.ifrm.com/static/1/pip_r.png)

8:22 AM Jul 11