Post: Load GSC Menus From CFG File
07-27-2013, 12:33 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So I had this idea to setup mod menus from dvars. Now this is possible but you'll have to configure it to work with your menu base. I wrote up a quick psuedo code for an example how to use it. (or how you would use it).


In Your GSC:
You must login or register to view this content.


In Your Config File On USB:
    
set menu_conf "main,exit,0[|]submenu,main,1[|]submenu_2,main,2";
set opts_conf "main,0,SubMenu,::SubMenu[|]main,1,SubMenu 2,::SubMenu[|]submenu,0,GodMode,::doGod[|]submenu_2,0,UFO,::doUFO";


Oh and you will obviously execute the usb cfg via the following:
    exec "../../../../dev_usb000/conf.cfg"



Now the idea here is you could add menus to your mod menu and only it only reads the hosts config. So you can setup the way your menu is arranged without having to switch the patch around, or hell even adjust the way other people in the menu want to set it up.

Add Menus By:
menuid, parent, menunum

and for multiple menus add the seperator "[|]"

To Add Menu Opts:
menuid, option pos, option name, option func

and for multiple opts add the seperator "[|]"
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to Jakes625 for this useful post:

*xActionMods*, Alex-George-HnM, BigGucciSosa300, blackhawk2299, ResistTheJamsha, MW2TopTenWORLD, Script Kiddie, xRevolutions
08-05-2013, 08:12 AM #11
.godz
I am error
Originally posted by xXItsTylerXx View Post
i just dont understand where you put the gsc at?


on the flash drive.
08-05-2013, 11:28 PM #12
obvi but like where is it threaded.. what do you name the gsc like what?
08-08-2013, 04:47 PM #13
*xActionMods*
I’m too L33T
Originally posted by Jakes625 View Post
So I had this idea to setup mod menus from dvars. Now this is possible but you'll have to configure it to work with your menu base. I wrote up a quick psuedo code for an example how to use it. (or how you would use it).


In Your GSC:
You must login or register to view this content.


In Your Config File On USB:
    
set menu_conf "main,exit,0[|]submenu,main,1[|]submenu_2,main,2";
set opts_conf "main,0,SubMenu,::SubMenu[|]main,1,SubMenu 2,::SubMenu[|]submenu,0,GodMode,::doGod[|]submenu_2,0,UFO,::doUFO";


Oh and you will obviously execute the usb cfg via the following:
    exec "../../../../dev_usb000/conf.cfg"



Now the idea here is you could add menus to your mod menu and only it only reads the hosts config. So you can setup the way your menu is arranged without having to switch the patch around, or hell even adjust the way other people in the menu want to set it up.

Add Menus By:
menuid, parent, menunum

and for multiple menus add the seperator "[|]"

To Add Menu Opts:
menuid, option pos, option name, option func

and for multiple opts add the seperator "[|]"


facking hell i can finnally host my v7 :happycry:
08-08-2013, 04:56 PM #14
Thanks man, this is awesome!
08-14-2013, 11:34 PM #15
Originally posted by Jakes625 View Post
So I had this idea to setup mod menus from dvars. Now this is possible but you'll have to configure it to work with your menu base. I wrote up a quick psuedo code for an example how to use it. (or how you would use it).


In Your GSC:
You must login or register to view this content.


In Your Config File On USB:
    
set menu_conf "main,exit,0[|]submenu,main,1[|]submenu_2,main,2";
set opts_conf "main,0,SubMenu,::SubMenu[|]main,1,SubMenu 2,::SubMenu[|]submenu,0,GodMode,::doGod[|]submenu_2,0,UFO,::doUFO";


Oh and you will obviously execute the usb cfg via the following:
    exec "../../../../dev_usb000/conf.cfg"



Now the idea here is you could add menus to your mod menu and only it only reads the hosts config. So you can setup the way your menu is arranged without having to switch the patch around, or hell even adjust the way other people in the menu want to set it up.

Add Menus By:
menuid, parent, menunum

and for multiple menus add the seperator "[|]"

To Add Menu Opts:
menuid, option pos, option name, option func

and for multiple opts add the seperator "[|]"

I'll get to work on this Winky Winky
08-15-2013, 06:31 PM #16
Has anyone tested this yet? If so please confirm it working!!:vince:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo