Commit Graph

277 Commits

Author SHA1 Message Date
Josh (vector_cmdr)
4426404f2d
Fix Load All Patterns Ownership (#756)
Added Personal for IVillagerOrigin in place of current pattern index for Load All.

Moved ContainsTransparentPixels to ImageUtil.
2026-02-20 22:55:55 +11:00
Josh (vector_cmdr)
41841e5bfb
Feat: Post Box Editing (#744)
Feature:
Adds support for postbox.dat via Post Box Editor and accompanying components:
- Add Mail class.
- Add PostBox class and corresponding offset classes.
- Add wrap suppression option to ItemEditor.
- Add wrapping and box dictionary to ItemWrapping class.
- Add new language strings associated with forms and types.

Fix:
Resolved overwrite for bad dumps on all imports by adding UsageCompatibilityOffset and UsageCompatibility() added to Design classes. Transparent pixel check method added to PatternEditor and LoadPattern() altered to write the correct compatibility bytes based on type and transparency.
2026-02-10 01:32:16 +11:00
Kurt
25cff15b5a Map: Fix item layer toggle
Closes #740
2026-02-05 18:38:27 -06:00
Kurt
1e32df00db Fix player house grid config init
Closes #724
2026-01-27 19:31:39 -06:00
Kurt
0e26ad7099 Add field item flag import/export
Only for entire map, not acre
2026-01-27 08:11:41 -06:00
Kurt
7b2354af84 Simplify expressions 2026-01-27 00:42:19 -06:00
Kurt
39d6a3196d Render outside terrain selections
outside.bin used to display; might be wrong on some of the outside acres (north?)
2026-01-27 00:00:19 -06:00
Kurt
b88c518d5c
Update FieldItemEditor for 3.0.0 (#716)
Updates the Field Item Editor to render layers based on the entire map, and the per-patch positioning of each layer.
Import/export will gracefully handle upgrade/downgrade, and viewport import/export will gracefully update tiles rather than a per-acre basis.

Performance has also been slightly improved; no allocation is done anymore when updating the image.
2026-01-25 16:55:38 -06:00
DESKTOP-SN9KF5O\Strawberry
943cd06703 Fix "rolling suitcase" ItemRemakeInfoData
# Accidental oversight of an item that previously existed but had no remake info data
2026-01-24 23:55:40 +00:00
Josh (vector_cmdr)
af46059387
Update Available Reactions (#713)
Add new player reactions and the new unused ones.
2026-01-25 03:09:01 +11:00
Josh (vector_cmdr)
c3371475d4
Fruit + Flower Improvement (#704)
Added fruits + flowers to Player Misc menu (kept field goods property manager in place still).

Saving fruits pushes change to flags block for fruits so that multiple edits aren't required when changing/saving it with new UpdateFruitFlags method.

Flowers added as enum class like Airport Color, but should be moved out to strings for localization later on.
2026-01-20 14:45:51 +11:00
DESKTOP-SN9KF5O\Strawberry
1aaccd1962 Update remake data for 3.0.0 2026-01-18 15:31:41 +00:00
Kurt
db54e5ae1c Fix identity swap when using span slices
Closes #684

Defensively allocate a copy so that the replacement does not overwrite the original sequence A=>B then continue doing B=>B swaps.
Wasn't a problem before since properties fetched byte[] (allocated separate slice); changing to span introduced this regression -- now fixed.
2026-01-17 16:14:09 -06:00
Kurt
ff4c77a06c Misc tweaks
No functional change
2026-01-17 15:17:39 -06:00
Kurt
fd4f83ba40 Condense expression for EncryptedInt32
Bitwise operations were done manually; use intrinsics for clearer intent.
2026-01-16 15:43:41 -06:00
Kurt
d276527404 Condense some expressions 2026-01-16 00:29:38 -06:00
Kurt
fd37fa4397 Add unit test for pattern replacement
The previous method was fine, not sure what the underlying issue is. The unit tests assert that the sequence is fully replaced.
2026-01-14 18:59:38 -06:00
Kurt
0ad0ee0697 Rewrite crypto to use span 2026-01-14 16:42:57 -06:00
Kurt
9d1309827e Pre 3.0.0 support
Adds data for supporting 3.0.0, still needs savefile structures/hash range dumped and incorporated into MainOffsets30/PersonalOffsets30. Offsets/range is currently a copy of 2.0, which is obviously not correct. Saves will fail to load as encrypted values are not at the expected offset (pls no complaints).
CTRL-I from main form still opens the injector interface; RAM offset not yet documented.
2026-01-14 11:17:15 -06:00
Kurt
fa3f0e3cc8
Update to .NET 10 (#683) 2026-01-13 16:02:58 -06:00
Alca259
a20bd1c419
Support for 16x16px per tile and river editor (#668)
* Upgrade to .NET 8 + Nugets

* Add support for tile 16x16px instead 1px

* Rivers except 2B

* River2B
2025-07-28 00:02:34 -05:00
Kurt
2287521b44 Update dependencies
Bump net5 build to net6
2022-10-25 14:36:45 -07:00
MyShiLingStar
8bf246aac9
Fix HHP acres display in FieldItemEditor. (#607)
Co-authored-by: MyShiLingStar <MyShiLingStar@STARLIGHT>
2022-07-20 21:42:18 -07:00
berichan
f6756e9cb5 Add HHP Acres
# Many thanks to @MyShiLingStar for the RE work
2022-07-20 22:26:39 +01:00
berichan
a83c8c26bd Correct missing F in OutsideAcre.cs 2022-07-20 20:48:29 +01:00
crunchprank
9d327e0a25
Update GameFileDumper.cs (#575)
Changed the Pro Design Editor to dump files as `nhpd` seeing as that is the extension it looks for upon import.
2021-12-14 13:23:28 -08:00
hp3721
d71e356f6e
Fix writing to PlayerRoom2.ExtraEffectLayerList (#569) 2021-11-28 08:20:06 -08:00
hp3721
2ed928e961
Fix loading player house and room dumps (#552)
* Fix loading player house and room dumps

* Check converted house/room data lengths rather instead of the imported dunmp's

* Fix downgrading player house format
2021-11-20 08:22:11 -08:00
hp3721
e7dd2c131b
Fix player room loading for v2.0.0 (#549) 2021-11-19 22:56:32 -08:00
hp3721
8aed43a67f
Add handling for revised player house and room structure (v2.0) (#547)
* Add handling for revised player house and room structure (v2.0)

* Update player room load/dump file type filters
2021-11-19 19:53:04 -08:00
Kurt
bb2ea75f58 Reorder bounds check & rotation swap
Closes #529
2021-11-08 15:21:36 -08:00
Kurt
3e7bacb80b Add exclusion for one-time DIY indexes
Closes #523
Thanks @Zelfild for identifying the problematic indexes!

Skips over these two indexes on give-all, and skips over them when spawning a set of DIY items onto the ground.
Added control-key to set all IsNew to false instead of true (when doing GiveAll)
2021-11-06 13:16:52 -07:00
Kurt
caab4f5512 Lossless v1->v2 upgrade 2021-11-05 14:27:40 -07:00
berichan
4bc258e5ab Small clean + update menu icon data 2021-11-05 15:14:54 +00:00
Kurt
4cad6f5894 Add handling for revised villager house structure (v2.0) 2021-11-04 20:10:49 -07:00
Kurt
8582e96978
Initial v2.0.0 Support (#520)
* Initial save arrangement
* Add initial text dumps
* Update metadata
* Update offsets for main/personal, fix variation test -- items now internally labelled for no variation
* Add event flag labeling
* Add customization remake lookup entries
2021-11-03 21:28:18 -07:00
Kurt
6fb4569ce3 Design Patterns: Load orders by filename, export prompts for filename format
Closes #512
2021-10-16 16:38:33 -07:00
Emil B
083eae90f2
Change pattern system (#504)
To make dumping/loading designs match other dumping/loading buttons (terrain, acre and so on)
+ clicking on "Dump/Load Design" will draw a context menu with 4 options (2 if it's only one design pattern e.g. town flag).
+ when loading designs, I made the Listbox with the design names repopulate (update names) and select the user-selected design instead of going to index = 0;
+ when loading all designs I open a prompt to update "values" or not, instead of by default updating them.
+ fixed file name of dumped singular pro designs to .nhpd instead of .nhd lol
2021-09-06 10:31:11 -07:00
Kurt
567a9175f3 Add IsActive indication on hover, add toggle control
Closes #495
2021-08-01 16:39:27 -07:00
berichan
0af2d48e16 Update menuicontype 2021-07-29 17:51:36 +01:00
Kurt
ec8bcf261e Add remove item like in editor
Closes #492
2021-07-28 23:09:04 -07:00
Kurt
770592df1a Update event flag lists 2021-07-28 18:45:02 -07:00
Kurt
c3ac90d29d Update item recipes/customization options 2021-07-28 18:44:50 -07:00
Kurt
069c3cc702 Update item types/qualities 2021-07-28 18:44:34 -07:00
berichan
29df2c2d51 Add Flowershower MenuIcon 2021-05-01 15:43:31 +01:00
Kurt
02fba973d8 Update item/flag/remake parameters 2021-04-27 23:26:48 -07:00
berichan
7fe8bcb53e bulk-remove bushes, closes #311 2021-04-12 19:29:17 +01:00
Kurt
18ed4c3396 Add Festive wrapping handling
Closes #474

New Horizons loves to reuse and reinterpret data based on values, hence the GUI toggling done for Uses/Variations/Genes... we have to do something similar here. Feels best to be done behind the scenes via code instead.
2021-04-05 17:32:35 -07:00
Kurt
d1932a6651 Expose all 100 patterns in editors/dumps (1.9.0)
Closes #471
2021-03-31 22:37:48 -07:00
Kurt
0798aa5a97 Add batch editor
Similar to PKHeX's batch editor, probably with some stubbed functionality.

Example to change Oak Trees to apple trees:
=ItemId=60000
.ItemId=60001
;
=ExtensionItemId=60000
.ExtensionItemId=60001

Example to unbury all items:
=IsBuried=True
.IsBuried=False
.IsDropped=True
2021-03-21 11:51:57 -07:00