Commit Graph

3392 Commits

Author SHA1 Message Date
haven1433
f74c1abd45 include unused labels at end of script 2023-01-22 20:20:16 -06:00
haven1433
0ae5726551 table update (data.menus.text.pc) 2023-01-21 22:10:50 -06:00
haven1433
f305d7a7a6 don't crash when looking for matches when some options are null 2023-01-21 21:57:16 -06:00
haven1433
7d1e6065d5 ScriptParser updates
* add a basic limiter so that parsing scripts will 'give up' if they get the same 0-arg command 20 times
* fix crash that could happen sometimes when trying to check a pointer for sources during script decoding
* don't try to decode streams as scripts (misuse of the destinations collection)
2023-01-21 21:29:49 -06:00
haven1433
e55ef5c8a3 Include sub-scripts from scripts that were combined with the current script
Since scripts don't always end at an `end` or `goto` anymore (if there's a label from within the script to directly after the script), we need to make sure that these appended scripts still get a chance to add more scripts into the UI.
2023-01-21 20:41:42 -06:00
haven1433
8b79d1be0f refactor 2023-01-21 15:14:16 -06:00
haven1433
de474584ed fix trouble with resizing number of types 2023-01-21 15:14:09 -06:00
haven1433
548ecf2ac1 require that the PrimaryMap be in the VisibleMaps collection 2023-01-20 15:45:08 -06:00
haven1433
9d5bc67308 version bump v0.5.1 2023-01-16 22:29:40 -06:00
haven1433
d636108953 update callasmBattleScriptCommand
thanks `AGSMG?`!
2023-01-16 22:17:40 -06:00
haven1433
8b3f29cf6d update animation script reference 2023-01-16 22:17:05 -06:00
haven1433
1d4749b41f misc feature updates from pins
* add anchor for misc animations
* flags should be seen as hex in the script editor
* various table updates
* update text in empty block selection case
2023-01-15 23:03:48 -06:00
Smig0l
cc7b67fff2 Create default.bpei0.toml (#104)
* Create default.bpei.toml

Added the toml file with addresses valid for BPEI (Pokemon Emerald Italian Version).
Some are sourced from https://github.com/Gamer2020/PokemonGameEditor/blob/master/roms.ini

* Update default.bpei.toml

added maps addresses

* Update default.bpei.toml

updated and reordered

* Update HardcodeTablesModel.cs

* Rename default.bpei.toml to default.bpei0.toml

* Update default.bpei0.toml

fixed exception error in 0.5.0.2

* Update default.bpei0.toml

deleted commented lines

* Update HexManiac.Core.csproj

* Update HexManiac.Core.csproj

Indented correctly
2023-01-15 12:12:48 -06:00
haven1433
216dece90b scripts.callstd should only have 10 elements in firered 2023-01-12 22:21:01 -06:00
haven1433
9fdac632be Allow parsing of invalid text characters 2023-01-12 21:23:12 -06:00
haven1433
a57cd4bbc9 make modeltable more crash resistant 2023-01-11 22:42:43 -06:00
haven1433
ca7d1d8193 bugfixes
* update the block selection in the block panel when right-click selecting a block from the border block panel
* Editing a blocks layer attribute should be a one byte change
2023-01-11 22:37:18 -06:00
haven1433
8bf41b971c getting an image from an enum needs to do bounds checking 2023-01-09 21:44:56 -06:00
haven1433
74d35fc274 fix tileset expander issues
* display the name 'tileset' instead of 'blockset' in the comment
* fix bug in calculating the number of tiles currently in a tileset
2023-01-08 21:18:40 -06:00
haven1433
8dbe4f4550 clearing an anchor with inner pointers should also clear those inner pointers 2023-01-08 20:50:29 -06:00
haven1433
bf4e766b6b allow tabs in thumb editor
we need to copy both newlines _and_ tabs for the text editor viewmodel, or the spacing won't line up right between colors
2023-01-06 20:55:18 -06:00
haven1433
084a15c407 allow adding connections to maps that have none
* refactor some code from ImageTests into an IntegrationTests base class
* add MapTests class
* add test for adding a connection to Viridian Forest
* Have `ConnectNewMap` call new `GetOrCreateConnections` method instead of just trying to get the connection data that may not exist.
2023-01-06 20:29:26 -06:00
haven1433
3eaa604a1e fix typo
causes wide events to crash when trying to render partly outside the map (example, snorlax)
2023-01-05 23:00:53 -06:00
haven1433
47388d5f3e map editor bug fixes
* creating a new map should be considered an autonomous operation for undo purposes
* support connection-objects for FireRed
* crash less when reading invalid map / layout data
* show correct hover square when hovering over neighbor maps with borders
* fix elevation names / map permissions
* don't update tile render info for the block editor if the x/y change is a no-op
*
2023-01-05 22:53:35 -06:00
haven1433
99a680ddef map editor improvements
* Draw a box around the active map (but not the border) to make the separation between maps (and border blocks) more clear
* Change the Primary Map when selecting an event on a non-primary map
* update wild pokemon tooltip during refresh
* reduce visual studdering when dragging a tile around the map
* limit hover and selection to the actual map, not the border block
2023-01-05 19:34:53 -06:00
haven1433
65e534a46d map editor fixes
* say width/height correctly in the tooltips of the map size handles
* less flickering during undo
* include default OW sprite instead of blank (for example, tutorial catch man in viridian city)
* speed up the initial script-check process that looks for default trainer sprites for each OW by not caring about the length of child scripts
* use proper thread locking during block cache invalidation and renewal so that undo doesn't mess up the number of blocks shown in the block panel
2023-01-04 23:06:51 -06:00
haven1433
c79fc61de6 version bump 2022-12-23 00:22:41 -06:00
haven1433
3b79b0d3eb minor bugfixes 2022-12-27 00:17:36 -06:00
haven1433
bc4d2bb462 add script for evolution without national dex (fr / lg)
makes 3 changes to allow the 3 types of evolution to work without the national dex: level up, item, trade
2022-12-22 17:33:38 -06:00
haven1433
6acee7ab53 fix broken test 2022-12-22 17:30:33 -06:00
haven1433
dd20517ca0 align repoints to 0x40 bytes instead of just 0x4 bytes 2022-12-22 17:30:26 -06:00
haven1433
fe07a3e458 <auto> pointer bugfix 2022-12-22 17:26:56 -06:00
haven1433
e1b3bd56a3 help menu bugfixes 2022-12-22 17:26:44 -06:00
haven1433
c4dba402cb battlescript bugfixes 2022-12-22 17:26:35 -06:00
haven1433
0cc026af4f Allow 'Clear Format' in more situations 2022-12-21 23:16:35 -06:00
haven1433
204f141822 improve default name for inserted text anchors 2022-12-21 22:55:06 -06:00
haven1433
5ab843d3b2 implement game-specific macros 2022-12-21 22:47:41 -06:00
haven1433
2b4b8c7db8 fix crash when importing over an invalid palette 2022-12-21 22:34:30 -06:00
haven1433
ebb9dba336 fix sprite import when using a non-zero palette page 2022-12-21 22:10:59 -06:00
haven1433
2c52358396 Compile / Decompile improvements
* when docompiling, don't include a box that contains a partial script that's already in the main box
* when compiling, require arg counting for getting macro length
2022-12-21 08:33:53 -06:00
haven1433
3e16f8ee20 add stream content recursively for scripts
This should make <auto> able to work even when there are scripts that point to scripts, as the content will appear after the last attached script.
2022-12-20 22:34:26 -06:00
haven1433
3b6a18072f improving auto support
for mart, movement, and if statements
2022-12-20 14:29:20 -06:00
haven1433
5371397475 first part of <auto> support 2022-12-18 10:26:02 -06:00
haven1433
6874768ffc additional macros
support for out-of-order macro commands
also allows for arguments to be applied multiple times
2022-12-15 08:06:26 -06:00
haven1433
76f1977fb8 fix python enums-with-spaces parsing
* don't include " within the string when getting the value
* use `TryParse` instead of `Write` for converting the enum value from a string, since this is an all-to-one edit, not a pull-from-stream edit.
2022-12-11 22:11:27 -06:00
haven1433
1a746876c6 uncompressed tileset fixes
* allow uct8
* make it read maxTiles correctly
2022-12-11 21:55:10 -06:00
haven1433
bc5b201341 fix diff 2022-12-11 21:31:47 -06:00
haven1433
e36262518a resize viewport when adding a table via anchor textbox 2022-12-11 21:31:18 -06:00
haven1433
6f7029f193 code to protect against UpdateNewRunFromPointerFormat returning a run with no length
This can happen if the run fails to generate due to a data conflict, such as in fr omega where a text run overwrites the first byte of a trainer team run
2022-12-11 21:01:06 -06:00
haven1433
4f10ab8ae7 highlight headers for selected column/row
Only works if selection is restricted to a single row.
2022-12-11 20:35:46 -06:00