Thread

Need for Speed Undercover (2008-12-11)

Started by burninrubber0 - 6 Aug 2020, 00:23

13Replies
827Views
5Participants

Top posters

burninrubber0burninrubber05 postsJustAnyoneJustAnyone3 postsSpicey69Spicey693 posts
Debug build of Need for Speed Undercover dated 2008-12-11. It has a full debug menu, debug data and other debug functionality. Many assets are functionally identical to the final game; however, due to the nature of this recovery, not all recovered files are from the 2008-12-11 build.

The deleted folder this was recovered from appears to have been used for multiple builds over a period of several months, with December 11 being the last build. Since the directory structure and output changed over the course of development, several earlier assets were never replaced and have been recovered via their still-existent directory entries. All of these have been included in the provided download.

The file XBDeploy.tag lists all files included in the December 11 build. In all likelihood, the listed files already existed in the folder and were replaced by newer files, meaning their data may still exist on the drive while no longer having directory entries. Further recovery is possible, but would have to be based on knowledge of the data structure rather than any filesystem-based method.

Unfortunately, it can't all be sunshine and rainbows. Some of the data in the December 11 build was destroyed by more recent builds of different games. Chief among the destroyed files is a second xex and pdb. Additionally, there was fragmentation in several files, and although I succeeded in repairing most of them, two videos remain corrupt due to fragmentation. If you want to play through the build, you will need to replace these with working assets or ensure the SkipMovies option is enabled in CONFIG.TXT.

On the subject of CONFIG.TXT, if the build crashes on launch or in the first loading screen, try deleting it. I had to do this the first time it ran. Also note CONFIG.TXT.o isn't part of the build, I just forgot to delete it before uploading.

You can find a full list of destroyed and fragmented files below.
Spoiler: Destroyed files
AdClientMemoryUsage.csv
SpeedMilestoneOpt-enUS.pdb
SpeedMilestoneOpt-enUS.xex
CARS/Damage/default_sockets.max
effects/shaders/mw2_constant_alpha_bias.pm.p3.updb
effects/shaders/mw2_constant_alpha_bias.pm_cheap.p3.updb
effects/shaders/mw2_constant_alpha_bias.pscsm.p2.updb
effects/shaders/mw2_constant_alpha_bias.vm_nopara.v3.updb
effects/shaders/mw2_constant_alpha_bias.vm_para.v3.updb
effects/shaders/mw2_constant_alpha_bias.vscsm.v2.updb
effects/shaders/mw2_constant_alpha_bias.vscsmp.v2.updb
effects/shaders/mw2_diffuse_spec.pm.p3.updb
effects/shaders/mw2_diffuse_spec.pm_cheap.p3.updb
effects/shaders/mw2_diffuse_spec.vm_nopara.v3.updb
effects/shaders/mw2_diffuse_spec.vm_para.v3.updb
effects/shaders/mw2_diffuse_spec.vscsm.v2.updb
effects/shaders/mw2_diffuse_spec.vscsmp.v2.updb
effects/shaders/mw2_diffuse_spec_alpha.pm.p3.updb
effects/shaders/mw2_diffuse_spec_alpha.pm_cheap.p3.updb
effects/shaders/mw2_diffuse_spec_alpha.pscsm.p2.updb
effects/shaders/mw2_diffuse_spec_alpha.vm_nopara.v3.updb
effects/shaders/mw2_diffuse_spec_alpha.vm_para.v3.updb
effects/shaders/mw2_diffuse_spec_alpha.vscsm.v2.updb
effects/shaders/mw2_diffuse_spec_alpha.vscsmp.v2.updb
effects/shaders/mw2_diffuse_spec_illum.pm.p3.updb
effects/shaders/mw2_diffuse_spec_illum.pm_cheap.p3.updb
effects/shaders/mw2_diffuse_spec_illum.vm_nopara.v3.updb
effects/shaders/mw2_diffuse_spec_illum.vm_para.v3.updb
effects/shaders/mw2_diffuse_spec_illum.vscsm.v2.updb
effects/shaders/mw2_diffuse_spec_illum.vscsmp.v2.updb
effects/shaders/mw2_diffuse_spec_salpha.pm.p3.updb
effects/shaders/mw2_diffuse_spec_salpha.pm_cheap.p3.updb
effects/shaders/mw2_diffuse_spec_salpha.pscsm.p2.updb
effects/shaders/mw2_diffuse_spec_salpha.vm_nopara.v3.updb
effects/shaders/mw2_diffuse_spec_salpha.vm_para.v3.updb
effects/shaders/mw2_diffuse_spec_salpha.vscsm.v2.updb
effects/shaders/mw2_diffuse_spec_salpha.vscsmp.v2.updb
effects/shaders/mw2_dif_spec_a_bias.pm.p3.updb
effects/shaders/mw2_dif_spec_a_bias.pm_cheap.p3.updb
effects/shaders/mw2_dif_spec_a_bias.pscsm.p2.updb
effects/shaders/mw2_dif_spec_a_bias.vm_nopara.v3.updb
effects/shaders/mw2_dif_spec_a_bias.vm_para.v3.updb
effects/shaders/mw2_dif_spec_a_bias.vscsm.v2.updb
effects/shaders/mw2_dif_spec_a_bias.vscsmp.v2.updb
effects/shaders/mw2_dirt.pm.p3.updb
effects/shaders/mw2_dirt.pm_cheap.p3.updb
effects/shaders/mw2_dirt.vm_nopara.v3.updb
effects/shaders/mw2_dirt.vm_para.v3.updb
effects/shaders/mw2_dirt.vscsm.v2.updb
effects/shaders/mw2_dirt.vscsmp.v2.updb
effects/shaders/mw2_dirt_overlay.pm.p3.updb
effects/shaders/mw2_dirt_overlay.pm_cheap.p3.updb
effects/shaders/mw2_dirt_overlay.pscsm.p2.updb
effects/shaders/mw2_dirt_overlay.vm_nopara.v3.updb
effects/shaders/mw2_dirt_overlay.vm_para.v3.updb
effects/shaders/mw2_dirt_overlay.vscsm.v2.updb
effects/shaders/mw2_dirt_overlay.vscsmp.v2.updb
effects/shaders/mw2_dirt_rock.pm.p3.updb
effects/shaders/mw2_dirt_rock.pm_cheap.p3.updb
effects/shaders/mw2_dirt_rock.vm_nopara.v3.updb
effects/shaders/mw2_dirt_rock.vm_para.v3.updb
effects/shaders/mw2_dirt_rock.vscsm.v2.updb
effects/shaders/mw2_dirt_rock.vscsmp.v2.updb
effects/shaders/mw2_foliage.pm.p3.updb
effects/shaders/mw2_foliage.pm_cheap.p3.updb
effects/shaders/mw2_foliage.pscsm.p2.updb
effects/shaders/mw2_foliage.vm_nopara.v3.updb
effects/shaders/mw2_foliage.vm_para.v3.updb
effects/shaders/mw2_foliage.vscsm.v2.updb
effects/shaders/mw2_foliage.vscsmp.v2.updb
effects/shaders/mw2_matte_dsshad.pm.p3.updb
effects/shaders/mw2_matte_dsshad.pm_cheap.p3.updb
effects/shaders/mw2_matte_dsshad.vm_nopara.v3.updb
effects/shaders/mw2_matte_dsshad.vm_para.v3.updb
effects/shaders/mw2_matte_dsshad.vscsm.v2.updb
effects/shaders/mw2_matte_dsshad.vscsmp.v2.updb

Recovered early assets that were destroyed:
effects/shaders/mw2_diffuse_alpha.vssolidcsm.v2
effects/shaders/mw2_diffuse_spec.pm.p3
effects/shaders/mw2_diffuse_spec.psalphacsm.p2
effects/shaders/mw2_diffuse_spec.vm_nopara.v3

Spoiler: Fragmented files
Movies/storey_23_english_ntsc.vp6
Movies/storey_25_english_ntsc.vp6
ONLINE/RB/rebroadcaster.exe

Download (archive.org)

Big thanks to Bo98 for making xex_fragment_finder to recover the one working executable we have, among lots of other things!
12 Edited 9 Aug 2020, 05:04
Do you need to delete CONFIG.TXT to get it to load or delete SkipMovies to get it to load? I tried with and without CONFIG.TXT and it does not load.
justz00t said:
Do you need to delete CONFIG.TXT to get it to load or delete SkipMovies to get it to load? I tried with and without CONFIG.TXT and it does not load.

It should boot without any changes in Xenia Canary. I only had to delete CONFIG.TXT temporarily on my RGH console. Keep in mind that SpeedDebugOpt-enUS.xex is the only working executable; the other one has been destroyed and won't work.
1
burninrubber0 said:
It should boot without any changes in Xenia Canary. I only had to delete CONFIG.TXT temporarily on my RGH console. Keep in mind that SpeedDebugOpt-enUS.xex is the only working executable; the other one has been destroyed and won't work.


Ah, I am using a slim development kit and it doesn't want to work on it at all.
I looked into it again. As far as I can tell, you need to set SkipFE to 0 instead of 1 in CONFIG.TXT. I can only guess the issue is caused by slow load speeds, considering it works fine in Xenia. You should probably also delete the line at the bottom that says mes.
Doesn't work on my kit either, tried switching between 512/1024mb modes, shadowbooting rgloader, messing with config but watson always shows this: 1597180929336.png - missing
Well, that's the same memory location I crash at without the config fix and the same one everyone else crashes at. Troubleshooting is useless until I acquire a kit on which the build isn't fixed by disabling SkipFE. Meantime, only way for others to run it seems to be through Xenia Canary, so I suggest you go that route for now.
1
Here's how I ran it on my RGH before finding the config fix, maybe someone else will be able to run it this way too. xex patching is an option, but I'll leave that for others to handle.
This crash is achievement-related, where the game attempts to read 50 pointers but all of them are unwritten data (0xAAAAAAAA) rather than valid pointers. The below nulls these pointers so the game doesn't crash.
Requires X360DebuggerWV (build) (windbg should work too), PeekPoker, and XBWatson.
  1. Enable X360DebuggerWV's Record Breakpoints to Trace option.
  2. Enable the Break on Module Load option, launch the game, and disable that option after it breaks. Enable Break on Thread Create and hit play in the CPU window.
  3. After it breaks again, click Refresh in the CPU window, enter 831BE4B8 in the Offset field, and click Goto. Right click and choose the Set Breakpoint option at that location. Disable the Break on Thread Start option and hit play in the CPU window again.
  4. Once it breaks again, click Refresh in the Trace window, select the most recent entry, and copy the value of R31. Paste it into the Address field in PeekPoker's Peek & Poke window, enter a length of 021020, and hit Peek. The displayed memory should be entirely comprised of AA bytes.
  5. Tick the box at the right that says fill memory with, enter 00 in the field, and hit poke. It should finish after around 3 minutes. Once it's done, hit peek and make sure the AA bytes have changed to 00.
  6. In X360DebuggerWV, right click where you set the breakpoint earlier and click Remove Breakpoint. Press play in the CPU window and hit Continue in XBWatson.
1
Just finished doing what you wrote in the tutorial, and build successfully loaded up.Thanks1597418011388.png - missing
Anybody how to activate debug camera?
Spicey69 said:
Anybody how to activate debug camera?

press start button a few times on 2nd controller
Uhh im using x360ce to emulate keyboard controls from xenia since i don't have x360 controller. I had to use mouse as a controller 2 but it doesn't work when i assigned the start button to a middle mouse button but thanks... for the tip!
Wasn't UlgyFramerateHack in config.txt meant to increase the game fps limit to 60?
I realized that graphics option disables some of visual effects ingame, increasing the framerate performance on emulator (not making the fps limit to 60hz unless you disable vsync in xenia config file!).

I think random crashes were just achievements while i was pursuiting.
Looks like they are mostly.