Basic Autoexec

McGlaspieMcGlaspie www.team156.com Join Date: 2010-07-26 Member: 73044Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Onos, WC 2013 - Gold, Subnautica Playtester
edited August 2011 in Modding
<div class="IPBDescription">Simple "config" mod</div>So I was asked by a few clan-mates how to set a few console commands so they always run when client does (such as: r_shadows 0, etc.). This is a simple mod, just extract the contents of the zip to your Natural Selection 2 folder and run:
...\Natural Selection 2\ns2.exe -game basic_exec

You can edit the Client.lua file in the basic_exec\lua directory to run any console commands you need every time NS2 starts. This could also easily be added into other mods.

Comments

  • fanaticfanatic This post has been edited. Join Date: 2003-07-23 Member: 18377Members, Constellation, Squad Five Blue
    Great, thanks for this.
  • J.D.J.D. Join Date: 2011-06-16 Member: 104695Members
    Very helpful, thanks :)
  • vizioNzvizioNz InversionNS2.com Join Date: 2003-12-21 Member: 24595Members, Constellation, NS2 Playtester
    mmm, scriptingggggggggg
  • willeumwilleum Join Date: 2011-09-05 Member: 120051Members
    i dont get it can u give me steps? extract to where just in natural selection 2 folder?
  • vizioNzvizioNz InversionNS2.com Join Date: 2003-12-21 Member: 24595Members, Constellation, NS2 Playtester
    <!--quoteo(post=1873374:date=Sep 6 2011, 06:51 PM:name=willeum)--><div class='quotetop'>QUOTE (willeum @ Sep 6 2011, 06:51 PM) <a href="index.php?act=findpost&pid=1873374"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->i dont get it can u give me steps? extract to where just in natural selection 2 folder?<!--QuoteEnd--></div><!--QuoteEEnd-->
    He provides a very clear how to in his .zip. It's not complicated. Install it to your steamapps/common/natural selection 2/ folder. Then add the -game basic_autoexec or whatever to your launch options in Steam for Natural Selection 2.
  • McGlaspieMcGlaspie www.team156.com Join Date: 2010-07-26 Member: 73044Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Onos, WC 2013 - Gold, Subnautica Playtester
    edited September 2011
    Beat me to it vizionz. Thanks.
  • willeumwilleum Join Date: 2011-09-05 Member: 120051Members
    sorry doesnt work for me

    i extract in common /natural selection 2 folder and than i see the basic_exec folder
    i go to launch options and and set -game basic_autoexec
    i go in game but dont see r_stats?
  • DooM-AUDooM-AU Join Date: 2011-06-27 Member: 106715Members
    <!--quoteo(post=1873710:date=Sep 9 2011, 12:47 AM:name=willeum)--><div class='quotetop'>QUOTE (willeum @ Sep 9 2011, 12:47 AM) <a href="index.php?act=findpost&pid=1873710"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->sorry doesnt work for me

    i extract in common /natural selection 2 folder and than i see the basic_exec folder
    i go to launch options and and set -game basic_autoexec
    i go in game but dont see r_stats?<!--QuoteEnd--></div><!--QuoteEEnd-->

    Thats because its -game basic_exec

    not "-game basic_autoexec"
  • McGlaspieMcGlaspie www.team156.com Join Date: 2010-07-26 Member: 73044Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Onos, WC 2013 - Gold, Subnautica Playtester
    I probably should have noted this the Lua file, afaik any of the *_stats console commands do not work using this mod. I'm not sure why, but I believe at the time the script is run the bit to handle the *_stats commands hasn't loaded yet.

    The point of this script was to eliminate the need for people to have to type things like "r_bloom 0" in console every time they run the game to get decent fps.
Sign In or Register to comment.