-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36433 from BevapDin/rnm
* Remove useless debug message: "info" and "default" are optional and ignored anyway. * Convert silent debug message to load message This informs the user that their mods use outdated syntax and encourage them / the mod authors to convert them to the new syntax to get rid of the debug message. * Remove JSON members that are not visited and therefor useless. * Actually read JSON object member instead of only checking their existence. This ensures the member type is checked and reported if it does not fit the expected type. It also means `"foo": false` is properly recognized as such (instead of being interpreted the same as `"foo": true`). * Only register JSON object members as visited when their value has been read. * Change code to load "looks_like" to only read strings and fail if the member isn't a string * Change checks for JSON member existence to ignore the type. Now it only checks whether a member of the given name exists. The type is ignored hereby. The type is checked later, when the value of the member is read. If the type is not what we expect, an error will be generated. * Remove generating explicit error message: The message will be shown anyway when the member is actually accessed. * Explicitly check the value of a boolean JSON object member. * Remove check for unused member. The JSON object member "om_special" is never actually loaded, so it should not be required. * Fix missing "context" member in "json_flag" objects * Fix JSON members having the wrong type. * Temporarily comment out some JSON members that don't work as desired. "items" must be a string or an array of strings. * Replace monster size entry with volume and mass entry. The "size" entry is no longer used and it is now ignored. * Add two spaces after a period. As required by the style we use. * Fix name of JSON member * Fix item flags being set on gun data (item flags need to be set on item types directly). * Remove unnecessary spaces before end of line * Remove mods from blacklist as they load properly now. * Add subtype entry, so the loading code actually parses the "entries" array. * Ignore unvisited members when skipping an out-of-bounds entry * Commit changes after running `make style-all-json` * Fix spelling mistake. Thanks for pointing that out. Co-Authored-By: ZhilkinSerg <[email protected]> Co-authored-by: ZhilkinSerg <[email protected]>
- Loading branch information
Showing
62 changed files
with
224 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
aftershock | ||
blazemod | ||
crazy_cataclysm | ||
crt_expansion | ||
FIC_Weapons | ||
generic_guns | ||
Graphical_Overmap | ||
mapgen_demo | ||
modular_turrets | ||
more_locations | ||
my_sweet_cataclysm | ||
national_guard_camp | ||
no_medieval_items | ||
sees_player_hitbutton | ||
sees_player_retro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.