108 Commits

Author SHA1 Message Date
Rangi 0f087a51e3 Add tie-breaking to gbcpal.c in case colors' luminances are identical 2026-09-22 22:03:32 -04:00
Rangi 656583c939 Sync the make_patch tool with poketcg 2026-08-13 17:31:40 -04:00
Rangi e78abb8382 Use NULL instead of malloc(0) 2026-07-20 21:34:24 -04:00
Rangi 6d8b269732 Fix some issues with C tools, and build them with -std=c17 (#149) 2026-06-12 12:02:46 -04:00
Rangi ddf7820eac Replace lzcomp with lzcompress (#148) 2026-06-11 13:42:20 -04:00
Rangi 69c42a0d26 Tools accept - as a placeholder filename for stdin or stdout (#1257) 2026-06-08 12:52:14 -04:00
Rangi 20df8e864d Fix tools/make_patch.c to be endian-independent 2026-06-07 01:48:00 -04:00
Rangi e4a41d447b Do not compile tools with LTO
Some older systems do not support LTO, and it's unnecessary
for these simple single-file tools
2026-01-20 19:12:29 -05:00
Rangi42 7ab16e4f61 Don't hard-code the Stadium data handling in tools/make_patch.c
Instead, have a `--ignore addr:size` option that's set in the Makefile
2025-11-12 13:41:43 -05:00
Rangi42 b3305e76af Support < and > prefixes for high and low bytes in VC patch templates 2025-03-14 21:41:37 -04:00
vulcandth 1d8a5338cf Use exported constants for VC patch (#125) 2024-12-27 13:10:25 -05:00
Rangi42 80d17e1514 Refactor gbcpal.c 2024-10-17 14:20:09 -04:00
Sylvie a18a8bf27e Sort Pokemon and trainer sprite palettes, with Makefile-specified exceptions (#121)
This avoids the need to define their order via indexed PNG palettes

It also avoids the need to use tools/palfix.py on custom sprites
2024-10-17 13:45:02 -04:00
Rangi42 3130c5473d Remove independent tools and link to pokemon-asm-tools
palfix.py still exists since it is often needed
2024-10-07 16:53:40 -04:00
Rangi42 f5a8765ed9 Fix tools/sym_comments.py 2024-09-26 16:10:11 -04:00
Rangi42 a621806e42 Use bankless symbols for VC constants
This is valid according to the .sym file spec:
<https://rgbds.gbdev.io/sym/>
2024-08-04 21:11:19 -04:00
Rangi42 80ce1ad47a Remove tools/unnamed.py since everything is named 2024-07-24 12:17:23 -04:00
Rangi42 4ba1e38a5c Build with RGBDS 0.8.0, though only 0.7.0 is required 2024-06-28 16:10:57 -04:00
Rangi42 c41e710a0d Disable LodePNG auto-encoding the bpp2png image 2024-04-14 15:57:55 -05:00
Rangi e06a6b1550 Fix segfaults at EOF, add token/newline checks, and support '\r' in scan_includes.c 2023-08-15 19:22:24 -04:00
mid-kid b926758efb Fix tools/free_space.awk for new rgbds (pret/pokecrystal#1049) 2023-05-17 15:55:33 +00:00
Rangi 43cd2b7f32 Only patch Stadium data for a 2MB ROM 2022-12-03 11:10:52 -05:00
Rangi 24c830eed4 Fix LodePNG to avoid -Wcast-qual warnings
<https://github.com/lvandeve/lodepng/issues/160>
2022-10-14 16:17:54 -04:00
Rangi db4741fee7 Revise macros in tools 2022-10-12 21:42:59 -04:00
Rangi 9cfa9e83f6 Update tools/unnamed.py for rgbds 0.6.0 object files 2022-10-02 22:34:08 -04:00
Rangi 42ba9bbbe1 Require rgbds 0.6.0 2022-10-02 21:52:02 -04:00
Rangi 52af53f650 startswith works with a tuple 2022-09-30 17:00:51 -04:00
Rangi fa90aca18e Refactor stadium.c to match pokecrystal
Fixes #106
2022-09-30 17:00:43 -04:00
Rangi b1aba8ab58 More tools/stadium.c refactoring 2022-09-27 17:43:10 -04:00
Rangi 183412025c Reorganize the tools/stadium.c code 2022-09-27 17:12:10 -04:00
Rangi 6fd3bc512b Fix tools/unnamed.py and add tools/consts.py 2022-09-18 23:59:06 -04:00
Rangi bcebc88b0f Update and add more tool scripts 2022-09-18 23:17:31 -04:00
vulcandth 05944aa760 Fix the Stadium patch size in make_patch.c (#83) 2022-05-12 20:25:00 -04:00
Rangi 7b0977701d Simplify mingle_2bpp_planes 2022-04-17 15:27:32 -04:00
Rangi fa8f30723e Port make_patch.c features needed for pokered 2022-03-26 17:25:35 -04:00
Rangi 445576afb8 Use noreturn for usage_exit 2022-03-15 17:35:34 -04:00
Rangi 10d5f1295a Use -flto for all tools 2022-03-15 17:29:13 -04:00
Rangi ccbdbb668c Remove pokemontools and gfx.py; update PyPNG and standardize on Python 3 2022-03-14 19:46:07 -04:00
Rangi e1e74bf039 Add a bpp2png tool to replace gfx.py for converting 1/2bpp to PNG 2022-03-14 19:41:29 -04:00
vulcandth 3d58fb9556 Build the Virtual Console patches with make gold_vc and make silver_vc (#74) 2022-03-14 17:03:15 -04:00
Rangi 9a97c99f38 Slightly refactor some C tools 2022-03-08 21:47:51 -05:00
Rangi e907992663 Rename *_verbose functions to idiomatic x* 2022-03-02 21:39:09 -05:00
Rangi b3440884e5 Remove unused #include <unistd.h> 2022-02-28 19:28:11 -05:00
Rangi e315a38db4 Port rewritten tools from pokecrystal 2021-09-26 22:14:37 -04:00
Rangi 65d1e12d6a Require rgbds 0.5.1
Use some new features: \<10> macro args, SECTION UNION, SIZEOF/STARTOF, and CHARLEN/CHARSUB
2021-05-09 12:47:43 -04:00
Rangi 40dbe0df04 Use rgbds 0.5.0 2021-04-20 21:17:09 -04:00
Rangi 24c6b2d3a1 Run tools/palfix.py on gfx 2021-03-18 22:31:39 -04:00
Rangi 8b5dde16c3 palfix.py outputs 2-bit grayscale if possible 2021-03-15 18:21:44 -04:00
Rangi b4d414a544 Add tools/palfix.py, and make Python tools executable 2021-03-15 16:47:42 -04:00
Rangi e5ba485eac Require rgbds 0.4.2
This allows [\1] to work when \1 is hl, bc, or de

The object file format has changed along with the version number
2020-12-09 12:33:59 -05:00