Scripting
#8
/writecfg ?

Though, yes, it would be nice to be able to write to cfg files other than saved.cfg in-game.

@CDan75:
If you want to modify a menu, in the current version you can add to the end of any already-existing menu in-game by invoking that menu using "newmenu". This is most easily done using a cfg file you can execute later.

It sounds like you're running AC and, while it is minimized, editing a menu in a cfg file. The issue with editing a menu while AC is running is that, in the current version, the menus don't reset unless you actually quit the game. In the next version, menus are resettable individually(yay!).

If you really want to do this while the game is running, you'd do it like this:
[cubescript]
newmenu main
menuitem [Just adding some stuff to the bottom of the main menu...] -1
[/cubescript]
Save that as a config file the game can access, such as "editedmenu.cfg" in the scripts directory. Then, in-game, type:
/exec scripts/editedmenu.cfg
and your menu should be added on to!

Keep in mind, however, that each time you do this without resetting the game, the custom menuitem will be added to the main menu. Only by resetting the game can you clear it out and start over.
Thanks given by:


Messages In This Thread
Scripting - by CDan75 - 26 Aug 12, 07:08AM
RE: Scripting - by #M|A#Wolf - 26 Aug 12, 07:10AM
RE: Scripting - by CDan75 - 26 Aug 12, 07:12AM
RE: Scripting - by #M|A#Wolf - 26 Aug 12, 08:10AM
RE: Scripting - by Bukz - 26 Aug 12, 09:52AM
RE: Scripting - by CDan75 - 26 Aug 12, 10:01AM
RE: Scripting - by Bukz - 26 Aug 12, 08:54PM
RE: Scripting - by V-Man - 02 Sep 12, 12:51AM
RE: Scripting - by CDan75 - 02 Sep 12, 01:20AM