Compare commits
12 commits
release/4.
...
release
Author | SHA1 | Date | |
---|---|---|---|
168a4dd30b | |||
bb0f4608bf | |||
35120ad6b8 | |||
a865d1b356 | |||
211812427b | |||
|
75e8388ba1 | ||
8b189fb658 | |||
4cbff59b33 | |||
5dfd9f18b4 | |||
2ff49dd98a | |||
bbd7f443d3 | |||
96bea9a127 |
12 changed files with 97 additions and 30 deletions
33
.forgejo/workflows/create-release.yaml
Normal file
33
.forgejo/workflows/create-release.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Create release on tag push
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'release/*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Create mod release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get release body
|
||||||
|
run: |
|
||||||
|
echo "release_body=$(cat CHANGELOG.md)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '>=1.20.1'
|
||||||
|
|
||||||
|
- name: Draft release
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
body: ${{ env.release_body }}
|
||||||
|
draft: true
|
||||||
|
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
2
.github/FUNDING.yml
vendored
Normal file
2
.github/FUNDING.yml
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
github: alterNERDtive
|
||||||
|
ko_fi: alterNERDtive
|
12
.github/dependabot.yaml
vendored
Normal file
12
.github/dependabot.yaml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "nuget"
|
||||||
|
directory: "/"
|
||||||
|
target-branch: "develop"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
target-branch: "develop"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
2
.github/workflows/create-release.yaml
vendored
2
.github/workflows/create-release.yaml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup MSBuild
|
- name: Setup MSBuild
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
|
21
.github/workflows/gh-pages.yaml
vendored
Normal file
21
.github/workflows/gh-pages.yaml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
name: Deploy github pages on tag push
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'release/*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Deploy documentation
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout source code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Deploy docs
|
||||||
|
uses: mhausenblas/mkdocs-deploy-gh-pages@nomaterial
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
REQUIREMENTS: requirements.txt
|
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,4 +1,16 @@
|
||||||
# 4.2.2 (2022-05-31)
|
# 5.0.0 (2024-05-03)
|
||||||
|
|
||||||
|
## Removed
|
||||||
|
|
||||||
|
* Will no longer copy Odyssey (live) binds to Horizons (legacy) binds. I doubt
|
||||||
|
anyone still plays the latter; if you do, don’t upgrade the pulgin.
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
|
||||||
|
* Will now find binds files again for the latest Elite update which changed
|
||||||
|
the format to `<name>.4.1.binds`.
|
||||||
|
|
||||||
|
# 4.2.2 (2022-05-31)
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
|
|
|
@ -25,3 +25,6 @@ issue](https://github.com/alterNERDtive/bindED/issues/new). Thanks! :)
|
||||||
|
|
||||||
You can also [say “Hi” on Discord](https://discord.gg/YeXh2s5UC6) if that is
|
You can also [say “Hi” on Discord](https://discord.gg/YeXh2s5UC6) if that is
|
||||||
your thing.
|
your thing.
|
||||||
|
|
||||||
|
[![GitHub Sponsors](https://img.shields.io/github/sponsors/alterNERDtive?style=for-the-badge)](https://github.com/sponsors/alterNERDtive)
|
||||||
|
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S1DLYBS)
|
||||||
|
|
BIN
VoiceAttack.exe
Normal file
BIN
VoiceAttack.exe
Normal file
Binary file not shown.
19
bindED.cs
19
bindED.cs
|
@ -1,5 +1,5 @@
|
||||||
// <copyright file="bindED.cs" company="alterNERDtive">
|
// <copyright file="bindED.cs" company="alterNERDtive">
|
||||||
// Copyright 2020–2022 alterNERDtive.
|
// Copyright 2020–2024 alterNERDtive.
|
||||||
//
|
//
|
||||||
// This file is part of bindED VoiceAttack plugin.
|
// This file is part of bindED VoiceAttack plugin.
|
||||||
//
|
//
|
||||||
|
@ -38,7 +38,7 @@ namespace bindEDplugin
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "historic, grandfathered in")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "historic, grandfathered in")]
|
||||||
public class bindEDPlugin
|
public class bindEDPlugin
|
||||||
{
|
{
|
||||||
private static readonly Version VERSION = new ("4.2.2");
|
private static readonly Version VERSION = new ("5.0.1");
|
||||||
|
|
||||||
private static readonly string BindingsDir = Path.Combine(
|
private static readonly string BindingsDir = Path.Combine(
|
||||||
Environment.GetFolderPath(
|
Environment.GetFolderPath(
|
||||||
|
@ -133,7 +133,7 @@ namespace bindEDplugin
|
||||||
/// The plugin’s description, as required by the VoiceAttack plugin API.
|
/// The plugin’s description, as required by the VoiceAttack plugin API.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>The description.</returns>
|
/// <returns>The description.</returns>
|
||||||
public static string VA_DisplayInfo() => "bindED Plugin\r\n\r\n2016 VoiceAttack.com\r\n2020–2021 alterNERDtive";
|
public static string VA_DisplayInfo() => "bindED Plugin\r\n\r\n2016 VoiceAttack.com\r\n2020–2024 alterNERDtive";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The plugin’s GUID, as required by the VoiceAttack plugin API.
|
/// The plugin’s GUID, as required by the VoiceAttack plugin API.
|
||||||
|
@ -402,7 +402,7 @@ namespace bindEDplugin
|
||||||
{
|
{
|
||||||
DirectoryInfo dirInfo = new (BindingsDir);
|
DirectoryInfo dirInfo = new (BindingsDir);
|
||||||
FileInfo[] bindFiles = dirInfo.GetFiles()
|
FileInfo[] bindFiles = dirInfo.GetFiles()
|
||||||
.Where(i => Regex.Match(i.Name, $@"^{Regex.Escape(preset)}\.[34]\.0\.binds$").Success)
|
.Where(i => Regex.Match(i.Name, $@"^{Regex.Escape(preset)}\.4\.\d\.binds$").Success)
|
||||||
.OrderByDescending(p => p.Name).ToArray();
|
.OrderByDescending(p => p.Name).ToArray();
|
||||||
|
|
||||||
if (bindFiles.Count() == 0)
|
if (bindFiles.Count() == 0)
|
||||||
|
@ -503,20 +503,11 @@ namespace bindEDplugin
|
||||||
Preset = null;
|
Preset = null;
|
||||||
LoadBinds(Binds);
|
LoadBinds(Binds);
|
||||||
}
|
}
|
||||||
else if (Regex.Match(name, $@"{Preset}(\.[34]\.0)?\.binds$").Success)
|
else if (Regex.Match(name, $@"^{Regex.Escape(preset)}\.4\.\d\.binds$").Success)
|
||||||
{
|
{
|
||||||
LogInfo($"Bindings file '{name}' has changed, reloading …");
|
LogInfo($"Bindings file '{name}' has changed, reloading …");
|
||||||
Binds = null;
|
Binds = null;
|
||||||
LoadBinds(Binds);
|
LoadBinds(Binds);
|
||||||
|
|
||||||
// copy Odyssey -> Horizons
|
|
||||||
if (name == $"{Preset}.4.0.binds" && !VA!.GetBoolean("bindED.disableHorizonsSync#"))
|
|
||||||
{
|
|
||||||
File.WriteAllText(
|
|
||||||
Path.Combine(BindingsDir, $"{Preset}.3.0.binds"),
|
|
||||||
File.ReadAllText(Path.Combine(BindingsDir, name))
|
|
||||||
.Replace("MajorVersion=\"4\" MinorVersion=\"0\">", "MajorVersion=\"3\" MinorVersion=\"0\">"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
@ -72,3 +72,6 @@ issue](https://github.com/alterNERDtive/bindED/issues/new). Thanks! :)
|
||||||
|
|
||||||
You can also [say “Hi” on Discord](https://discord.gg/YeXh2s5UC6) if that is
|
You can also [say “Hi” on Discord](https://discord.gg/YeXh2s5UC6) if that is
|
||||||
your thing.
|
your thing.
|
||||||
|
|
||||||
|
[![GitHub Sponsors](https://img.shields.io/github/sponsors/alterNERDtive?style=for-the-badge)](https://github.com/sponsors/alterNERDtive)
|
||||||
|
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S1DLYBS)
|
||||||
|
|
|
@ -41,21 +41,10 @@ have to either invoke the plugin’s `loadbinds` config manually or restart
|
||||||
VoiceAttack after you have loaded into the game’s main menu and changed any key
|
VoiceAttack after you have loaded into the game’s main menu and changed any key
|
||||||
bind.
|
bind.
|
||||||
|
|
||||||
## Horizons vs. Odyssey
|
## Horizons (legacy) vs. Odyssey (live)
|
||||||
|
|
||||||
**Note**: If you do not own Odyssey, everything will work just as before!
|
Horizons support has been dropped. If you still play legacy, you will have to
|
||||||
|
use bindED <5.0.
|
||||||
Sadly for the time being Odyssey and Horizons will basically be separate games.
|
|
||||||
That also means they have separate binds files. BindED will always default to
|
|
||||||
using the file generated by Odyssey (`<preset>.4.0.binds`) if it exists.
|
|
||||||
|
|
||||||
To keep hassle to a minimum, the recommended way to change binds is to do it
|
|
||||||
from Odyssey. Whenever a change to the Odyssey file is detected, the plugin will
|
|
||||||
overwrite Horizons’ binds (`<preset>.3.0.binds`) with it. If you for some reason
|
|
||||||
want to keep entirely separate binds, you can set `bindED.disableHorizonsSync#`
|
|
||||||
(yes, including the pound sign) to `true` in your VoiceAttack profile. Whenever
|
|
||||||
you are playing Horizons you will have to tell the plugin to load the Horizons
|
|
||||||
file (see [[#Specifying a Binds File to Load]]).
|
|
||||||
|
|
||||||
## Specifying a Binds File to Load
|
## Specifying a Binds File to Load
|
||||||
|
|
||||||
|
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
mkdocs-roamlinks-plugin
|
Loading…
Reference in a new issue