jak-project/goalc/compiler
ManDude 18ddd1613c
Jak 2 pc subtitle support (#2672)
Adds support for adding custom subtitles to Jak 2 audio. Comes with a
new editor for the new system and format. Compared to the Jak 1 system,
this is much simpler to make an editor for.

Comes with a few subtitles already made as an example.
Cutscenes are not officially supported but you can technically subtitle
those with editor, so please don't right now.

This new system supports multiple subtitles playing at once (even from a
single source!) and will smartly push the subtitles up if there's a
message already playing:

![image](https://github.com/open-goal/jak-project/assets/7569514/033e6374-a05a-4c31-b029-51868153a932)

![image](https://github.com/open-goal/jak-project/assets/7569514/5298aa6d-a183-446e-bdb6-61c4682df917)

Unlike in Jak 1, it will not hide the bottom HUD when subtitles are
active:

![image](https://github.com/open-goal/jak-project/assets/7569514/d466bfc0-55d0-4689-a6e1-b7784b9fff59)

Sadly this leaves us with not much space for the subtitle region (and
the subtitles are shrunk when the minimap is enabled) but when you have
guards and citizens talking all the time, hiding the HUD every time
anyone spoke would get really frustrating.

The subtitle speaker is also color-coded now, because I thought that
would be fun to do.

TODO:
- [x] proper cutscene support.
- [x] merge mode for cutscenes so we don't have to rewrite the script?

---------

Co-authored-by: Hat Kid <6624576+Hat-Kid@users.noreply.github.com>
2023-06-08 01:04:16 +01:00
..
compilation Jak 2 pc subtitle support (#2672) 2023-06-08 01:04:16 +01:00
docs LSP: OpenGOAL Feature Support - Part 1 (#2668) 2023-05-21 17:24:23 -04:00
CodeGenerator.cpp [goalc] reduce compiler memory usage (#2247) 2023-02-24 18:32:30 -05:00
CodeGenerator.h game: Remove temporary CLI arg shim in gk (#2532) 2023-04-22 14:13:57 -04:00
Compiler.cpp repl: add gameVersionFolder to repl-config for running the non-default version (#2463) 2023-04-11 17:57:20 -04:00
Compiler.h LSP: OpenGOAL Feature Support - Part 1 (#2668) 2023-05-21 17:24:23 -04:00
CompilerException.h split new pc features in some files into their own code files + address some old issues + ripple graphics improvements (#2216) 2023-02-13 21:39:14 +00:00
CompilerSettings.cpp [jak2] support for multiple out/ directories (#1585) 2022-06-30 21:11:58 -04:00
CompilerSettings.h [jak2] support for multiple out/ directories (#1585) 2022-06-30 21:11:58 -04:00
ConstantValue.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
Env.cpp [goalc] reduce compiler memory usage (#2247) 2023-02-24 18:32:30 -05:00
Env.h [goalc] reduce compiler memory usage (#2247) 2023-02-24 18:32:30 -05:00
IR.cpp some bug fixes (#2125) 2023-01-14 11:04:15 -05:00
IR.h [decompile] subdivide, wind-work, tie-work, bsp, focus (#1897) 2022-09-17 14:58:25 -04:00
Label.h Add #pragma once to all headers 2020-09-13 21:36:35 -04:00
Lambda.h [goalc] reduce compiler memory usage (#2247) 2023-02-24 18:32:30 -05:00
StaticObject.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
StaticObject.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
SymbolInfo.h docs: Automatically generate documentation from goal_src code (#2214) 2023-02-20 19:49:37 -05:00
Util.cpp [jak 2] Fix possible stereo desync in overlord (#2663) 2023-05-19 21:17:11 -04:00
Val.cpp [jak 2] fix boot, increase level heap sizes (#2252) 2023-02-25 15:20:17 -05:00
Val.h [goalc] default to non-immediate lambdas if not requested (#2604) 2023-04-30 19:00:27 -04:00