-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Gitjas/master
update to v23
- Loading branch information
Showing
43 changed files
with
2,732 additions
and
1,876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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 | ||
|
||
- name: Upload zip 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 }}.zip | ||
asset_name: ${{ steps.CreateIEModZipPackage.outputs.PackageBaseName }}.zip | ||
tag: ${{ github.ref }} | ||
overwrite: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* argent77's function for fetching journal strrefs. With many thanks! */ | ||
|
||
/* To be used later in the form: | ||
|
||
COPY_EXISTING ~husam.dlg~ ~override~ | ||
// get journal entry from first response associated with dialogue state 6 | ||
LPF READ_JOURNAL_STRREF | ||
INT_VAR | ||
state = 6 | ||
// stateResponse = 1 //As an example: This would be reply option #2 from top | ||
RET | ||
strref | ||
END | ||
|
||
SET myUniqueVar = strref //adapt "myUniqueVar" as necessary | ||
|
||
// just for debugging purposes: fetch journal text from strref and output it in console | ||
GET_STRREF strref journalText | ||
PATCH_PRINT ~Journal entry #%strref%: %journalText%~ | ||
BUT_ONLY | ||
|
||
*/ | ||
|
||
DEFINE_PATCH_FUNCTION READ_JOURNAL_STRREF | ||
INT_VAR | ||
// either use these two parameters if response index should be determined from a state index | ||
state = "-1" // state index | ||
stateResponse = 0 // relative response index (e.g. 0 for first response associated with the state, 1 for second response, and so on...) | ||
|
||
// or use this parameter instead to specify response index directly | ||
response = "-1" // (absolute) response index | ||
|
||
RET | ||
strref // returned string reference, or -1 if not available | ||
BEGIN | ||
SET strref = "-1" | ||
|
||
// determine response index from dialogue state if specified | ||
PATCH_IF (state >= 0) BEGIN | ||
READ_LONG 0x08 numStates | ||
PATCH_IF (state < numStates) BEGIN | ||
READ_LONG 0x0c ofsStates | ||
SET ofs = ofsStates + (state * 0x10) // calculate offset to specified state | ||
READ_LONG (ofs + 4) firstResponse | ||
READ_LONG (ofs + 8) numStateResponses | ||
PATCH_IF (stateResponse >= 0 && stateResponse < numStateResponses) BEGIN | ||
SET response = firstResponse + stateResponse // calculate absolute response index (processed below) | ||
END | ||
END | ||
END | ||
|
||
// deal with dialogue response index directly | ||
PATCH_IF (response >= 0) BEGIN | ||
READ_LONG 0x10 numResponses | ||
PATCH_IF (response < numResponses) BEGIN | ||
READ_LONG 0x14 ofsResponses | ||
SET ofs = ofsResponses + (response * 0x20) | ||
READ_LONG ofs flags | ||
PATCH_IF (flags & BIT4) BEGIN // response flags bit 4 indicates available journal entry | ||
READ_LONG (ofs + 8) strref | ||
END | ||
END | ||
END | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.