Commit Graph

221 Commits

Author SHA1 Message Date
Kurt
839e1a3f14 Add unit test for item injection validation
Check the other bind list too

don't bother checking that a bound index actually exists in the item pocket
2020-04-26 18:58:13 -07:00
Kurt
f28a544604 Finalize the verification logic for inventory
Move the ValidateEnabled check to the top to completely disable validation -- it is recommended to actually use the validation. This should work perfectly for everyone, assuming you haven't corrupted the region we're validating.

Game data structure stores as follows:

Item[20] bag;
u32 bagCount;
sbyte[20] binds;
Item[20] pocket;
u32 pocketCount;
sbyte[20] binds;

count is 0,10,20 depending on unlocked, and binding is -1 or 0-7 depending on where the item is bound (item quick use wheel)
2020-04-26 18:37:51 -07:00
Kurt
de6190ed79 Improve error message for bad encrypted int 2020-04-26 18:30:23 -07:00
Fede Capece
ce5706be90
Italian translation (#126) 2020-04-26 15:19:23 -07:00
Der Chien
024b4c440d
Add Chinese Translation for GUI (#123) 2020-04-26 08:24:05 -07:00
Kurt
214638ce2c Add skip exterior for terrain set all
https://github.com/kwsch/NHSE/issues/122#issuecomment-619472394
2020-04-25 21:40:34 -07:00
Kurt
b3629e9049 Name f8 watered 2020-04-25 14:51:48 -07:00
Kurt
b133cc72cb Add flower flags
Closes #117
2020-04-25 14:24:52 -07:00
Kurt
56f48be173 Save current villager before opening house list 2020-04-24 10:30:18 -07:00
Kurt
9b7ff912b8 Add give all art for received items 2020-04-24 10:30:04 -07:00
Kurt
9d0c169a7f Label v1/v2
https://github.com/Treeki/CylindricalEarth/blob/master/specs_120.py#L674-L707
2020-04-23 17:29:06 -07:00
Kurt
4efbb00b4e Add pro design r/w 2020-04-23 17:09:52 -07:00
Kurt
776bc030fe Move design pattern to subform 2020-04-23 16:30:39 -07:00
Kurt
d4be030294 Update Editor.cs
#98
2020-04-23 14:44:40 -07:00
Kurt
4610b55ed7 Update translatable list
Remove unused form
2020-04-23 13:42:33 -07:00
Kurt
9e50b114ed Update GameStrings.cs
Closes #107
2020-04-23 10:23:41 -07:00
Kurt
6150d9e03d Localize villager names
ezpz

throw in the special villager names at the end, cuz why not
2020-04-23 09:33:42 -07:00
Kurt
6881289acd Save & reload selected language 2020-04-23 09:22:46 -07:00
Kurt
a6c81174a8 Fix localization add
oops
2020-04-23 09:21:37 -07:00
Kurt
0ef3811fc2 Merge branch 'master' of https://github.com/kwsch/NHSE 2020-04-23 09:14:29 -07:00
Kurt
48977eefa8 Add other localizations
Need to make a dump method for villager names so that those get localized
2020-04-23 09:14:18 -07:00
Iván García
c8da08b89f
Added Spanish Translation for Software. (#100) 2020-04-23 09:13:50 -07:00
Kurt
7e736f4a46 Enhance dump for lifesupportachievements
Closes #101 ; updates dumper to use the correct off-by-one and adds a bunch of extra documentation values

I'm sure the thresholds are dumpable, but I don't think they're enforced maximums (future milestone additions)

ty @CanoeHope !
2020-04-23 08:40:45 -07:00
Kurt
94c141393f Reload displayed object on import 2020-04-22 23:43:12 -07:00
Kurt
f49d223e7b Indirectly get villager name
Villager[Index] != Villager that inhabits House[Index]

Closes #99
2020-04-22 23:22:06 -07:00
Archit Date
c36fe4cd22 update pouch offset in default settings 2020-04-23 13:32:29 +08:00
Archit Date
1460725cf0 Merge branch 'master' of https://github.com/kwsch/NHSE 2020-04-23 13:28:54 +08:00
Archit Date
e626c93916 update default pocket offset
for live injection
2020-04-23 13:28:39 +08:00
Kurt
7a78154ed6 Add trycatch for player bmp loading
Closes #98
2020-04-22 22:28:26 -07:00
Kurt
6f4d9e163c Update translations
Now includes the villager usercontrol in the editor form
2020-04-22 22:12:18 -07:00
Kurt
de48c037f9 Add house editor
only some surface appearance properties; interior item layout nope
use enum values for house info interface

Closes #95
Closes #96

Changes the displayed villager indexes from 1-indexed to 0-indexed to match the game's references.
2020-04-22 21:55:24 -07:00
Archit Date
f9d397004a add DIY recipe item 2020-04-23 12:19:41 +08:00
Kurt
143e7e84cc Update item list
Add suffix for fake painting/sculpture
2020-04-22 20:51:22 -07:00
Kurt
ce28880379 Update reference lists
fish: adds in water egg, lul
2020-04-22 20:38:05 -07:00
Kurt
b6878e4ad4 Add offsets for v1.2
up next: bcsv/msbt
2020-04-22 20:09:29 -07:00
Kurt
3a35e25c64 Update FileHashRevision.cs 2020-04-22 19:44:16 -07:00
Kurt
6e72f2e1a9 Add placeholder v1.2.0 values
Need to repoint offsets and update with the actual hash regions
2020-04-22 19:40:35 -07:00
Kurt
0ff0b02b53 Add item name dumper from msbt
reference 2283bddaff/Switch/NewHorizons/scrape_data.py
2020-04-22 14:37:14 -07:00
Kurt
e9f9e51f15 Add load from cheat code import option
Hold control when clicking Load to instead read from clipboard. If no text is found, the program will ask for a file to load instead.

Closes #90
2020-04-22 08:32:13 -07:00
Kurt
e38394092a Indicate pattern type 2020-04-21 15:12:29 -07:00
Kurt
91f88a3f3a Fix LastSavedTime offset for launch ver
parent object is not same size/layout as v1.1+; it's smaller
2020-04-21 15:12:21 -07:00
Kurt
806089cd9d Copy NPC1 when importing
Stores which villager index can inhabit the house
2020-04-21 14:52:54 -07:00
Kurt
c9a86cbff9 Add program translation
jp/en/zh -- only english has been translated (duh)
keep in mind this translates the text in the program, not the internal flag names.

not sure if other languages need to be supported; from PKHeX's experience, only spanish is updated (besides jp/zh), as most users speak english or are fine using the program in english.

pls localize villager names and item names for non-english :P -- preferrably automated from raw game dumps
2020-04-21 14:26:18 -07:00
Kurt
b4f1bda2c7 Extract translatable strings to static class 2020-04-21 12:43:16 -07:00
Kurt
eaa805a374 Add automatic backup, add program settings editor 2020-04-21 12:11:31 -07:00
Kurt
3a68919325 Add Last Saved Time, display at top of window 2020-04-21 11:17:34 -07:00
Kurt
fd44cd37be Update azure-pipelines.yml for Azure Pipelines
try this again
2020-04-20 14:43:00 -07:00
Kurt
532533ad8e Update azure-pipelines.yml for Azure Pipelines
embed build number in azure build
2020-04-20 14:25:08 -07:00
Kurt
aa970f1eab Add main (land) event flag editing
Can turn easter on/off, ha
maybe when they patch in new events ahead of time, we can turn them on early?
2020-04-20 11:31:00 -07:00
Kurt
f0492f1dc1 Allow importing old (x40) building list (not x46) 2020-04-20 09:08:45 -07:00