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,746 Views)
Vod
Member Avatar
Development Team
Ciais,7 October 2015
2:25 PM
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 :)


It should still work though if it's configured properly. The idea is to set the MyDocsPath to something like C:\Users\<User>\Documents\NHL 2004\Mod Name\

And then you copy the NHL 2004 folder from Documents into the NHL 2004\Mod Name\ folder. So when javascript retrieves the my documents folder (wShell.SpecialFolders()), it should get "C:\Users\<User>\Documents\NHL 2004\Mod Name\" which should contain it's own NHL 2004 folder.

I hope that made sense..
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Ciais
Hall of Famer
It does :)

You're right, it should work, as the boxscore code to retrieve the standard MyDocs folder is universal -- it uses the WshShell callback for that, right?

EDIT: Just saw you already answered my question about WshShell :D
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
Ciais,7 October 2015
3:06 PM
it uses the WshShell callback for that, right?

Yeah. And internally wShell.SpecialFolders() calls the windows API function SHGetSpecialFolderPath within shell32.dll. The Launcher's injected code hooks and replaces that function in memory. So when the interface calls that function, it's actually calling a function in launcher.dll.
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
niverin
Junior League
[ * ]
Hi Vod, I just watched the tutorial for Cheat Engine you posted and successfully found some values (minor penalty seconds left).

But I suspect some are much harder than these...
What are the addresses you want to help with the most?

Thanks!
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
niverin,2 November 2015
11:25 AM
Hi Vod, I just watched the tutorial for Cheat Engine you posted and successfully found some values (minor penalty seconds left).

But I suspect some are much harder than these...
What are the addresses you want to help with the most?

Thanks!

That is a good start. I will upload my cheat engine save so you can see most of the static addresses I have found.
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Sence
Hall of Famer
Vod, I would like to have these addresses also. :) I want to help as I promised a long time ago already whenever I have time.

There seems to be lots of easy targets, but I want to go further because like you said, you know most of them. :D

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
 
Vod
Member Avatar
Development Team
I'm going to get that cheat engine save uploaded very soon. I've been pretty sloppy about documenting the memory addresses, so I'm been working on cleaning that up and getting all the static addresses into the cheat engine save.
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Sence
Hall of Famer
Thanks and no rush! :) Btw, I was looking for a way to identify the spot where is the blueline. Have you already find the addresses to that?

I made some tests which variables are changing when you across the line with a puck to identify triggered variable (if it's there) which identifies for example offsides. Work is just in the beginning but later I will try to find coordinates of the blueline (the "invisible" offside line).
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
 
Vod
Member Avatar
Development Team
Sence,10 November 2015
4:33 AM
Thanks and no rush! :) Btw, I was looking for a way to identify the spot where is the blueline. Have you already find the addresses to that?

I made some tests which variables are changing when you across the line with a puck to identify triggered variable (if it's there) which identifies for example offsides. Work is just in the beginning but later I will try to find coordinates of the blueline (the "invisible" offside line).

Thanks a lot for helping :). I haven't looked for the blue line coordinate, but these addresses might help you find it. The warning address will only be useful if you are looking at the decompiled code.

Replay cursor X (float): 7AC2D4
Replay cursor Y (float): 7AC2DC

Warning: 79BB05 (byte) (1 = Penalty, 2 = offside)
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Sence
Hall of Famer
Thanks! :) I will be look at them when I get back home.. so after 2 weeks. :(
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
 
sc96a
Regular
[ *  * ]
Hi Vod just wondering if your planning to add the modern horizontal scoreboard to your Launcher.exe File. This would make a definite game improvement visual...Just a thought. :D
Offline Profile Quote Post Goto Top
 
maestro
Member Avatar
EMLH Major League admin
[ *  * ]
I just downloaded and it's simply PERFECT.
Lot of thanks to creator! :worship:
European Major League of Hockey (link)
Posted Image
Offline Profile Quote Post Goto Top
 
sc96a
Regular
[ *  * ]
Maestro are you responding to my question or just referring to the mod itself.
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
@maestro: Thank you :)

@sc96a: Sorry for the delay. Launcher 1.5 is a development environment. I will share an example script showing how to make a gameclock like the one in the screenshots, but it won't be something that's included in the launcher by default.
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
sc96a
Regular
[ *  * ]
Thanks Vod...no problem...then we can follow your directions to change the appearance of the clock so that it is linear instead of vertical. Great and much appreciated.
Offline Profile Quote Post Goto Top
 
2 users reading this topic (2 Guests and 0 Anonymous)
Go to Next Page
« Previous Topic · NHL 2004 Launcher · Next Topic »
Add Reply