
Originally Posted by Nameless Voice
You never did say if you would be able to easily find the appropriate code for Shock2.exe / Thief.exe / DromEd.exe if you had .exe files?
Or give specifics so that someone who does have them could find the appropriate code locations.
There are 7 code locations I modify in thief 2. You'd need to find the equivelents in the other exe's. Assuming that the dark engine hasn't been modified in any of those places, it could be as simple as looking at each address in thief 2, searching for a few dozen bytes around the area in the other exes and then changing the addresses. If the engine behaves differently, there'll need to be code changes.
Code:
//Where world textures first get loaded
SafeWrite32(0x0041D948, (DWORD)&CopyTex - 0x0041D94C);
//Where mip maps for world textures are generated
SafeWrite32(0x0041D96B, (DWORD)&MipMap - 0x0041D96F);
//Execution reaches here when thief tries to copy a system memory texture into video ram.
SafeWrite32(0x0062A67C, (DWORD)&CreateVidTextureHook);
//Hooks the level loading code to release all loaded textures
SafeWrite32(0x0040FCA4, (DWORD)&LevelStartHook - 0x0040FCA8);
//execution reaches here when a thief 2 is looking for an unused video mem surface to reuse and finds one. I free it, and then send execution back to where it would be if no suitable surface was found.
SafeWrite32(0x005BD427, (DWORD)&TextureExistsHook - 0x005BD42B);
//Override CreateFile to check for .override files first.
SafeWrite32(0x0060015C, (DWORD)&CreateFileHook);
//Not related to the texture fix; this is a function I force to return immediatly because it tries to blt from a null pointer each time you alt tab, which screws up ida
SafeWrite32(0x00591440, 0x000008c2);

Originally Posted by ZylonBane
I'm at work right now so I can't cite any specific textures, but just search in the FAM directory for anything ending with _1. That'll be part of an animated texture sequence. Dark supports up to 20 frames per sequence.
Yup, they appear to be working. I'm not 100% sure that they all are though; I didn't check many.