Welcome to Close Combat Series
  Login or Register Home  ·  Downloads  ·  Forums  ·  Combat Camera  ·  Help  

  Survey
Do incapacitations count as a soldier's kills?

Yes
No



Results
Polls

Votes 1214
Comments: 1

  Shout Box!!

Only registered users can shout. Please login or create an account.

  Main Menu
Articles & News  
    Help
    Player`s News
    Site News
    Multiplayer
    Terrain Challenge
    Boot Camp
Community  
    Forums
    Downloads
    Combat Camera
    MOOXE @ Youtube
    Statistics
Members  
    Private Messages
    Your Account
    Logout

  Donations
Anonymous - $25.00
08/15/2022

Anonymous - $25.00
08/15/2022

Anonymous - $25.00
12/18/2021

Anonymous - $100.00
11/08/2021

Anonymous - $15.00
04/09/2021

Anonymous - $100.00
04/05/2021

Anonymous - $20.00
02/20/2021

Anonymous - $10.00
12/29/2020

Anonymous - $1.00
11/06/2020

ZAPPI4 - $20.00
10/10/2020

Find our site useful? Make a small donation to show your support.



Search for at
Close Combat Series Advanced Search


 Author
Message
 
mooxe

Rep: 221.7
votes: 25


PostPosted: Tue Apr 13, 2021 12:33 am Post subject: LSA GJS & Rhineland45 Installer Notes Reply with quote

Just posting these notes mostly for myself, or anyone who picks up the torch in the future. If I step away from this for a bit it seems skill fade takes it its toll.

Issue: The Steam autorun.exe renders mods incompatible with mod installers and ultimately Steam. The same problems were noted with TLD and WAR but have since been fixed. These versions do not need special considerations made for mod installations. LSA from Steam continues to require special considerations.

Solution: Using Inno Setup a customized installer can be created for each mod and future mods. The installer asks which shortcut you'd like installed, Steam or Matrix. In effect this is asking what version you have installed. Once the version is selected the installer performs appropriate install actions for the version selected.


Quote:
[Tasks]
Name: desktopicon; Description: Create a Steam &desktop icon; GroupDescription: Additional icons:
Name: desktopicon1; Description: Create a Matrix &desktop icon; GroupDescription: Additional icons:


These two tasks are presented to the user. They select an icon for the version they have installed. The two task names are desktopicon and desktopicon1. Addition icons: is the dialogue box text.


Quote:
[Icons]
Name: {group}\Steam {#name}; Filename: {app}\autorun.exe; Parameters: " /D {#moddir}"; WorkingDir: {app}; IconFilename: {app}\{#moddir}\mod.ico; IconIndex: 0
Name: {userdesktop}\Steam {#name}; Filename: {app}\autorun.exe; Tasks: desktopicon; Parameters: " /D {#moddir}"; WorkingDir: {app}; IconFilename: {app}\{#moddir}\mod.ico; IconIndex: 0

Name: {group}\Matrix {#name}; Filename: {app}\CCE.exe; Parameters: " /D {#moddir}"; WorkingDir: {app}; IconFilename: {app}\{#moddir}\mod.ico; IconIndex: 0
Name: {userdesktop}\Matrix {#name}; Filename: {app}\CCE.exe; Tasks: desktopicon1; Parameters: " /D {#moddir}"; WorkingDir: {app}; IconFilename: {app}\{#moddir}\mod.ico; IconIndex: 0


These are the icons the installer will make. Each is a different task denoted by the task name. Note Steam uses autorun.exe and Matrix uses CCE.exe.

Quote:
[Files]
Tasks: desktopicon; Source: edits\autorun.exe; DestDir: {app}\; Flags: ignoreversion overwritereadonly uninsneveruninstall


This is the file the installer will copy to the root LSA folder if the Steam icon is selected. It is tied to the task desktopicon. This file autorun.exe is just a renamed "cce.exe". The flag "uninsneveruninstall" is present to ensure the file is not removed if a mod is uninstalled. This is important if you have more than one mod installed. If the autorun.exe file is removed and you have a second mod installed, the second mod will no longer launch.

Remaining Issues: The Steam function "Verify integrity of files" will delete the modified autorun.exe file and replace it with the real autorun.exe. This will render any mods installed unable to launch. No known fix to this issue, only reinstalling the mod will fix this.

When asked to select where LSA is installed, first time Steam users will be asked to install the mod into the default Matrix games folder. Steam users will have to select where LSA is really installed.



LSA_Rhineland45_Master_Installer_with_Submod_modinstaller.zip
 Description:
Script

Download
 Filename:  LSA_Rhineland45_Master_Installer_with_Submod_modinstaller.zip
 Filesize:  2.47 KB
 Downloaded:  188 Time(s)


LSA_GJS_Master_Installer_modinstaller.zip
 Description:
Script

Download
 Filename:  LSA_GJS_Master_Installer_modinstaller.zip
 Filesize:  2.5 KB
 Downloaded:  190 Time(s)



Last edited by mooxe on Tue Apr 13, 2021 1:29 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
 
Tejszd

Rep: 133.6
votes: 19


PostPosted: Tue Apr 13, 2021 1:00 am Post subject: Re: LSA GJS & Rhineland45 Installer Notes Reply with quote

Here is a link to the Matrix forum LSA thread where I have asked for an update on getting the /D fix for LSA like they did for WAR/TLD already. Please add your comments to push them....

https://www.matrixgames.com/forums/tm.asp?m=4984462

Mooxe shouldn't have to put in all this effort trying to figure out how to get mods to install work around this issue....
Back to top
View user's profile Send private message
 
mooxe

Rep: 221.7
votes: 25


PostPosted: Tue Apr 13, 2021 1:13 am Post subject: Re: LSA GJS & Rhineland45 Installer Notes Reply with quote

Yeah would be nice if they fixed it. Things would go a lot smoother. But in the end I have learned more about scripting these installs.

Submod Notes... this example is from the Rhineland45 installer script which is attached to the first post of this thread. The modified ovm files are included as an optional install within the main Rhineland45 installer.

Quote:
[Components]
Name: "ovm1"; Description: "Standard OVM"; Flags: exclusive
Name: "ovm2"; Description: "Enhanced OVM with Contour Lines"; Flags: exclusive


The components section in the script gives the user options to install other files, in this case submods. Two components are named here, ovm1 and ovm2. ovm1 are the regular ovm files, ovm2 are modde ovms with contour lines. The exclusive tag means only one option can be selected.

Quote:
Source: edits\StandardOVM\*.*; DestDir: {app}\{#moddir}\MAPS; Components: ovm1
Source: edits\CustomOVM\*.*; DestDir: {app}\{#moddir}\MAPS; Components: ovm2


The source files of both sets of ovms are contained in the edits folder of the source material. After a user has selected which component (submod) they want, the script chooses the source from one of these two lines and copies them to the mods maps folder.
Back to top
View user's profile Send private message Visit poster's website
 
 
Post new topicReply to topic printer-friendly view Close Combat Series Forum Index -> Modding Workshop


 
   
 


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum




Forums ©





In August of 2004, Zappi, Homba, Bambam887, RedScorpion and MOOXE all pitched
in to create this Close Combat site. I would to thank all the people who have visited and
found this site to thier liking. I hope you had time to check out some of the great Close Combat
mods and our forums. I'd also like to thank all the members of our volunteer staff that have
helped over the years, and all our users that contributed to this site!