The 3rd Age

Westernesse

Westernesse

Numenor awaits, with new armies, units, factions and heroes; witness the darkest Age of Middle-earth

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Sample Mod Launcher Batch file

Download for Battle for Middle-earth BFME, Battle for Middle-earth II BFME 2, Battle for Middle-earth II: Rise of the Witch-king ROTWK

Avatar of Radspakr Wolfbane

Radspakr Wolfbane

Category: Software
Created: Thursday May 2, 2013 - 14:09
Updated: Sunday April 5, 2015 - 15:13
Views: 4177
Summary: A simple mod launcher batch file that can be customised for you mod.

Rating

Staff says

-

Members say

2.0

Average

2.0/5.0

1 vote

This is a batch mod launcher I made based on DIGI_Byte's Battlegrid launcher.

How it works:
This launcher is pretty straight forward it moves the mod file(s)from "My Battle for Middle-Earth Files" to the original game folder and renames them with an underscore so the game and worldbuilder will read the data.
It also moves the original asset.dat into the "My Battle for Middle-Earth Files" and renames it and moves a custom asset.dat from "My Battle for Middle-Earth Files" into the game folder.
The launcher stays open while the game/Worldbuilder is open and automatically closes and cleans up when you finish.

Things to know:
I've put the batch file inside a .7z file so you'll 7zip to extract it.
To edit the .bat file open it up in an editor like Notepad++
I haven't tested this on 32 bit systems since I run a 64 bit one.
You'll need to put your mod files and asset.dat in "My Battle for Middle-Earth Files".
This only supports the default installation directories.

When running:
When you first launch it you'll be asked which version of Windows you are running 64 or 32 bit.
Chose your OS or you can close the launcher here.
Next you chose whether to launch your mod or launch it in Worldbuilder or you could play the game without a mod.
Once you've selected either the mod or WB there'll be a confirmation "Press any key" then the game/WB will automatically launch.

Additional notes:
A benefit of this sort of launcher is the ability to split your files so for bigger mods you can just add the paths for those files.

You can even patch a mod by launching an additional mod file and updating the launcher.
For instance your mod might be samplemod.big but you've got a small update big file consisting of only what you need for the patch (for instance a single file for hotfixing) you simply add it to the launcher and make sure it is alphabetically after the original mod file.
So if your mod launches as _samplemod.big your patch might be _xpatch.big and it should run the patch.

There's also bat-to-exe converters on the internet if you want to give an icon and so on.

Important note:
Some antiviruses will give false positive reports of trojans because of the way this launcher works and being a bat file.
The code as is harmless and only ever moves your mod files.
Simply add the file to the antivirus' exemptions list.

Editing this thing should be simply just changing the directory codes (make you rename them all and double check your code before launching because it may delete your mod files).
Always back up your mod files before testing.



Links / Downloads

 HitsAdded
Sample Batch file1030May 2, 2013 - 14:11

Credits

Radspakr - Coding
DIGI_Byte - Providing the original version (based off of his original Battlegrid launcher)

Comments

Display order: Newest first

Turin Turumbar - Friday July 19, 2013 - 16:33

This really needs improvement. This bat will only work with the custom game directory and an english version of the game. But why didnt you simply use the registry keys for the installation folder and the "My Battle for Middle-Earth Data" folder? The launcher would work with every version of the game if you use them.

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
23:50:13