Commit Graph

175 Commits

Author SHA1 Message Date
AdAstra-LD
91c0d1dc9b Proper form handling in Trainer Editor 2023-05-22 00:21:14 +02:00
AdAstra-LD
f8ba5662db Fixed spawnables write 2023-05-16 22:21:56 +02:00
AdAstra-LD
c011bc9647 Fixed event file corruption 2023-05-13 16:10:20 +02:00
AdAstra-LD
90f20bdba4 TextArchive plaintext I/O 2023-05-13 01:26:08 +02:00
AdAstra-LD
4fa85f2c80 Handling of fixed-point height [NPCs] 2023-04-21 02:58:17 +02:00
Matthew Morrison
8df3641cbc Poké to Poke for better IDE experience 2023-02-06 09:01:28 +01:00
Matthew Morrison
1b083c2986 Unify é 2023-02-06 09:00:34 +01:00
AdAstra-LD
b6e5c96b5e Better handling of UseScript for functions 2023-01-16 12:36:06 +01:00
AdAstra-LD
ba084cd397 Minor GUI edits + formatted ScriptFile.cs 2023-01-16 10:03:56 +01:00
AdAstra-LD
875065f018 Fixed error report linenum index 2022-09-25 22:31:57 +02:00
AdAstra-LD
6b95302cac Improved display of event entities + new event importer 2022-09-03 16:34:32 +02:00
AdAstra-LD
56b6473fcb Added an error message to Script Editor for missing usescript references
+ Script save file functions now return true when everything was saved correctly, false otherwise
+ Return value of the script save functions is checked to determine whether or not to mark current script file as changed
2022-08-30 00:07:38 +02:00
AdAstra-LD
00d05fa3d7 Converted simple tuples to ContainerReference struct 2022-08-29 22:20:48 +02:00
AdAstra-LD
c73dd4490c Added support for rotatable buildings [disabled]
[+] Fixed a typo
2022-08-09 10:13:13 +02:00
AdAstra-LD
eb86f450b1 Fixed incorrect handling of empty script lines
Fixed wrong linenum in parser failure error message
2022-07-18 00:31:40 +02:00
AdAstra-LD
688a590a05 Cleanup of Pokémon icons [now read from the ROM itself]
+ Table editor pokemon icon is read from the ROM as well
2022-07-17 23:22:11 +02:00
AdAstra-LD
6b8ff7c556 Minor trainerclass edit 2022-06-17 22:21:01 +02:00
AdAstra-LD
22dd68abb5 Improved management of file filters 2022-06-16 17:11:25 +02:00
AdAstra-LD
edcf6ab93e Fixed error popping up when searching HGSS scripts
[+] Changed command names to match between DPPt-HGSS
2022-06-16 17:11:23 +02:00
AdAstra-LD
180296e60b Improved script editor readability [Directions and movecodes]
[+] Added new script command names to database
[+] Optimized script search speed
2022-06-16 17:11:23 +02:00
AdAstra-LD
d0688761f5 Fixed Issue #8
[Wrong line numbers in the script editor's error messages]
2022-06-11 14:47:33 +02:00
AdAstra-LD
8b9c886f03 Shift Up and Shift Down Text Editor buttons 2022-06-05 22:12:15 +02:00
AdAstra-LD
2129448849 MapFile moveperm discard implementation 2022-06-04 03:45:23 +02:00
AdAstra-LD
7c3ccdfe16 Handling of missing trainer file name entries + fixed Trclass reset 2022-05-25 23:00:42 +02:00
AdAstra-LD
74106a1f2c Fixed evt extension 2022-05-04 01:26:20 +02:00
Nathan Wichers
33af61af74 Fix Pokémon forms shift in Trainer Editor 2022-03-23 23:38:50 +01:00
AdAstra-LD
24790d463c Event Editor warp headers are shown by name 2022-02-10 05:49:56 +01:00
AdAstra-LD
3ba2bf558c Tweaked Building assets load functions 2022-01-20 01:56:47 +01:00
AdAstra-LD
a46d25e74b Fixed exception when double-clicking any cell of a non-0 matrix 2022-01-13 02:18:40 +01:00
AdAstra-LD
da335907c9 Minor refactor 2022-01-07 17:48:47 +01:00
AdAstra-LD
c103f458b8 Fixed stack overflow with function recursion 2022-01-07 17:48:47 +01:00
AdAstra-LD
b0d213a523 OW Sprites can be previewed even without placing an OW
+ Event editor render settings are saved
+ When an event type is not rendered, it can't be moved using direct clicks (prevents mistakes)
2022-01-07 04:59:02 +01:00
AdAstra-LD
a6bc205a88 Script and text editor format preference is memorized 2022-01-07 03:47:32 +01:00
AdAstra-LD
5ceb71a95d Fixed extension filter for file save 2022-01-06 02:11:33 +01:00
AdAstra-LD
7e7c552515 Added patch that disables all texture animations 2022-01-04 02:29:37 +01:00
AdAstra-LD
4dc173e9b7 Fixed bug with HGSS encounter files parsing
+ trainer editor shows moves and items in the correct order
2022-01-03 23:17:38 +01:00
AdAstra-LD
ae921b8ac8 Fixed a critical UseScript bug (list sort)
+ Refactored useScript attribute of CommandContainer --> usedScript
2022-01-01 04:33:34 +01:00
AdAstra-LD
1166d89e3e Added List-Based Batch Rename Tool to Tools dropdown 2021-12-29 02:51:45 +01:00
AdAstra-LD
5e14b76ec6 Major Trainer Editor cleanup
[+] Fixed Trainer Class Save button updating class name in combobox

[-] Party Data import is still buggy

TO FIX:
button of search in script icons [CTRL+F]
text size columns [camera editor]
trainer table combo update [combobox]
2021-11-26 03:33:14 +01:00
AdAstra-LD
27583d2b17 Misc Improvements
[+] Better management of statusLabel messages for Editors Setup
[+] New Matrix and New Event File buttons now create a new blank file from scratch
[+] Loading maps from a Matrix that has no Headers Tab will search for usages of that Matrix in all Headers
[+] Map model can be rotated in multiple directions at the same time
2021-11-13 20:09:43 +01:00
AdAstra-LD
ddc1c8715d Fixed problem with file extensions in Encounter editors
[+] Also added icons to buttons
[+] Improved error detection of HGSS Encounters editor
2021-11-10 01:45:39 +01:00
AdAstra-LD
0566d55935 Version Update + Script Number format
[+] Fixed mess with system icons
2021-11-07 01:44:41 +01:00
AdAstra-LD
1d226cbb1f Fixed DPPt/HGSS map cross-import
[+] Added more warnings & error messages (to handle exceptions)
2021-11-01 06:12:22 +01:00
AdAstra-LD
31f9488cfb Misc fixes [mostly Script Editor]
[+] Fixed PokeRadar percentage labels
[+] Removed Script Containers static KW
[+] Script Editor now notifies when user is attempting to save an empty script
[+] Script Editor got better at detecting problems with
script/function/action labels
[+] Improved detections of UseScripts
[+] Added a few more Platinum script commands
[+] Fixed ARM9 compression detection for DP roms
2021-10-24 22:58:16 +02:00
AdAstra-LD
55ecbd141a Simplified acquisition of trainer AI flags 2021-10-20 22:46:50 +02:00
AdAstra-LD
9782278f8b DSPRE can now import HGSS map BIN into DPPt roms 2021-10-12 17:46:09 +02:00
AdAstra-LD
b8446d3c2a Fixed whitespace characters + added mapSize 'constant' to MapFile class 2021-10-03 17:49:15 +02:00
AdAstra-LD
487d397a84 Added full support for variable-type script commands 2021-09-13 06:08:46 +02:00
AdAstra-LD
d783df7935 Added braces [ScriptFile.cs] 2021-09-13 03:00:13 +02:00
AdAstra-LD
303408c283 Update TrainerFile.cs 2021-08-22 04:26:11 +02:00
AdAstra-LD
1bcb676773 Partially Fixed Trainer Editor (tuber Jared) 2021-08-22 04:19:23 +02:00
AdAstra-LD
fb42ecad21 Fixed a couple Matrix bugs 2021-08-14 04:54:07 +02:00
AdAstra-LD
c4f3d3d4a3 Trainer Editor fix 2021-08-14 04:45:50 +02:00
AdAstra-LD
fb68aff727 Added Command Tooltips feature to Script Editor
Misc bug fixes
2021-08-10 14:20:10 +02:00
AdAstra-LD
7c405c8ba3 Expanded ScriptCommandDatabase with Action Cmds and Comparison Operators 2021-08-09 23:16:42 +02:00
AdAstra-LD
0050fe932b Created reverse dictionaries for cmd names and comparison ops
[faster lookup]
2021-08-09 19:28:08 +02:00
AdAstra-LD
d981c344bd [Matrix.cs] Override ToString() and fixed braces 2021-08-09 00:32:40 +02:00
AdAstra-LD
baebd4aed1 Migrated scriptEditor to ScintillaNET 2021-08-06 02:09:14 +02:00
AdAstra-LD
a9de70df49 [Script Editor] Improved function usage detection 2021-08-01 23:28:02 +02:00
AdAstra-LD
4d689e475e Fixed gFamEnum old checks 2021-08-01 21:19:11 +02:00
AdAstra-LD
870ba105ae Coded Import Party button 2021-08-01 03:52:27 +02:00
AdAstra-LD
ef9c07d7ad Turned Pokemon Party into a class [Trainer Editor]
- Removed useless Games folder from Ekona\Images
2021-08-01 02:53:22 +02:00
AdAstra-LD
88ca73bac5 Added Trainer Encounter music to Trainer Editor
+ Refactor and conversion of gameFamily and gameVersion to Enum formats
2021-07-30 19:32:13 +02:00
AdAstra-LD
182eec2f97 Created SetHeaderTableOffset function in RomInfo, to replace HeaderOffsets dictionary in PokeDatabase 2021-07-25 18:31:03 +02:00
AdAstra-LD
49a4513030 Added missing description to header expansion patch 2021-07-22 16:53:09 +02:00
AdAstra-LD
a4dee25f41 Fixed AreaData DPPt light field size
[reported by Nomura and Trifindo]
2021-07-22 15:39:06 +02:00
AdAstra-LD
6ca211c227 Created TrainerProperties class
- Fixed TrainerProperties Import / Export
2021-07-21 04:39:49 +02:00
AdAstra-LD
57cdeb4222 [Trainer Editor] Added new buttons and some of the output functions 2021-07-21 03:40:22 +02:00
AdAstra-LD
b2d7d41fe5 NARC Optimization and Trainer Editor update
- Multithreaded NARC unpack
- Minor Trainer editor fixes
- Added icon to trainer editor tab
- 1.3 version update
2021-07-21 01:39:06 +02:00
AdAstra-LD
9dcc8a848a Improved trainer editor code readability + minor refactor and optimizations 2021-07-20 18:46:07 +02:00
AdAstra-LD
cd9e946bc3 More script commands + important bugfix 2021-07-20 18:44:22 +02:00
AdAstra-LD
9b64b91c9b Fixed Script Actions error detection 2021-07-17 21:05:24 +02:00
AdAstra-LD
fe2cd07de6 Minor Script Editor error detection fixes 2021-07-17 21:04:55 +02:00
AdAstra-LD
08d5400694 Better management of script actions database + refactor 2021-07-17 19:50:21 +02:00
AdAstra-LD
605b8a03a1 Minor bugfix + refactor and new script actions 2021-07-17 19:23:43 +02:00
AdAstra-LD
9107575f43 Made script editor less picky about 0x and blank lines 2021-07-16 06:00:05 +02:00
AdAstra-LD
fafd853183 Added and fixed Mikelan's trainer editor 2021-07-15 02:42:30 +02:00
AdAstra-LD
828b3d2ab1 Minor refactor + added missing Designer.cs 2021-07-15 02:41:49 +02:00
AdAstra-LD
591138541a Misc update
- Added support for HGSS """hidden""" cameras and added new Cam16 picture
- Fixed handling of HGSS headers' last 32 bits (some things are still unimplemented)
--- Fixed HGSS area icon numbers
- Fixed Advanced Header Search to make it compatible with the dynamic headers patch
- Fixed Header load function calls (previously incompatible with dynamic headers patch)
- Fixed event editor not updating coordinates when dragging events across the map
- New warning popup before using Camera Editor, if overlay1 is compressed
- Minor refactor
2021-07-14 05:22:45 +02:00
AdAstra-LD
57548c6000 Fixed dynamic headers patch not reading/writing from/to the correct place
- misc improvements
- remove last header button is now fully functional
2021-07-07 06:12:21 +02:00
AdAstra-LD
c6d3820a57 Minor readability improvements 2021-06-02 19:45:50 +02:00
NomuraRH
b81baa956b Added dynamic headers patch and support for adding new headers 2021-05-28 23:25:25 +02:00
AdAstra-LD
146e342fb7 Updated pics and readme 2021-05-02 19:29:14 +02:00
AdAstra-LD
28e49e0bb3 written "clear level script" code
- more code cleanup
2021-05-02 19:17:41 +02:00
AdAstra-LD
92d9cba10c Lots of bugfixes
- Renamed Matrix class to GameMatrix to avoid ambiguity
- Moved some accessor methods from MainWindow to RomInfo
- Moved editor setup methods to respective sections
- Fixed lots of problems with Japanese DP roms [either not loading or partially functioning]
2021-04-30 01:08:30 +02:00
AdAstra-LD
3e5dc2d729 Changed == null to "is null" 2021-04-24 17:05:35 +02:00
AdAstra-LD
118474b30a Bugfixing & minor refactor
- Fixed floodfill bugs
- Fixed Lock X and Lock Z buttons mutex logic [Map Editor]
- LoadAreaData method is now an AreaData constructor
- Changed method names to make them less misleading
2021-04-20 19:17:33 +02:00
AdAstra-LD
13b45e9d92 Fixes + small addition
- Fixed problem with BMD/BTX exporter and output name suggestion
- Fixed overlay file being zero-filled when saving camera table
- the Matrix editor now shows the coordinates of the selected cell in the Status bar
2021-04-15 20:06:01 +02:00
AdAstra-LD
f6f3ff58ac Added NSBMD Remove texture feature
also reorganized some code in BuildingEditor and DSUtils
2021-04-08 15:56:29 +02:00
AdAstra-LD
a18d7b03e8 New NSBMD Utilities icons 2021-04-08 14:12:29 +02:00
AdAstra-LD
1e5627f8d5 Updated script editor and other things
- Add NSBTX and Remove NSBTX buttons also add/remove building configuration file [NSBTX Editor]
- Changed format of Script Editor display
- Added highlighting of 'Script', 'Function' and 'Action' keywords (only upon reloading)
- Changed Endcodes database to HashSet (PokeDatabase -> ScriptEditor)
- Minor refactor
2021-04-08 10:27:42 +02:00
AdAstra-LD
e909e47c65 Improved code readablity and formatting here and there 2021-03-27 03:56:30 +01:00
AdAstra-LD
7f8142bb68 More code cleanup and some fixes
- Created ScriptReference inner class [to be taken advantage of even further, possibly]
- Fixed case sensitivity of "0x" signal sequence and "Player", "Camera", "Following"
- DSPRE now reports error in number format
- Removed unused/useless accessors from MapFile.cs
- swapped Y and Z axes [Map Editor] for buildings
2021-03-27 03:18:59 +01:00
AdAstra-LD
eac27c41ff Fixed WildEditor showing success messages for every file upon repairing 2021-03-22 20:01:54 +01:00
AdAstra-LD
b39b350dd1 Continued code cleanup
- Created RomFile base class to be extended by classes such as TextArchive, EventFile, Matrix etc.
- Added wrench button to WildEditor, to fix broken encounter files [whenever possible]
2021-03-22 19:46:47 +01:00
AdAstra-LD
856586f265 Improved error robustness of Wild Editor
- Also fixed a problem with relative paths [DSUtils and MainWindow]
2021-03-22 16:59:42 +01:00
AdAstra-LD
2e23be5e13 Condensed HG/SS and D/P version check
Consequently fixing some ToolBox patches not working for Pearl or SoulSilver
2021-03-20 19:27:00 +01:00
AdAstra-LD
9a52397bd0 Major code cleanup
- Version update 1.2
- Added magic number check to Narc loader
- Removed redundant Narc loading functions in DSUtils
- Narcs to load are now explicitly listed
2021-03-20 18:37:36 +01:00
AdAstra-LD
6602f3df04 Minor refactor and first camera editor code 2021-03-20 02:38:44 +01:00
AdAstra-LD
04bebb0b13 Script editor improvements
- Better error management in Script Editor [also thanks to nullable types]
- Fixed duplicate cmd names in PokeDatabase
- Added new custom cmds to database
2021-03-19 04:55:20 +01:00