Musou-Enrai
Hi, there!
 Long time, no post! [smile]
  I decided to run a quicky on Tomb Raider Underworld with HiAlgo BOOST 5.0. Here are the details:

+ d3d9.dll is properly attaching to the game
+ Boost has a speed-up effect. It feels great but looks terrible due to:
- Graphics get broken while BOOST is ON/OFF or locked at 50%(default).   <<< FIXED
Screens: Normal    Broken    Locked at 50% (this last screen is from a different stage)
This broken effect appears mainly when you move the mouse. But when locked, it's constant.
- No Full HUD Res detection.
! Also, note that I'm not testing the game with MAX settings. That's why the fire in the screenshots is pixelated.

Here's the log from the HiAlgoBoost.ini file in the game config folder:

09/21/15  18:30:35  Info: Unsupported vertex shader version   0
09/21/15  18:30:35  Attaching to process...
09/21/15  18:30:35  Loaded C:\Windows\system32\dinput8.dll!
09/21/15  18:30:37  Warning: _controlfp was used to set non-standard FPU settings!!!
09/21/15  18:30:37  Warning: _controlfp was used to set non-standard FPU settings!!!
09/21/15  18:30:38  CreateTexture - multi-level RT requested: Format = 80, Width=4, Height=4, Levels=0, Pool=0, FormatStr = "P
09/21/15  18:30:38  CreateTexture - multi-level RT requested: Format = 909198916, Width=4, Height=4, Levels=0, Pool=0, FormatStr = "DF16"
09/21/15  18:30:38  Warning: _controlfp was used to set non-standard FPU settings!!!
09/21/15  18:30:40  RegisteredRawInputDevices() was already called, bypassing the call to IDirectInputDevice8::Acquire()...
09/21/15  18:31:02  RESET SUCCEEDED...
09/21/15  18:31:02  CreateTexture - multi-level RT requested: Format = 80, Width=4, Height=4, Levels=0, Pool=0, FormatStr = "P
09/21/15  18:31:02  CreateTexture - multi-level RT requested: Format = 909198916, Width=4, Height=4, Levels=0, Pool=0, FormatStr = "DF16"
09/21/15  18:32:56  WARNING: PS register 180 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 181 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 182 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 183 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 185 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 188 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 190 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 191 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 192 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 193 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 195 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 196 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 197 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 198 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 200 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 201 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 202 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 203 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 205 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 206 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 207 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 208 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 209 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  WARNING: PS register 212 should not be used by HiAlgo. Error code 1.
09/21/15  18:32:56  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/21/15  18:32:56  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/21/15  18:32:56  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/21/15  18:33:09  Info: Successfully parsed VPOS parameter for shader 0xBE79D198
09/21/15  18:33:11  Info: Successfully parsed VPOS parameter for shader 0x9E1B8CE2
09/21/15  18:33:11  Info: Successfully parsed VPOS parameter for shader 0xF0B61A79
09/21/15  18:33:14  Info: Successfully parsed VPOS parameter for shader 0xFF551446
09/21/15  18:33:17  Info: Successfully parsed VPOS parameter for shader 0xEE30CE45
09/21/15  18:35:13  Detaching from process...

Not sure what all this is supposed to mean, but there's definitely some shader problem.

HiAlgo SWITCH 2.0 behaves the same way. I haven't tested the game with BOOST 4.0 but I suppose it should be the same.
HOWEVER, HiAlgo SWITCH 0.5.1 works fine with the game. I've never said it, but I find it the best and most stable version. Despite some artifacts here and there. For this game so far, there's only one bright rectangle in the top left corner starting from the center of the screen(screen). 

And some additional thoughts:
    Since Tomb Raider Legend and Tomb Raider Anniversary are pretty much the same in looks and gameplay, maybe they'll have the same problem.

P.S. Would you prefer if I uploaded photos directly with the post settings(lower bandwidth stuff) instead of some image hosting site or it doesn't matter to you?
Reply
rotknight
Hi Musou-Enrai,
Thank you very much for your post here and your old activity in Nexus forum.
This problem is happen due to registers conflict in Pixel Shaders Texture creation for Tomb Raider Underworld game(we didn't check Boost on this game).
To fix this problem please see our faq here: http://www.hialgo.com/SkyrimFAQ.htm#I_see_flickering_brown_yellow_red_whatever_color_screen_when_moving_mouse
So your steps are:
1) Find what is name of exe file related to Tomb Raider Underworld (something like tru.exe )
2) Go Prog..x86/HiAlgo/Plugins/Boost dir; copy file from registers_tombraider.ini to registers_tru.ini. Change inside of registers_tru.ini file all registers from 1 to 0, and from 0 to 1 according to conflict into log file.
3) In same directory open exceptions.ini file. Find block related to [TOMBRAIDER] and below.
Copy block [TOMBRAIDER] and rename it to [TRU].
4) Let us know once it will fix the problem.
Reply
QuiteReluctant

Quote:
Would you prefer if I uploaded photos directly with the post ...instead of some image hosting site?

It works either way, but embedding images with the post would probably make it easier to read for the visitors of the forum.

Quote:
This broken effect appears mainly when you move the mouse. But when locked, it's constant.

Well, this make sense: every time we change resolution, we break the image.

Some clarifications about the steps suggested by rotknight:

Steps 2, 3 refer to the installation folder of BOOST.

About (2) : When you edit registers_tru.ini, you should set registers you WARNED about in your log file to 0. Which means they will not be used. But you have to set some other registers to 1 (your choice), because BOOST needs some amount to use. This may not work from the first attempt and will require a few iterations.

About (3) : When creating section [TRU] in exceptions.ini, do NOT copy the whole section [TOMBRAIDER]. Just put two lines:

[TRU]
REG = 1

indicating that this game should use registers_tru.ini file.


Quote:
No Full HUD Res detection

Yes, this is because we do not provide other parameters in [TRU] section (actually, we do not have this section at all). To set these parameters, we have to run this game in our development environment. Sigh.

 

Reply
Musou-Enrai
Thanks for the replies! [smile]
I've set all the conflicting registers to 1(they were 0 initially) in registers_tru.ini. Tested the game, still glitchy. Then I saw the log:

09/22/15  12:49:00  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/22/15  12:49:00  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/22/15  12:49:00  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/22/15  12:49:01  WARNING: PS register 71 should not be used by HiAlgo. Error code 1.
09/22/15  12:49:01  WARNING: PS register 72 should not be used by HiAlgo. Error code 1.
09/22/15  12:49:01  WARNING: PS register 73 should not be used by HiAlgo. Error code 1.
09/22/15  12:49:01  WARNING: PS register 74 should not be used by HiAlgo. Error code 1.
09/22/15  12:49:01  WARNING: PS register 75 should not be used by HiAlgo. Error code 1.
09/22/15  12:49:01  WARNING: PS register 76 should not be used by HiAlgo. Error code 1.
09/22/15  12:49:24  processing vs_1_1...
09/22/15  12:49:37  processing vs_1_1...
09/22/15  12:49:40  processing vs_1_1...
09/22/15  12:49:55  Detaching from process...

I modified these registers[71-76] to 0(they were 1 initially). Still didn't work. Here's what I got:

09/22/15  12:51:19  Info: Unsupported vertex shader version   0
09/22/15  12:51:19  Processing the exceptions file............
09/22/15  12:51:19  Attaching to process...
09/22/15  12:51:19  Loaded C:\Windows\system32\dinput8.dll!
09/22/15  12:51:19  Uploading cached shaders from backup cache file...
09/22/15  12:51:20  Successfully uploaded 516 shader(s).
09/22/15  12:51:20  Warning: _controlfp was used to set non-standard FPU settings!!!
09/22/15  12:51:20  Warning: _controlfp was used to set non-standard FPU settings!!!
09/22/15  12:51:21  CreateTexture - multi-level RT requested: Format = 80, Width=4, Height=4, Levels=0, Pool=0, FormatStr = "P
09/22/15  12:51:21  Warning: _controlfp was used to set non-standard FPU settings!!!
09/22/15  12:51:22  RegisteredRawInputDevices() was already called, bypassing the call to IDirectInputDevice8::Acquire()...
09/22/15  12:51:22  WARNING: PS register 53 should not be used by HiAlgo. Error code 2.
09/22/15  12:51:22  WARNING: PS register 80 should not be used by HiAlgo. Error code 2.
09/22/15  12:51:22  WARNING: PS register 51 should not be used by HiAlgo. Error code 2.
09/22/15  12:51:22  WARNING: PS register 78 should not be used by HiAlgo. Error code 2.
09/22/15  12:51:22  WARNING: PS register 54 should not be used by HiAlgo. Error code 2.
09/22/15  12:51:22  WARNING: PS register 77 should not be used by HiAlgo. Error code 2.
09/22/15  12:51:35  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/22/15  12:51:35  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/22/15  12:51:35  ERROR at line 1110 in .\ShaderPatcher_DX9.cpp, ShaderPatcher_DX9::PixelShaderIsNotSupported(): PixelShader cannot be patched: constants conflict.
09/22/15  12:51:36  WARNING: PS register 71 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 72 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 73 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 74 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 75 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 76 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:58  processing vs_1_1...
09/22/15  12:52:05  processing vs_1_1...
09/22/15  12:52:07  processing vs_1_1...
09/22/15  12:52:10  Detaching from process...

What does error code 2 stand for?

All this is my second attempt actually. The first one I just changed values from all the conflicting registers in the first post. They were 24. Then I picked at random some 24 registers and changed their values to 0. It led to this last code log above(more or less. The logged conflicting registers are the same).
---
On a side note, I might keep uploading photos and linking them like I did so far. I find it more organized for the (registered) user.
Reply
QuiteReluctant
Error code 1 or 2 (or 3) is for us to know where specifically the conflicting register is used. This is not important in the current task.

What is important:

1. Make sure that your settings are read by BOOST. Currently id does not seem to be the case. Even after you - correctly - "modified these registers[71-76] to 0", in the second log these registers are used:

09/22/15  12:51:36  WARNING: PS register 71 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 72 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 73 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 74 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 75 should not be used by HiAlgo. Error code 1.
09/22/15  12:51:36  WARNING: PS register 76 should not be used by HiAlgo. Error code 1.

So, please double-check the spelling of the ini file vs. the name of EXE; also make sure you have this section (with correct spelling)

[TRU]
REG = 1

in  exceptions.ini file.

2. "I picked at random some 24 registers and changed their values to 0" - I guess you mean to 1. If so, then this is correct. Just a word of advice. The program often needs 2 or even 4 consecutive registers. So, when you select random registers, select them in stretches, not isolated.




Reply
Musou-Enrai
Exe name is correct(tru.exe). Spelling of the exception is correct. The registers ini is also correct(registers_tru.ini).

"2. "I picked at random some 24 registers and changed their values to 0" - I guess you mean to 1. If so, then this is correct. Just a word of advice. The program often needs 2 or even 4 consecutive registers. So, when you select random registers, select them in stretches, not isolated."

   At first, I thought you meant 0. Because you said "BOOST needs some amount to use", my logic was that if I set n number of registers to 1, I should have around the same number with 0 values. And vice versa. 
   But I tried setting consecutive registers to 1, as you told me. I started from the first numbers in the file[0-10]. Then up to around 20. Then jumped to some numbers before 80. Which means I had a lot of registers set to 1. But there's no effect. Log info is still the same. Those 6 registers with Error code 2 and the other 6[71-76] with Error code 1.

EDIT:
You might ignore what I wrote above.
Now I saw in the game HiAlgo config file that there's a registers.ini file. Must've been created automatically since the first registers_tru.ini creation yesterday. And it only had the first changes I ever made. So I started editing it.
So far only the first registers from 180 to around 212 are set to 1. [71-76] regs are 0. I haven't touched them. And now I only have the Error 2 code. Weird!

09/23/15  12:59:10  Info: Unsupported vertex shader version   0
09/23/15  12:59:10  Processing the exceptions file............
09/23/15  12:59:10  Attaching to process...
09/23/15  12:59:10  Loaded C:\Windows\system32\dinput8.dll!
09/23/15  12:59:10  Uploading cached shaders from backup cache file...
09/23/15  12:59:11  Successfully uploaded 532 shader(s).
09/23/15  12:59:11  Warning: _controlfp was used to set non-standard FPU settings!!!
09/23/15  12:59:11  Warning: _controlfp was used to set non-standard FPU settings!!!
09/23/15  12:59:12  CreateTexture - multi-level RT requested: Format = 80, Width=4, Height=4, Levels=0, Pool=0, FormatStr = "P
09/23/15  12:59:12  Warning: _controlfp was used to set non-standard FPU settings!!!
09/23/15  12:59:13  RegisteredRawInputDevices() was already called, bypassing the call to IDirectInputDevice8::Acquire()...
09/23/15  12:59:13  WARNING: PS register 53 should not be used by HiAlgo. Error code 2.
09/23/15  12:59:13  WARNING: PS register 80 should not be used by HiAlgo. Error code 2.
09/23/15  12:59:13  WARNING: PS register 96 should not be used by HiAlgo. Error code 2.
09/23/15  12:59:13  WARNING: PS register 51 should not be used by HiAlgo. Error code 2.
09/23/15  12:59:13  WARNING: PS register 78 should not be used by HiAlgo. Error code 2.
09/23/15  12:59:13  WARNING: PS register 97 should not be used by HiAlgo. Error code 2.
09/23/15  12:59:13  WARNING: PS register 54 should not be used by HiAlgo. Error code 2.
09/23/15  12:59:13  WARNING: PS register 77 should not be used by HiAlgo. Error code 2.
09/23/15  12:59:22  processing vs_1_1...
09/23/15  12:59:22  processing vs_1_1...
09/23/15  12:59:22  processing vs_1_1...
09/23/15  12:59:28  Detaching from process...
Reply
QuiteReluctant
> And now I only have the Error 2 code. Weird!

It is not weird. Now you are doing right thing, and you are making progress. The next step is to disable (set to 0) registers 53, 80, 96, 51, 78, 97, 54 and 77. And to try it again.

At the end, we can include your registers.ini into our next update. [smile]
Reply
Musou-Enrai
There's certainly progress. [smile]
I changed these registers to 0 and it's a lot better. Only some gray textures here and there. And I turn on-off BOOST a few times to see the main menu. That's only upon starting the game.
I looked at the Log:

9/24/15  16:13:08  WARNING: PS register 81 should not be used by HiAlgo. Error code 2.
09/24/15  16:13:20  WARNING: PS register 98 should not be used by HiAlgo. Error code 1.
09/24/15  16:13:23  WARNING: PS register 119 should not be used by HiAlgo. Error code 1.

81 was 1, so I switched it to 0.
98 and 119 were 1, now 0.
After another test:

09/24/15  16:15:50  WARNING: PS register 82 should not be used by HiAlgo. Error code 2.
09/24/15  16:16:03  WARNING: PS register 180 should not be used by HiAlgo. Error code 1.
09/24/15  16:16:03  WARNING: PS register 181 should not be used by HiAlgo. Error code 1.

Same thing. So it's gradually pointing me towards editing the registers that initially caused problems.

EDIT:
I reverted back to the first step - editing only 53, 80, 96, 51, 78, 97, 54 and 77.
Now I have only 81 and 98. Both of them have a value of 1:

09/24/15  16:26:24  WARNING: PS register 81 should not be used by HiAlgo. Error code 2.
09/24/15  16:26:37  WARNING: PS register 98 should not be used by HiAlgo. Error code 1.


Could you explain to me what's the difference between Error code 1 and 2? Should I just switch them around to 0 and 1?
I'm taking this slowly because it's very easy for me to get confused what's what, what it was and what it should be.

Reply
QuiteReluctant
Quote:
Could you explain to me what's the difference between Error code 1 and 2? Should I just switch them around to 0 and 1?

Actually, it is much simpler than I, probably, explained. Let me try again:

1. Error code 1, 2, or 3 was for internal use. It is irrelevant for fixing. (Really, there is nothing interesting there; when we only started this development - caused by conflicts with ENB - we were curious, in which parts of the code the conflict of register use will be discovered).
2. If you set a register to 0 in INI file, this register will never be used by BOOST. If it is set to 1, it may be used, but not must. If there will be not enough enabled (that is set to 1) registers, BOOST will not be able to work.
3. All you have to do is set to 0 any register, BOOST is complaining about. It is possible, that BOOST will not complain on a certain register in one scene, but will complain in another. Therefore you might not be able to "weed out" all the conflicting registers at once.
Also, after you disable a certain register, BOOST tries to use the next enabled register; so in the next run it may complain on the register it did not complained before. If BOOST does not have enough enabled registers, you have enable more; but do not ever enable the registers you have disabled before.
   
Reply
Musou-Enrai

Thank you, QuiteReluctant! [smile] This explanation made things clear. I did some more register edits and now everything is way better. I also provided the ini files. Have a look at the attachments.

But it's not perfect, you should know. There are 2 minor problems:

I. When I run the game, here's what happens:
1/ The screen is white.

2/ The screen turns black for a second. That means the main menu is loaded.

3/ The screen turns white again and I can hear sounds and music.

FIX: When I start to hear sounds, I press F10 to turn OFF BOOST, then F10 again to enable it. And the menu is visible.
II. The level loading screen has white stripes which disappear after a few seconds.

 

Reply
HiAlgoBoost

Thank you for the effort! Actually, we've been working on automating the registers allocation. So if you upgrade to the latest version, and run TRU - on the first run (if there are register conflicts) - you will see graphic artifacts and a gray square in the upper-left corner. If you then exit the game and run it again - it should all be fixed. (unless you travel to another part of the world and hit another scene with register conflict - then just restart the game again. This should not happen more than a couple of times).

Reply
Musou-Enrai
So we won't have to manually fix glitchy graphics? Cool! [smile]
Reply
Musou-Enrai
This new feature fixes the white stripes while loading the stage but it doesn't fix the broken graphics as stated:
tru 2016-01-05 18-54-22-572.png 
I restarted the game around 4 times.
Reply
Reply