Commit graph

62 commits

Author SHA1 Message Date
hackgrid 87caebbeae fix typo 2023-10-15 13:04:40 +02:00
hackgrid cb49619599 Order subtitles and audio languages lists alphabetically. 2023-10-15 12:42:55 +02:00
westonCoder 88883bc34e adjusted the newline threshold for text down by 2 characters 2023-10-14 15:50:29 -05:00
westonCoder 255cbbad4b Slight Fixes to Subtitles Making
- added subtitles.h as dependency in a few places in makefile
- moved making a directory for the subtitles.h/.c to inside the python script
- fixed pathing for a #include

building is now working for me.
2023-10-11 12:23:21 -05:00
James Lambert 1228850440 Better integrate subtitle generation into the build process 2023-10-10 22:13:48 -06:00
westonCoder b2bde849ba Dynamic Captions Building and Enhancements
- python file added and invoked at make that produces a subtitles.c and subtitles.h synamically based on the closed captions files present inside of the resource/ folder
- added an in-game  slider to choose from the languages which were dynamically loaded at time of building.
- if no closecaption files are present at the time of building, the script will still make the subtitles.c/.h but it just wont have any data. This will also result in the two menu items relating to closed captions being removed.
- the names of subtitles in the .yaml files are the upercase versions of the names of subtitles in each subtitle file, so that they are easy to find.
- fixed margins on sides of subtitles
- fixed color of subtitles to be more visible
- sped up the fade in and out animations.
- automated new-line breaks.

Issues I have seen:
- if you load more than like 6 closed caption languages into the resource/ folder the game doesnt seem to want to start up once built. I think this is due to the sheer size of the subtitles.c file that is generated. I would love some feedback on how to make this work a little better/be more memory efficient, as it would be nice to have every closed caption language available on every build.
- languages with very unique characters (chinese, japanese, korean, greek, etc.) do not work because the python codec that is used to decode/encode the files doesnt support them. for now that logic is in a try/except so it wont fail, it will simply skip a language that is not supported.
2023-10-09 21:09:22 -05:00
lambertjamesd 8b539390b6
Merge pull request #263 from westonCoder/real-subtitles-addition
Added Subtitles to Game
2023-10-07 19:16:57 -06:00
westonCoder fa62ea3106 Added Subtitles to Game
- added subtitles and all required functions to get them up and running. Subtitles accross all main game dialogue is running now.
- subtitleID's are included as metadata now when a q_sound line is put in a map's .yaml file
- Also added in a toggle button to turn them on or off.

there are only 3 downsides to my method here.
- subtitles must be manually added to their array when new dialogue is added. I included all the english subtitles in a .txt inside of assets folder.
- no punctuation/symbols. once the font is updated though this should be resolved.
- font size is a bit big, however if the font is ever updated to have a size modifier in the future this would be a snap to change.

attached video of it working.
Fixes #262
2023-10-06 16:08:49 -05:00
James Lambert 6f68f5057d Start work on platform moving sounds 2023-10-05 21:18:20 -06:00
James Lambert 5bdefbf465 Merge coplanar static meshes to reduce culling load 2023-10-02 21:20:52 -06:00
James Lambert f8ca236f1b Allow cube triggers to control if held cubes still trigger 2023-09-30 17:53:48 -06:00
James Lambert 4bc26ef00c Work on action prompts 2023-09-30 16:42:31 -06:00
James Lambert 81d446a80e Polish up ball launcher 2023-09-28 18:04:36 -06:00
James Lambert 6a603395ab Add indicator lights for signals 2023-09-04 20:39:42 -06:00
James Lambert 298dab67f6 Implement test chamber 05 failsafe 2023-09-03 15:13:40 -06:00
James Lambert f0be2b4048 Refactor triggers to be triggable by things other than the player 2023-09-02 22:13:49 -06:00
James Lambert 445ad90eed Generate cutscenes and logic from yaml files instead of blend files 2023-09-02 19:31:24 -06:00
James Lambert 6395378285 Generate cutscene yaml and operators yaml 2023-09-02 17:59:01 -06:00
James Lambert d51d939ec6 refactor portable surfaces 2023-08-27 15:16:08 -06:00
James Lambert 1e45fbc6aa Add ability to turn off portals on specific surfaces 2023-07-14 21:33:39 -06:00
James Lambert 617baaaf6e Add security cameras 2023-06-30 23:03:09 -06:00
James Lambert bcba882efd Add clock object 2023-06-29 08:44:11 -06:00
James Lambert e77e9963d6 Work on level light baking 2023-06-24 21:11:15 -06:00
James Lambert e088c3959b Get ambient lighting block working 2023-06-06 19:54:18 -06:00
James Lambert a16c7f9732 Work on static lighting 2023-06-06 08:14:49 -06:00
James Lambert 0e2a45665d Work on static lighting code 2023-06-06 08:14:49 -06:00
James Lambert 392f9adf9c Work on cutscenes and triggers for test chamber 07 2023-04-03 07:26:19 -06:00
James Lambert e9e443ebeb Refactor door to be controlled by animation controller to allow for multiple door types 2023-03-26 21:33:23 -06:00
James Lambert f6464067bb Finish up test chamber 06 2023-02-28 20:57:03 -07:00
James Lambert 9c815de719 Work on next test chamber 2023-02-27 22:04:31 -07:00
James Lambert 7db90f4276 Fix airborn momentum 2023-02-27 21:23:08 -07:00
James Lambert 9878d18821 Finish up test chamber 05 2023-02-21 21:02:24 -07:00
James Lambert 53f2d4dc58 Work on water death 2023-02-08 22:01:46 -07:00
James Lambert 0b7aee7f22 saving and loading checkpoints 2023-02-07 21:56:24 -07:00
James Lambert 90f775c43f Work on test chamber 4 triggers 2023-02-04 21:43:31 -07:00
James Lambert 3b937e619c Work on test chamber 7 2023-01-28 20:56:21 -07:00
James Lambert 6a274ab71c work on test chamber 03 2023-01-21 21:55:06 -07:00
James Lambert 1ff35c25f2 Start work on ball launcher, ball catcher, and ball 2023-01-16 14:36:32 -07:00
James Lambert 45e6194bd0 Animated surfaces can now recieve portals 2023-01-04 08:39:08 -07:00
James Lambert 26db9cf101 Get animatable colliders working 2023-01-03 22:12:25 -07:00
James Lambert 565e60584a Correctly cull animated scene elements 2023-01-02 21:03:04 -07:00
James Lambert 8d0be1c12a Get animation working with cutscenes and get switch object workings 2023-01-02 20:10:29 -07:00
James Lambert c000fd60cb Fix a bug with cutscene triggers
fix some animation bugs
2023-01-01 21:14:32 -07:00
James Lambert 058ad8fd98 Work on animations playable from cutscenes
Allow animator to run backwards or at any speed
2023-01-01 16:53:08 -07:00
James Lambert 44c9974afb Get animations working for now 2022-12-31 16:12:35 -07:00
James Lambert 687b14d7b8 Fixup how meshes are converted into world space 2022-12-31 13:32:01 -07:00
James Lambert be1f6dd243 Allow static to be modfied by a transform 2022-12-30 21:58:05 -07:00
James Lambert 226057dd61 Build out level animation export logic 2022-12-30 20:28:27 -07:00
James Lambert ff3545d409 Work on animation export code 2022-12-29 21:58:29 -07:00
James Lambert 0b0daca75c Modify lua scripts to output named macros 2022-12-28 21:32:51 -07:00