mooxe
Rep: 218.5   votes: 25
|
Posted: Sat Apr 10, 2021 3:16 pm Post subject: Plugin Modernization Project |
|
|
Plugin Modernization Project
Background: Plugins require many steps to install. Maps and data files were separated due to bandwidth and CPU issues 20 years ago. Todays bandwidth and CPUs eliminate these old problems and create an opportunity to modernize some plugins. The advantages of having an all inclusive plugin are straight forward. Less steps to install a plugin. Which means an easier integration of new players into mods. Other issues have also come up with modern computer creating even more steps.
Known CC5 Mod Issues:
1. Maps and data files are separated creating extra step to unzip and place files;
2. The default install path is now \Program Files (x86) vice \Program Files so a registry change is required;
3. Some mods required the Videos folder, which is not created by the CC5 main installer;
4. KG Müller operation, the accented u creates problem on some Windows versions; and
5. Config Manager requires the "run as administrator" option checked to modify files in the \Program Files (x86) folder.
Solutions:
1. Maps and data files can be combined. Install and uninstal scripts modified to copy and remove all maps. One step reduced.
2. A registry fix can be exported and easily run by users. This constitutes an extra step and can be further reduced.
3. This folder can be created with a batch file. This constitutes an extra step and can be further reduced and combined with solution #2 in a batch file.
4. KG Müller can be tackled two ways. Include the renaming with the batch file for solutions #2 & #3, or rename it with the plugin scripts using ? wild card.
5. Possibility to make Config Manger into an installer with a script giving admin rights to the shortcut.
Further Modernization:
6. Problems 2 thru 5 can be consolidated with the CC5 5.01a patch.
7. Do I make a plugin, an installer?
Progress as of 11 April 2021
The CC5 Stalingrad plugin has been republished with solutions #1, #2 and #4. Installation guide updated.
Progress as of 12 April 2021
GJS plugin consolidated with solution #1. Not published.
Progress as of 13 April 2021
All in one installer beta testing. New all in one installer testing has resulted in;
#2 Registry error fixed by installer
#3 Videos folder created by installer
#4 KG Muller fixed, KG Müller left in place?
#5 Config Manager installed, desktop shortcut link has admin rights
#6 readme.txt successfully uninstalled, repeat this script for all 5.01a files
Progress as of 14 April 2021
CC5 Patch 5.01a and issues #2 thru #6 consolidated and working in one mega patch.
Progress as of 15 April 2021
GOG CC5 comes pre-patched to 5.01a and has KG Muller fixed. Tested with Modernization patch and works fine.
CC5 Stalingrad plugin added to installer. Installer extracts PLN file into C:/Config Manager/Plugins (folder read from registry entry patch entered). No uninstall method from control panel, only from config manager.
CC5 patch 5.01a Modernization Patch complete and published
Progress as of 16 April 2021
CC5 GJS plugin scripts completed. Next step to make them into an installer and test.
GJS completed, install guide requires updating.
Utah is next, I need some easy mods for a break.
17 Apr 2021
Utah completed. Starting on Meuse.
Meuse completed.
Afrika completed.
Install guides updated.
18 Apr 2021
SAS and WW complete.
Add submods for Afrika.
22 Apr 2021
21 CC5 mods left to go.
Demo video for each mod?
25 Apr 2021
Add ggervox.sfx to Kharkov
Fix D-Day Index.mpi - its in chinese
|
Last edited by mooxe on Sat Mar 26, 2022 3:15 pm; edited 26 times in total |
|
Back to top |
|
|
|
Tejszd
Rep: 133.6   votes: 19
|
Posted: Sat Apr 10, 2021 3:28 pm Post subject: Re: Plugin Modernization Project |
|
|
For the Atomic releases the combining the plugins makes sense.
For the Matrix releases do you change to the installer since they all support the/D startup option?
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sat Apr 10, 2021 3:46 pm Post subject: Re: Plugin Modernization Project |
|
|
COI will need combining. I think Schrecken made all those plugins way back in the day. The Plugin is an EXE file that unzips a PLN file to the plugins folder. The maps I believe have to be manually installed.
COI may be a bit different though, doesn't it handle the maps folder differently than all other versions?
WAR/TLD/LSA section will have any existing plugins converted to installer. I am not even sure there are any to do.
PITF/GTC using installers.
RTB/CCM/CCMT are using plugins for what little is available and do not need any modernization.
Looking at the CC5 Stalingrad install.txt. Why are we copying the classic CC5 BTDs to another folder? Can't all map associated files co-exist in one folder as long as they are not named the same and the index.mpi reflects the mod installed?
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sat Apr 10, 2021 9:15 pm Post subject: Re: Plugin Modernization Project |
|
|
KG Müller is really messing this all up...
|
|
|
Back to top |
|
|
Tejszd
Rep: 133.6   votes: 19
|
Posted: Sat Apr 10, 2021 11:56 pm Post subject: Re: Plugin Modernization Project |
|
|
COI for maps is different in that the mod maps can be left in the COI maps folder and will appear in the editor for use for single battles, ops and campaigns.
A problem can occur if the maps require/use a different elements file than the standard COI elements file.
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sun Apr 11, 2021 2:48 pm Post subject: Re: Plugin Modernization Project |
|
|
I think I cracked the KG Müller problem to make plugins compatible with Atomic/GOG versions.
Back in 2018 GOG made a hotfix for their version of CC5 renaming KG Müller to KG Muller. Thereby rendering any plugin that moves KG Müller broken for GOG users.
Zeppo added some wildcards to Config Manager back in the day. The answer was simple and obvious the whole time...
copy $CC\Data\Ops\KG M?ller $ORG\KG Muller
The question mark is the wild card. It will find either the Müller or Muller and rename it to Muller. Now GOG users can use plugins with this fix.
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sun Apr 11, 2021 3:03 pm Post subject: Re: Plugin Modernization Project |
|
|
Here is the first mod complete as part of this little project...
http://www.closecombatseries.net/CCS/modules.php?name=Downloads&op=getit&lid=3324
Changes;
Data and maps included in one file;
KG Müller fix for GOG compatibility; and
Upon uninstall CC5 classic returned to original state (all mod files removed).
|
Last edited by mooxe on Sun Apr 11, 2021 6:39 pm; edited 1 time in total |
|
Back to top |
|
|
ScnelleMeyer
Rep: 177.9   votes: 16
|
Posted: Sun Apr 11, 2021 5:36 pm Post subject: Re: Plugin Modernization Project |
|
|
Wow Mooxe! Great work on fixing the compability issue for the GOG owners!
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sun Apr 11, 2021 7:35 pm Post subject: Re: Plugin Modernization Project |
|
|
Thanks, wish I could knock out a few more of the manual steps people have to take. The videos folder problem is one step that will just be ignored. GOG and Atomic versions require some registry editing. So have also included a registry edit you just have to download and run. This was also simple, you just have to use the export function from regedit.exe. These changes, so many years late....
GJS is next.
|
|
|
Back to top |
|
|
dj
Rep: 154.5   votes: 9
|
Posted: Sun Apr 11, 2021 10:06 pm Post subject: Re: Plugin Modernization Project |
|
|
Thanks Mooxe absolutely this makes sense. Just wish there was easier way to use .exe for mods. And then instead of case sensitive registry like the Mueller issue bypass that. Like the dreaded video / cd / map not found error crash. GOG really sucks though super buggy and mouse ghosting. Matrix rewrites or original Atomic versions much more stable.
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Mon Apr 12, 2021 12:32 am Post subject: Re: Plugin Modernization Project |
|
|
BATCH file that creates a videos folder and fixes registry "InstalledTo" path. Now if only I can just get this into the 5.01a patch to make it all in one....
Code:
|
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if not exist "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy\Videos" mkdir "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy\Videos"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mattel Interactive\Close Combat\5.00" /v "InstalledTo" /T REG_SZ /d "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy" /f
|
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Wed Apr 14, 2021 1:36 am Post subject: Re: Plugin Modernization Project |
|
|
mooxe wrote (View Post):
|
BATCH file that creates a videos folder and fixes registry "InstalledTo" path. Now if only I can just get this into the 5.01a patch to make it all in one....
Code:
|
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if not exist "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy\Videos" mkdir "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy\Videos"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mattel Interactive\Close Combat\5.00" /v "InstalledTo" /T REG_SZ /d "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy" /f
|
|
No longer need this batch file script. Made a ton of progress with the installer.
Plan is to re-do the 5.01a patch to include KG Muller fix, Video folder fix, Config Manager install with admin rights on shortcut, registry fix for GOG "installedto" location and another registry fix for the Atomic version "installedto" location.
This will knock out at least three steps to a plugin install, fix one problem (KG Muller), add ability to have mod intro videos in the plugin and have it all combined with the 5.01a patch.
End result for new way of installing a mod...
1. Install Game
2. Install Patch
3. Unzip Mod
4. Install Mod
Old way of doing it...
1. Install Game
2. Install Patch
3. Unzip Config Manager
4. Add admin rights to the Config Manager Shortcut
5. Fix registry "installedto" entry
6. Unzip Plugin
7. Unzip Maps
8. Rename KG Müller
9. Install Mod
10. Create videos folder
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Thu Apr 15, 2021 1:02 am Post subject: Re: Plugin Modernization Project |
|
|
New CC5 patch includes the following fixes;
· CC5 Patch v5.01a
· Registry fix changing Computer/HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Mattel Interactive/Close Combat/5.00. location to C:\Program Files (x86)\SSI\Close Combat Invasion Normandy or your GOG location.
· Videos folder Fix - Folder created at \Close Combat Invasion Normandy\Videos. This folder is required by some mods. With the folder created plugins can now include modded intro videos that were included separately before.
· KG Müller Fix - The "ü" is causing problems for some Windows users. A new file "KG Muller" is added, "KG Müller" is deleted. This change will help mods install error free as well.
· Config Manager v1.3 - Config Manager will install to C:\Config Manager, a shortcut with admin rights will be added to your desktop named "CC5 Config Manager". If you already had Config Manager installed elsewhere, you can delete C:\Config Manager safely.
· Registry entry added for Config Manager at Computer/HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Close Combat/Config Manager for plugin installers to recognize Config Manager's folder
If anyone can beta test it please do. Especially anyone not on Windows10 or operating Windows in any language other than English.
Description: |
BETA test of 5.01a and Modernization patches. |
|
 Download |
Filename: |
BETA_CC5_Patch_v5.01a.zip |
Filesize: |
1.02 MB |
Downloaded: |
236 Time(s) |
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Thu Apr 15, 2021 10:18 pm Post subject: Re: Plugin Modernization Project |
|
|
Good Old Games CC5 comes with the 5.01a patch already installed, and the KG Muller problem fixed.
Installing the new 5.01a over top has no negative effect.
Since GOG CC5 does not make a proper registry entry, a user has to select the install folder when running the new patch.
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sat Apr 17, 2021 1:14 am Post subject: Re: Plugin Modernization Project |
|
|
CC5 Gold Juno Sword plugin updated. Maps and data now all inclusive with installer.
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sat Apr 17, 2021 4:53 pm Post subject: Re: Plugin Modernization Project |
|
|
Utah completed.
Install guide added.
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sat Apr 17, 2021 9:17 pm Post subject: Re: Plugin Modernization Project |
|
|
Meuse 1940 completed.
Plugin is now all inclusive and comes with an installer. Install guide updated.
|
|
|
Back to top |
|
|
mooxe
Rep: 218.5   votes: 25
|
Posted: Sat Apr 17, 2021 11:57 pm Post subject: Re: Plugin Modernization Project |
|
|
Afrika 40-41 completed.
All inclusive plugin. Install guide updated.
|
|
|
Back to top |
|
|
KG_Loki
Rep: 25.4  
|
Posted: Sun Apr 18, 2021 12:15 pm Post subject: Re: Plugin Modernization Project |
|
|
Works like a Dream, downloaded Meuse and Stalingrad they both work excellent!
|
|
|
Back to top |
|
|