Post: Configurable GSC Menu by CFG
07-27-2013, 12:35 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({});
07-27-2013, 03:21 PM #2
that's confusting and im a noob cant you just make a cfg for cod 4 and release it? plz I need a cfg for cod 4
07-27-2013, 07:58 PM #3
Originally posted by Jake 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 have an evil but brilliant plan to take over the world but I'm going to have to borrow your enormous brain to pull it off :evil:

The following 2 users say thank you to x_DaftVader_x for this useful post:

Harry, Beats
07-28-2013, 02:42 PM #4
QuantumDev
Can’t trickshot me!
Could you elaborate on how to use it exactly?
Maybe upload a .gsc menu that works with this?
07-28-2013, 08:36 PM #5
Harry
Former Staff
wow, this is an interesting concept. It's an original idea that will need to be tinkered with, if I can forge the spare time I'll look more into this. Good work ^^.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo