Skip to content

Commit

Permalink
v2 packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDawg committed Mar 7, 2022
1 parent 70592f2 commit c3ac145
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 25 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/InfinityAutoPackager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Infinity Auto Packager by AL|EN ([email protected])
# A tool that automatically generates Infinity Engine mod packages when you publish a release.

on:
release:
types: [published]
jobs:
InfinityAutoPackager:
runs-on: ubuntu-latest
steps:

- name: Initial setup
run: |
git lfs uninstall
git config --global core.autocrlf false
git config --global core.ignorecase true
- name: Clone repository using 'github.ref' from release
uses: actions/checkout@master

- name: Create Infinity Engine Mod Packages (.iemod and .zip)
uses: ALIENQuake/CreateIEModZipPackage@master
id: CreateIEModZipPackage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload iemod package to latest release
uses: svenstaro/upload-release-action@v1-release
if: github.ref != 'refs/heads/master'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.iemod
asset_name: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.iemod
tag: ${{ github.ref }}
overwrite: true
39 changes: 39 additions & 0 deletions cd_icpp/cd_icpp.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Never copy this from other mod, always use https://github.com/ALIENQuake/ProjectInfinity/wiki/Adding-metadata-for-mod
# Filename must be the same as tp2 basename, placed at the same folder where
# .tp2 file is located, use UTF8 (without BOM) encoding, everything is optional

# ini section header is required to avoid false detection
[Metadata]

# Full name of the mod, without the version number, without the list of supported games
Name = Infinity Collection Portrait Pack

# Author name or nick, don't use an email address
Author = Bioware/Black Isle/Beamdog; packaged by CamDawg

# Short description of the mod, main goals, features etc
Description = The Infinity Collection Portrait Pack is a collection of official portraits from all Infinity Engine games, packaged for use on any game. For example, this will allow you to use the original IWD2 portraits for a PC in a Siege of Dragonspear game, or vice-versa.

# Web address of mod readme file (filename is case-sensitive!) You can link to txt, md, html, pdf etc.
Readme = https://gibberlings3.github.io/Documentation/readmes/readme-cd_icpp.html, https://gibberlings3.github.io/Documentation/readmes/readme-cd_icpp-french.html

# Web address of mod dedicated forum or forum thread
Forum = https://www.gibberlings3.net/forums/forum/28-miscellaneous-released-mods/

# Web address of mod personal Homepage, no need to duplicate with a mod dedicated forum
Homepage = https://www.gibberlings3.net/gallery/album/37-infinity-collection-portrait-pack/

# if you use GitHub.com, simply use https://github.com/AccountOrOrgName/RepositoryName
# read more about Delta Updates https://github.com/ALIENQuake/ProjectInfinity/wiki/Delta-Updates-for-mods-hosted-at-Github
Download = https://github.com/Gibberlings3/Infinity_Collection_Portrait_Pack

# Type of LABELs used by the mod, read more here https://www.gibberlings3.net/forums/topic/32516-tutorial-what-is-label
LabelType = GloballyUnique

# Dynamic Install Order, use mod ID as tp2 name without file extension and `setup-` prefix

# This mod must be installed *before* the mods listed after the keyword
Before =

# This mod must be installed *after* the mods listed after the keyword
After = bg2fixpack, iwdfixpack
4 changes: 2 additions & 2 deletions cd_icpp/readme-cd_icpp-french.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h2>Installation</h2>
<p><strong>Installation sans surveillance</strong><br />
Un nouveau fichier de configuration, cd_icpp.txt, est désormais disponible dans le dossier du mod. Les joueurs peuvent utiliser ce fichier pour définir les paramètres des composants <strong>Romance Cheats</strong> et <strong>Minimum Stats Cheat</strong> avant l'installation. Cela permettra au mod d'être installé sans surveillance, par exemple dans le cadre d'une installation de Big World Setup. Si le fichier de configuration n'est pas utilisé ou n'indique aucune modification, le joueur sera invité à définir ces paramètres pendant l'installation de ces composants, comme auparavant.</p>
<p><strong>Note pour les jeux en Édition Améliorée (EE)</strong><br />
Les Éditions améliorées sont des jeux que le développeur fait encore évoluer, notamment par l'ajout de capacités supplémentaires destinées à la création de mods et par l'ajout de contenus. N'oubliez pas que chaque patch de mise à jour effacera les mods que vous avez installés ! Ce mod ne fera pas exception à la règle.<br>
Les Éditions améliorées sont des jeux que le développeur fait encore évoluer, notamment par l'ajout de capacités supplémentaires destinées à la création de mods et par l'ajout de contenus. N'oubliez pas que chaque patch de mise à jour effacera les mods que vous avez installés ! Ce mod ne fera pas exception à la règle.<br />
Si vous pouvez retarder la mise à jour du patch en plein milieu d'un partie moddée (si vous en avez la possibilité, notamment chez Beamdog et Good Old Games), n'oubliez pas que même après avoir réinstallé les mods sur un nouveau patch, vous ne pourrez peut-être pas continuer le jeu avec vos anciennes sauvegardes, en particulier à cause de noms de personnages, de lieux, etc, qui pourraient être incorrects. Pour y remédier, copiez tout le dossier du jeu dans un nouveau dossier dans lequel vous installerez vos mods, et qui ne sera pas modifié par les patches de mise à jour. Il est important que vous installiez le mod dans la version linguistique dans laquelle vous jouez. Sinon, les dialogues du mod ne s'afficheront pas et provoqueront des messages d'erreur.</p>
<p><strong>Windows</strong><br />
Infinity Collection Portrait Pack pour Windows est livré et installé avec WeiDU, et est diffusé sous forme d'archive auto-extractible. Pour l'installer, il suffit de double-cliquer sur l'archive et de suivre les instructions affichées à l'écran.</p>
Expand Down Expand Up @@ -164,7 +164,7 @@ <h2>Historique des versions</h2>
<div class="section">
<p>Note du traducteur : l'historique n'est volontairement pas entièrement traduit afin de faciliter la mise à jour continue du mod.</p>

<p><strong>Version 2 - March nn, 2022</strong></p>
<p><strong>Version 2 - March 7, 2022</strong></p>
<ul>
<li>Added French translation (Gwendolyne)</li>
<li>Readme: fixed typos and out-dated links</li>
Expand Down
36 changes: 16 additions & 20 deletions cd_icpp/readme-cd_icpp.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,15 @@ <h1>Infinity Collection Portrait Pack</h1>
<p><strong>Version 2</strong><br />
<strong>Languages:</strong> English, French<br />
<strong>Platforms: </strong>Windows, macOS, Linux<br />
<strong>GitHub: </strong><a href="https://github.com/Gibberlings3/Infinity_Collection_Portrait_Pack">Gibberlings3/Infinity_Collection_Portrait_Pack</a>
</p>
<strong>GitHub: </strong><a href="https://github.com/Gibberlings3/Infinity_Collection_Portrait_Pack">Gibberlings3/Infinity_Collection_Portrait_Pack</a> </p>
</div>
<div class="ribbon_rectangle_h2"><a id="Overview" name="Overview"></a>
<h2>Overview</h2>
</div>
<div class="ribbon_triangle_h2-l"></div>
<div class="ribbon_triangle_h2-r"></div>
<div class="section">
<p>The Infinity Collection Portrait Pack is a collection of official portraits from all Infinity Engine games, packaged for use on any game. For example, this will allow you to use the original <abbr title="Icewind Dale II">IWD2</abbr> portraits for a PC in a Siege of Dragonspear game, or vice-versa.</p>
<p>The Infinity Collection Portrait Pack is a collection of official portraits from all Infinity Engine games, packaged for use on any game. For example, this will allow you to use the original <abbr title="Icewind Dale II">IWD2</abbr> portraits for a PC in a Siege of Dragonspear game, or vice-versa.</p>
</div>
<div class="ribbon_rectangle_h2"><a id="Compatibility" name="Compatibility"></a>
<h2>Compatibility</h2>
Expand All @@ -53,7 +52,7 @@ <h2>Compatibility</h2>
<div class="section">
<p>This mod will allow these portraits to be used as player portraits on any Infinity Engine game (including Enhanced Editions) except the original and Enhanced Edition of Planescape: Torment.</p>
<p>There are no known incompatibilities. The Portrait Pack simply copies the portraits into the appropriate portraits directory for your game. It can be installed at any time. Assign the appropriate portraits to your PC through the character generation screen.</p>
</div>
</div>
<div class="ribbon_rectangle_h2"><a id="Bugs" name="Bugs"></a>
<h2>Bug Reporting</h2>
</div>
Expand All @@ -68,27 +67,24 @@ <h2>Installation</h2>
<div class="ribbon_triangle_h2-l"></div>
<div class="ribbon_triangle_h2-r"></div>
<div class="section">
<p>First time installing a mod? Check out G3's comprehensive tutorial: <a href="https://www.gibberlings3.net/forums/topic/33164-a-new-player&rsquo;s-guide-to-installing-and-playing-mods/">A New Player&rsquo;s Guide to Installing and Playing Mods</a>.</p>
<p><strong>Special Note for Siege of Dragonspear from Steam/GOG<br />
</strong>Good Old Games (GOG) and Steam both package the additional content for Siege of Dragonspear in a method that WeiDU, the tool used to install this mod, cannot access. You must run a program called <a href="https://forums.beamdog.com/discussion/50441/modmerge-merge-your-steam-gog-zip-based-dlc-into-something-weidu-nearinfinity-dltcep-can-use/p1">Modmerge</a> on your SoD installation before you can install this or any other WeiDU-based mod.</p>
<p><strong>Unattended Installation</strong><br />
A new configuration file, cd_icpp.txt, is now available in the mod's folder. Players can use this file to set inputs for the <strong>Romance Cheats</strong> and <strong>Minimum Stats Cheat</strong> components prior to installation. Doing so will allow the mod to be installed unattended, e.g. as part of a Big World Setup install. If the configuration file is not utilized, or indicates no changes, the player will be prompted during installation of these components, just like before.</p>
</strong>Good Old Games (GOG) and Steam both package the additional content for Siege of Dragonspear in a method that WeiDU, the tool used to install this mod, cannot access. You must run a program called <a href="https://github.com/Argent77/A7-DlcMerger/releases">DLC Merger</a> on your SoD installation before you can install this or any other WeiDU-based mod.</p>
<p><strong>Enhanced Editions Note</strong><br />
The Enhanced Editions are actively supported games. Please note that every patch update will wipe your current mod setup! If in the middle of a modded game you might want to delay the patch update (if possible) as even after reinstalling the mods, you might not be able to continue with your old savegames. Alternatively, copy the whole game's folder into a new one that can be modded and will stay untouched by game patches. For BG:EE it is important that you install the mod to the language version you are playing the game in. Otherwise, the dialogues of the mod will not show but give error messages.</p>
The Enhanced Editions are actively supported games. Please note that every patch update will wipe your current mod setup! If in the middle of a modded game you might want to delay the patch update (if possible) as even after reinstalling the mods, you might not be able to continue with your old savegames. Alternatively, copy the whole game's folder into a new one that can be modded and will stay untouched by game patches. It is important that you install the mod to the language version you are playing the game in. Otherwise, the dialogues of the mod will not show but give error messages.</p>
<p><strong>Windows</strong><br />
Infinity Collection Portrait Pack for Windows is distributed as a self-extracting archive and includes a WeiDU installer. To install, simply double-click the archive and follow the instructions on screen.</p>
Infinity Collection Portrait Pack for Windows is distributed as a self-extracting archive and includes a WeiDU installer. To install, simply double-click the archive and follow the instructions on screen.</p>
<p>Alternatively, the files can be extracted into your game directory using <a href="https://www.7-zip.org/download.html">7zip</a> or <a href="https://www.rarlab.com/download.htm">WinRAR</a>. When properly extracted, your game directory will contain <strong>setup-cd_icpp.exe</strong> and the folder <strong>cd_icpp</strong>. To install, double-click <strong>setup-cd_icpp.exe</strong> and follow the instructions on screen.</p>
<p>You can run <strong>setup-cd_icpp.exe</strong> in your game folder to reinstall, uninstall or otherwise change components.</p>
<p><strong>macOS</strong><br />
The Infinity Collection Portrait Pack for macOS is distributed as a compressed tarball and includes a WeiDU installer.</p>
Infinity Collection Portrait Pack for macOS is distributed as a compressed tarball and includes a WeiDU installer.</p>
<p>First, extract the files from the tarball into your game directory. When properly extracted, your game directory will contain <strong>setup-cd_icpp</strong>, <strong>setup-cd_icpp.command</strong>, and the folder <strong>cd_icpp</strong>. To install, double-click <strong>setup-cd_icpp.command</strong> and follow the instructions on screen.</p>
<p>You can run <strong>setup-cd_icpp.command</strong> in your game folder to reinstall, uninstall or otherwise change components.</p>
<p><strong>Linux</strong><br />
The Infinity Collection Portrait Pack for Linux is distributed as a compressed tarball and does not include a WeiDU installer.</p>
<p>Extract the contents of the mod to the folder of the game you wish to modify.</p>
<p>Download the latest version of WeiDU for Linux from <a href="https://www.weidu.org/%7Ethebigg/">WeiDU.org</a> and copy WeiDU and WeInstall to /usr/bin. Following that, open a terminal, cd to your game installation directory, run tolower and answer Y to both queries. You can avoid running the second option (linux.ini) if you've already ran it once in the same directory. To save time, the archive is already tolowered, so there's no need to run the first option (lowercasing file names) either if you've extracted only this mod since the last time you lowercased file names. If you're unsure, running tolower and choosing both options is the safe bet.</p>
<p>To install, run WeInstall cd_icpp in your game folder. Then run wine BGMain.exe and start playing.</p>
Infinity Collection Portrait Pack for Linux is distributed as a compressed tarball and does not include a WeiDU installer. Linux users will need to do a one-time install of <abbr title="Weimer Dialogue Utility">WeiDU</abbr> (and a few other adjustments) as described in <a href="https://moebiusproject.gitlab.io/mods_on_linux" rel="external nofollow noopener" target="_blank">this great writeup</a>.</p>
<p>To install, run 'WeInstall cd_icpp in your game folder.</p>
<p><strong> Note for Complete Uninstallation</strong><br />
In addition to the methods above for removing individual components, you can completely uninstall the mod using setup-cd_icpp --uninstall at the command line to remove all components without wading through prompts.</p>
In addition to the methods above for removing individual components, you can completely uninstall the mod using setup-cd_icpp --uninstall at the command line to remove all components without wading through prompts. </p>
</div>
<div class="ribbon_rectangle_h2"><a id="Contents" name="Contents"></a>
<h2>Contents</h2>
Expand All @@ -103,7 +99,7 @@ <h2>Contents</h2>
<li><strong>Baldur's Gate II:</strong> This includes all portraits from the original Baldur's Gate II (both NPC and PC portraits) including the Throne of Bhaal expansion, plus the new NPCs and portraits from the Enhanced Edition.</li>
<li><strong>Icewind Dale: </strong>Since Icewind Dale II included all Icewind Dale portraits by default, these portraits are presented as a binary option. You can choose to install only the portraits from Icewind Dale (including Enhanced Edition portraits) OR the portraits from Icewind Dale II since it includes the Icewind Dale portraits. Essentially it's a choice of IWD vs. IWD &amp; IWD2.</li>
</ul>
<p>There is overlap between Baldur's Gate and Baldur's Gate II options, but each has some exclusive portraits. This is why they are presented as separate options instead of the way that the IWD portraits are presented.</p>
<p>There is overlap between Baldur's Gate and Baldur's Gate II options, but each has some exclusive portraits. This is why they are presented as separate options instead of the way that the IWD portraits are presented.</p>
</div>
<div class="ribbon_rectangle_h2"><a id="Contact" name="Contact"></a>
<h2>Contact Information</h2>
Expand All @@ -120,7 +116,7 @@ <h2>Thanks and Acknowledgements</h2>
<div class="ribbon_triangle_h2-r"></div>
<div class="section">
<p>The idea for this mod came about during a project to revamp and modernize other G3 portrait packs and make them available as player portraits for all games. It was a pretty straightforward process as the code was more or less already written, and all that was needed was some extraction and Photoshop work.</p>
<p><strong>Tools Used in Creation</strong></p>
<p><strong>Tools Used in Creation</strong></p>
<ul>
<li><a href="https://weidu.org/">WeiDU</a> by Wes Weimer, the bigg, and Wisp</li>
<li><a href="https://github.com/Argent77/NearInfinity/releases">Near Infinity</a> by Jon Olav Hauglid, FredSRichardson, and Argent77</li>
Expand Down Expand Up @@ -151,15 +147,15 @@ <h2>Version History</h2>
<div class="ribbon_triangle_h2-l"></div>
<div class="ribbon_triangle_h2-r"></div>
<div class="section">
<p><strong>Version 2 - March nn, 2022</strong></p>
<p><strong>Version 2 - March 7, 2022</strong></p>
<ul>
<li>Added French translation (Gwendolyne)</li>
<li>Readme: fixed typos and out-dated links</li>
</ul>

<p><strong>Version 1 - January 1, 2019</strong></p>
<ul>
<li>Initial release</li></ul>
<li>Initial release</li>
</ul>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit c3ac145

Please sign in to comment.