Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Wanderer on August 06, 2007, 09:15:28 am

Title: menu.tbl
Post by: Wanderer on August 06, 2007, 09:15:28 am
So... could there be any kind souls amongst the more well versed code readers that could explain to me (and therefore to wiki) what exactly does this table file do?

I have by some trial and error noticed that i could actually increase game functionality a (veery small) bit by using that table but i really, really dislike making wild guesses of its proper usage.

Basically by changing
Code: [Select]
; options
"" 4 NULL NULL NULL NULL
to
Code: [Select]
; options
"" 4 O NULL NULL NULL NULL
I could access the options menu directly by pressing 'o' in main menu instead of clicking the correct position on screen (go me...)

I also noticed kinda interesting option of pressing 'g' in the main menu. Its seems to be quick start option that can be used to run a mission directly from the main menu..


Beyond those i have no idea what the menu.tbl does... Except that some of the defined options in the table do not seem to be functional at all... Any help?
'


EDIT.. Thanks to axem for this info: these options seem to work only in debug.
Title: Re: menu.tbl
Post by: Solatar on August 07, 2007, 09:49:49 pm
Still, I think we'd be interested to hear the actual workings?
Title: Re: menu.tbl
Post by: Wanderer on August 08, 2007, 12:55:47 am
What i have seen from the code (didn't understood it that well though) and from standard trial-and-error procedure it sort of seems to be part of unfinished interface upgrade or something - it has some rather exotic options (nonfunctional of course) in it... like training menu, and view option for recorded scenes (or something). But i cant really say anything certain as i didn't understand it that well.
Title: Re: menu.tbl
Post by: Solatar on August 10, 2007, 04:42:11 pm
Well, I guess it'll have to be cracked the old fashioned (pre-source) way.

Trial, error, and lots of game crashing. :D
Title: Re: menu.tbl
Post by: Wanderer on August 11, 2007, 12:53:40 am
Yeah.. This thread didn't very enthusiastic responses.. Well i already found something useful - pressing the 'g' key in main hall while debugging
Title: Re: menu.tbl
Post by: Wanderer on September 06, 2007, 04:24:22 am
 :bump:

I decided to take another look at this one and... IF i read it correctly the whole thing is mostly bugged down by the immense mass of #ifdefs and because it seems to be used only in the main hall. However, the basic portion of the menu.tbl works.. In main hall, allowing the barracks (B), ready room (R), tech room (T) and campaign (C) room hotkeys to be accessed via hotkeys. And also the 'change difficulty level', 'options' and 'exit' hotkeys work if something is set to be a hotkey.

So setting...
Code: [Select]
; exit region
"" 0 Q NULL NULL NULL NULL

; options
"" 4 O NULL NULL NULL NULL

; skill level
"" 13 S NULL NULL NULL NULL NULL
Enables O to access the options menu, Q to quit the game and S to set skill level

That is those work both in debug and in normal (r) builds


In addition the G starts the last played mission (if in debug and SP mode)
Title: Re: menu.tbl
Post by: Mustang19 on September 06, 2007, 03:46:13 pm
Hitting S will change the skill level in Retail FS anyway. The other hotkeys probably work also.

Somewhere on that table you can probably find the vasudanswuvfishies and insidehumanhead stuff, also.

I remember seeing some old pre-release screenshots of the techroom, with a "training menu". IIRC you can also find some basic interface art referring to this "training menu", at least in the FS1 VPs. Or maybe I'm remembering totally wrong. Regardless, that's where that came from.

You're in unexplored territory, Wanderer and Orpheus. The Wiki says nothing about this; it only gives you the table's text without explaining anything. So it's up to you to figure it out.
Title: Re: menu.tbl
Post by: Wanderer on September 06, 2007, 11:25:17 pm
Hitting S will change the skill level in Retail FS anyway. The other hotkeys probably work also.

Somewhere on that table you can probably find the vasudanswuvfishies and insidehumanhead stuff, also.

I remember seeing some old pre-release screenshots of the techroom, with a "training menu". IIRC you can also find some basic interface art referring to this "training menu", at least in the FS1 VPs. Or maybe I'm remembering totally wrong. Regardless, that's where that came from.

Dunno what you are talking about.. In builds i am using keys Q, S, or O does absolutely nothing if i press them in the main hall (only area seemingly effected by the table) unless i have enabled those in the menu.tbl. It could perhaps be that menu.tbl was meant to be just that... A partially completed attempt to get rid off hard coded hotkeys?

And the cheat codes are hard coded.
Title: Re: menu.tbl
Post by: Mustang19 on September 11, 2007, 12:55:56 pm
Well, whenever I type in vasudanswuvfishies I'm told that the skill level has changed, so it must be that S key. Don't know why it doesn't work for you. May be a Finnish keyboard thing.

Is it just me or do we have a whole lot of people from Finland here?
Title: Re: menu.tbl
Post by: Wanderer on September 11, 2007, 12:59:18 pm
Just checked.. It changes when you press 'N'.
Title: Re: menu.tbl
Post by: Jeff Vader on September 11, 2007, 01:06:59 pm
Yes, the difficulty level changing is bound to the N key by default. At least in FS2.

And as for Finns, I think there are indeed quite a few of us here. So, just for a change, here's some Finnish for all you people of other nationalities:

"Aika on rahaa eikä meillä oo kumpaakaan."

, which would translate roughly to "Time is money and we don't have either of 'em." A classic Pekka Puupää quote.