ToME: the Tales of Maj'Eyal
http://forums.te4.org/

New Main Menu Item: "New Game: Last Module"
http://forums.te4.org/viewtopic.php?f=39&t=49440
Page 1 of 1

Author:  nsrr [ Sat Mar 02, 2019 12:22 am ]
Post subject:  New Main Menu Item: "New Game: Last Module"

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

Author:  Zizzo [ Wed Jul 31, 2019 3:56 am ]
Post subject:  Re: New Main Menu Item: "New Game: Last Module"

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.

Author:  nsrr [ Wed Jul 31, 2019 11:08 am ]
Post subject:  Re: New Main Menu Item: "New Game: Last Module"

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.

Author:  Zizzo [ Fri Aug 02, 2019 3:04 am ]
Post subject:  Re: New Main Menu Item: "New Game: Last Module"

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/