Hosting a NS2 Server

CorblexCorblex UK Join Date: 2014-01-13 Member: 193088Members
Hi,

How can I give server commands through the console in the actual game without setting up a dedicated server? I'm getting errors saying i'm not the admin on the console, how can bypass this?

Comments

  • VengaboyVengaboy The Swamp Join Date: 2013-08-24 Member: 187053Members, Reinforced - Shadow
    Explore mode, enable cheats in console, do whatever you want. I think there's a wiki somewhere with all the commands but i'm too lazy to link it.
  • It's Super Effective!It's Super Effective! Join Date: 2012-08-28 Member: 156625Members, NS2 Playtester, Squad Five Blue, Reinforced - Shadow
    What are you trying to do specifically? Trying to mess around with stuff privately? Or actually hosting for a few players/friends?
  • SamusDroidSamusDroid Colorado Join Date: 2013-05-13 Member: 185219Members, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    If YOU are the server, as in a listen server, you don't use "sv_" prefix. It's jut "cheats 1" "autobuild" etc...
  • CorblexCorblex UK Join Date: 2014-01-13 Member: 193088Members
    Thanks for the help guys. I'm the actual server/while playing. My intention is to add/remove bots during gameplay with my friends.
  • It's Super Effective!It's Super Effective! Join Date: 2012-08-28 Member: 156625Members, NS2 Playtester, Squad Five Blue, Reinforced - Shadow
    Here is the command to manage bots

    - addbot [amount] [team # - optional] Team #1 = Marine, Team #2 = Aliens Example: "addbot 3 2" add's 3 bots to alien's team

    However if you input no team number it just adds 12 bots to the game, what team they choose is random, might not be balanced.

    - removebot [amount] [from what team - optional] Remove bots from a team, or overall.

    Bot's respond to marine commander's orders, and alien's "threat" "need healing" "expanding here" commands, but they won't buy or evolve into anything.
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited January 2014
    It seems more to me that he hasn't set himself as admin in the serveradmin.json.

    @Corblex:

    Look here how to set youself as admin with the vanilla system: http://wiki.unknownworlds.com/ns2/Dedicated_Server#Server_Admin_System

    If you use the Shine Admistration Mod look here: https://github.com/Person8880/Shine/wiki/Configuring-Users
  • CorblexCorblex UK Join Date: 2014-01-13 Member: 193088Members
    Appreciate all the help. As previously mentioned by SamusDroid', i'm using a listening server and not a dedicated one. I have seen the list of sv_ commands for a dedicated server and understand that I don't need a prefix of sv_, however the only ones I am getting to function are the bot commands mentioned by 'Its Super Effective' and general cheats 1. I just want to be able to create one unbalanced team of aliens to Vs and to create either an Alien or Marine commander via the console if I accidently delete them!
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited January 2014
    Corblex wrote: »
    Appreciate all the help. As previously mentioned by SamusDroid', i'm using a listening server and not a dedicated one. I have seen the list of sv_ commands for a dedicated server and understand that I don't need a prefix of sv_, however the only ones I am getting to function are the bot commands mentioned by 'Its Super Effective' and general cheats 1. I just want to be able to create one unbalanced team of aliens to Vs and to create either an Alien or Marine commander via the console if I accidently delete them!

    If you start up a local server you start nothing else than a dedicated server using your %appdata%\Natural selection 2\ as config folder.

    If you would now open your 27015 port other ppl would even be able to join your local server ....

    And also the local server uses a ServerAdmin.json ;) To get the sv-commands running you have to set yourself as admin, that's it.
    Also to create uneven teams you have to disable the Autoteambalancer in the ServerConfig.json.
Sign In or Register to comment.