Commit Graph

123 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)
dc7292a5d3
Fetch PlayerID for Patterns (#755)
Changed check of current pattern slot player ID to check of current player ID for pattern overwrites.
2026-02-20 11:30:12 +11:00
Josh (vector_cmdr)
e8c5daf745
Fix: Map Design Import/Export (#751)
Previous fix for bad map design imports had an incorrect range and no way to manage v2.0.8- and v3.0.0+ dumps.

Import/Export for map design patterns now supports both map sizes (old and new).
It will accept 2.0.8 dumps and pad them to work on 3.0.0 as well as trim previously mangled ones, or 3.0.0 dumps down to fit on 2.0.8 saves.

Byte padding methods added to ArrayUtil for this padding and for future map flag import padding fixes.
2026-02-15 02:12:32 +11:00
Josh (vector_cmdr)
18995c7299
Fix: Pro Pattern Import (#750)
I beefed the UsageCompatibility addition by accidentally deleting the exception catch when cleaning up some comments and thus killed the WritePatternPRO method lol. Absolute unit of a goose.

Took the opportunity to moved the compat to the other data manip in the buttom methods instead of the load methods.
2026-02-14 01:59:05 +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
e54814d0d3 Misc position fixes
Closes #733
Fixes plaza x/y control position
Fixes storage page-up/down button position
2026-01-31 11:04:59 -06:00
Kurt
e6f45d1805 Fix terrain brush popup
Closes #729
1. Dark mode now applied correctly (was previously lacking)
2. Fixed terrain brush action (brush active is higher priority than drag, fix tile fetch)
3. Fixed writing of Building/structure labels; apply after Terrain
4. Single terrain brush form allowed, center to Field Editor on launch

Somewhat related: fix Show() load for non-ShowDialog() forms to center to parent.
2026-01-30 22:55:26 -06:00
Kurt
2ca9fd6e22 CenterParent, Dpi base scaling 2026-01-28 19:51:49 -06:00
Kurt
be1b6f07a7 FieldItem: rearrange layout for GUI scaling
Image no longer overlaps with controls, they'll shift down
2026-01-28 19:51:20 -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
68d6db1300 Revise building max coordinates
Make same as plaza coordinate clamp (1024), idc what the real max is, just allow a too-high value to prevent any further errors :)

Closes #721
2026-01-26 22:38:29 -06:00
Kurt
a04159d7fa Fix terrain tile view
Closes #719
2026-01-26 22:37:17 -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
Josh (vector_cmdr)
9bcaee6fc9
Relocate Fruits/Flowers + cleanup strings (#711)
Relocated island/sister fruit/flower functionality to new FruitsFlowersEditor out of MiscPlayer to better follow existing layout.
Added new button for this editor to Map tab for the new form. MiscPlayer fruit now sets passport only, FruitsFlowersEditor sets both. Other functionality remains as before.
Retired FieldGoods from the Map button in favour of above.

Adjusted UI anchors and open positions for new forms + cleaned up recent lang_xx string additions.
2026-01-24 01:30:00 +11:00
Josh (vector_cmdr)
c412da8217
Add theme menu + new strings (#710)
Add theme menu to Editor and accompanying logic + strings.

Updated Misc fruit/flower and CampsiteEditor to use translatable strings.
Added new strings to lang and msg files.
2026-01-23 13:33:00 +11:00
Josh (vector_cmdr)
2c8de97ca1
Add Campsite Editor (#707)
Add: Campsite Editor to Map tab.
Allows users to set whether there is or is not a villager visiting the campsite, allows selecting that visitor and to edit the visit timestamp (defaults to current timestamp override so visitor is there on same day load).
Back-tracked offsets from old Cylindircal Earth save schemas for old save revs.
If campsite is not unlocked on the save, the UI is locked out with a message.

Cleanup: Moved UpdateFruitsFlag to misc editor class over save class because that was bad form. Oops.
2026-01-21 23:36:12 +11: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
Jake Edwards
ad372b7955
Added simple copy to clipboard to help dump nice flags (#638) 2023-11-09 06:45:22 -08: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
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
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
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
4cad6f5894 Add handling for revised villager house structure (v2.0) 2021-11-04 20:10:49 -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
berichan
6c870b2e89 BulkSpawn alphabetically sorted DIY recipes 2021-08-07 13:48:14 +01:00
Kurt
567a9175f3 Add IsActive indication on hover, add toggle control
Closes #495
2021-08-01 16:39:27 -07:00
Kurt
ec8bcf261e Add remove item like in editor
Closes #492
2021-07-28 23:09:04 -07:00
PXLcat
dedc296c2b
Added tool to visually select and add basic tiles (#484)
* Added tool to visually select and add basic tiles

* Minor clean
2021-05-20 13:59:57 -07:00
berichan
7fe8bcb53e bulk-remove bushes, closes #311 2021-04-12 19:29:17 +01:00
Kurt
2b87990faf Fixed bug w/bulk spawn wraps onto 2 lines in horizontal layout
c1bc5ae97f

Add Vertical spawn mode, since people like to do that for their treasure islands

Co-Authored-By: MadDanEccles <5344903+MadDanEccles@users.noreply.github.com>
2021-03-29 23:11:13 -07:00
Charlie U
8fd348448a
Add checkbox to enable/disable moving field editor on mouse drag (#467) 2021-03-22 15:27:29 -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
Kurt
75c176c028 Fix: Replace All items using a copy of the tile
The field array will get mutated, so make sure that our item reference isn't one of the field tiles.
2021-02-28 18:41:25 -08:00
Kurt
339bb4f7c8 Update PlayerHouseEditor.cs 2021-02-15 19:52:58 -08:00
Kurt
5b46d3ddaf Update FieldItemEditor.cs 2021-02-15 19:52:13 -08:00
Kurt
d47158587c Add tile replacement to Field Item Editor
hold ctrl+alt(+shift for full map) to replace all items on the map that you tap, with the item from the editor.

don't mix & match field items (trees) with regular items, cuz we can't verify size matching for those. Field Items return "unknown size".
2021-02-05 09:15:52 -08:00
Kurt
f427ca647e Update FieldItemEditor.cs 2021-01-23 23:52:24 -08:00
Kurt
2670a6c751 Add placed design dump/load
https://github.com/kwsch/NHSE/issues/443#issuecomment-765915667
2021-01-23 10:58:58 -08:00
Kurt
1c4df60920 Add pattern bulk import
#443
Pattern names don't update on the left side (even for single-imports), don't bother for now. Just save & reopen the editor.
2021-01-22 23:14:14 -08:00
Kurt
83169b8738 Bump language version to c#9 2020-12-24 23:53:40 -08:00
Kurt
1e0bd10bdb Minor clean 2020-11-22 19:40:37 -08:00
Charlie U
2467354850
Implement ItemsFromNHI bulk import (#418)
* Implement ItemsFromNHI bulk import

* Add alert box when spawn clicked but no NHI selected

* Fix comment to clarify items are dropped not placed
2020-11-18 18:43:40 -08:00
Kurt
8ca3877bfa Differentiate villager types
v1.5 increased the size of GSaveLightMemory by 0xC each; with 160 entries, everything stored after this field (at 0x2F84) increased its offset by 0x780.

  GSaveItemName                     ClothesPTops;                           // @0x14c size 0x8, align 4
  s16                               _58b5e808;                              // @0x154 size 0x2, align 2
  s8                                ClothesPTarget;                         // @0x156 size 0x1, align 1

Should be possible to convert the first revision of villager data to the current format and vice versa. Someone would need to document how they pre-fill these new fields (listed above).
2020-09-29 22:20:53 -07:00
Charlie U
93c78a15bf
Fix bug causing only 3-letter .nhvh files to show in dialog (#315) 2020-06-22 15:50:59 -05:00
Kurt
de3ee7ba41 Rotate terrain tile on ctlr-shift click
Closes #290
2020-06-01 20:47:04 -07:00
Kurt
2b3225fd4b Update FieldItemEditor.cs
Closes #282
2020-05-31 17:27:13 -07:00