Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou must get permission to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version v0.2.4
### Added
- file path column to track files across multiple directories
- file name column
### Changed
- program will now recursively search subfolders within working directory for valid weapon .json files and add them to its working file list
- it's recommended to NOT edit the game's weapon.json files directly, but instead use override files with ModTek (more info on ModTek and be found [here](https://github.com/Mpstark/ModTek))
- because of this, it's recommended that you point BWE to your "/BATTLETECH/Mods" folder, and edit overrides this way
- backup function will now also store relative filepath of back up files (relative to working directory at time of creation)
- restoring from a backup file created before this update will dump the old files DIRECTLY into the working directory
- restoring a backup file to a new location will replicate its directory structure in that new location
Version v0.2.3
### Changed
- bonus values will now respect operator specified at the beginning of each bonus substring (either '+' or '-'). Note that certain bonus values like Acc. will retain their original behavior (will subtract from value rather than add, even if '+' is specified). This is to maintain parity with vanilla bonus values. For these values, the opposite operator will also have the opposite effect, as expected.
Version 0.2.2
### Added
- right-click context menu to editor tableview
- "Open File" option to table context menu
- ComponentTag selector to table context menu
### Fixed
- corrected faulty edit application logic that caused bonus values to reapply with any change to bonus-eligible fields. Should now correctly strip bonus before reapplying.
- CriticalChanceMultiplier now correctly editable (how did I even break this...?!)
Version 0.2.1
### Added
- stopgap solution for RangeSplit, until a more elegant solution can be implemented
### Changed
- minor preferences saving optimization
### Fixed
- bonus string parser now correctly detects " Dmg. (H)" bonus
- faulty restore method logic, causing only files already detected in working directory to be restored. Should now properly restore all files (and only those files) present in backup file, and leave unbacked files untouched.
- inline column visibility toggle button now correctly saves column visibility state to preferences
Version 0.2.0
### Added
- batch edit toggle
- tabs for future feature expansion
- support for melee weapons
- working directory display at bottom
### Changed
- all fields are now single and batch editable
- batch edit now uses weapon name with '' +"s removed as search criteria for eligible batched items
- this will better support modded items, which might otherwise be missing WeaponSubType field or match with a vanilla weapon
- re-enabled "smarter" sorting
- "Toggle Stock" now filters on selection
- columns visibility toggler is now an inline menu under "View"
- re-enabled TableViewContextMenu with custom solution (from Dan Newton)
### Removed
- removed "Filter" button, table now filters on subfilter selection
Version 0.1.2
Added: column visibility toggler to menu. The program will remember these settings.
Changed: Name and Manufacturer now single editable
Changed: tableview to format doubles to two decimal places
Changed: changed some helper methods to return wrapper classes instead of primitives
- this will help parse jsons missing value:keys, such as BTML mod files
Fixed: table now correctly refreshes after restoring from a backup file
Fixed: if working directory doesn't exist, file/dir chooser now defaults to "C://" instead of failing
Version 0.1.0
Initial beta commit
UPDATE:
Oracle has removed the JavaFX library from Java11, which is what BWE uses to build the UI components of the app. Unfortunately this means BWE is incompatible with Java11. If you'd like to keep using BWE, please use Java10, there should be archived versions for download. If you'd like to use BWE AND Java11, well... ¯\_(ツ)_/¯ The good news is that (when I get some free time) I'm planning on recreating the app with a different tech stack (NOT Java). I don't have a timeline for that yet since it's a personal project and I'm quite busy with RL and work, but it won't be any time soon unfortunately. Sorry.
Author's Note: This tool started as a single 7 line method to print weapon stats to console so I could manually edit the jsons. Then I figured it might as well do the edits for me to save time. Then I thought, "It should sort also. Now it should filter. What if this, but GUI? BACKUPS?!?" After many many "whataboutthis"'s, I present...
BATTLETECH WEAPON EDITOR
BWE is a tool to view and edit various values stored in json files meant to define weapon parameters used by BattleTech (2018). Common values shared between weapon types will be batch edited to maintain continuity within weapon groups, with bonus attributes from upgraded weapons automatically applied to save time and headache. Bonus values themselves are individually set for each weapon, and automatically apply to and correct for appropriate attributes on assignment.
It also includes functionality to manually generate a backup file of the jsons as they currently exist, as well as restoring jsons from a chosen backup file.
Lastly, it displays and updates second-order statistics (like damage/ton ratios) to help users make more informed corrections.
As this is a beta release, please consider also creating your own backup of said files in a safe location... just in case.
---------------------
USAGE/INSTRUCTIONS
You'll need Java 10 JRE installed to run this (it was developed on Java 9 JDK, support for which was recently discontinued). I'm working on a natively packaged version with its own runtime environment (no JRE requirement), but am running into some obstacles.
Download the .zip, unpack the .jar file, and run the .jar. If it does not automatically do this, right click the .jar, select "open with...", and choose "Java(TM) Platform SE Binary". Optionally tick to always open files of this type.
Before usage, visit the GitHub for more detailed usage instructions, view the readme.txt under the docs tab here, or hit "Help->About" in the menu bar of the application to view the readme.
---------------------
TODO
Over the 2 week course of its development, I've come up with other features I'd like to implement, but for now, BWE does the things I initially set out to make it do. As such, in releasing this I hope it saves users (and modders) a bit of time and headache, and over time grows to more handle more than just weapon jsons and simple tables. All feedback, suggestions, critiques, and feature requests are more than welcome.
- view and edit more values - - more robust table column display button - natively packaged version independent of JRE on local machine - graphing functionality - generify json parsing in preparation for... - support for more json types like pilots, mechs, chassis, etc. (currently only supports weapon jsons like those found in ..\StreamingAssets\data\weapon) - de-uglification