Dragorn421
cb93ca3981
Proper includes for assets
...
mostly proper, some includes like dlists resources always causing a sys_matrix.h include (when not every dlist references gIdentityMtx) could be done better
2025-05-06 22:51:05 +02:00
Dragorn421
428a75b4ec
0XHEX -> 0xHEX
2025-05-06 19:18:37 +02:00
Dragorn421
78675719c1
change LIMB_NONE/MAX defaults to be FILE_OFFSET instead of SKELNAME
2025-05-06 19:12:22 +02:00
Dragorn421
877d867fa8
Merge remote-tracking branch 'upstream/main' into meta_new_assets_2025
2025-05-06 18:26:20 +02:00
fig02
f7a270655b
Delete macros.h; Delete global.h ( #2516 )
2025-04-27 12:48:11 -04:00
fig02
2278bcb2c3
Remove Variables.h; Decouple z64.h from global.h ( #2507 )
...
* progress
* z64.h issues sorted
* remove variables.h
* format
* n64 fix
* another fix
* did the wrong fix
* fix libleo
* fix bss
* review
* remove instead of comment
2025-04-19 22:04:08 -04:00
Derek Hensley
1beeff9658
Account for z_rumble's unreferenced bss at the start in fix_bss script ( #2502 )
...
* Account for z_rumble's unreferenced bss at the start
* z_locale and black
2025-04-04 19:54:18 -04:00
Derek Hensley
1b1070d0f4
Seperate baserom segments dir from output dir ( #2498 )
2025-03-27 02:20:41 -04:00
Dragorn421
5861158d64
fix optional rich usage
2025-02-18 21:38:25 +01:00
Dragorn421
e5cc601482
import rich, except ImportError s
2025-02-18 21:31:51 +01:00
Dragorn421
c39fb7f1b8
multiprocessing.get_context("fork")
2025-02-18 21:31:29 +01:00
Dragorn421
9614a08708
use enum names in SCENE_CMD_SKYBOX_SETTINGS
2025-02-18 17:50:50 +01:00
Dragorn421
c3cc5d324a
make interrupting less jank by making child processes ignore sigint
2025-02-18 17:30:00 +01:00
Dragorn421
9765bd2561
with -j, update last_extracts.json as each job completes rather than only if all complete
2025-02-18 17:27:38 +01:00
Dragorn421
ccb20a00b3
fix n64texconv python bindings memory management
2025-02-18 17:10:47 +01:00
Dragorn421
ddec1a317c
allow -j N
2025-02-18 14:28:54 +01:00
Dragorn421
61ed5b84c2
simplify palettes with single user (ci images with a non-shared palette)
2025-02-18 11:24:33 +01:00
Dragorn421
4ac3852503
dont try to build zapd (rmd)
2025-02-18 11:23:41 +01:00
Dragorn421
4ea01b24ae
CC0 license (and some import cleanup)
2025-02-18 10:07:20 +01:00
Dragorn421
ba29f9c2c6
remove rule to generate dmadata_table.py
2025-02-18 09:57:28 +01:00
Dragorn421
d2624056d9
format
2025-02-18 09:48:46 +01:00
Dragorn421
26c9e8688e
rm ZAPD
2025-02-18 09:26:15 +01:00
Dragorn421
29b5985f79
rm tools/assets/bin2c
2025-02-18 09:25:34 +01:00
Dragorn421
72c566a7fa
C build_from_png
2025-02-18 09:21:48 +01:00
Dragorn421
f1987ded85
Merge branch 'main' into meta_new_assets_2025
2025-02-18 08:29:50 +01:00
Tharo
3d61fb85ef
Add n64texconv
and bin2c
tools to convert extracted .png and .bin to C arrays during build ( #2477 )
...
* n64texconv and bin2c
* mv tools/n64texconv tools/assets/
* fix
* more light fixes
* Silence -Wshadow for libimagequant
* Add reference counting gc for palette objects in python bindings
* Fix missing alignment in n64texconv_*_to_c functions
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
* Check palette size in n64texconv_image_from_png
* accept memoryview as well as bytes for binary data
* minimal doc on n64texconv_quantize_shared
* fix a buffer size passed to libimagequant
* assert pal count <= 256 on png write
* Disable palette size check for input pngs, ZAPD fails the check
* No OpenMP for clang
* When reading an indexed png into a CI format, requantize if there are too many colors for the target texel size
---------
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2025-02-17 17:09:42 -05:00
Dragorn421
7b503e9e8c
Merge branch 'main' into meta_new_assets_2025
2025-02-16 23:03:51 +01:00
Dragorn421
43d93c112b
handle hackmode_syotes_room, fix compile
2025-02-16 14:27:53 +01:00
Dragorn421
b952b2db1e
some cleanup, use gNameTex_WIDTH/HEIGHT
macros in dlists
2025-02-16 13:14:49 +01:00
Dragorn421
e1b558df4d
finish xml spec doc
2025-02-16 00:44:13 +01:00
cadmic
a64fd8dea8
fix_bss.py: Try to handle one-past-the-end pointers ( #2471 )
...
* fix_bss.py: Try to handle one-past-the-end pointers
* Proofread
2025-02-15 16:24:25 -05:00
Dragorn421
5eff83084c
more progress on spec
2025-02-15 22:23:56 +01:00
Dragorn421
9e92c36fae
misc
2025-02-12 23:10:27 +01:00
Dragorn421
b1fc3f2495
Move {} to in-source
2025-02-12 23:10:17 +01:00
Dragorn421
6e9b4d1a59
refactor CDataExt.set_write callback args to use a dataclass
2025-02-12 22:37:26 +01:00
Dragorn421
8e5e543731
misc cleanup/fixes, pygfxd 1.0.3
2025-02-10 22:30:22 +01:00
Dragorn421
0824c9898a
start writing actual docs
2025-02-10 21:28:32 +01:00
Dragorn421
3301e7cfd7
implement JFIFResource
2025-02-10 12:45:42 +01:00
Dragorn421
0ae9f1da89
Implement legacy skelanime resources
2025-02-10 12:02:14 +01:00
cadmic
be1f9e75f0
Read static symbols from .mdebug in sym_info.py ( #2460 )
...
* Patch .mdebug for data_with_rodata objects
* Read static symbols from .mdebug in sym_info.py
* Add ability to print all symbols
* Add license
* Fix bug when missing .mdebug section
* /patch_data_with_rodata_mdebug.py license + nitpicks
2025-02-09 18:16:18 -05:00
Dragorn421
36b71ca2de
Update csdis.py ( #2459 )
...
* csdis: move filemap import to main() as it is only needed there
* csdis: fix CS_TIME macro
* csdis: make `disassemble_cutscene` return cutscene size in words
* add comment on why total_entries+1
2025-02-09 16:42:39 -05:00
Dragorn421
e0b8f3087d
check attributes of xml resources elements
2025-02-09 21:42:48 +01:00
Dragorn421
ad6ff6df27
all versions OK
2025-02-09 20:32:18 +01:00
Dragorn421
dae083d039
fixups, gc-eu OK
2025-02-09 14:36:14 +01:00
Dragorn421
b60c71403d
only extract if xmls changed or if -f (force) is used
2025-02-09 14:15:57 +01:00
Dragorn421
e311e2d378
fixups
2025-02-09 13:34:19 +01:00
Dragorn421
485640273d
Merge branch 'main' into meta_new_assets_2025
2025-02-09 13:34:09 +01:00
Dragorn421
2843f50ea4
add tools/extract_assets.sh
2025-02-09 12:21:08 +01:00
Dragorn421
bb7215b25a
introduce RawPointers xml attribute to ignore specific pointers and keep them raw
2025-02-09 12:19:44 +01:00
Dragorn421
6b857c6c71
handle dependencies between xmls
2025-02-09 11:39:24 +01:00