Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raidboss: update ShB timelines #5592

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
929f033
add InCombat lines, remove unnecessary resets, remove initial autos a…
wexxlee Jun 20, 2023
6bec90a
raidboss: fix p10s jade passage wrong output (#5591)
lsl1225 Jun 21, 2023
781e918
per code review
wexxlee Jun 21, 2023
38f6742
raidboss: fix inconsistent "soon" timeline colors (#5576)
quisquous Jun 21, 2023
563a91a
i18n: add Chinese translate for new update trigger (#5594)
YuzukiTsuru Jun 21, 2023
05bca25
docs: add CONTRIBUTING note about global ts-node (#5595)
quisquous Jun 22, 2023
b6e0551
raidboss: add support for P12S Engravements (#5587)
wexxlee Jun 22, 2023
6a7cf78
raidboss: add p12s pangenesis triggers (#5596)
quisquous Jun 22, 2023
d5f35d4
i18n: add p12s Chinese translate (#5599)
YuzukiTsuru Jun 22, 2023
312a324
raidboss: Zurvan JA translation (#5601)
xiashtra Jun 23, 2023
c39e3b5
raidboss: update Bardam's Mettle for 6.4 changes (#5603)
xiashtra Jun 23, 2023
49b1d19
raidboss: small p12s pangenesis adjustments (#5604)
quisquous Jun 23, 2023
ab9af74
raidboss: add P12s Engravement 1 Tower trigger (#5597)
YuzukiTsuru Jun 23, 2023
9ed5057
raidboss: additional p12s p1 triggers (#5598)
wexxlee Jun 23, 2023
3e212ab
build: Bump version to 0.29.14
quisquous Jun 23, 2023
e4088b6
raidboss: add p12s2 headmarker ids and todos (#5605)
quisquous Jun 23, 2023
ddde2ea
i18n: add p12s P12S Ray of Light (#5606)
YuzukiTsuru Jun 24, 2023
6be5151
raidboss: update Doma Castle for 6.4 duty Support (#5608)
xiashtra Jun 24, 2023
077821f
i18n: add ko p12 translations (#5609)
Bing-su Jun 24, 2023
bb64c88
i18n: More FR translations (#5610)
mooondark Jun 24, 2023
e12318d
raidboss: update Castrum Abania for 6.4 (#5611)
xiashtra Jun 24, 2023
4f6b206
raidboss: update Ala Mhigo for 6.4 (#5612)
xiashtra Jun 25, 2023
e67c9e2
i18n: 6.3/6.4 Japanese translations (#5613)
kshman Jun 25, 2023
5f38b03
raidboss: convert NetRegexes.echo/message/dialog to params (#5451)
quisquous Jun 25, 2023
0552151
raidboss: convert one final NetRegexes.message to params (#5614)
quisquous Jun 25, 2023
3ba62cb
raidboss: migrate to new NetParams trigger style (#5615)
quisquous Jun 25, 2023
a405451
util: make_timeline - sort ignored combatants (#5616)
xiashtra Jun 26, 2023
2668078
resources: ko 6.3 (#5621)
Bing-su Jun 27, 2023
a49c371
i18n: ko 6.3 (#5622)
Bing-su Jun 27, 2023
faae0d8
i18n: more p12s cn translation (#5623)
lsl1225 Jun 28, 2023
f4c6eae
raidboss: fix up p12s engravement clockwise strategy (#5626)
quisquous Jun 29, 2023
d4d8a11
plugin: update ko 6.3 (#5627)
ffxivvillein Jun 29, 2023
f67933b
raidboss: more P12S second phase (#5620)
kshman Jun 29, 2023
cec3427
raidboss: refactoring of P12S second phase #5620 (#5628)
quisquous Jun 29, 2023
562b022
raidboss: increase P12S engravement3 tower duration (#5629)
quisquous Jun 29, 2023
4f1ad28
build: Bump version to 0.29.15
quisquous Jun 29, 2023
2ef9b09
build: Bump version to 0.29.16
quisquous Jun 29, 2023
33a1000
raidboss: add p12s superchain2b (#5625)
wexxlee Jun 30, 2023
a6173c3
raidboss: improvements to p12sp2 classical concepts (#5632)
wexxlee Jun 30, 2023
65d64c8
add InCombat lines, remove unnecessary resets, remove initial autos a…
wexxlee Jun 20, 2023
4099cdd
per code review
wexxlee Jun 21, 2023
25f86fc
revert changes to emerald, ruby, and wol (normals) per code review
wexxlee Jul 1, 2023
ca89b83
remove extraneous missingTranslations from e4s
wexxlee Jul 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ and on the server-side (GitHub).
You will need to [install](README.md#npm-and-webpack) `nodejs` and run `npm install`
in order to install local versions of husky, lint-staged, and eslint.

It is recommended that you also install ts-node and typescript globally, e.g.

```shell
npm install -g typescript
npm install -g ts-node
```

This will let you run commands as `ts-node` directly instead of `npx ts-node`.

If the pre-commit validations are causing you significant problems,
feel free to bypass the checks with `--no-verify` flag,
such as `git commit --no-verify`,
Expand Down
8 changes: 4 additions & 4 deletions docs/RaidbossGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ Boolean, defaults to true. If true, timelines and triggers will reset automatica
```javascript
{
id: 'id string',
// Note: netRegex only, see `NetFields` from [net_fields.d.ts](https://github.com/quisquous/cactbot/blob/main/types/net_fields.d.ts)
type: 'StartsUsing',
disabled: false,
// Note: use the regex helpers from [netregexes.ts](https://github.com/quisquous/cactbot/blob/main/resources/netregexes.ts)
netRegex: NetRegexes.startsUsing({ id: 'some-id', source: 'some-name' }),
// Note: see `NetFields` from [net_fields.d.ts](https://github.com/quisquous/cactbot/blob/main/types/net_fields.d.ts)
// Note: `netRegex: NetRegexes({ id: 'some-id', source: 'some-name' })` is still supported for backwards compatibility.
netRegex: { id: 'some-id', source: 'some-name' },
// Note: prefer to use the regex helpers from [regexes.ts](https://github.com/quisquous/cactbot/blob/main/resources/regexes.ts)
regex: /trigger-regex-for-act-log-lines/,
regex: Regexes.ability({ id: 'some-id', source: 'some-name' }),
condition: function(data, matches, output) { return true if it should run },
preRun: function(data, matches, output) { do stuff.. },
delaySeconds: 0,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cactbot",
"version": "0.29.13",
"version": "0.29.16",
"license": "Apache-2.0",
"type": "module",
"types": "./types",
Expand Down
14 changes: 7 additions & 7 deletions plugin/CactbotEventSource/FFXIVProcessKo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Cactbot {
public class FFXIVProcessKo : FFXIVProcess {
// Last updated for FFXIV 6.2
// Last updated for FFXIV 6.3

[StructLayout(LayoutKind.Explicit)]
public unsafe struct EntityMemory {
Expand All @@ -29,16 +29,16 @@ public unsafe struct EntityMemory {
[FieldOffset(0x92)]
public ushort distance;

[FieldOffset(0xA0)]
[FieldOffset(0xB0)]
public Single pos_x;

[FieldOffset(0xA4)]
[FieldOffset(0xB4)]
public Single pos_z;

[FieldOffset(0xA8)]
[FieldOffset(0xB8)]
public Single pos_y;

[FieldOffset(0xB0)]
[FieldOffset(0xC0)]
public Single rotation;

[FieldOffset(0x1C4)]
Expand Down Expand Up @@ -504,10 +504,10 @@ public struct NinjaJobMemory {
[FieldOffset(0x00)]
public ushort hutonMilliseconds;

[FieldOffset(0x04)]
[FieldOffset(0x02)]
public byte ninkiAmount;

[FieldOffset(0x05)]
[FieldOffset(0x03)]
private byte hutonCount; // Why though?
};

Expand Down
4 changes: 2 additions & 2 deletions plugin/CactbotEventSource/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
// - Revision
// GitHub has only 3 version components, so Revision should always be 0.
// CactbotOverlay and CactbotEventSource version should match.
[assembly: AssemblyVersion("0.29.13.0")]
[assembly: AssemblyFileVersion("0.29.13.0")]
[assembly: AssemblyVersion("0.29.16.0")]
[assembly: AssemblyFileVersion("0.29.16.0")]
4 changes: 2 additions & 2 deletions plugin/CactbotOverlay/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
// - Build Number
// - Revision
// GitHub has only 3 version components, so Revision should always be 0.
[assembly: AssemblyVersion("0.29.13.0")]
[assembly: AssemblyFileVersion("0.29.13.0")]
[assembly: AssemblyVersion("0.29.16.0")]
[assembly: AssemblyFileVersion("0.29.16.0")]
12 changes: 9 additions & 3 deletions resources/netregexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ const keysThatRequireTranslationAsConst = [
export const keysThatRequireTranslation: readonly string[] = keysThatRequireTranslationAsConst;
export type KeysThatRequireTranslation = typeof keysThatRequireTranslationAsConst[number];

export const gameLogCodes = {
echo: '0038',
dialog: '0044',
message: '0839',
} as const;

const defaultParams = <
T extends LogDefinitionTypes,
V extends LogDefinitionVersions,
Expand Down Expand Up @@ -474,7 +480,7 @@ export default class NetRegexes {
['type', 'timestamp', 'code', 'name', 'line', 'capture'],
);

return NetRegexes.gameLog({ ...params, code: '0038' });
return NetRegexes.gameLog({ ...params, code: gameLogCodes.echo });
}

/**
Expand All @@ -489,7 +495,7 @@ export default class NetRegexes {
['type', 'timestamp', 'code', 'name', 'line', 'capture'],
);

return NetRegexes.gameLog({ ...params, code: '0044' });
return NetRegexes.gameLog({ ...params, code: gameLogCodes.dialog });
}

/**
Expand All @@ -504,7 +510,7 @@ export default class NetRegexes {
['type', 'timestamp', 'code', 'name', 'line', 'capture'],
);

return NetRegexes.gameLog({ ...params, code: '0839' });
return NetRegexes.gameLog({ ...params, code: gameLogCodes.message });
}

/**
Expand Down
21 changes: 21 additions & 0 deletions resources/outputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ export default {
cn: '顺劈',
ko: '광역 탱버',
},
tankBusterCleaves: {
en: 'Tank Buster Cleaves',
de: 'Tankbuster Cleaves',
fr: 'Tankbuster cleaves',
ja: 'MT・ST同時範囲攻撃',
cn: '双T扇形死刑',
ko: '광역 탱버',
},
tankBusterCleavesOnYou: {
en: 'Tank Cleaves on YOU',
},
avoidTankCleave: {
en: 'Avoid tank cleave',
de: 'Tank Cleave ausweichen',
Expand All @@ -102,6 +113,14 @@ export default {
cn: '远离顺劈',
ko: '광역 탱버 피하기',
},
avoidTankCleaves: {
en: 'Avoid Tank Cleaves',
de: 'Tankbuster Cleaves ausweichen',
fr: 'Évitez les cleaves (tankbusters)',
ja: '範囲攻撃を避けて',
cn: '躲避双T扇形死刑',
ko: '광역 탱버 피하기',
},
tankCleaveOnYou: {
en: 'Tank cleave on YOU',
de: 'Tank Cleave aud DIR',
Expand Down Expand Up @@ -390,12 +409,14 @@ export default {
front: {
en: 'Front',
fr: 'Devant',
ja: '前',
cn: '前',
ko: '앞',
},
back: {
en: 'Back',
fr: 'Derrière',
ja: '後ろ',
cn: '后',
ko: '뒤',
},
Expand Down
2 changes: 2 additions & 0 deletions resources/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Job, Role } from '../types/job';
import { NetMatches } from '../types/net_matches';
import { OutputStrings } from '../types/trigger';

import { gameLogCodes } from './netregexes';
import Outputs from './outputs';
import { callOverlayHandler } from './overlay_plugin_api';

Expand Down Expand Up @@ -414,6 +415,7 @@ const Util = {
watchCombatantOverride = watchFunc;
clearCombatantsOverride = clearFunc;
},
gameLogCodes: gameLogCodes,
} as const;

export default Util;
8 changes: 8 additions & 0 deletions resources/zone_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,7 @@ const data: ZoneInfoType = {
'en': 'Mount Ordeals',
'fr': 'Le Mont du Supplice',
'ja': 'ルビカンテ討滅戦',
'ko': '루비칸테 토벌전',
},
'offsetX': -100,
'offsetY': -100,
Expand All @@ -1126,6 +1127,7 @@ const data: ZoneInfoType = {
'en': 'Mount Ordeals (Extreme)',
'fr': 'Le Mont du Supplice (extrême)',
'ja': '極ルビカンテ討滅戦',
'ko': '극 루비칸테 토벌전',
},
'offsetX': -100,
'offsetY': -100,
Expand All @@ -1141,6 +1143,7 @@ const data: ZoneInfoType = {
'en': 'Lapis Manalis',
'fr': 'Lapis Manalis',
'ja': '雪山冥洞 ラピス・マナリス',
'ko': '라피스 마날리스',
},
'offsetX': -46,
'offsetY': 570,
Expand Down Expand Up @@ -1406,6 +1409,7 @@ const data: ZoneInfoType = {
'en': 'The Clockwork Castletown',
'fr': 'Le Traquenard oriental',
'ja': '東方絡繰御殿',
'ko': '동방 꼭두각시 어전',
},
'offsetX': 0,
'offsetY': 0,
Expand All @@ -1421,6 +1425,7 @@ const data: ZoneInfoType = {
'en': 'Crystalline Conflict (Custom Match - The Clockwork Castletown)',
'fr': 'Crystalline Conflict (partie personnalisée - Le Traquenard oriental)',
'ja': 'クリスタルコンフリクト(東方絡繰御殿:カスタムマッチ)',
'ko': '크리스탈라인 컨플릭트(동방 꼭두각시 어전: 친선 경기)',
},
'offsetX': 0,
'offsetY': 0,
Expand All @@ -1436,6 +1441,7 @@ const data: ZoneInfoType = {
'en': 'Euphrosyne',
'fr': 'Domaine divin - Euphrosyne',
'ja': '喜びの神域 エウプロシュネ',
'ko': '환희의 신역 에우프로시네',
},
'offsetX': 0,
'offsetY': 480,
Expand All @@ -1451,6 +1457,7 @@ const data: ZoneInfoType = {
'en': 'An Unforeseen Bargain',
'fr': 'Pour une bouchée de pain',
'ja': 'パンひとつと引き換えに',
'ko': '빵 하나와 바꾸어',
},
'offsetX': 0,
'offsetY': 0,
Expand Down Expand Up @@ -1496,6 +1503,7 @@ const data: ZoneInfoType = {
'en': 'The Shifting Gymnasion Agonon',
'fr': 'Elpis Gymnasion',
'ja': '宝物庫 エルピス・ギュムナシオン祭殿',
'ko': '보물고 엘피스 김나시온 제전',
},
'offsetX': -100,
'offsetY': -100,
Expand Down
12 changes: 10 additions & 2 deletions types/trigger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export type BaseTrigger<
type BaseNetTrigger<Data extends RaidbossData, Type extends TriggerTypes> = {
id: string;
type: Type;
netRegex: NetParams[Type] | CactbotBaseRegExp<Type>;
netRegex: NetParams[Type];
disabled?: boolean;
condition?: TriggerField<Data, NetMatches[Type], boolean | undefined>;
preRun?: TriggerField<Data, NetMatches[Type], void>;
Expand Down Expand Up @@ -208,7 +208,15 @@ export type TriggerSet<Data extends RaidbossData = RaidbossData> =
// Less strict type for user triggers + built-in triggers, including deprecated fields.
export type LooseTimelineTrigger = Partial<TimelineTrigger<RaidbossData>>;

export type LooseTrigger = Partial<BaseNetTrigger<RaidbossData, 'None'> & PartialRegexTrigger>;
export type LooseTrigger = Partial<
& Omit<BaseNetTrigger<RaidbossData, 'None'>, 'netRegex'>
& PartialRegexTrigger
& {
// Built-in cactbot netRegex only supports the `NetParams` variety of specification,
// but for backwards compatibility, also handle anybody still using `NetRegexes.foo()`.
netRegex: NetParams['None'] | CactbotBaseRegExp<'None'>;
}
>;

export type LooseTriggerSet =
& Omit<Partial<TriggerSet>, 'triggers' | 'timelineTriggers'>
Expand Down
25 changes: 25 additions & 0 deletions ui/fisher/static-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18323,6 +18323,26 @@ const data: FisherData = {
'38345': '솜해조구',
'38346': '토양 정화용 약어',
'38347': '양치용 해면동물',
'38810': '온도 미역',
'38811': '켄의 가마솥',
'38812': '자색대구',
'38813': '글로리안다의 눈물',
'38814': '일 리다',
'38830': '만려어',
'38831': '이끼연어',
'38832': '비디유트와트 놀래기',
'38833': '갈색바나나장어',
'38834': '빙토거북',
'38835': '우주 안개',
'38836': '안테이아 달리아',
'38837': '호수 짱뚱어',
'38838': '청동 장어',
'38839': '줄농어',
'38840': '청동송어',
'38841': '라노시아사우루스',
'38935': '징가',
'38939': '녹청 구피',
'39240': '잎새어',
},
},
'placefish': {
Expand Down Expand Up @@ -25190,6 +25210,11 @@ const data: FisherData = {
'38835': 3,
'38836': 3,
'39240': 1,
'39879': 3,
'39880': 3,
'39881': 3,
'39882': 3,
'39883': 3,
},
};

Expand Down
2 changes: 1 addition & 1 deletion ui/jobs/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ UserConfig.getUserConfigLocation('jobs', defaultOptions, () => {
'fr': 640,
'ja': 640,
'cn': 630,
'ko': 625,
'ko': 630,
};
const ffxivVersion = ffxivlanguageToVersion[options.ParserLanguage];

Expand Down
Loading