ravo92 / patch-2.22-launcher Goto Github PK
View Code? Open in Web Editor NEWBFME Launcher for BFME, BFME 2, ROTWK. Also known as 2.22 Launcher for Battle for Middle Earth 1
License: MIT License
BFME Launcher for BFME, BFME 2, ROTWK. Also known as 2.22 Launcher for Battle for Middle Earth 1
License: MIT License
is it possible to make in the launcher like 2 buttons , one with maps and one with replays, or just one with the folder "my battle for middle earth files and when you click on the button the folder will appear on the screen ?
Feel free to close this issue after you read it, just here providing some feedback:
--like --this
), one dash is reserved for short form variations (-l -t
) https://github.com/Ravo92/Patch-2.22-Launcher/blob/main/GameSelection/Program.cs#L18After installing BFME II, the desktop shortcut shows ValueNotFound
(see screenshot 2.) Then, when installing patch 109
, it throws an error (see screenshot 2.) When running executing the desktop shortcut, it throws an error (see screenshot 1.)
2023-09-23 11:06:23.563 +02:00 [INF] Found File: > BFME2.7z <, start to calculate
2023-09-23 11:06:23.571 +02:00 [ERR] File > BFME2.7z < does not exist, start downloading...
2023-09-23 11:06:23.573 +02:00 [INF] Start downloading file: > BFME2.7z <
2023-09-23 11:11:05.643 +02:00 [INF] Found File: > BFME2.7z <, start to calculate
2023-09-23 11:11:12.796 +02:00 [INF] File > BFME2.7z < has the correct value of > ADBEF7B60B6A7ADB50E78FDF5574678E <, start to extract file...
2023-09-23 11:12:20.803 +02:00 [INF] Found File: > LangPack_EN.7z <, start to calculate
2023-09-23 11:12:20.804 +02:00 [ERR] File > LangPack_EN.7z < does not exist, start downloading...
2023-09-23 11:12:20.806 +02:00 [INF] Start downloading file: > LangPack_EN.7z <
2023-09-23 11:13:01.742 +02:00 [INF] Found File: > LangPack_EN.7z <, start to calculate
2023-09-23 11:13:02.719 +02:00 [INF] File > LangPack_EN.7z < has the correct value of > F6F129322F7D43ECD49A49A3B0B51EC2 <, start to extract file...
2023-09-23 11:14:42.290 +02:00 [INF] Performing Repair Routine after clicking on button > Patch109.rar <
2023-09-23 11:14:42.613 +02:00 [INF] Found File: > BFME2.7z <, start to calculate
2023-09-23 11:14:49.595 +02:00 [INF] File > BFME2.7z < has the correct value of > ADBEF7B60B6A7ADB50E78FDF5574678E <, start to extract file...
2023-09-23 11:15:53.643 +02:00 [INF] Found File: > LangPack_EN.7z <, start to calculate
2023-09-23 11:15:54.615 +02:00 [INF] File > LangPack_EN.7z < has the correct value of > F6F129322F7D43ECD49A49A3B0B51EC2 <, start to extract file...
2023-09-23 11:16:03.212 +02:00 [INF] Found File: > Patch109.rar <, start to calculate
2023-09-23 11:16:03.212 +02:00 [ERR] File > Patch109.rar < does not exist, start downloading...
2023-09-23 11:16:03.214 +02:00 [INF] Start downloading file: > Patch109.rar <
2023-09-23 11:17:09.804 +02:00 [INF] Found File: > Patch109.rar <, start to calculate
2023-09-23 11:17:20.746 +02:00 [INF] File > Patch109.rar < has the correct value of > 2D90385DA6D076BF00C430FA2A079F96 <, start to extract file...
2023-09-23 11:26:15.665 +02:00 [INF] Performing Repair Routine after clicking on button > Patch 1.06 <
2023-09-23 11:26:16.091 +02:00 [INF] Found File: > BFME2.7z <, start to calculate
2023-09-23 11:26:23.764 +02:00 [INF] File > BFME2.7z < has the correct value of > ADBEF7B60B6A7ADB50E78FDF5574678E <, start to extract file...
2023-09-23 11:27:27.871 +02:00 [INF] Found File: > LangPack_EN.7z <, start to calculate
2023-09-23 11:27:28.915 +02:00 [INF] File > LangPack_EN.7z < has the correct value of > F6F129322F7D43ECD49A49A3B0B51EC2 <, start to extract file...
2023-09-23 08:59:05.318 +02:00 [INF] check if options.ini file for game > BFME1 < in path > C:\Users\zinohofmann\AppData\Roaming\My Battle for Middle-earth Files\Options.ini < exists...
2023-09-23 08:59:05.360 +02:00 [INF] Language key en_uk exists in json, continue
2023-09-23 09:01:57.932 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/MainGameFiles/BFME1/BFME1.7z >
2023-09-23 09:01:57.933 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\BFME1.7z >
2023-09-23 09:05:53.768 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/MainGameFiles/BFME1/LangPack_EN.7z >
2023-09-23 09:05:53.770 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\LangPack_EN.7z >
2023-09-23 09:06:30.389 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/PatchFiles/BFME1/Patch222Files/Patch222v35.7z >
2023-09-23 09:06:30.389 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\Patch222v35.7z >
2023-09-23 09:08:34.967 +02:00 [INF] check if options.ini file for game > BFME1 < in path > C:\Users\zinohofmann\AppData\Roaming\My Battle for Middle-earth Files\Options.ini < exists...
2023-09-23 09:08:34.985 +02:00 [INF] Language key en_uk exists in json, continue
2023-09-23 09:09:08.236 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/MainGameFiles/BFME1/BFME1.7z >
2023-09-23 09:09:08.237 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\BFME1.7z >
2023-09-23 09:10:03.146 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/MainGameFiles/BFME1/LangPack_EN.7z >
2023-09-23 09:10:03.147 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\LangPack_EN.7z >
2023-09-23 09:10:12.690 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/PatchFiles/BFME1/Patch222Files/Patch222v35.7z >
2023-09-23 09:10:12.690 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\Patch222v35.7z >
2023-09-23 09:10:34.954 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/PatchFiles/BFME1/Patch222Files/Patch222v35.7z >
2023-09-23 09:10:34.955 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\Patch222v35.7z >
2023-09-23 09:36:37.150 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/PatchFiles/BFME1/Patch106Files/Patch106.7z >
2023-09-23 09:36:37.151 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\Patch106.7z >
2023-09-23 09:36:49.493 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/PatchFiles/BFME1/Patch222Files/Patch222v35.7z >
2023-09-23 09:36:49.494 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\Patch222v35.7z >
2023-09-23 10:15:55.778 +02:00 [INF] check if options.ini file for game > BFME1 < in path > C:\Users\zinohofmann\AppData\Roaming\My Battle for Middle-earth Files\Options.ini < exists...
2023-09-23 10:15:55.798 +02:00 [INF] Language key en_uk exists in json, continue
2023-09-23 10:22:20.193 +02:00 [INF] check if options.ini file for game > BFME1 < in path > C:\Users\zinohofmann\AppData\Roaming\My Battle for Middle-earth Files\Options.ini < exists...
2023-09-23 10:22:20.226 +02:00 [INF] Language key en_uk exists in json, continue
2023-09-23 10:43:41.062 +02:00 [INF] check if options.ini file for game > BFME1 < in path > C:\Users\zinohofmann\AppData\Roaming\My Battle for Middle-earth Files\Options.ini < exists...
2023-09-23 10:43:41.097 +02:00 [INF] Language key en_uk exists in json, continue
2023-09-23 10:48:01.224 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/MainGameFiles/BFME1/BFME1.7z >
2023-09-23 10:48:01.224 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\BFME1.7z >
2023-09-23 10:48:56.596 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/MainGameFiles/BFME1/LangPack_EN.7z >
2023-09-23 10:48:56.597 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\LangPack_EN.7z >
2023-09-23 10:49:05.999 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/PatchFiles/BFME1/Patch222Files/Patch222v35.7z >
2023-09-23 10:49:05.999 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME1\Patch222v35.7z >
2023-09-23 11:05:23.354 +02:00 [INF] check if options.ini file for game > BFME2 < in path > C:\Users\zinohofmann\AppData\Roaming\My Battle for Middle-earth II Files\Options.ini < exists...
2023-09-23 11:05:23.363 +02:00 [INF] It does not exist, so we create it now...
2023-09-23 11:05:23.366 +02:00 [INF] sucessfully created options.ini file in < C:\Users\zinohofmann\AppData\Roaming\My Battle for Middle-earth II Files\Options.ini >
2023-09-23 11:05:23.385 +02:00 [INF] Language key en_uk exists in json, continue
2023-09-23 11:06:23.576 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/MainGameFiles/BFME2/BFME2.7z >
2023-09-23 11:06:23.576 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME2\BFME2.7z >
2023-09-23 11:12:20.806 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/MainGameFiles/BFME2/LangPack_EN.7z >
2023-09-23 11:12:20.806 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME2\LangPack_EN.7z >
2023-09-23 11:16:03.214 +02:00 [INF] Downloading from URI: < https://bfmelauncherfiles.ravonator.at/PatchFiles/BFME2/PatchSwitcherInstaller109.rar >
2023-09-23 11:16:03.214 +02:00 [INF] Downloading into file: < C:\Patch 2.22 Launcher\Downloads\BFME2\Patch109.rar >
Processor Apple Silicon 3.20 GHz (4 processors)
Installed RAM 16.0 GB
System type 64-bit operating system, ARM-based processor
Edition Windows 11 Pro
Version 22H2
Installed on 8/6/2023
OS build 22621.2283
Experience Windows Feature Experience Pack 1000.22662.1000.0
It requires a lot of manual work to do this after install or verification of files. Why not make it simple and reduce time each time when games are starting.
Apparently it's a known problem, but creating an issue for tracking
(Didn't test this myself, someone told me about it)
I'd expect to run the launcher and use the Windows built-in x86 emulator.
The app throws an error upon launching the installer:
Processor Apple Silicon 3.20 GHz (4 processors)
Installed RAM 16.0 GB
System type 64-bit operating system, ARM-based processor
Edition Windows 11 Pro
Version 22H2
Installed on 8/6/2023
OS build 22621.2134
Experience Windows Feature Experience Pack 1000.22659.1000.0
When the updater is finished all following windows that are popping up (e.g. game selection) are not focused and are going in the background.
Add a button on the launcher for the changelog
Make a method which get called by a button who does:
message.txt
the message was like Wsworld map something is in use
i.e. my fork of Loriborn's shows up on Google, but neither his nor this repo do: https://github.com/dginovker/BFMELauncher
Just steal BFME Launcher for BFME, BFME 2, ROTWK. Also known as 2.22 Launcher for Battle for Middle Earth I
and add the same tags
error deatils See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'C:\Users\PC\AppData\Roaming\My Battle for Middle-earth Files\Options.ini'.
File name: 'C:\Users\PC\AppData\Roaming\My Battle for Middle-earth Files\Options.ini'
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at Helper.OptionIniParser.ReadKey(String keyName)
at PatchLauncher.OptionsBFME1..ctor() in C:\GIT\Patch-2.22-Launcher\BFME1\OptionsBFME1.cs:line 209
at PatchLauncher.BFME1.BtnOptions_Click(Object sender, EventArgs e) in C:\GIT\Patch-2.22-Launcher\BFME1\BFME1.cs:line 286
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging **************
Adding a FPS tracker, with a button in the settings to turn it on and off
I think the title tells the whole story. When you open the bfme1 options the window is flickering for a short amount of time.
when you open options you not automatically select the game resolution
Those buttons should start Winform Game2 and Winform Game3 so to change the executing program to their respective executable (BFME2/ROTWK).
Some ppl (me included) have the thing that their main OS volume is kinda loud. There should be a thing to adjust the launcher volume inside the launcher instead of let the ppl open the volume mixer & let them adjust the system volume for the launcher.
Patch-2.22-Launcher/Helper/GameFileTools.cs
Line 102 in b84c94f
Can't really find any documentation on this "DownloadService", but through debugging I've noticed that on unstable internet connections, this utility will download a faulty file.
I've doublechecked the download from your Cloudflare R2 bucket and it seems to work flawlessly (as expected from Cloudflare), so it's not an error from that side.
One of my theories is that the Timeout of 5000ms is a bit too tight. One would expect that the download would fail outright when the Timeout is reached (which would be the case on unstable internet connections), but this doesn't seem to be the case, as there seems to be no error message anywhere and the download just continues.
I'd love to fix the issue myself but again, I haven't found any documentation on your "Downloader" util. If you could either show me Documentation (or even better, the sourcecode itself) I'd love to get at it.
it was installing the game when i was testing the previous error, and since i clicked on the Options button to see the error its stuck at Configurating
Unhandled exception. System.ArgumentException: Font 'Albertus Nova' cannot be found.
at System.Drawing.FontFamily.CreateFontFamily(String name, FontCollection fontCollection)
at System.Drawing.FontFamily..ctor(String name, FontCollection fontCollection)
at Helper.ConstStrings.UseFont(String font, Int32 size)
at PatchLauncher.BFME1..ctor() in C:\GIT\Patch-2.22-Launcher\BFME1\BFME1.cs:line 99
at PatchLauncher.Program.Main(String[] args) in C:\GIT\Patch-2.22-Launcher\BFME1\Program.cs:line 42
I see the font exists at the path, so I have no idea why this is causing a problem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.