Big Rewrite for v100 Support


Yet another rewrite of the project.  A change in NTT v100 broke a small part of Custom Options, and I chose to remake it from scratch to fix things.  Don't worry, I brought new features that can be used with it.

Here's a small summary:

  • There's a better attempt at documentation that previously (see api.txt and fields.txt)
  • I renamed the main file to custom_options.mod.gml to finally get rid of a name conflict with blaac's HARD MODE mod (and it's slightly less generic, so hopefully no conflicts in the future either)
  • Performance improved about 30%?  I don't have a solid metric, but when I run four copies of the game and have them join each other I get 40 FPS out of 120 with the options menu open instead of 30 FPS out of 120 with the previous version  (It's a little sad, but it's probably fine)
  • Options keep their defined order when written the "new" way (This is the reason for the update initially.  I had to change how a developer defines options for this, but there is a compatibility options.mod.gml that you can load to use old configurations but be on the new version)
  • You can move the button on the campfire to a different location if your mod needs something there

There's a lot of new ways to configure your options.  I tried (not my best, but with good effort) to document it (I am not good at writing documentation).  See fields.txt included in the download to get an idea of some basic things that are now possible, and read api.txt if you want a list of the "exposed" functions from the mod.

You can even make a region (what I called the GUI elements) and run code that's all yours if I did it right, no longer being restricted to the 7 types.

If you don't want to make any changes, you can load the included options.mod.gml alongside custom_options.mod.gml and hopefully not have to change any of your code.  I did my best to have the mod translate and then call the main file with the translations.

And finally, if you do want to use the new features but like the existing layout of the options menu, don't define any custom positions for your options and it should stay the same.


Let me know if anything doesn't work or if you need help using Custom Options as part of your mod.

Files

custom-options.zip 36 kB
Version 9940, 9944, and v100 (release) Sep 06, 2024

Get Custom Options

Leave a comment

Log in with itch.io to leave a comment.