Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit f9d87e7

Browse files
committed
Structure.
1 parent 5a638a9 commit f9d87e7

33 files changed

+7960
-6378
lines changed

.github/workflows/package.yaml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# description of this workflow, can be anything you want
2+
name: Package and release
3+
4+
# we need to let GitHub know _when_ we want to release, typically only when we create a new tag.
5+
# this will target only tags, and not all pushes to the master branch.
6+
# this part can be heavily customized to your liking, like targeting only tags that match a certain word,
7+
# other branches or even pullrequests.
8+
on:
9+
workflow_dispatch:
10+
push:
11+
tags:
12+
- '**'
13+
14+
# a workflow is built up as jobs, and within these jobs are steps
15+
jobs:
16+
17+
# "release" is a job, you can name it anything you want
18+
release:
19+
20+
# we can run our steps on pretty much anything, but the "ubuntu-latest" image is a safe bet
21+
runs-on: ubuntu-latest
22+
23+
# specify the environment variables used by the packager, matching the secrets from the project on GitHub
24+
env:
25+
#CF_API_KEY: ${{ secrets.CF_API_KEY }}
26+
#WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
27+
#WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
28+
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
29+
30+
# "steps" holds a list of all the steps needed to package and release our AddOn
31+
steps:
32+
33+
# we first have to clone the AddOn project, this is a required step
34+
- name: Clone project
35+
uses: actions/checkout@v3
36+
with:
37+
fetch-depth: 0 # gets entire git history, needed for automatic changelogs
38+
39+
# once cloned, we just run the GitHub Action for the packager project
40+
- name: Package and release
41+
uses: BigWigsMods/packager@v2
42+
43+
- name: Upload binaries
44+
uses: actions/upload-artifact@v3
45+
with:
46+
name: Artifacts
47+
path: |
48+
.release/*.zip

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
simc/
12
simc-*/
23
Temp/
34
datacache.sqlitedb

.pkgmeta

+15-12
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,28 @@ optional-dependencies:
66
- masque
77

88
externals:
9-
WoW9/ThousandJabs/Libs/LibStub: svn://svn.curseforge.com/wow/libstub/mainline/trunk
10-
WoW9/ThousandJabs/Libs/CallbackHandler-1.0: svn://svn.curseforge.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0
11-
WoW9/ThousandJabs/Libs/AceAddon-3.0: https://repos.wowace.com/wow/ace3/trunk/AceAddon-3.0
12-
WoW9/ThousandJabs/Libs/AceConsole-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConsole-3.0
13-
WoW9/ThousandJabs/Libs/AceEvent-3.0: https://repos.wowace.com/wow/ace3/trunk/AceEvent-3.0
14-
WoW9/ThousandJabs/Libs/LibSharedMedia-3.0: svn://svn.curseforge.com/wow/libsharedmedia-3-0/mainline/trunk/LibSharedMedia-3.0
15-
WoW9/ThousandJabs/Libs/LibDataBroker-1.1: http://github.com/tekkub/libdatabroker-1-1.git
16-
WoW9/ThousandJabs_Config/Libs/AceConfig-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0
17-
WoW9/ThousandJabs_Config/Libs/AceLocale-3.0: https://repos.wowace.com/wow/ace3/trunk/AceLocale-3.0
18-
WoW9/ThousandJabs_Config/Libs/AceGUI-3.0: https://repos.wowace.com/wow/ace3/trunk/AceGUI-3.0
9+
WoW10/ThousandJabs/Libs/LibStub: svn://svn.curseforge.com/wow/libstub/mainline/trunk
10+
WoW10/ThousandJabs/Libs/CallbackHandler-1.0: svn://svn.curseforge.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0
11+
WoW10/ThousandJabs/Libs/AceAddon-3.0: https://repos.wowace.com/wow/ace3/trunk/AceAddon-3.0
12+
WoW10/ThousandJabs/Libs/AceConsole-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConsole-3.0
13+
WoW10/ThousandJabs/Libs/AceEvent-3.0: https://repos.wowace.com/wow/ace3/trunk/AceEvent-3.0
14+
WoW10/ThousandJabs/Libs/LibSharedMedia-3.0: svn://svn.curseforge.com/wow/libsharedmedia-3-0/mainline/trunk/LibSharedMedia-3.0
15+
WoW10/ThousandJabs/Libs/LibDataBroker-1.1: http://github.com/tekkub/libdatabroker-1-1.git
16+
WoW10/ThousandJabs_Config/Libs/AceConfig-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0
17+
WoW10/ThousandJabs_Config/Libs/AceLocale-3.0: https://repos.wowace.com/wow/ace3/trunk/AceLocale-3.0
18+
WoW10/ThousandJabs_Config/Libs/AceGUI-3.0: https://repos.wowace.com/wow/ace3/trunk/AceGUI-3.0
1919

2020
move-folders:
21-
ThousandJabs/WoW9/ThousandJabs: ThousandJabs
22-
ThousandJabs/WoW9/ThousandJabs_Config: ThousandJabs_Config
21+
ThousandJabs/WoW10/ThousandJabs: ThousandJabs
22+
ThousandJabs/WoW10/ThousandJabs_Config: ThousandJabs_Config
2323

2424
ignore:
2525
- WoW9
26+
- WoW10
27+
- .github
2628
- .gitignore
2729
- .gitattributes
30+
- .vscode
2831
- cleanup.sh
2932
- tag-repo.sh
3033
- README.md

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cmake.sourceDirectory": "${workspaceFolder}/simc",
3+
"cmake.buildDirectory": "${workspaceFolder}/simc-build",
4+
"cmake.configureArgs": ["-DBUILD_GUI=OFF"]
5+
}

WoW10/ThousandJabs/ThousandJabs.toc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Interface: 100000
2+
## Title: ThousandJabs
3+
## Notes: Simulationcraft -> In-game rotation
4+
## Author: Tzarc
5+
## X-License: UNLICENSE
6+
## X-Category: Combat
7+
## X-Repository: https://github.com/tzarc/thousand-jabs
8+
## Version: @project-version@
9+
10+
## SavedVariables: ThousandJabsDB
11+
12+
dummy.lua

WoW10/ThousandJabs/dummy.lua

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Interface: 100000
2+
## Title: ThousandJabs
3+
## Notes: Simulationcraft -> In-game rotation
4+
## Author: Tzarc
5+
## X-License: UNLICENSE
6+
## X-Category: Combat
7+
## X-Repository: https://github.com/tzarc/thousand-jabs
8+
## Version: @project-version@
9+
## LoadOnDemand: 1
10+
## Dependencies: ThousandJabs
11+
12+
dummy.lua

WoW10/ThousandJabs_Config/dummy.lua

Whitespace-only changes.

WoW10/update-simc.sh

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
3+
set -eEuo pipefail
4+
set -x
5+
6+
target_branch="dragonflight"
7+
8+
this_script=$(realpath "${BASH_SOURCE[0]}")
9+
script_dir=$(realpath "$(dirname "$this_script")")
10+
11+
simc_dir="$script_dir/../simc"
12+
build_dir="$script_dir/../simc-build"
13+
14+
if [[ ! -e "$simc_dir" ]] ; then
15+
git clone -b $target_branch [email protected]:tzarc/simulationcraft-simc.git "$simc_dir"
16+
fi
17+
18+
cd "$simc_dir"
19+
if [[ -z "$(git remote -v | grep upstream)" ]] ; then
20+
git remote add upstream https://github.com/simulationcraft/simc.git
21+
fi
22+
23+
git fetch --all
24+
git fetch --tags
25+
git fetch --prune
26+
27+
git merge upstream/$target_branch
28+
29+
if [[ ! -d "$build_dir" ]] ; then
30+
mkdir -p "$build_dir"
31+
fi
32+
33+
cd "$build_dir"
34+
cmake -G Ninja "$simc_dir" -DBUILD_GUI=OFF
35+
cmake --build "$build_dir" --config RelWithDebInfo --target all
36+
37+
CLASSES=(warrior hunter monk paladin rogue shaman mage warlock druid deathknight priest demonhunter evoker)
38+
39+
./simc ptr=0 spell_query="spell" spell_query_xml_output_file=spells_live.xml
40+
./simc ptr=1 spell_query="spell" spell_query_xml_output_file=spells_ptr.xml
41+
./simc ptr=0 spell_query="spell" >spells_live.txt
42+
./simc ptr=1 spell_query="spell" >spells_ptr.txt
43+
44+
for class_name in "${CLASSES[@]}" ; do
45+
./simc ptr=0 spell_query="class_spell.class=$class_name" spell_query_xml_output_file=class_spells_${class_name}_live.xml
46+
./simc ptr=1 spell_query="class_spell.class=$class_name" spell_query_xml_output_file=class_spells_${class_name}_ptr.xml
47+
./simc ptr=0 spell_query="class_spell.class=$class_name" >class_spells_${class_name}_live.txt
48+
./simc ptr=1 spell_query="class_spell.class=$class_name" >class_spells_${class_name}_ptr.txt
49+
done

WoW9/ThousandJabs/Class_DemonHunter/Generated-Actions.lua

+23-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
if GetBuildInfo and (select(4, GetBuildInfo()) < 90000 or select(4, GetBuildInfo()) >= 100000) then return end
1+
if GetBuildInfo and (select(4, GetBuildInfo()) < 90000 or select(4, GetBuildInfo()) >= 100000) then
2+
return
3+
end
24

3-
if select(3, UnitClass('player')) ~= 12 then return end
5+
if select(3, UnitClass("player")) ~= 12 then
6+
return
7+
end
48

5-
local TJ = LibStub('AceAddon-3.0'):GetAddon('ThousandJabs')
9+
local TJ = LibStub("AceAddon-3.0"):GetAddon("ThousandJabs")
610

7-
TJ:RegisterActionProfileList('simc::demonhunter::havoc', 'Simulationcraft Demon Hunter Profile: Havoc', 12, 1, [[
11+
TJ:RegisterActionProfileList(
12+
"simc::demonhunter::havoc",
13+
"Simulationcraft Demon Hunter Profile: Havoc",
14+
12,
15+
1,
16+
[[
817
actions.precombat=flask
918
actions.precombat+=/augmentation
1019
actions.precombat+=/food
@@ -77,9 +86,15 @@ actions.normal+=/felblade,if=movement.distance>15|buff.out_of_range.up
7786
actions.normal+=/fel_rush,if=movement.distance>15|(buff.out_of_range.up&!talent.momentum.enabled)
7887
actions.normal+=/vengeful_retreat,if=movement.distance>15
7988
actions.normal+=/throw_glaive,if=talent.demon_blades.enabled
80-
]])
89+
]]
90+
)
8191

82-
TJ:RegisterActionProfileList('simc::demonhunter::vengeance', 'Simulationcraft Demon Hunter Profile: Vengeance', 12, 2, [[
92+
TJ:RegisterActionProfileList(
93+
"simc::demonhunter::vengeance",
94+
"Simulationcraft Demon Hunter Profile: Vengeance",
95+
12,
96+
2,
97+
[[
8398
actions.precombat=flask
8499
actions.precombat+=/augmentation
85100
actions.precombat+=/food
@@ -114,5 +129,5 @@ actions.normal+=/fracture,if=((talent.spirit_bomb.enabled&soul_fragments<=3)|(!t
114129
actions.normal+=/sigil_of_flame,if=!(covenant.kyrian.enabled&runeforge.razelikhs_defilement)
115130
actions.normal+=/shear
116131
actions.normal+=/throw_glaive
117-
]])
118-
132+
]]
133+
)

0 commit comments

Comments
 (0)