Widescreen fix works perfectly with game. Only annoying issue is the debug menu on the side of the menu everytime you pause or are on it. Please can this be fixed
Hi! I made a small research about that.
Some of the menu text are handled by the function at 0x504080.
I tried to nop the jump on 0x504085, it disabled the text ("display menubar" as Unicode) on left (but also disabled some texts on menus), but the red squares were still there.
I think we can eliminate unwanted texts using this function.
(It looks like force jumping 0x501B45 (EB 27 - jmp 0x501B6E) solves our problem.)


I hope it helps. :)
Thanks for the info! The red squares can probably be moved by adding their coordinates to the dat file. It's been awhile since I messed around with all of this, so I'll have to give it a try later.
Okay, I think I got all of them.

You can try this by downloading the updated archive here:
https://ci.appveyor.com/project/ThirteenAG/widescreenfixespack/build/artifacts
Or by manually adding the coordinates yourself:
Hidden_Square_Pos_1 C3A98000 C2780000 -1000.0 0.0 -339.0 -62.0
Hidden_Square_Pos_2 C3A98000 C2280000 -1000.0 0.0 -339.0 -42.0
Hidden_Square_Pos_3 C3A98000 C1B00000 -1000.0 0.0 -339.0 -22.0
Hidden_Square_Pos_4 C3A98000 C0000000 -1000.0 0.0 -339.0 -2.0
Hidden_Square_Pos_5 C3A98000 41900000 -1000.0 0.0 -339.0 18.0
Hidden_Square_Pos_6 C3A98000 42180000 -1000.0 0.0 -339.0 38.0
Hidden_Square_Pos_7 C3BD8000 C2780000 -1000.0 0.0 -379.0 -62.0
Hidden_Square_Pos_8 C3BD8000 C2280000 -1000.0 0.0 -379.0 -42.0
Hidden_Square_Pos_9 C3BD8000 C1B00000 -1000.0 0.0 -379.0 -22.0
Hidden_Square_Pos_10 C3BD8000 C0000000 -1000.0 0.0 -379.0 -2.0
Hidden_Square_Pos_11 C3BD8000 41900000 -1000.0 0.0 -379.0 18.0
Hidden_Square_Pos_12 C3B88000 C2780000 -1000.0 0.0 -369.0 -62.0
Hidden_Square_Pos_13 C3B88000 C2500000 -1000.0 0.0 -369.0 -52.0
Hidden_Square_Pos_14 C3B88000 C2280000 -1000.0 0.0 -369.0 -42.0
Hidden_Square_Pos_15 C3B88000 C1B00000 -1000.0 0.0 -369.0 -22.0
Hidden_Square_Pos_16 C3B88000 C1400000 -1000.0 0.0 -369.0 -12.0
Hidden_Square_Pos_17 C3B88000 C0000000 -1000.0 0.0 -369.0 -2.0
Hidden_Square_Pos_18 C3B88000 41000000 -1000.0 0.0 -369.0 8.0
Hidden_Square_Pos_19 C3B88000 41900000 -1000.0 0.0 -369.0 18.0
Hidden_Square_Pos_20 C3B38000 C2500000 -1000.0 0.0 -359.0 -52.0
Hidden_Square_Pos_21 C3B38000 C1400000 -1000.0 0.0 -359.0 -12.0
Hidden_Square_Pos_22 C3B38000 41E00000 -1000.0 0.0 -359.0 28.0
Hidden_Square_Pos_23 C3B38000 41000000 -1000.0 0.0 -359.0 8.0
Hidden_Square_Pos_24 C3CC8000 C2780000 -1000.0 0.0 -409.0 -62.0
Hidden_Square_Pos_25 C3CC8000 C1B00000 -1000.0 0.0 -409.0 -22.0
Hidden_Square_Pos_26 C3CC8000 C0000000 -1000.0 0.0 -409.0 -2.0
Hidden_Square_Pos_27 C3CC8000 41900000 -1000.0 0.0 -409.0 18.0
Hidden_Square_Pos_28 C3CC8000 42180000 -1000.0 0.0 -409.0 38.0
Hidden_Square_Pos_29 C3C78000 C2780000 -1000.0 0.0 -399.0 -62.0
Hidden_Square_Pos_30 C3C78000 C1B00000 -1000.0 0.0 -399.0 -22.0
Hidden_Square_Pos_31 C3C78000 C0000000 -1000.0 0.0 -399.0 -2.0
If all is well then @ThirteenAG just needs to change the jump mentioned by nlgzrgn to get rid of the debug text.
Nice! Just did a quick test. Some of them are still there. Maybe we should copy and paste this values over and over again.
Btw, instead of sending them to X = -1000 (It may appear on a 3:1 setup), send them to Y = -9999, which is way more inaccessible. :P
Can you screenshot all of the squares I missed or provide their location? The widescreen fix needs their exact X and Y pair to work, so copying and pasting the values won't do anything if I'm understanding you correctly.
I'll probably set them both to -9999 now that you've mentioned it.
Here are the pics. I think there should be some code to disable that red squares, too.



Thanks! I lost track of all the new coordinates I added in the process of organizing them, so just replace them all.
Hidden_Square_Pos_1 C3A98000 C2780000 -9999.0 -9999.0 -339.0 -62.0
Hidden_Square_Pos_2 C3A98000 C2280000 -9999.0 -9999.0 -339.0 -42.0
Hidden_Square_Pos_3 C3A98000 C2000000 -9999.0 -9999.0 -339.0 -32.0
Hidden_Square_Pos_4 C3A98000 C1B00000 -9999.0 -9999.0 -339.0 -22.0
Hidden_Square_Pos_5 C3A98000 C0000000 -9999.0 -9999.0 -339.0 -2.0
Hidden_Square_Pos_6 C3A98000 41900000 -9999.0 -9999.0 -339.0 18.0
Hidden_Square_Pos_7 C3A98000 42180000 -9999.0 -9999.0 -339.0 38.0
Hidden_Square_Pos_8 C3BD8000 C2780000 -9999.0 -9999.0 -379.0 -62.0
Hidden_Square_Pos_9 C3BD8000 C2280000 -9999.0 -9999.0 -379.0 -42.0
Hidden_Square_Pos_10 C3BD8000 C1B00000 -9999.0 -9999.0 -379.0 -22.0
Hidden_Square_Pos_11 C3BD8000 C0000000 -9999.0 -9999.0 -379.0 -2.0
Hidden_Square_Pos_12 C3BD8000 41900000 -9999.0 -9999.0 -379.0 18.0
Hidden_Square_Pos_13 C3B88000 C2780000 -9999.0 -9999.0 -369.0 -62.0
Hidden_Square_Pos_14 C3B38000 C2580000 -9999.0 -9999.0 -359.0 -54.0
Hidden_Square_Pos_15 C3B88000 C2500000 -9999.0 -9999.0 -369.0 -52.0
Hidden_Square_Pos_16 C3B88000 C2280000 -9999.0 -9999.0 -369.0 -42.0
Hidden_Square_Pos_17 C3B88000 C1B00000 -9999.0 -9999.0 -369.0 -22.0
Hidden_Square_Pos_18 C3B88000 C1400000 -9999.0 -9999.0 -369.0 -12.0
Hidden_Square_Pos_19 C3B88000 C0000000 -9999.0 -9999.0 -369.0 -2.0
Hidden_Square_Pos_20 C3B88000 41000000 -9999.0 -9999.0 -369.0 8.0
Hidden_Square_Pos_21 C3B88000 41900000 -9999.0 -9999.0 -369.0 18.0
Hidden_Square_Pos_22 C3B38000 C2780000 -9999.0 -9999.0 -359.0 -62.0
Hidden_Square_Pos_23 C3B38000 C2500000 -9999.0 -9999.0 -359.0 -52.0
Hidden_Square_Pos_24 C3B38000 C1400000 -9999.0 -9999.0 -359.0 -12.0
Hidden_Square_Pos_25 C3B38000 C0000000 -9999.0 -9999.0 -359.0 -2.0
Hidden_Square_Pos_26 C3B38000 40C00000 -9999.0 -9999.0 -359.0 6.0
Hidden_Square_Pos_27 C3B38000 41000000 -9999.0 -9999.0 -359.0 8.0
Hidden_Square_Pos_28 C3B38000 41900000 -9999.0 -9999.0 -359.0 18.0
Hidden_Square_Pos_29 C3B38000 41E00000 -9999.0 -9999.0 -359.0 28.0
Hidden_Square_Pos_30 C3CC8000 C2780000 -9999.0 -9999.0 -409.0 -62.0
Hidden_Square_Pos_31 C3CC8000 C1B00000 -9999.0 -9999.0 -409.0 -22.0
Hidden_Square_Pos_32 C3CC8000 C0000000 -9999.0 -9999.0 -409.0 -2.0
Hidden_Square_Pos_33 C3CC8000 41900000 -9999.0 -9999.0 -409.0 18.0
Hidden_Square_Pos_34 C3CC8000 42180000 -9999.0 -9999.0 -409.0 38.0
Hidden_Square_Pos_35 C3C78000 C2780000 -9999.0 -9999.0 -399.0 -62.0
Hidden_Square_Pos_36 C3C78000 C1B00000 -9999.0 -9999.0 -399.0 -22.0
Hidden_Square_Pos_37 C3C78000 C0000000 -9999.0 -9999.0 -399.0 -2.0
Hidden_Square_Pos_38 C3C28000 C2780000 -9999.0 -9999.0 -389.0 -62.0
Hidden_Square_Pos_39 C3C28000 C1B00000 -9999.0 -9999.0 -389.0 -22.0
Hidden_Square_Pos_40 C3C28000 C0000000 -9999.0 -9999.0 -389.0 -2.0
Hidden_Square_Pos_41 C3C28000 41900000 -9999.0 -9999.0 -389.0 18.0
Hidden_Square_Pos_42 C3D18000 C0000000 -9999.0 -9999.0 -419.0 -2.0
Hidden_Square_Pos_43 C3D18000 41900000 -9999.0 -9999.0 -419.0 18.0
Hidden_Square_Pos_44 C3D18000 C2780000 -9999.0 -9999.0 -419.0 -62.0
Hidden_Square_Pos_45 C3D18000 C1B00000 -9999.0 -9999.0 -419.0 -22.0
Let me know if I missed anything else, otherwise I'll update the archive.
I think there should be some code to disable that red squares, too.
That would be ideal, but for now this will have to do. I think the actual texture is called "WHITE16x16" or some variation based on what I saw in the HUD data from GlobalB.bun. There's a string for that but it doesn't appear to do anything.
Nice, thanks! Done a quick test and haven't seen any red squares. One more vanilla bug is fixed, nice!
Unfortunately, I just discovered a bug with your text removal method. It corrupts the formatting of the race victory reward message, and in some cases completely removes what you've unlocked. So instead of saying "Congratulations, you have unlocked a new track!", it'll simply say "Congratulations!". You can test this by completing races in Underground Mode.
Unless you can fix this I'll have to manually add the coordinates for the text as well. I'll probably won't have that done until Friday.
Oh, noes! I'll try something else in the next days. :(
I think I've solved the bug. Can you try it with this code change only:
0x501B4D = 74 25 (je 0x501B74)
Looks like that solved the problem, nice job! Archive has been updated with more square coordinates and a few other things as well. That should (hopefully) be it.
I tested downloading the file from here: https://ci.appveyor.com/project/ThirteenAG/widescreenfixespack/build/artifacts
The red dots are gone, but the menu debug texts are still there:
(You can also see the text of another car to the right of the selected one)



There are also these strange white dots under some screens, but they're not from the WS fix, they're there even in the original game, although it would be nice to hide them) :

The code for debug text removal has not been added yet. ThirteenAG has to do that, because I don't know anything about programming outside of x86 assembly. Wait until the official update.
The extra car logo on the side of the screen? Okay, done. I won't bother updating the archive right now, but you can try this yourself by copying and pasting this into the dat file.
Car_Logo_Removal_Pos 43FA0000 C2CE0000 -9999.0 -9999.0 500.0 -103.0
Got it.
Thanks.
Ok, makes sense.
Most helpful comment
I think I've solved the bug. Can you try it with this code change only:
0x501B4D = 74 25 (je 0x501B74)