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
04 Launcher 1.5.0 - Beta 4 - 10/19/2016
Topic Started: Jun 2 2016, 10:03 AM (35,103 Views)
Vod
Member Avatar
Development Team
hitman71,18 November 2016
7:49 PM
with launcher 1.5 game plays only 640 X 480 resolution.. when i change resolution in game options, it changes, but not with launcher.. can anybody help :P

Are you sure you copied all of the files?

You should have:

NHL 2004\Launcher.dll
NHL 2004\Launcher.exe
NHL 2004\fasm.dll
NHL 2004\lua53.dll
NHL 2004\launcher\dump\..
NHL 2004\launcher\media\..
NHL 2004\launcher\options\..
NHL 2004\launcher\scripts\..
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
hitman71
Regular
[ *  * ]
yes. i have.. + bass.dll.
Offline Profile Quote Post Goto Top
 
Fire
Regular
[ *  * ]
Vod,4 November 2016
5:01 AM
Hey Fire. It's probably the reverb settings. If you look in launcher\scripts\user\ditties.lua you'll see a bunch of reverb variables near the top of the file. There's twelve variables to mess with.

[DOHTML]
<div style="overflow:auto; background:#fff; width:800px;white-space: nowrap;padding:15px;">
lRoom:               Attenuation of the room effect, in millibels (mB), in the range from -10000 to 0. The default value is -1000 mB.  <br />
lRoomHF:             Attenuation of the room high-frequency effect, in mB, in the range from -10000 to 0. The default value is -100 mB.  <br />
flRoomRolloffFactor: Rolloff factor for the reflected signals, in the range from 0 to 10. The default value is 0.0.  <br />
flDecayTime:         Decay time, in seconds, in the range from 0.1 to 20. The default value is 1.49 seconds.  <br />
flDecayHFRatio:      Ratio of the decay time at high frequencies to the decay time at low frequencies, in the range from 0.1 to 2. The default value is 0.83.  <br />
lReflections:        Attenuation of early reflections relative to lRoom, in mB, in the range from -10000 to 1000. The default value is -2602 mB.  <br />
flReflectionsDelay:  Delay time of the first reflection relative to the direct path, in seconds, in the range from 0 to 0.3. The default value is 0.007 seconds.  <br />
lReverb:             Attenuation of late reverberation relative to lRoom, in mB, in the range from -10000 to 2000. The default value is 200 mB.  <br />
flReverbDelay:       Time limit between the early reflections and the late reverberation relative to the time of the first reflection, in seconds, in the range from 0 to 0.1. The default value is 0.011 seconds.  <br />
flDiffusion:         Echo density in the late reverberation decay, in percent, in the range from 0 to 100. The default value is 100.0 percent.  <br />
flDensity:           Modal density in the late reverberation decay, in percent, in the range from 0 to 100. The default value is 100.0 percent.  <br />
flHFReference:       Reference high frequency, in hertz, in the range from 20 to 20000. The default value is 5000.0 Hz.<br />
</div>
[/DOHTML]


Bringing this up again. So i wanted to try to fix the weird distortion with some of the songs, but i have no idea where exactly do i change the values, is it where it says ''The default value is..'' ? I feel dumb
Also when you press ESC while ingame and then resume the game and if there was music playing in background it will stop, is there a way to edit this? I assume it might be in the ditties.lua file too
Thanks.
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
It looks like this in dittes.lua:

BASS_DX8_I3DL2REVERB_lRoom = 0
BASS_DX8_I3DL2REVERB_lRoomHF = -100
BASS_DX8_I3DL2REVERB_flRoomRolloffFactor = 0
BASS_DX8_I3DL2REVERB_flDecayTime = 2.49
BASS_DX8_I3DL2REVERB_flDecayHFRatio = 0.83
BASS_DX8_I3DL2REVERB_lReflections = -2602
BASS_DX8_I3DL2REVERB_flReflectionsDelay = 0.007
BASS_DX8_I3DL2REVERB_lReverb = 250
BASS_DX8_I3DL2REVERB_flReverbDelay = 0.011
BASS_DX8_I3DL2REVERB_flDiffusion = 100
BASS_DX8_I3DL2REVERB_flDensity = 100
BASS_DX8_I3DL2REVERB_flHFReference = 5000

Change the values after =
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Urkki
Member Avatar
Rookie
Fire,19 November 2016
6:57 PM
Bringing this up again. So i wanted to try to fix the weird distortion with some of the songs, but i have no idea where exactly do i change the values, is it where it says ''The default value is..'' ?.

IMO the default settings are too boomy and sound distorted on almost every .mp3.

I think the biggest culprit of it sounding "wrong" is that the reference high frequency cutoff comes way too early in default settings, most songs usually start to lose detail and eventually fade away much after 5000 Hz which is the default setting. It will sound "choked" and you will lose those delicious high end frequencies. Might sound more realistic in some audio, but I'd rather take clarity over boominess.

I've been making ditties and tinkering with the settings for almost this whole day. Make a backup of your Ditties.lua, and copy & overwrite these lines (these are the values that you must adjust BTW):

Code:
 
BASS_DX8_I3DL2REVERB_lRoom = 0
BASS_DX8_I3DL2REVERB_lRoomHF = 0
BASS_DX8_I3DL2REVERB_flRoomRolloffFactor = 0
BASS_DX8_I3DL2REVERB_flDecayTime = 0.755
BASS_DX8_I3DL2REVERB_flDecayHFRatio = 0.5
BASS_DX8_I3DL2REVERB_lReflections = -2602
BASS_DX8_I3DL2REVERB_flReflectionsDelay = 0.007
BASS_DX8_I3DL2REVERB_lReverb = 100
BASS_DX8_I3DL2REVERB_flReverbDelay = 0.009
BASS_DX8_I3DL2REVERB_flDiffusion = 14.5
BASS_DX8_I3DL2REVERB_flDensity = 35
BASS_DX8_I3DL2REVERB_flHFReference = 8192


If you try these, tell me what you think. If you think it sounds too crisp/clear, try adjusting flDecayTime, flDecayHFRatio, flDiffusion and flDensity with higher values. If you want to remove diffusing, a.k.a. make it sound more clearer (in layman terms), just put a lower value on flDecayTime, but remember to keep flDensity higher than flDiffusion, or it will start to sound too thin.

And you might want to adjust ArenaVolume so the ditties don't get lost in the mix or become too overbearing.

I can also send you my Ditties.lua file if you want.
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
Thanks for taking the initiative. :) I was never happy with the current values, so I'll gladly update them with whatever you guys think is best.
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Urkki
Member Avatar
Rookie
Yeah. I'm still trying to setup the effect but this is really hard without any documentation. It's just trial and error which is very slow.

Edit: Eh, I edited the values a bit. Best I could do today. I think it's OK, but I still have to get the room attentuation right, and it's going to be hard because I can't make a change and listen to the results in realtime, because I have to start the game again after every change. The equalization and diffusion sound pretty good, but it still kind of sounds like a huge bathroom instead of a big arena.
Offline Profile Quote Post Goto Top
 
Fire
Regular
[ *  * ]
ms.paska,20 November 2016
4:07 AM
I've been making ditties and tinkering with the settings for almost this whole day. Make a backup of your Ditties.lua, and copy & overwrite these lines (these are the values that you must adjust BTW):

Code:
 
BASS_DX8_I3DL2REVERB_lRoom = 0
BASS_DX8_I3DL2REVERB_lRoomHF = 0
BASS_DX8_I3DL2REVERB_flRoomRolloffFactor = 0
BASS_DX8_I3DL2REVERB_flDecayTime = 0.755
BASS_DX8_I3DL2REVERB_flDecayHFRatio = 0.5
BASS_DX8_I3DL2REVERB_lReflections = -2602
BASS_DX8_I3DL2REVERB_flReflectionsDelay = 0.007
BASS_DX8_I3DL2REVERB_lReverb = 100
BASS_DX8_I3DL2REVERB_flReverbDelay = 0.009
BASS_DX8_I3DL2REVERB_flDiffusion = 14.5
BASS_DX8_I3DL2REVERB_flDensity = 35
BASS_DX8_I3DL2REVERB_flHFReference = 8192


If you try these, tell me what you think. If you think it sounds too crisp/clear, try adjusting flDecayTime, flDecayHFRatio, flDiffusion and flDensity with higher values. If you want to remove diffusing, a.k.a. make it sound more clearer (in layman terms), just put a lower value on flDecayTime, but remember to keep flDensity higher than flDiffusion, or it will start to sound too thin.

And you might want to adjust ArenaVolume so the ditties don't get lost in the mix or become too overbearing.

I can also send you my Ditties.lua file if you want.

Tested a game with these values, the distortion seems to be completely gone :good:
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
Beta 4 reuploaded with experimental shooting bug fix.

If you would just like the changed file, copy and paste the following into "launcher\scripts\system\callback shots.lua", replacing everything.

Code:
 

--[[
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
--]]

ReturnAddress = Launcher.Mem.Alloc(4)
ASM = [[
   pop eax
   mov []]..ReturnAddress..[[],eax
   mov eax,0x4B52C0
   call eax
   pushad
   movsx ebx, byte [0x79BAF8]
   cmp ebx,0
   je home
   *ShotAway
   jmp finish
   home:
       *ShotHome
   finish:
       popad
       mov eax, []]..ReturnAddress..[[]
       push eax
       ret
]]
if Launcher.Callback.Create("ShotHome") ~= nil then
   if Launcher.Callback.Create("ShotAway") ~= nil then
       ASMPointer = Launcher.Mem.AssembleString(ASM)
       if ASMPointer ~= nil then
           Launcher.Mem.WriteCall(0x4b6574,ASMPointer,0)
       end
   end
end


I also made a basic reverb editor:
http://z15.invisionfree.com/NHL04Rebuilt/i...?showtopic=5236
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
hitman71
Regular
[ *  * ]
hello :) i have issue with launcher 1.5 (1.45 works fine). when i change game resolution with launcher, ingame resolution won't change . i can change it only game options :o. can u help?
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
hitman71,20 November 2016
9:29 PM
hello :) i have issue with launcher 1.5 (1.45 works fine). when i change game resolution with launcher, ingame resolution won't change . i can change it only game options :o. can u help?


Please post a log file

Run launcher.exe.
Click "misc".
Enable "Create log file"
The log file will be saved as "launcher log.txt" in the same folder as launcher.exe
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
Urkki
Member Avatar
Rookie
Fire,20 November 2016
4:45 PM
Tested a game with these values, the distortion seems to be completely gone   :good:

Cool!

I tweaked them further, and these are probably the final settings. I guess you would be hard pushed to find values that would sound better than this. I'm very satisfied with them.

Code:
 
BASS_DX8_I3DL2REVERB_lRoom = -10
BASS_DX8_I3DL2REVERB_lRoomHF = 0
BASS_DX8_I3DL2REVERB_flRoomRolloffFactor = 0.000
BASS_DX8_I3DL2REVERB_flDecayTime = 0.755
BASS_DX8_I3DL2REVERB_flDecayHFRatio = 0.500
BASS_DX8_I3DL2REVERB_lReflections = -2048
BASS_DX8_I3DL2REVERB_flReflectionsDelay = 0.007
BASS_DX8_I3DL2REVERB_lReverb = 92
BASS_DX8_I3DL2REVERB_flReverbDelay = 0.095
BASS_DX8_I3DL2REVERB_flDiffusion = 15.500
BASS_DX8_I3DL2REVERB_flDensity = 35.500
BASS_DX8_I3DL2REVERB_flHFReference = 8192.000


I also suggest to change FadeOutTime = 1000 to 500, 1000 is a tad too long I think.

Vod,21 November 2016
5:22 AM


Nifty little tool, works perfectly! The default values actually sound pretty good with this, but seem to sound really muffled, unclear and distorted, in-game, especially when there is other audio such as crowds and commentary in the mix.

Edit: Here is also a good example of the default value distortion, sounds horrible. First is the default values, after is my modified values. Default in many tracks is just this kind of a horrible mess.
https://instaud.io/Dcy


Edit 2: Updated the values with the ones that it forces automatically. (Vod, use these as defaults! :))
Offline Profile Quote Post Goto Top
 
hitman71
Regular
[ *  * ]
can launcher 1.5 issue result by windows 7 ultimate, becourse i can't even use aero effects.. only windows basic colours. i can't take screenshot, but launcher just won't change graphics in game. :o help please.. :thinking: i have all launcher files and they are right plases.
Offline Profile Quote Post Goto Top
 
Vod
Member Avatar
Development Team
hitman71,23 November 2016
10:37 PM
can launcher 1.5 issue result by windows 7 ultimate, becourse i can't even use aero effects.. only windows basic colours. i can't take screenshot, but launcher just won't change graphics in game. :o help please.. :thinking: i have all launcher files and they are right plases.

http://z15.invisionfree.com/NHL04Rebuilt/i...post&p=40006661
NHL 2004 Launcher | My Changelog | NHL 2004 Preservation | NHL 2004 Debugger
Offline Profile Quote Post Goto Top
 
hitman71
Regular
[ *  * ]
my launcher 1.5 won't create log file.. i really don't know what is wrong.. i better use 1.45 at least, when 1.5 is ready (not beta). :P
Offline Profile Quote Post Goto Top
 
2 users reading this topic (2 Guests and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Create a free forum in seconds.
Go to Next Page
« Previous Topic · NHL 2004 Launcher · Next Topic »
Add Reply