Texmod Autoload

0 views
Skip to first unread message

Hilma Kolin

unread,
Aug 3, 2024, 3:42:52 PM8/3/24
to siticonsi

Loader is written and compiled for .NET Framework v4.0. You must have it installed to be able to run a loader. This is because current MS Visual Studio can't compile native code for Windows XP and I don't want to install old VS just to make this loader. And .NET Framework is available for Windows XP also. And also it was much easier to write it in C#.

Also now archive contains HelixMod version of a loader. It has patched HelixMod dll inside (d3d9.dll) that loads tmldr.dll (used for tpf files autoload), and this dll loads tmrls.dll (texmod dll). Use it for games that you can't run directly (like Steam games).

If you are a developer and want to learn TexMod, then you can download this archive. It contains unpacked from nspack versions of TexMod and its dlls (one for logging mode and one for package mode, original and unpacked).

My goal is to be able to play some of my favorite old racing games with updated graphics.
(Some of the mods the Need for Speed series has are pretty cool!)
I'm running a Modded version of Need for Speed Underground, which uses Texmod to inject custom textures into the game.
I'm trying to not have to use my mouse and keyboard at all, i'm running an Xbox One controller via bluetooth.
The problem i'm running into is when i quit the game or use "close active window" Texmod itself doesn't close, its the selected application (according to the system tray).
Which leaves me stuck, once i manually click the close button, then i have to click on big box once, BigBox comes back into focus, and everything is hunkey-dory again.

I've tried a few things, running a batch file that closes "TexMod.exe" after "Speed.exe" closes doesn't seem to work either, its as if something happens to the process/task once it loads the .tpf texture set.
While testing things with the batch file i found out "taskkill /im texmod.exe" will close it BEFORE the textures get loaded, but once the program starts and i get in game, and close it again, Texmod refuses to close with the batch.
I figured it may be running in Administrator mode, found that it was, and now if i use my batch file to open the game it just opens, shows some black boxes/windows, and the game never opens.

I'm not very good with Autohotkey, and i've tried a few apps that let you bind keys to the Gamepad, but i'm open to ideas and suggestions.
I'm stubborn and willing to work through the problem, even if it means bashing my head against the wall.
I know this is probably a one-off scenario you guys don't see very often, and i realize the insignificance of my issue, but if you wanna help me solve this puzzle i'd be grateful.
I want to figure this out so future folks know how to get it working too.

From your screenshot it looks like you run Texmod with SPEED_REAL.EXE as the Target Application. In that case, in LaunchBox, add the following AutoHotKey script as an "Additional App" to Need For Speed Underground.

- Copy / paste the script to a new text file. Rename the text file to say "NFSU Close Texmod" and save it with an .ahk file extension. (NFSU Close Texmod.ahk) wherever you want. (I saved it to E:\LaunchBox\Games\Windows\NFSU Close Texmod.ahk

*Edit*
I added WinActivate, Launchbox Big Box to bring Bigbox Back in focus after killing texmod.
My .ahk file looks like this now. Just wanted to add that if someone comes across this in the future, and has the same issues.

@Deadrawkstar Can you share how you managed to get LaunchBox/BigBox to auto load texmod when starting the game? I've tried easy texmod and other programs but LB/BB will just load texmod and wait until I select the app and textures manually. The auto loading works perfectly in steam or just clicking the exe in its directory but LB/BB the auto loader won't work. Thank you!

About autoloading: Be careful when you choose what toload and how much. The autoload type must match the length of the purchaseddeck. Use the F1 help menu for setting the correct autoload status.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages