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
Dragorn421
3dc74cde04
generate and use Limb enums (TODO: check Skin skels and implement for Curve skels)
2025-02-09 01:53:00 +01:00
mzxrules
03a2612246
Rename gMtx(F)Clear to gIdentityMtx(F) ( #2458 )
2025-02-08 19:00:32 -05:00
Dragorn421
589916d767
rm extract_assets.py
2025-02-08 18:11:07 +01:00
Dragorn421
3a428239c9
slightly improve standard output
2025-02-08 18:10:57 +01:00
cadmic
e63d2b73b7
Use CIC 6102 for iQue decompressed ROMs ( #2457 )
...
* Use CIC 6102 for iQue decompressed ROMs
* Future-proof is_ique
* Make things more readable
2025-02-06 21:10:30 +01:00
Dragorn421
8aaaca4fe0
dmadata file names no longer hardcoded for gc-eu-mq-dbg
2025-02-06 20:44:16 +01:00
Dragorn421
e8e15eca9f
fix csdis CS_TIME extra arg
2025-02-06 14:13:55 +01:00
Dragorn421
e6cf32d829
Implement PlayerAnimationDataResource (link_animetion data)
2025-02-06 14:13:35 +01:00
Tharo
9a3878ec7e
git subrepo clone --force git@github.com:Thar0/com-plugin.git tools/com-plugin ( #2455 )
...
subrepo:
subdir: "tools/com-plugin"
merged: "fc5aa5eda"
upstream:
origin: "git@github.com:Thar0/com-plugin.git"
branch: "main"
commit: "fc5aa5eda"
git-subrepo:
version: "0.4.6"
origin: "https://github.com/ingydotnet/git-subrepo "
commit: "110b9eb"
2025-02-05 22:53:35 -05:00
Dragorn421
439124fc55
implement more of RoomShapeImage types
2025-02-06 00:49:31 +01:00
Dragorn421
8ec6769124
fix extracted data to no longer produce compilation warnings
2025-02-05 23:30:27 +01:00
Dragorn421
66db26a999
implement more skeleton-related types, cleanups, fixups
2025-02-05 23:17:05 +01:00
Dragorn421
f70a07f8cf
Merge branch 'main' into meta_new_assets_2025
2025-02-05 19:21:41 +01:00
Dragorn421
e16e52e3de
gc-eu-mq-dbg OK from clean with make setup && make
2025-02-05 19:20:38 +01:00
Dragorn421
11e8d23027
Write source with static for overlays using HACK_IS_STATIC_ON
hack
2025-02-05 19:04:30 +01:00
Dragorn421
956b3b4a96
use variables from config.yml for gMtxClear and sShadowTex addresses
2025-02-05 18:26:25 +01:00
Dragorn421
8411c34b38
wip: New assets system tm
...
Builds gc-eu-mq-dbg OK from clean after
1) make setup
2) python3 -m tools.assets.extract -j
3) replace 0x80A8E610 with sShadowTex in extracted/gc-eu-mq-dbg/assets/overlays/ovl_En_Jsjutan/sShadowMaterialDL.inc.c
4) make various symbols in extracted data like sTex static
2025-02-05 16:31:29 +01:00
cadmic
8b82eb1ff7
Delete disassembly data for ique-cn ( #2453 )
2025-02-04 13:17:57 +01:00
Tharo
c028db03b4
Finish matching ique-cn ( #2451 )
...
* git subrepo clone git@github.com:Thar0/com-plugin.git tools/com-plugin
subrepo:
subdir: "tools/com-plugin"
merged: "e8543312d"
upstream:
origin: "git@github.com:Thar0/com-plugin.git"
branch: "main"
commit: "e8543312d"
git-subrepo:
version: "0.4.6"
origin: "https://github.com/ingydotnet/git-subrepo "
commit: "110b9eb"
* ique-cn OK
* Review suggestions
* Most suggestions
* git subrepo pull tools/com-plugin
subrepo:
subdir: "tools/com-plugin"
merged: "81595ed1c"
upstream:
origin: "git@github.com:Thar0/com-plugin.git"
branch: "main"
commit: "81595ed1c"
git-subrepo:
version: "0.4.6"
origin: "https://github.com/ingydotnet/git-subrepo "
commit: "110b9eb"
* Fix other versions
2025-02-04 06:55:04 -05:00
cadmic
6c06168e72
fix_bss.py: Gracefully handle EGCS-compiled files ( #2452 )
2025-02-03 01:42:31 -05:00
cadmic
ef53bfd693
[iQue] Match z_file_copy_erase ( #2447 )
...
* [iQue] Match z_file_copy_erase
* Reword comment
2025-01-29 14:17:13 -05:00
Sirius902
dfe232533f
Fix /bin/bash -> /usr/bin/env bash ( #2448 )
...
* Fix /bin/bash -> /usr/bin/env bash
* Add curl to docker container
2025-01-28 18:45:56 -05:00