Welcome Guest [Log In] [Register]
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:

Username:   Password:
Add Reply
NHL 2004 Launcher 1.45 - 01/09/14; Adds new features incl. widescreen
Topic Started: Jun 16 2013, 07:54 AM (79,747 Views)
Ciais
Hall of Famer
So it's something the Launcher does when injecting

You can do what Sence suggested for the time being, only Vod can shed some light on this one ;)
Offline Profile Quote Post Goto Top
 
CHAKA
Charter Member
Quote:
 
Here are mine. Just add that "PointsWin = 3" field in there and you can play with 3 points.


Yes Ciais, I will do so ;) And thanks Sence! This helped! :)
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
Thanks Sence and Ciais :). Here are the default values in Launcher.ini:

PointsWin = 2
PointsWinOT = 2
PointsLoseOT = 1
PointsTie = 1

They aren't saved with your season.

NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Ciais
Hall of Famer
So, if you don't set any in the .ini, those are the ones getting injected for all leagues, right? :)
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
Ciais,12 September 2015
6:53 AM
So, if you don't set any in the .ini, those are the ones getting injected for all leagues, right? :)

Yeah, it's for all leagues. In nhl2004.exe one hardcoded function at 0x56F780 sets the points for all game modes and that function has 4 parameters corresponding to the point values. So when you switch to a different league, the game calls this function with different parameters to set the points. What launcher 1.45 does is it replaces the entire function, ignores the parameters and sets the values based on launcher.ini:

0x774A74 = PointsWin
0x774A78 = PointsWinOT
0x774A7C = PointsLoseOt
0x774A80 = PointsTie

Not the best way of doing it.. Launcher 1.5 handles it differently since almost everything is managed by lua scripts. :)
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Ciais
Hall of Famer
So the scripts will recognize the different parameters, and we'll be able to have different points for different leagues. Nice thinking ;)
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
There's quite a few ways it can be done since scripts have full control over the hard code. Launcher 1.5 no longer replaces that function, so the easiest way would probably be for a lua script to wait until a game mode change and then set the points after the game sets them internally.
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Ciais
Hall of Famer
Ah, I see. Cool :)
Offline Profile Quote Post Goto Top
 
Thrashmands
Regular
[ *  * ]
Is there a way to run nhl through Launcher in windowed mode? I can only do this through original exe.
Offline Profile Quote Post Goto Top
 
Sence
Hall of Famer
Thrashmands,6 October 2015
6:05 PM
Is there a way to run nhl through Launcher in windowed mode? I can only do this through original exe.

To launcher.ini
Code:
 

Windowed = 1

It should work! :huh:
A video is worth of thousand pictures.

http://www.youtube.com/watch?v=bFq2dGSVdOI
My Sharks 2015-16 season (finished)
Offline Profile Quote Post Goto Top
 
Thrashmands
Regular
[ *  * ]
Sence,6 October 2015
3:19 PM
Thrashmands,6 October 2015
6:05 PM
Is there a way to run nhl through Launcher in windowed mode? I can only do this through original exe.

To launcher.ini
Code:
 

Windowed = 1

It should work! :huh:

Ah, it does indeed work.
I never expected that to be this easy!
Thanks for your help, man!
Offline Profile Quote Post Goto Top
 
Sence
Hall of Famer
No problem! :)
A video is worth of thousand pictures.

http://www.youtube.com/watch?v=bFq2dGSVdOI
My Sharks 2015-16 season (finished)
Offline Profile Quote Post Goto Top
 
ZeroPucks
Hall of Famer
[ *  *  *  * ]
I have two questions:

1. With the team ditties for goal songs, I have found that late in a game, instead of a Generic break in play ditty I get the Vancouver goal ditty. This wouldn't be too big a problem except I have the goal horn+goal song together in that ditty, so it's a little jarring. I don't have anything in the "TIME_RUNNING_OUT" folder (and did not use MyDocsPath in launcher.ini), but even when I used to it would never work. Any ideas why this happens and whether the latest update for team ditties fixed the TIME_RUNNING_OUT folder?

2. Using MyDocsPath in the launcher.ini and starting a season works fine with the rosters, but somehow borks the post-game box scores with AHL mod. This is what I see:
Posted Image
I stopped using MyDocsPath because of the V2 vintage mod ditty issues (which were fixed for V1) and because of the box scores, but I'm curious if anyone knows the cause of this and if it only happens in AHL mod. Thanks.
Offline Profile Quote Post Goto Top
 
Ciais
Hall of Famer
About 2, if I remember correctly, the boxscore data is extracted from fixed paths -- namely the standard NHL 2004 folder under MyDocs ("My Documents\NHL 2004")

Since you're using the MyDocsPath setting in the Launcher, the season save file that is needed for data extraction is not inside the standard "My Documents\NHL 2004" folder -- where the boxscore is looking for it, because the code there specifically looks for "My Documents\NHL 2004"

Hope it's clear :)
Offline Profile Quote Post Goto Top
 
ZeroPucks
Hall of Famer
[ *  *  *  * ]
Perfect explanation, Ciais, thank you for the clarification.
Offline Profile Quote Post Goto Top
 
2 users reading this topic (2 Guests and 0 Anonymous)
ZetaBoards - Free Forum Hosting
ZetaBoards gives you all the tools to create a successful discussion community.
Go to Next Page
« Previous Topic · NHL 2004 Launcher · Next Topic »
Add Reply