Page 1 of 1

New Main Menu Item: "New Game: Last Module"

Posted: Sat Mar 02, 2019 12:22 am
by nsrr
I would love an option on the main menu to start a new game using the last selected module, or just one for the Tales module specifically. I don't know about everyone, but I only have the one module, and half the time when I start a new game I click 'New Game' and walk away, knowing it takes a while for my comp to load the character creation screen, but forgetting that there's a screen in between where I have to choose the module (even though I only have and use one).

It would be especially convientent for development when I'm frequently rolling new characters from the main menu.

Obviously it's just a convince thing, but it would be nice

Re: New Main Menu Item: "New Game: Last Module"

Posted: Wed Jul 31, 2019 3:56 am
by Zizzo
Hmm, this happens in the boot module, so you'd need a boot module addon to change it. I've put together something that might help, though I'm not sure it's exactly what you wanted.

Re: New Main Menu Item: "New Game: Last Module"

Posted: Wed Jul 31, 2019 11:08 am
by nsrr
Looks great :)

The suggestion for 'last module' was something I could possibly see other people wanting to have, but for myself the 'New Game (T.o.M.E.)' option sounds like what I was looking for, though I haven't had a chance to try it yet. If the information for the last module isn't stored anywhere, perhaps it would be possible instead to add a game option that lets you select the 'New Game' button behavior? Changing the option would allow you to choose between 'manual' (i.e. the standard behavior where you select the module every time) or a module from a list of all installed modules, causing the button to always choose the specified module and skip selection, until you change the option. Bonus points for having the button indicate if it is in manual mode, or which module is chosen, if not in manual.

Re: New Main Menu Item: "New Game: Last Module"

Posted: Fri Aug 02, 2019 3:04 am
by Zizzo
nsrr wrote:If the information for the last module isn't stored anywhere, perhaps it would be possible instead to add a game option that lets you select the 'New Game' button behavior? Changing the option would allow you to choose between 'manual' (i.e. the standard behavior where you select the module every time) or a module from a list of all installed modules, causing the button to always choose the specified module and skip selection, until you change the option.
That would depend on how the boot module's options dialog is implemented… [sound F/X: source diving] …wow. Turns out it actually manually scrapes the T.o.M.E module's GameOptions dialog straight out of the game module definition (DarkGod describes it in the code as "OMFG this is such a nasty hack" :twisted: ). That should mean that the "GameOptions:generate" hook is in play… [sound F/X: testing] ha! I'm amazed that actually worked. :mrgreen: I've pushed out a new release with that feature.
nsrr wrote:Bonus points for having the button indicate if it is in manual mode, or which module is chosen, if not in manual.
Yeah, that comes for free, because I'm reusing the one-module-only part of the shortcut code, which already changes the "New Game" action to "New Game (<module name>)" as appropriate.