Commit Graph

4235 Commits

Author SHA1 Message Date
haven1433
2f124c7ded update scriptReference 2025-11-27 14:02:31 -06:00
haven1433
a0dac38a70 trying to make it build 2025-11-27 11:04:01 -06:00
haven1433
1ce0832d54 fix Unindex bug 2025-11-27 11:03:55 -06:00
haven1433
33acab052c doc update 2025-11-27 08:29:43 -06:00
haven1433
99d42f3385 Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2025-11-27 08:27:31 -06:00
haven1433
aaee5eb8a5 improve error information 2025-11-27 08:27:29 -06:00
haven1433
18c0c52b6c fixing bugs from discord 2025-07-20 14:20:13 -05:00
haven1433
2cb0ad134b fix possible crash found by axcellerator 2025-07-20 08:50:34 -05:00
ShinyTillDawn
ffcfbf7fd8
Added the constant for what level eggs hatch at. (#272)
* Started adding the egg-hatch level constants.

Added the offsets for Ruby & Sapphire so far. These addresses are all the same, apart from v1.1 increasing all of them by 0x20.

Credits: Jambo51 and VersekrDark (with the help of ModExe Ruby)

The anchor name could change.

* Added the lines for FireRed, LeafGreen, & Emerald.

I also specified the domain of valid levels in the comments. According to the PokéCommunity thread (linked in the Pull Request description), the game bugs out when choosing a constant greater than 100.

Credits: Jambo51 & Wobbu
2025-07-16 22:04:53 -05:00
haven1433
ef93f3e003 fix broken test 2025-07-11 09:27:10 -05:00
ShinyTillDawn
c8771895d2
Roaming Pokémon sets in FireRed, LeafGreen, and Emerald (#268)
* Added `data.maps.roaming.sets` for Emerald.

It's called `sRoamerLocations` in the decomps. Looks like there are 6 locations per major table entry instead of 7.

* FireRed & LeafGreen: Location params use map names.

Each location parameter references a map name instead of showing a literal now.
2025-07-11 09:17:08 -05:00
ShinyTillDawn
18762eba75
Added some Battle Pike & Resort Gorgeous table anchors. (#267)
* Added level 50 & open level battle pike tables.

All 8 anchors have the same formatting.

* Added the Resort Gorgeous rewards table anchor.

* Added the `scripts.elevator.floor` anchor.

I tested this, and these anchors work as intended, as well.
2025-07-11 09:16:07 -05:00
haven1433
b28c974579 Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2025-06-27 11:14:40 -05:00
ShinyTillDawn
f52ca66768
Implemented a few more feature requests. (#266)
* Hold Effects Table: 1st param. references a table.

* Renamed "bag.inside3" to "bag.pokemart".

Requested by 1RWT16KU1D.

* Made a certain table's Trigger field a hex field.

I have not tested this yet. There's a chance this could lead to metadata irregularities.

* Added Emerald's vrsn. of the town map annotations.

Testing on a fresh ROM will commence shortly.

* Lowered the length of `scripts.text.destinations`.

The correct length is 8, not 14.

* Fixed a failed test involving an anchor change.

With `graphics.bag.inside.3.palette` and company renamed, the relevant assertion in `Upgrades.cs` should now succeed correctly. I just needed to supply the old names in one spot and the new names in another spot.

* Added the banlist for FireRed & LeafGreen.

This is for the battle tower.
Requested by Sylinuser.

* Added the same banlist for Ruby & Sapphire.
2025-06-27 10:36:43 -05:00
haven1433
140faaf458 Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2025-06-27 10:32:22 -05:00
haven1433
e08a104d2b summary fix 2025-06-27 10:32:19 -05:00
ShinyTillDawn
22e60bcf86
Switched the 0x30 byte in question to 0x03. (#254) 2025-03-30 11:13:51 -05:00
haven1433
28bf92ce07 fix broken name for first person views 2025-01-05 11:05:16 -06:00
haven1433
207b0bd657 fix directions list
cannot have multiple names with the same index
2025-01-03 20:53:54 -06:00
haven1433
e0b8675e88 add turnobject alias for spriteface 2025-01-02 20:36:49 -06:00
haven1433
e64a27d11f format documents 2025-01-01 20:55:52 -06:00
Francesco Cariaggi
86389fa98d
Add partial support for Italian Fire Red (#240)
* partial support for Italian Fire Red

* minor tweaks
2025-01-01 20:53:08 -06:00
haven1433
824755f0c8 add capability for grouping table fields together
* useful for copy paste
* a bit better for performance
* when grouped, there's no "goto source" buttons on enums
* also made sprites not take performance if they're collapsed
* performance is still not great
2024-10-07 22:24:29 -05:00
haven1433
acd2496b3f add combobox to multifield
multifield now includes autocomplete for combo options
using combo options should improve efficiency, since we
don't need to create combooptions anymore.
Feature is still turned off for now, as is delayed content updates.
2024-10-06 20:42:32 -05:00
haven1433
ffb94c2dc3 prototype multifield in table
* remove 'Theme' elements from Xaml, we're not using them and the table tool is too slow, bloated with too many elements
* add capability for "multi-field" in table tool: multiple fields get gathered together into a single textbox for performance. It doesn't look as nice, but it's faster. Currently turned off
* Turn off delayed table loading while prototyping this feature. Easy to turn back on later.
2024-10-06 11:30:00 -05:00
haven1433
a8716acd53 script compilation after delay
makes the script editor go faster if they're still typing.
2024-10-05 18:22:44 -05:00
haven1433
10c89c4492 Delete 25-grid, update 9-grid functionality
9-grids are now drawn in 2x2 blocks
2024-10-05 15:49:18 -05:00
haven1433
18a3955c54 Improve table tool loading performance by introducing delay
Don't have the table try to load unless it's stable for over half a second. This initial pause make the table slower, but prevents it from trying to load during scroll operations, which greatly increases the scrolling performance.

Also, don't make the table reload in response to self-edits. If the element isn't changing because the combobox is still open, leave it be until the filter closes.
2024-09-30 22:50:40 -05:00
haven1433
c959a00e53 update comments 2024-09-22 17:06:44 -05:00
haven1433
8be50120b5 hidden item flags should count as used flags 2024-07-10 18:51:11 -05:00
haven1433
271c6460ef don't crash if connections are null
when trying to remove a matching connection from a neighboring map, it's possible that the neighboring map has no connection data. If that's the case, there's nothing to remove... just don't crash.
2024-07-10 18:32:47 -05:00
haven1433
4e3e6c9a73 these should not be editable after initialization 2024-07-10 18:14:39 -05:00
haven1433
37d81284cb guard code for FindMacro 2024-07-10 18:14:22 -05:00
haven1433
2f75729234 Only used cached script if it's from the correct parser 2024-07-10 17:53:10 -05:00
haven1433
bae0f86c0f fix numeric syntax highlighting for code tool 2024-06-20 13:15:41 -05:00
haven1433
6564bc8d8b render text jump button 2024-06-11 08:19:14 -05:00
haven1433
1045aa19a5 beginning of a simple blinking cursor 2024-06-06 21:36:00 -05:00
haven1433
d9544b3ae1 first pass SpriteIndicator 2024-06-06 09:58:01 -05:00
haven1433
34b701e60a Update anchors in callasm hma script
`scripts.battle.thumb` -> `scripts.commands.battle.battlescript`
2024-06-06 09:00:08 -05:00
haven1433
9ffa1fe0ba don't crash if looking for clones in a map with no event table 2024-06-06 08:52:23 -05:00
haven1433
3e9a4dcd04 first pass Group buttons 2024-06-06 08:29:06 -05:00
haven1433
8240b4f1e5 First pass GroupBitArrayControl 2024-06-05 18:48:20 -05:00
haven1433
8841444701 basic movement implementation for offset render control 2024-06-05 12:14:56 -05:00
haven1433
4e37507511 update default textbox context menu (select all) 2024-06-05 11:32:23 -05:00
haven1433
6f76b92bcb TableGroupPanel -> first pass palette control 2024-06-05 07:49:35 -05:00
haven1433
e7577eccbf version bump 2024-06-04 21:52:20 -05:00
haven1433
1c6e13feb1 Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2024-06-04 21:48:22 -05:00
haven1433
2731719321 make it easy to toggle back/forth between the real table UI and the prototype table UI 2024-06-04 21:48:13 -05:00
ShinyTillDawn
855959435f
A variety of changes related to HUBOL (#222)
* Updated HUBOL's move names count to 896.

Previously, two "Rapid Flow" moves were left out of the hard−coded formatting.

Testing will be required.

* Fixed a typo in the "trainerabilities" variable.

* Added HUBOL's move effect options.

Yak Attack's feature request.

The code could be improved so that it replaces the vanilla move effect options [[List]].

This code has not been tested yet.

* Fixed the indentation.

* Removed all `\t`s in favor of spaces.

* Added the code to update the "effectiveness" list.

This is if the CFRU was detected.

* Added the code to add the type chart anchor.

Address 145BB74 is the anchor reference pointer, not the location of the anchor itself.

This should be updated as `AdjustFormatForCFRU()` makes its initial call.

* Readded C9 Btl. Script alias. Fixed syntax errors.

The `jumpifattackandspecialattackcannotfall` alias no longer throws a compiler error due to its length, so it's fair game to readd it.
The other syntax errors came from implementing more things for HUBOL's metadata.

* Fixed the move effects [[List]] generation.

The existing code did not account for all of the new move effects, and the list added earlier was not completely accurate. Now, the move effect names _should_ be correct.

Some of the move effects (like Endure) are unused in HUBOL's _moves,_ but they're still used in some tables referenced by the vanilla AI.

* Optimized the code for two [[List]]s.

* Removed some comments.

* Optimized the code for making the type chart taЫe.

* Added Decorate's move effect to the metadata.

Decorate uses its own move effect (#245), and that was previously overlooked.
2024-06-04 21:44:11 -05:00
haven1433
3627fa7755 TableGroupPanel update
Child controls now have access to the FrameworkElement parent during interactions, so they can do things like updating the cursor.
First pass at an enum control
First pass at an offset render control
First pass at a text stream control
-> all of these are visual only, no interactions
2024-06-04 21:40:16 -05:00