Jump to content
LaunchBox Community Forums

Closing "TexMod" after quitting Need for Speed Underground (with custom textures) while in BigBox


Deadrawkstar

Recommended Posts

First post! Looking for some assistance :D

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. :D
I want to figure this out so future folks know how to get it working too. 

I attached a pic of what it looks like once you close the game. You can see the game is closed, but Texmod still remains. 
Highlighted on the bottom in the system tray, but still not in focus.

Thank you!

1095006403_Screenshot(3).png

Link to comment
Share on other sites

2 hours ago, Deadrawkstar said:

I've tried a few things, running a batch file that closes "TexMod.exe" after "Speed.exe" closes doesn't seem to work either,

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.

Process, Wait, SPEED_REAL.EXE
Process, WaitClose, SPEED_REAL.EXE
WinClose, ahk_exe Texmod.exe

- 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

- In LauchBox right click Need for Speed Underground > Edit > Edit Metadata/Media

- Go to the "Additional Apps" tab > at the bottom click "Add Application".

- In the "Application Name" field enter: NFSU Close Texmod

- In the "Application Path" field browse for: LaunchBox\ThirdParty\AutoHotkey\AutoHotkey.exe

- In the "Application Command-Line Parameters" field, enter the path to the script you just created, between double quotes. (So in my case: "E:\LaunchBox\Games\Windows\NFSU Close Texmod.ahk")

- Tick "Automatically Run before Main Application" > OK.

111571084_Schermopname(92).thumb.jpg.00f7db84ef562f3f6c1f0d895c79bfc7.jpg

*Edit*

Also make sure you do not run Texmod.exe As Administrator.

Edited by Your Friendly A.I Overlord
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

20 hours ago, Your Friendly A.I Overlord said:

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.

Process, Wait, SPEED_REAL.EXE
Process, WaitClose, SPEED_REAL.EXE
WinClose, ahk_exe Texmod.exe

- 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

- In LauchBox right click Need for Speed Underground > Edit > Edit Metadata/Media

- Go to the "Additional Apps" tab > at the bottom click "Add Application".

- In the "Application Name" field enter: NFSU Close Texmod

- In the "Application Path" field browse for: LaunchBox\ThirdParty\AutoHotkey\AutoHotkey.exe

- In the "Application Command-Line Parameters" field, enter the path to the script you just created, between double quotes. (So in my case: "E:\LaunchBox\Games\Windows\NFSU Close Texmod.ahk")

- Tick "Automatically Run before Main Application" > OK.

111571084_Schermopname(92).thumb.jpg.00f7db84ef562f3f6c1f0d895c79bfc7.jpg

*Edit*

Also make sure you do not run Texmod.exe As Administrator.

SUCCESS!!!!!!!!!!!!!!!!!!
Thank you SOOOO MUCH!!
I WORKED ON THIS FOR LIKE.... 4 HOURS YESTERDAY 

I really do appreciate this!! (I have a few other games i'll be using with TexMod) 
So knowing how to get around this is AWESOME! 

*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.
 

Process, Wait, SPEED_REAL.EXE
Process, WaitClose, SPEED_REAL.EXE
WinClose, ahk_exe Texmod.exe
WinActivate, Launchbox Big Box


 

Edited by Deadrawkstar
Link to comment
Share on other sites

  • 9 months later...

@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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...