GRAV怎么建立服务器 GRAV游戏服务器搭建详细参数设置教程
GRAV怎么建立服务器?GRAV游戏搭建服务器方法步骤,附具体服务器参数设置方法。GRAV游戏虽然有繁体中文,但是steam上与国外玩家一起游戏总是有些水土不服,该游戏是支持架设个人服务器的,其实方法也很简单,有想要建立游戏服务器的玩家可以看看,以下是详细的步骤和参数设置方法。
GRAV游戏服务器架设步骤
本教程分3步。
第一步:确保自己当前所处的网络环境和自己建立服务器的目的能匹配(内外网IP等情况)
第二步:服务器基础参数配置和启动
第三步:服务器高级参数配置
第一步:确保自己当前所处的网络环境和自己建立服务器的目的能匹配(内外网IP等情况)
这个问题只要是建过服务器的人,都会遇到。
说明:
1.服务器的世界以及玩家存档会保留在电脑本机。
2.确保自己电脑配置足够
需求:
1.只想建立服务器供局域网玩家使用(不知道什么是局域网?出门左转百度)
---跳过下面内容 看下一步
2.想建立广域网服务器,供大家加入.
---百度输入"IP"获取当前IP,确保该IP为广域IP(测试方法百度"查看公网IP")
---关闭防火墙.或者添加防火墙规则放行下面配置所需要的所有端口(默认是7777,7778,27015)
如果有路由器,dmz主机,花生壳的特殊情况自行处理(不是我不想讲,这个东西确实取决于不同运营商)
第二步:服务器基础参数配置和启动
此步只会讲建立最基本的服务器参数和启动
找到自己的游戏目录(可以右键steam游戏目录属性查看)
例如:
G:\PCgame\Steam\SteamApps\common\GRAV\Binaries
目录下又个文件叫:LAUNCH_GRAV_DEDICATED_SERVER.bat。不管三七二十一 先复制一份保存起来(确保自己不会弄砸)
用记事本打开内容
REM >>>>>> Server Name (the name that will show up for your server in the server browser) -- this should have quotes
REM >>>>>> 服务器名称(此名字用于在服务器列表展示)----此处需要双引号
set SERVERNAME="Unidentified GRAV Server"
REM >>>>>> Admin password (the password to use with the 'adminlogin' command that gives a player admin rights) -- this should NOT have quotes
REM >>>>>> 管理员密码,这个密码用于管理员登录后给予管理权限---此参数不需要双引号
REM --------> REMOVE REM from following line to set a password (no password will be set otherwise)
REM >>>>>> 删掉下一行前面的"REM" 然后修改密码参数启用
REM set ADMINPASSWORD changethisfortheloveofcrabs
REM >>>>>> 每个星球最大玩家数量--最大64
REM >>>>>> Max players (per planet) -- the maximum players to allow per planet, max allowed is 64
set MAXPLAYERSPERPLANET=32
REM >>>>>> 是否允许PVP, 0不允许 ,默认1允许
REM >>>>>> Allow PvP (Allow players to kill each other) Default to 1
set ALLOWPVP=1
REM >>>>>> 开启基础衰变,默认1,通过开启这个参数随时间回收无人的建筑和物资(建议不要修改)
REM >>>>>> Do base decay (By default base items will decay and blow up over time if left unattended) -- default to 1 WARNING: On populated servers if this is off server performance will suffer as the world fills with trash
set DOBASEDECAY=1
下面的东西不需要修改了为第三步讲解的内容
配置到现在就可以保存文件
在文件夹下运行刚才修改的bat文件就能启动服务器了
第三步:服务器高级参数配置
REM !ADVANCED SETTINGS !
REM What follows are "advanced" settings for server admins that run multiple servers on one machine
REM >>>>>> Dont advertise to master server (for private servers). if this is 1 the server will not show up in the server browser, but still can be joined via IP (e.g. 'open 1.2.3.4')
REM >>>>>> "不广播此服务器"默认为0,设置为1后 在服务器列表将不显示此服务器,只能通过IP进入(方法后面讲)
set DONTADVERTISETOMASTER=0
REM >>>>>> Save data base directory, Directory (Relative to CAGGame directory) where player data should be stored. This should be unique per metaverse (so if you have more than one on one machine, change this for other instances) -- this should have quotes
REM >>>>>> 保存服务器数据的文件目录,相对于CAGGame 目录,如果你电脑上启动了多个服务器请修改此目录(需要双引号)
set SAVEDIR="CharacterSaveData"
REM >>>>>> Planet Manager Name (name of your universe of planets). if you run multiple servers on the same machine these should be unique. Default value is fine otherwise -- this should have quotes
REM >>>>>>行星管理员名称,如果你在本机上有多个服务器,那么名字需要唯一,默认是设置好的,需要引号
set UNIVERSENAME="defaultmetaverse"
REM >>>>>> Home planet only -- normally you need all the planets in order to progress through the game.. but if you find yourself wanting to only launch the home planet set this to 1
REM >>>>>>HomePlant only模式,如果你不需要其他的行星,只需要HomePlant,把下面设置为1,否则不要修改
set ONLYLAUNCHHOMEPLANET=0
REM <<<<<<<<<<<<<<<<<下面端口不建议修改,如果修改需要确保防火墙放行
REM >>>>>> Broker port -- the port that the broker server should listen to, default is 7777 -- this should be unique to each metaverse/universe you are launching on this machine
set BROKERPORT=7777
REM >>>>>> Broker Peer port -- peerport that the broker server should listen to, default is 7778 -- this should be unique to each metaverse/universe you are launching on this machine
set BROKERPEERPORT=7778
REM >>>>>> Broker Query port -- Query port broker should listen to, default is 27015 -- this should be unique to each metaverse/universe you are launching on this machine
set BROKERQUERYPORT=27015
REM >>>>>> Offset to apply to sub processes for exo planets etc. This should normally be 0, but if you are hosting more than one server on a single machine you will need to set this higher for each successive universe (for example second universe should be 50, third should be 100 etc)
set PLANETPORTOFFSET=0
REM <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< END PARAMETERS FOR SERVER ADMINS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
REM Do not edit anything below here
set PARAMSTRING=?NumHomePlanets=%NUMHOMEPLANETS%?adminpassword=%ADMINPASSWORD%?PlanetManagerName=%UNIVERSENAME%?PlanetPortOffset=%PLANETPORTOFFSET%?steamsockets?Port=%BROKERPORT%?PeerPort=%BROKERPEERPORT%?QueryPort=%BROKERQUERYPORT%?MaxPlayers=%MAXPLAYERSPERPLANET%?CloudDir=%SAVEDIR%?ServerName=%SERVERNAME%?SteamDontAdvertise=%DONTADVERTISETOMASTER%?AllowPVP=%ALLOWPVP%?DoBaseDecay=%DOBASEDECAY% -seekfreeloadingserver -unattended
echo LAUNCHING WITH: %PARAMSTRING%
start DoRunServer_Worker %PARAMSTRING%
Timeout /t 3 >nul
exit
启动服务器以后,可以去游戏服务器列表的非官方列表里面找自己的服务器
如果无法访问,在游戏里面按"TAB"或者"~"键,唤出控制台
输入open xxx.xxx.xxx.xxx:端口 如局域网本机为,局域网IP为192.168.XXX.XXX
open 127.0.0.1:7777
敲回车就可以进入,如果是外网的话 把127.0.0.1换成外网IP就行
另外附上网页版服务器列表:
http://gravservers.com/
确保steam打开并且游戏关闭状态,复制到浏览器打开,选中服务器点击IP就可以启动游戏进入。
以上就是具体设置方法,需要仔细阅读。