Commit Graph

270 Commits

Author SHA1 Message Date
Lorenzooone 1f03f27ac5
Upgrade to mgba_rom_test for faster testing (#175)
It's a 0.10 new platform, which is lighter than mgba-sdl, and also allows automatically closing the emulator when the tests end.
Helps making both the actions and the user-side docker testing faster
2022-07-09 18:08:31 +02:00
Lorenzooone c949c2a29c
Change to Github actions for building + releasing & testing (#166)
Should fix the issue with temp-builds on appveyor as well.
2022-07-03 22:52:08 +02:00
Lorenzo Carletti b7efccc27b Adds one missing pixel to the width overflow check
Also better handles the case of
"X
and its cohorts attacked!"
by breaking it into
"X and
its cohorts attacked!"
if possible.
2022-01-17 20:55:28 +01:00
Lorenzo Carletti 75a2d868b1 Add missing condition for IS_NEWLINE 2022-01-17 06:13:35 +01:00
Lorenzo Carletti c458447a34 Match the maximum amount of nestedness the game can reach 2022-01-17 06:04:56 +01:00
Lorenzo Carletti bd2acc82ab Add auto newline for encounter text 2022-01-17 05:57:02 +01:00
Lorenzo Carletti 6794d0ddef Change the text to be 3 pixels shorter
Matches the change made for M1+2
2022-01-01 21:35:27 +01:00
Lorenzo Carletti a35c547a46 Localize gas station screen
Also added a png with just the background for future translations
2022-01-01 19:02:50 +01:00
Lorenzo Carletti dbedc3712a Add overworld menu's items boundary testing 2021-12-20 00:34:28 +01:00
Lorenzo Carletti fad84ad9be Add front row and back row target boundary tests 2021-12-18 02:20:00 +01:00
Lorenzo Carletti 008b96204e Add target_name boundary tests 2021-12-18 02:08:25 +01:00
jeffman 8f24089e13
Merge pull request #150 from Lorenzooone/psi_battle_nopp_fix
Fix windows when the "Not enough PP!" message shows up in battle
2021-12-05 13:30:20 -05:00
Lorenzo Carletti 79893ad462 Make tests more indipendent from each other 2021-12-02 22:47:51 +01:00
Lorenzo Carletti cfcdb18a9f Simplify memory blanking 2021-12-02 21:09:24 +01:00
Lorenzo Carletti b71218955b Handle the "Not enough PP!" window's removal 2021-12-02 20:48:16 +01:00
jeffman 01c80662df
Merge pull request #149 from Lorenzooone/testing_branch
Add death text tests
2021-12-01 09:11:11 -05:00
Lorenzo Carletti 4301e6a747 Fix inner battle psi window being reprinted every two frames 2021-12-01 12:58:04 +01:00
Lorenzo Carletti 3132e180cc Add death text tests 2021-11-30 22:44:26 +01:00
Lorenzo Carletti 40dbb00b22 Add memory wipe function 2021-11-30 12:53:36 +01:00
jeffman 067b77f8f2
Merge pull request #147 from Lorenzooone/testing_branch
Add unit testing script and first test
2021-11-21 13:43:15 -05:00
Lorenzo Carletti fe74ac0ca7 Add tests for encounters text 2021-11-17 23:29:59 +01:00
Lorenzo Carletti 9154667efa Add support for messages within asserts 2021-11-16 20:51:53 +01:00
Lorenzo Carletti 131da4f142 Add assert function
Changes the helper functions in order to make the debug printf properly print integers
2021-11-16 12:21:40 +01:00
Lorenzo Carletti bd023ca937 Add option to build a test rom 2021-11-05 19:49:29 +01:00
Lorenzo Carletti 5e44640407 Make it so you can print outside of the emulator on mGBA
Also creates the first sketch of an infrastructure for unit testing
2021-11-04 21:15:03 +01:00
Lorenzo Carletti acdac2717a Fix issue with butterflies in Onett
Decided to go for an "issue-specific fix" for this one.

If many more of these are discovered in the future, a way to fix this for good is making it so m2_malloc also automatically clears the buffer (although that would be a very drastic decision, which would limit what you can do with a writing buffer)
2021-11-03 18:34:33 +01:00
Lorenzooone c41901d922
Merge pull request #136 from Lorenzooone/custom_codes_related
Reworked custom control codes
2021-11-03 17:58:26 +01:00
Lorenzo Carletti 7ca056d692 Fixes flickering when "Not Enough PP!" appears in the overworld
Also makes it so the game doesn't constantly print the PSI window if the cursor is not in the (0,0) position
2021-10-08 14:54:05 +02:00
Lorenzo Carletti 4b0c785811 Fix https://github.com/jeffman/Mother2GbaTranslation/issues/134 2021-10-04 00:57:16 +02:00
Lorenzooone 1c21a8d2eb
Merge branch 'master' into custom_codes_related 2021-10-02 19:33:24 +02:00
Lorenzo Carletti 83da3648c8 Properly load the letters in the quick title 2021-10-02 16:12:55 +02:00
Lorenzo Carletti 0f5cda234a Make it so the first palette isn't cleared 2021-10-02 13:19:57 +02:00
Lorenzo Carletti c2b19230ed Change when BG0 is enabled 2021-10-02 12:48:24 +02:00
Lorenzo Carletti 9ff76198d3 Insert the quick title's palettes 2021-10-02 12:36:07 +02:00
Lorenzooone c7e8c6e842
Merge branch 'title_work' into feature/title-screen 2021-09-30 23:26:28 +02:00
Lorenzo Carletti 624f3fd67a Complete Merge 2021-09-30 23:24:00 +02:00
Lorenzo Carletti d0f079a998 Fix possibly badly loaded register 2021-09-26 18:43:58 +02:00
Lorenzo Carletti 69e9161c73 Fix crash when Onett transitions to day
It was caused by the printing buffer being always loaded.
Now the game only loads the buffer when it needs it.
2021-09-25 18:24:50 +02:00
Lorenzo Carletti fd3c822774 Alloc the buffer when the allocation space is reset 2021-09-21 00:15:59 +02:00
Lorenzo Carletti 0e25bdf8da Lower memory usage for printing buffer by 1/4th
Fixes https://github.com/jeffman/Mother2GbaTranslation/issues/131
The loading process now takes 1/10th more time
2021-08-16 18:54:00 +02:00
Lorenzo Carletti 2b8ededb48 Fix only the target being considered for articles in battle 2021-05-11 03:38:48 +02:00
Lorenzo Carletti 76201841db Fix crash when giving items from a party member with ID >= 2
Also makes some garbage that appeared after the give text disappear.
2021-05-11 00:27:12 +02:00
Lorenzo Carletti ed4267a683 Improve consistency 2020-12-23 01:19:13 +01:00
Lorenzo Carletti 69725119c1 Improved code and implemented extra user check
Mimicks original code.
Also removed instances where the wrong capitalization of "The " was used
2020-12-23 01:15:16 +01:00
Lorenzo Carletti 0bbef51a70 Implement critical condition message 2020-12-22 08:35:42 +01:00
Lorenzo Carletti d74f53cd6e Add gender control code 2020-12-22 07:08:07 +01:00
Lorenzo Carletti f021d67881 Swap from loading to memory a "The " to getting it via script
Should really help the future translations...
2020-12-22 06:15:38 +01:00
Lorenzo Carletti 9ec01bb633 Update custom code name 2020-12-21 06:30:05 +01:00
Lorenzo Carletti c586a6bcd4 Make custom codes use C code instead of ASM 2020-12-21 06:24:02 +01:00
Lorenzo Carletti 18d8f76c1b Improving saturn " symbol 2020-10-31 11:30:15 +01:00