Skip to content

Instantly share code, notes, and snippets.

@David-Lor
Last active August 14, 2017 22:04
Show Gist options
  • Save David-Lor/b3277eb9fbbc58b875d5249ea0cf1f34 to your computer and use it in GitHub Desktop.
Save David-Lor/b3277eb9fbbc58b875d5249ea0cf1f34 to your computer and use it in GitHub Desktop.
Run Assassin's Creed II & OpenTexMod

Run AC2 + OpenTexMod

These two Batch scripts will launch OpenTexMod and, then, launch Assassin's Creed II. The script will wait until you close AC2, then it closes OpenTexMod and the script itself. This is specially useful for launching a game and, beforehand, a dependency. In this case, OpenTexMod, which is used in games like Assassin's Creed for replacing textures.

How to use

Replace the routes for the game and OpenTexMod executables on the script! This script was made for being used with the Assassin's Creed 2 Overhaul Mod, which uses OpenTexMod, but you can modify the script for any other game or dependency.

YOU MUST FOLLOW THE INSTRUCTIONS FROM THE OVERHAUL MOD. Specifically where it says to make OpenTexMod auto-load the textures for AC2! Otherwise this script will be useless!

What script should I use?

ac2+opentexmod.bat

run OpenTexMod, then AC2. Wait for AC2 to exit, then close OpenTexMod and finish script.

ac2-opentexmod.bat

Run OpenTexMod, but you must launch AC2 manually. You might want to use this when you want to launch AC2 from Steam and keep the Steam Overlay, which doesn't seem to work with the first script (that's why I made it!) Once OTM is launched, the script will wait a few seconds (100 by default, you can change it on the "timeout" line), while you must launch AC2. After this delay, the script will check if AC2 is running. If not, OTM will be closed as well as the script.

@echo off
echo "Assassin's Creed II + OpenTexMod"
echo "Launching OpenTexMod..."
cd "F:\Juegos\Assassin's Creed II\Assassin's Creed II Overhaul V.2.0\OpenTexMod_beta_v1_r21\OpenTexMod"
start OpenTexMod.exe
echo "OpenTexMod loaded"
echo Launching AC2..."
cd "F:\Juegos\Assassin's Creed II"
start AssassinsCreedIIGame.exe
echo "AC2 loaded, it should be running!"
timeout 60
:check
timeout 2 >null
tasklist /nh /fi "imagename eq AssassinsCreedIIGame.exe" | find /i "AssassinsCreedIIGame.exe" >null && (goto check)
echo "Game closed, exiting from OpenTexMod..."
taskkill /IM OpenTexMod.exe
echo "All done!"
exit
@echo off
echo "Assassin's Creed II - OpenTexMod"
echo "Launching OpenTexMod..."
cd "F:\Juegos\Assassin's Creed II\Assassin's Creed II Overhaul V.2.0\OpenTexMod_beta_v1_r21\OpenTexMod"
start OpenTexMod.exe
echo "OpenTexMod loaded"
timeout 100
:check
timeout 2 >null
tasklist /nh /fi "imagename eq AssassinsCreedIIGame.exe" | find /i "AssassinsCreedIIGame.exe" >null && (goto check)
echo "Game closed, exiting from OpenTexMod..."
taskkill /IM OpenTexMod.exe
echo "All done!"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment