Commit graph

1488 commits

Author SHA1 Message Date
Vsevolod Kremianskii
0a4f7f7fe5 Ensure no framebuffer is bound after pipeline initialization
This fixes the black screen bug at TSL startup.
2021-05-03 11:19:50 +07:00
Vsevolod Kremianskii
028694c440 Do not update and draw in main loop if window is out of focus 2021-05-03 10:08:51 +07:00
Vsevolod Kremianskii
6e5d5d947f launcher: Determine window size from its contents 2021-05-02 18:31:58 +07:00
Vsevolod Kremianskii
248907fba1 Add Python script to generate LIP files from text 2021-04-22 21:10:20 +07:00
Vsevolod Kremianskii
2a7c19eed9 Rename examine_lip to inspect_lip, improve output 2021-04-22 19:00:34 +07:00
Vsevolod Kremianskii
25253405ce Revert to storing object id, not object pointer in scripts
- This is how vanilla does it
- It will supposedly be easier to save delayed actions this way
2021-04-22 17:53:55 +07:00
Vsevolod Kremianskii
533f6cf949 In examine_lip.py output shape descriptions, not indices 2021-04-22 16:34:11 +07:00
Vsevolod Kremianskii
66e8a9a0bf Add Python script to examine LIP files 2021-04-22 15:02:02 +07:00
Vsevolod Kremianskii
a25a47c8a4 Cleanup Python scripts 2021-04-22 15:01:41 +07:00
Vsevolod Kremianskii
a9840701c8 Rename analyze.py to count_json_values.py 2021-04-22 14:44:50 +07:00
Vsevolod Kremianskii
0e0f018b5b Add tool to convert LIP to JSON and vice versa 2021-04-22 14:02:43 +07:00
Vsevolod Kremianskii
80b0783915 Add LIP archives extraction step to extract.py 2021-04-22 13:19:35 +07:00
Vsevolod Kremianskii
a1209aea87 tools: Remove loading options from config file
It only adds ambiguity.
2021-04-22 13:07:27 +07:00
Vsevolod Kremianskii
2b7fd07b8d tools: Create destination directory if it does not exist when extracting 2021-04-22 13:05:29 +07:00
Vsevolod Kremianskii
00b082a253 Make choosing steps in extract.py interactive 2021-04-22 12:52:25 +07:00
Vsevolod Kremianskii
224bead91c Put field types into a separate property when converting GFF to JSON 2021-04-22 12:39:07 +07:00
Vsevolod Kremianskii
b6c5a9a8cd Refactor save games
SAV file is now an ERF archive with GFF (and later TGA) files.
2021-04-22 11:00:11 +07:00
Vsevolod Kremianskii
e3b5f3eba1 Improve shadows
- Treat lights with radius of 1000 and higher as directional
- Use orthographic projection for directional shadow lights
2021-04-21 09:51:26 +07:00
Vsevolod Kremianskii
874a4006b6 Fix CTD in danm14aa 2021-04-20 10:27:58 +07:00
Vsevolod Kremianskii
31290dc7d0 Set g_shipBuild to true by default
Due to excessive log output.
2021-04-20 10:17:12 +07:00
Vsevolod Kremianskii
43ada622db Implement area fog 2021-04-20 10:06:10 +07:00
Vsevolod Kremianskii
b4d4803c7d Tweak filelists.py
- Add copyright notice
- Add generated filelists to .gitignore
2021-04-20 08:23:39 +07:00
Vsevolod Kremianskii
ea783f0f33 Fix CTD when object blueprint is missing 2021-04-20 08:23:21 +07:00
Vsevolod Kremianskii
38932c9aef Add Python script to unwrap audio files based on Flowtorn filelists 2021-04-15 12:49:32 +07:00
Vsevolod Kremianskii
852221baf1 Fix erasing double colons from strings 2021-04-15 12:10:28 +07:00
Vsevolod Kremianskii
f356b4704c Fix erasing special characters from strings 2021-04-15 12:05:20 +07:00
Vsevolod Kremianskii
a3fe3960dd Strip double colon surrounded substrings from text
This happens in TSL.
2021-04-15 11:58:31 +07:00
Vsevolod Kremianskii
97237bf713 Make filelists.py accept both Speaker and VO_ResRef
This yields roughly twice as much dialog entries.
2021-04-15 11:53:14 +07:00
Vsevolod Kremianskii
c70d860d4b Explicitly make wav_dir global in get_lines_from_dlg
Somehow the function finds more files this way?
2021-04-15 11:17:38 +07:00
Vsevolod Kremianskii
b99fa9739b Make uniq_sound global when traversing DLG files 2021-04-15 10:10:05 +07:00
Vsevolod Kremianskii
6efd9951c7 Change filelists strategy to search by Speaker, not VO_ResRef 2021-04-15 10:04:30 +07:00
Vsevolod Kremianskii
6ddda21f45 Change wav_dir in filelists to point to wrapped audio files 2021-04-15 09:57:37 +07:00
Vsevolod Kremianskii
e8a9179760 Add extract.py step to extract voices from streamwaves/streamvoice 2021-04-15 08:46:28 +07:00
Vsevolod Kremianskii
5a534bfcfa Rewrite filelists.py to parse DLG files
This is required for TSL support.
2021-04-14 22:30:46 +07:00
Vsevolod Kremianskii
0b226fce6e Add scripts for Flowtron
- Python script to generate Flowtron filelists
- Flowtron patch to enable inference from models
2021-04-14 10:24:17 +07:00
Vsevolod Kremianskii
c3f857a9ee Rename Python scripts to extract.py and analyze.py 2021-04-13 16:02:36 +07:00
Vsevolod Kremianskii
7179d5e862 Revise UTC and UTI loading
Based on resource analysis.
2021-04-13 13:18:18 +07:00
Vsevolod Kremianskii
624e0c61bf Revise UTW, UTT, UTS, UTP, UTE and UTD loading
Based on resource analysis.
2021-04-13 09:46:29 +07:00
Vsevolod Kremianskii
796fc05535 Accept command line arguments in analyze_resources.py 2021-04-13 07:43:43 +07:00
Ziemas
6e0cf0e802 Simplify recieve frame logic. 2021-04-13 07:22:39 +07:00
Ziemas
8b6c5d138f Update FFMPEG API usage.
Stop using deprecated functions.
2021-04-13 07:22:39 +07:00
Vsevolod Kremianskii
9c8dcdb841 Tweak list of fields loaded from blueprints
Based on their usage from resource analysis.
2021-04-12 23:28:45 +07:00
Vsevolod Kremianskii
5b90c6d542 Add Python script to analyze extracted resources 2021-04-12 21:36:17 +07:00
Vsevolod Kremianskii
572acc03bc Load all UTI fields 2021-04-12 20:15:18 +07:00
Vsevolod Kremianskii
fb74b91e04 Load all UTC fields 2021-04-12 20:04:23 +07:00
Vsevolod Kremianskii
2f7261de54 Load all UTP fields 2021-04-12 18:52:08 +07:00
Vsevolod Kremianskii
56a4c94e8c Fix rendering transparent textures with additive blending
E.g., map on the Endar Spire bridge.
2021-04-12 17:56:00 +07:00
Vsevolod Kremianskii
0523998163 Add NCS disassembling step to extract_resources.py 2021-04-12 16:47:17 +07:00
Vsevolod Kremianskii
e01bc053f3 Add Python script to extract and convert resources 2021-04-12 16:06:53 +07:00
Vsevolod Kremianskii
2a95fbfb3f Ignore case when extracting BIF files 2021-04-12 13:42:14 +07:00