Commit graph

195 commits

Author SHA1 Message Date
Giacomo Garbin 70193f33c4 Also link libm for the C Standard Library math functions.
Remove isnan as it conflicts with the one defined in <math.h>.

TODO: Replace math functions defined in Mathf.c with those from the standard library.
2024-03-27 23:45:12 +01:00
Giacomo Garbin 62be2a497a Use glibc instead of libnustd.
TODO: Remove libnustd from setups as well.
2024-03-27 03:16:02 +01:00
Matt Penny bd3dc02c56 Get all textures from VPK
Some textures cannot be used in their current form, and so they are
transformed at build time by Imagemagick commands (e.g., add shapes,
crop and merge different portions, etc.).

For a very small number of textures, making them usable takes more than
a few simple commands. For example, Chell's eyes and ears are detached
from her face in the texture image, and there are not enough polygons in
her model or pixels in an N64 texture to make a good UV map.

For these few complex textures, James worked around the problem by
checking in pre-edited images. This commit removes those images and
instead performs the necessary transformations at build time. As a result,
some textures are now slightly different (ball launcher/catcher, cube,
Chell). Chell's UV map is redone to accomodate this - for the better.
2024-01-21 00:42:52 -05:00
Matt Penny 77a17ab022 Rename boot obejct file to have a more generic name
We use the 6102 boot code by default, but this can be changed (for
example, if flashing to a cartridge with a different CIC).

As with the microcode, the path cannot be easily passed to the
linker script and so the hard-coded name should not be specific to
particular boot code.
2024-01-08 23:08:18 -05:00
Matt Penny 8aa8e0f331 Allow changing base location of N64 toolchain
Environment variable N64_ROOT optionally sets the root directory of
the N64 toolchain.

To enable this to work with the linker script, the microcode object
files are now copied to the build directory before linking (since
there is no easy way to pass the path to the script dynamically).
An added benefit to this approach is that different microcode can
now be used easily if desired.
2024-01-08 23:08:17 -05:00
James Lambert 95ca05b846 Build out much of test chamber 09 2024-01-02 21:36:53 -07:00
James Lambert ee42238411 Work on test chamber 08 2023-12-29 21:48:16 -07:00
Joseph 8105ddedc9
Merge branch 'master' into readme-reformat 2023-12-20 01:21:22 -05:00
Joseph 227a76229b
Update Makefile
Removed:
chmod +x tools/romfix64.sh
chmod +x skelatool64/setup_dependencies.sh
because they are no longer needed.
2023-12-19 20:38:48 -05:00
Joseph d9bcadb551
Update Makefile
Forgot to remove:
fix:
	wine tools/romfix64.exe $(BASE_TARGET_NAME).z64

fix-nowine:
	chmod +x tools/romfix64.sh
	sh tools/romfix64.sh $(BASE_TARGET_NAME).z64
2023-12-19 20:34:03 -05:00
Joseph f79569bfe6
Update Makefile
Added Chmod so the scripts can run.
2023-12-18 23:28:52 -05:00
Joseph 8f128d5136
Update Makefile
Added auto run
sh tools/romfix64.sh $(BASE_TARGET_NAME).z64
2023-12-18 21:53:52 -05:00
Matt Penny ce239440f3 Sort CODEFILES in Makefile
Link order matters when generating codesegment*.o. The old sort
order of CODEFILES was OS/file system dependent. Sort the file
paths to ensure consistent linking across environments.
2023-12-18 14:06:33 -05:00
carsongoodwin32 f06ccae78d Add makefile changes and move romfix.sh 2023-12-17 17:51:50 -06:00
hackgrid f536179e59
make sure Makefile always setups skelatool64 dependencies first 2023-12-13 15:06:30 +01:00
James Lambert 39a1ec576d Fix some profiler issues 2023-12-12 20:35:00 -07:00
hackgrid e798a34203
use skelatool64 Makefile for clean 2023-12-12 16:15:54 +01:00
hackgrid f56a53aed0
fix rm -f 2023-12-11 22:12:56 +01:00
hackgrid d210ca693c
always build skelatool64 2023-12-11 20:28:14 +01:00
hackgrid d51b800588 skelatool64: fix "pessimizing-move" warnings + clean build with main Makefile. Fix typo. 2023-12-11 19:19:50 +01:00
James Lambert 7214c7c845 Add wide ledge for vertical portals to be able to stand hanging out of portal 2023-12-01 20:27:54 -07:00
lambertjamesd 897abb9e4e
Merge pull request #508 from hackgrid/fix-make-6
allow dynamic generation of subtitles
2023-11-29 19:44:52 -07:00
James Lambert f117026287 fix portal gun flicker between levels 2023-11-28 20:50:23 -07:00
hackgrid efb81034c2
don't require all supported subtitle language files 2023-11-28 21:31:26 +01:00
James Lambert 20e9beaa0f Implement triple sign state 2023-11-24 21:54:27 -07:00
James Lambert b275813dcd Use liberation mono for credits font 2023-11-22 09:48:09 -07:00
James Lambert 456efb37fa Start work on credits menu 2023-11-21 21:09:48 -07:00
James Lambert 67d99e1bd3 Start work for animating portal gun 2023-11-20 21:55:09 -07:00
James Lambert 58f851d3d4 Add bad google translate placeholder translations 2023-11-12 21:35:02 -07:00
James Lambert dd05a3897e build out video options tab 2023-11-11 14:08:19 -07:00
hackgrid 2377ac55b7
Update Makefile for new valve_* files 2023-11-10 10:41:25 +01:00
James Lambert 9d07965582 translate controls menu 2023-11-09 21:42:50 -07:00
James Lambert 7a37be91c9 Translate load and save game menu 2023-11-08 21:49:27 -07:00
James Lambert 60a0e39d1d Add translations for new game menu 2023-11-07 22:10:41 -07:00
James Lambert 1b3c1c9aa4 Translate most of the option tabs 2023-11-06 22:02:38 -07:00
James Lambert 00bdc90861 Finish up audio options using the menu builder 2023-11-05 08:48:58 -07:00
James Lambert 9ec21b9c1a Start migrating audio options to use a menu builder 2023-11-04 22:52:25 -06:00
hackgrid 202ee5cb3d
oops 2023-11-04 10:12:03 +01:00
hackgrid fb0cd333c2
Update Makefile to require at least one closecaption and gameui language file 2023-11-04 10:08:45 +01:00
hackgrid fd35a587b5
require at least english gameui texts to build subtitles 2023-11-04 10:01:09 +01:00
James Lambert bab60422bf Add some translations to the audio menu 2023-11-03 22:15:01 -06:00
James Lambert 94f9622861 Add main menu translations 2023-11-02 21:56:36 -06:00
James Lambert 3ee77ffc71 Added cheat to unlock portal gun 2023-11-02 19:03:51 -06:00
James Lambert f2f94ed7af Finish up non english fonts 2023-10-28 19:24:21 -06:00
James Lambert 3bfe6f4a76 Add support for fonts with more than 256 chracters 2023-10-28 12:31:30 -06:00
James Lambert e9a72bc967 Get translation loading mostly working 2023-10-26 22:32:18 -06:00
James Lambert 93d99d6cb5 Build translations into separate files 2023-10-26 22:00:02 -06:00
James Lambert b38c920525 Work on intro cutscene 2023-10-26 18:56:49 -06:00
westonCoder 4c5c23315b Added Ambient Sound to Game
- simply added the ambient_base sound to the game. its actually a very small sound file, so we could layer on other ambient sounds on top that are queued by different parts of the level in the future if we wanted.
- because this is an activeSound it is also effected by the bug where if you save and reload it is no longer playing (just like the current glados voice line activeSound)
- tested in entire game seems to work well.
2023-10-26 12:40:14 -05:00
James Lambert f075892f33 Triangulate meshes in blender when exporting to fbx 2023-10-24 22:30:37 -06:00