日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

森林正版服务器,The Forest 专用服务器设置向导

發(fā)布時間:2025/4/16 编程问答 45 豆豆
生活随笔 收集整理的這篇文章主要介紹了 森林正版服务器,The Forest 专用服务器设置向导 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

該樓層疑似違規(guī)已被系統(tǒng)折疊?隱藏此樓查看此樓

The Forest 專用服務器設置向?qū)?/p>

本帖內(nèi)容翻譯了由 Steam社區(qū)的SurvivalistGaming [C.M.] 和其他 3 人合作完成的帖子,在此表以感謝。

本向?qū)Ы忉屃巳绾螁覶he Forest的專用服務器,請上報任何你遇到的程序錯誤以幫助改進,謝謝。

-------------------------------------------------------------

游戲版本: V1.07

--------------------------------------------

一,安裝并加載專用服務器程序

你可以從Steam主界面中的庫-工具中搜索并下載The Forest Dedicated Server安裝。如果你想在不登錄Steam賬號的情況下啟動專用服務器,可以下載SteamCMD。

注意:

l 如果從Steam啟動專用服務器后,在游戲里的互聯(lián)網(wǎng)服務器列表中仍然找不到你的服務器,那么嘗試到專用服務器的文件夾中找到相關(guān)可執(zhí)行文件或用它的快捷方式直接啟動。

l 若要在后臺運行專用服務器,可以通過用“-batchmode” 作為命令行參數(shù)來啟動專用服務器程序。

安裝后在Steam-庫-已安裝-工具里面,運行一次The Forest Dedicated Server來在你的電腦上創(chuàng)建服務器的相關(guān)文件夾。

-----------------------------------------------------------------

二,配置

如下有兩種方式來配置專用服務器。

l 或用命令行參數(shù);

l 或用Server.cfg文件。

注意:用命令行參數(shù)會覆蓋在配置文件中的相關(guān)條目。

------------------------ ------------

二,甲.使用命令行來配置:

用命令行工具啟動專用服務器需要:

1,在你的路由器和防火墻中為TCP/UDP打開8766, 27015 和 27016端口。

2,創(chuàng)建快捷方式并添加:

-------------------------------------

-serverip xxx.xxx.xxx.xxx -serversteamport8766 -servergameport 27015 -serverqueryport 27016 -servername TheForestGameDS-serverplayers 8 -difficulty Normal -inittype Continue -slot 1

-------------------------------------

3,用這個快捷方式啟動專用服務器或啟動游戲。

可用的命令行參數(shù)有:

-------------------------------------

l -serverip // If you have a router, this address is the internal address,and you need to configure ports forwarding 設置服務器IP,注意,如果你使用內(nèi)部網(wǎng),這個IP就是你的內(nèi)網(wǎng)IP

l -serversteamport // Set the steam server port, default is 8766 設置Steam 通訊端口,如果你有路由器,需要在路由器里面打開該端口。下兩個端口設置相同步驟。該端口默認是 8766

l -servergameport // 同上,默認 27015

l -serverqueryport // 同上,默認 27016

l -servername // Set the server display name 設置服務器顯示名稱

l -serverplayers // Set the max. number of players, default is 8 設置允許加入的最多玩家數(shù),默認8

l -serverpassword // Set the server password, default is none 設置服務器密碼,空著表示沒有密碼,默認無

l -serverpassword_admin // Set the server admin password, default is none 設置服務器管理員密碼,空著表示沒有。默認無

l -serversteamaccount // Set the steam account, blank means anonymous (see Steam serveraccount bellow) 設置Steam賬號,空著表示匿名或無名(參考如下的Steam服務器賬號)

l -enableVAC //Enable Valve Anti Cheat 設置是否允許作弊,必須設置on/開或off/關(guān)

l -serverautosaveinterval // Set the autosave interval in minutes, default is 15 設置自動保存的時間間隔,默認15分鐘

l -difficulty // Set the game difficult level, default is Normal 設置游戲難度Peaceful/和平, Normal/一般或Hard/困難

l -inittype // Set the init type of game, default is New 設置每次進入服務器需要玩家新開/new還是繼續(xù)游戲/continue,強烈建議設置為 continue

l -slot<1|2|3|4|5> // Set the save slot to use, default is 1 設置保存位置,默認1

l -showlogs //Enable server log window 設置事件記錄日志,必設項

l -veganmode //Enable the vegan mode cheat (no enemies) 設置有/on 或無/off野人

l -vegetarianmode// Enable the vegetarian mode cheat (no enemies during daytime) 設置是否允許白天有無野人

l -resetholesmode// Reset all existing floor holes when loading a save 加載存檔時是否重設已有地板孔洞,不知道是不是我翻譯的這意思

l -treeregrowmode// Enable Tree regrowth when sleeping 允許在玩家睡覺時被砍倒的樹木生長

l -nobuildingdestruction// Enemie and players cannot destroy buildings 是否允許建筑損毀

l -allowenemiescreative// Enable enemy spawn in creative games 在創(chuàng)建模式下允許野人再生

l -allowcheats //Allow clients to use the built in development console 是否允許玩家使用內(nèi)置控制臺

l -configfilepath// Changes the config file path used by the server 允許自定義配置文檔位置,空白為默認位置

l -savefolderpath// Allows defining a custom folder for save slots 允許自定義保存文檔位置,空白為默認位置

-------------------------------------

注意:對配置文檔的路徑,所在文件夾必須先建立,但也可以通過啟動專用服務器來建立相關(guān)文件夾。使用斜杠如/。比如:

-------------------------------------

-configfilepath"d:/Your/Custom/Path/YourServerConfigFileName.cfg"

-------------------------------------

------------------------------------------------------------------

二,乙.使用配置文檔Server.cfg來配置

Server.cfg文檔可在你第一次啟動專用服務器的時候自動被創(chuàng)建。

Server.cfg文檔默認位置位于:

-------------------------------------

C:\Users\%USER%\AppData\LocalLow\SKS\TheForestDedicatedServer\ds\Server.cfg

-------------------------------------

當然,你也可以通過如下方法找到該文件夾。

同時按鍵盤左邊的windows鍵+R鍵打開查找/搜索框,并輸入 “%appdata%”回車。在彈出的文件夾欄里向上,找到Appdata 文件夾。一路向下:Appdata – LocalLow – SKS – TheForestDedicatedServer – DS - Server.cfg。

用記事本打開該文檔,Server.cfg中的內(nèi)容如下(注意括號及內(nèi)的內(nèi)容是我加的):

-------------------------------------

//Dedicated Server Settings.

// ServerIP address - Note: If you have a router, this address is the internal address,and you need to configure ports forwarding (設置服務器IP,注意,如果你使用路由器,這個IP就是你的內(nèi)網(wǎng)IP,你還需要設置端口轉(zhuǎn)發(fā)。)

serverIP192.168.1.***

// SteamCommunication Port - Note: If you have a router you will need to open thisport. (Steam 通訊端口,如果你有路由器,需要在路由器里面打開該端口。下兩個端口設置相同步驟。)

serverSteamPort8766

// GameCommunication Port - Note: If you have a router you will need to open thisport. (同上)

serverGamePort27015

// QueryCommunication Port - Note: If you have a router you will need to open thisport. (同上)

serverQueryPort27016

// Serverdisplay name (服務器顯示的名字)

serverName *********/NoModding,No Cheating

// Maximumnumber of players (允許加入服務器的最多玩家數(shù))

serverPlayers8

// EnableVAC (Valve Anti-cheat System at the server. Must be set off or on (是否允許作弊,必須設置on/開或off/關(guān))

enableVACon

// Serverpassword. blank means no password (服務器密碼,空著表示沒密碼)

serverPassword

// Serveradministration password. blank means no password(服務器管理員密碼,空著表示沒密碼)

serverPasswordAdmin***************

// YourSteam account name. blank means anonymous (你的Steam賬號,空著表示匿名或無名)

serverSteamAccount******

// Timebetween server auto saves in minutes - The minumum time is 15 minutes, thedefault time is 30 (自動保存時間間隔,最短15分鐘,默認30分鐘)

serverAutoSaveInterval15

// Gamedifficulty mode. Must be set to Peaceful Normal or Hard(游戲難度,必須設置成和平/ Peaceful、一般/ Normal或困難/ Hard)

difficultyNormal

// New orcontinue a game. Must be set to New or Continue(玩家進入服務器后是新開/new還是繼續(xù)/Continue,必須設置項,強烈建議設置為繼續(xù)/continue)

initTypeContinue

// Slot tosave the game. Must be set 1 2 3 4 or 5 (設置保存位置,默認1)

slot 3

// Showevent log. Must be set off or on ( 事件記錄日志,必設項)

showLogs on

// Contactemail for server admin (管理員電郵)

serverContact************@****.com

// Noenemies (設置有無野人)

veganModeoff

// Noenemies during day time (設置白天有無野人)

vegetarianModeoff

// Resetall structure holes when loading a save (加載存檔時是否重設已有地板孔洞,不知道是不是我翻譯的這意思)

resetHolesModeoff

// Regrow10% of cut down trees when sleeping(設置是否允許在玩家睡覺時被砍倒的樹木生長10%)

treeRegrowModeoff

// Allowbuilding destruction(是否允許建筑物損毀)

allowBuildingDestructionon

// Allowenemies in creative games(創(chuàng)造模式下是否允許有野人)

allowEnemiesCreativeModeoff

-------------------------------------

以下幾項是在配置文檔里面可能有的內(nèi)容,做補充。

-------------------------------------

// Allowsdefining a custom folder for save slots, leave empty to use the defaultlocation (允許自定義保存文檔位置,空白為默認位置)

saveFolderPath

// Target FPS when no client is connected (服務器內(nèi)沒玩家的時候設置刷新率)

targetFpsIdle 5

// Target FPS when there is at least one client connected (服務器內(nèi)至少1個玩家連線時服務器刷新率)

targetFpsActive 60

-------------------------------------

設置完成后,保存并關(guān)閉。

現(xiàn)在可以點擊打開專用服務器了。

注意:

如果想在同一臺機器上運行服務器,以及同時運行The Forest游戲,需要先點擊The Forest運行,出現(xiàn)The Forest Configuration 小窗口后,別急著點擊Play。先打開專用服務器運行。注意,別最小化專用服務器窗口,切換到The Forest Configuration窗口直接點擊Play就是。

-----------------------------------------------------------------------------------------

三,Steam 服務器賬戶

為幫助玩家盡快定位曾玩過的你的游戲服務器,Steam提供了一種方法來識別服務器。

你首先需要在 SteamCommunity :: Steam Game Server Account Management(鏈接地址為:https://steamcommunity.com/dev/managegameservers)中為你的服務器創(chuàng)建一個賬號。游戲The Forest 的appid是242760。注意,請勿向第三方透露游戲服務器的登錄令牌。

一旦創(chuàng)建了你的游戲服務器賬戶,復制你的登錄令牌到或者命令行

-------------------------------------

-serversteamaccount

-------------------------------------

或者添加到配置文件Server.cfg中的

-------------------------------------

serverSteamAccount

-------------------------------------

然后,重啟服務器。

----------------------------------------------------------------------------

完畢。

總結(jié)

以上是生活随笔為你收集整理的森林正版服务器,The Forest 专用服务器设置向导的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。