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

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

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

#1 Post 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

Zizzo
Sher'Tul Godslayer
Posts: 2520
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

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

#2 Post 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.
"Blessed are the yeeks, for they shall inherit Arda..."

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

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

#3 Post 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.

Zizzo
Sher'Tul Godslayer
Posts: 2520
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

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

#4 Post 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.
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply