Server - Terraria Wiki - Fandom

文章推薦指數: 80 %
投票人數:10人

A Terraria server provides a platform for players to connect over the internet or other network for multiplayer games. Windows installations of Terraria ... TerrariaWikiMisstheoldHydraSkin?TryoutourHydralizegadget!Visitthepreferencespagewhileloggedinandturnonthegadget.READMORE TerrariaWiki Explore MainPage AllPages InteractiveMaps Basics Items Weapons Tools Armor Accessories Potions Ores Furniture Blocks Backgroundwalls Vanityitems Characters NPCs Enemies Bosses Critters Pets Minions Biomes Events Gameplay Hardmode ClassicMode ExpertMode MasterMode JourneyMode Multiplayer Mechanics Crafting Houses Buffs Bestiary Achievements Fishing Modifiers Guides Gettingstarted Walkthrough Classsetups Crafting101 Gameprogression Maintainingworldpurity NPChappiness Farmingresources Makingmoney Bases Advanced Gameplaymechanics Biomespread Dayandnightcycle Gamecontrols Luck Moonphase NPCspawning Settings WorldSeed Worldsize Playermechanics Aggro Damagereduction Death Defense Falldamage Health Healthregeneration Mana Movementspeed Spawn Combatmechanics Attackspeed Autoswing Criticalhit Damage Knockback Velocity Itemmechanics Miningspeed Pickaxepower Placement Rarity Tooltips Usetime Value Mods ResourcePacks WorkshopHub tModLoader Inventoryeditors Mapviewers DataIDs TerrariaLinks Officialwebsite Officialforum TerrariaTwitter TerrariaFacebook TerrariaInstagram TerrariaSubreddit TerrariaDiscord WikiCommunity Contribute Helpcontents Thingstodo Rulesandguidelines Rules Videopolicy Styleguide Communitynoticeboard Adminnoticeboard Projects FANDOM Games Anime Movies TV Video Wikis ExploreWikis CommunityCentral StartaWiki Don'thaveanaccount? Register SignIn Advertisement in: Gamemechanics,Thirdpartysoftware English Español Français 中文 Server Viewsource History Talk(24) ATerrariaserverprovidesaplatformforplayerstoconnectovertheinternetorothernetworkformultiplayergames.WindowsinstallationsofTerrariaincludeitsserversoftware.ForrunningonaLinuxdistribution,youmustdownloadtheserverfiles.SeetheDownloadssection. Aservercanalsobeusedforstandalonesingle-playergameplay.Thisofferstheabilitytoadjustthein-gametimeatwill. Contents 1BeforeYouHost 2Publicservers 2.1JoiningServers 3Howto(Windows) 4Howto(Linux) 4.1Prerequisites 4.2Startingtheserver 4.3Launchinginthebackground 4.4Notes 5Howto(RPI/OthersOSes) 5.1Prerequisites 5.2Launchingtheserver 5.3Troubleshooting 6Downloads 7Serverfiles 8Listofconsolecommands 9Commandlineparameters 10Serverconfigfile 11Banningandun-banning 12Systemrequirements 13Notes 14LAN 15History BeforeYouHost TheserverrunsonTCPport7777bydefault.IfyouarebehindNAT(e.g.residentialuser),theportusedmustbeport-forwardedinorderforotherplayersbeabletojoin.Ifonecan'tforwardaport,onemaychoosetouseaVPNservicelikeHamachiorRadminVPNinstead(althoughinthosecases,everyplayerneedstoinstalltheVPNsoftware).Thedefaultmaxplayersis8(16asof1.4.0.1),butthiscanbechangedduringserverstart-up,aswellaswithintheserverconfigurationfile(serverconfig.txt).Non-NATconnections(e.g.businessordatacenteruser)typicallydonotneedportforwarding,butmayneedtoallowtheportthroughafirewall. IfrunningonacloudserviceprovidersuchasAWSorGCP,ensureport7777onTCPandUDPisopentoallowconnectionstotheserver. Publicservers Serverscanbefoundviatheseserverlists: ServerforumatOfficialTerrariaForum https://www.tserverweb.com https://topg.org/terraria-servers/ http://terraria-servers.com https://terraria.21yunbox.com JoiningServers AservercanbejoinedbyselectingtheMultiplayeroptiononthemainmenu,selectingacharacter,andthenenteringtheserver'sIPandport. Oftendifferentservershavedifferentrequirementsforaplayertojoin.SomeserverswillrequiretheplayertohaveaSoftcoreorMediumcoreplayertoplay,andsomemayrequirethatplayersbeatacertainlevelofthegamebeforejoining.Oftenapublicserverwillhavea/registerand/loginsystemwheretheplayermusthaveacharacterwithbothauniquenameandpassword. PublicserversalsousuallyarerunbyagroupofAdministratorsand/orModeratorswhoenforceorregulaterules.Oftentheseruleswilldisallowmodsandhacks,impersonation,andthelike.Someserversmayalsohavethecapabilitytoallowaplayertoplayonlinewiththeirsingleplayercharacterwithoutlosingtheirsingleplayerinventory. Alistofserversyouhaverecentlyplayedwillbesavedunder"JoinviaIP"inMultiplayer. Howto(Windows) Bydefault,ona32-bitWindowsinstallationofTerraria,TerrariaServer.execanbefoundat:%programfiles%\Steam\steamapps\common\terraria Ona64-bitWindowsinstallation,itcanbefoundat:%programfiles(x86)%\Steam\steamapps\common\terraria Ifyoucannotfinditinpathsabove,opensteamandrightclickTerrariainyourlibrary,thenhit"Properties">"LOCALFILES">"BROWSELOCALFILES..."toopenthefolder. Ifyoudonothavesteam:%programfiles(x86)%\terrariaor%programfiles%\terraria IfyouuseGOG:GOGGames\terraria AplayerthenmayjointheserverfromthegamemenubychoosingtheMultiplayeroption. Howto(Linux) Prerequisites Firstwewillinstallthetoolsweneedtoruntheserver.Thesearelikelypreinstalledonyourdistribution. ForaDebianbasedsystem(Ubuntu),run:sudoaptupdate&&sudoaptinstall-ywgettmuxunzip Startingtheserver SeetheDownloadssectiontogetthelinktothelatestdownload.Thendownloadthefile:wgetthe_latest_link_here Unzipthefile:unzipterraria-server* Navigateintothedirectoryyoujustunzipped.Asof1.4.1.2thedirectoryiscalled'1412'.Thismaychangeforfutureversions:cd1412 NavigatetotheLinuxdirectory:cdLinux Addexecutablepermissionstotheserverbinary:chmod+xTerrariaServer.bin.x86* Launchtheserver.The64bitversionisTerrariaServer.bin.x86_64,the32bitversionisTerrariaServer.bin.x86:./TerrariaServer.bin.x86_64 Placeyourworldfilesinthefollowinglocationfortheservertofindthem:~/.local/share/Terraria/Worlds/ Launchinginthebackground Tmuxisamodernversionofscreenthatallowsmultiplevirtualterminalinstances.Wewilluseittolaunchtheserverinthebackground. Launchtheserverinatmuxsession:tmux Inthetmuxsession,launchtheserver:./TerrariaServer.bin.x86_64 Nowtheservershouldstartupasnormal.Todetatchfromthetmuxinstance,leavingtheserverrunninginthebackground,usethefollowingkeycombination:d Youshouldnowbebackatthepreviousterminalinstance.Youcanseethatthetmuxsessionisrunninginthebackgroundwithtmuxlist Tore-attachtotheinstancetoeditorshutitdown,justruntmuxattach Notes InsomecasesitisneededtoexportTERMvariableinthisway:exportTERM=xterm Howto(RPI/OthersOSes) Ifyouareusinganoperatingsystem(SuchasRaspberryPiOS(previouslycalledRaspbian)orFreeBSD)thatdoesnotcomewithaprebuiltexecutable,youcouldusemonotostarttheserver.ThiscouldbeusefulifyouwanttohostaserveronadevicesuchasaRaspberryPi,oranydevicethatdoesnotrunonthex86architecture. Prerequisites NOTE:Ifyouareusinganon-x86Linux-basedoperatingsystem(SuchasRaspberryPiOS),thefirstfewinstructionsshouldbethesameastheonefoundhere,upuntilthechmodcommand.Youwouldneedtoinstallmonoandandanyotherrequiredlibraries(suchassqliteorscreen)ifitdoesnotcomepreinstalledonyoursystem. Launchingtheserver DownloadandextracttheTerrariafilesfollowingyoursystemspecifications.(ForRaspberryPiUsersFollowTheLinuxGuide) NavigatetotheLinuxdirectory. Launchtheserverbyusingthefollowingmonocommand:mono--server--gc=sgen-O=all./TerrariaServer.exe Theservershouldrunasexpected. Troubleshooting Ifyouencounteranerrorsaying"Yourmonoruntimeandclasslibrariesareoutofsync.",navigatewithintheTerrariadirectoryandremovemonoconfig,mscorlib.dll,andanyfilesthatbeginwith"Mono"or"System". ExampleinstructionswithLinux: rmSystem* rmMono* rmmonoconfig rmmscorlib.dll WindowsBase.dllandFNA.dllshouldbetheonly.dllfilesinthedirectory NOTE:Thisprocedurewilldeleteanyotherfilesstartingwith"Mono"or"System",sokeepthatinmind! Downloads ThevanillaTerrariaserversoftwareisincludedwiththeregularTerrariapackage(seeabove),butcanalsobedownloaded: TerrariaServer1.4.2.3 TerrariaServer1.4.3 TerrariaServer1.4.3.1 TerrariaServer1.4.3.2 TerrariaServer1.4.3.3 TerrariaServer1.4.3.4 TerrariaServer1.4.3.5 TerrariaServer1.4.3.6 TerrariaServer1.4.4 TerrariaServer1.4.4.1 TerrariaServer1.4.4.2 TerrariaServer1.4.4.3 TerrariaServer1.4.4.4 DedicatedServerGUIisathird-partyadd-onforthevanillaserverthatoffersgraphicalcontrols(theserverisnormallyacommand-lineprogram): DedicatedServerGUI. TshockandTDSMarethird-partyserverpackagesthatofferadditionalfunctionality,suchasin-gamecommands,whitelists,playerpasswords,andaplugininterfaceforaddedfeatures(suchasfactions): Tshock TDSM(Latestversion1.3.2.1;Nolongermaintained.) Serverfiles TheWindowsserverconsistsofthesefiles: TerrariaServer.exe-Themainserverfile.Canberunstand-alone. serverconfig.txt-Theserverconfigfiles.Definesallparametersfortheserver(seebelow). start-server.bat-AWindowsBatchfilewhichstartstheserverusingtheserverconfig.txtfile.Alsocontainsaloopbacktorestarttheserverifitshouldcrash. start-server-steam-friends.bat-functionsas"Host&Play"would,butthroughtheconsole.steamfriendswillbeabletojoinyourgamethroughthis. Listofconsolecommands Onceadedicatedserverisrunning,thefollowingcommandscanberun: help-Displaysalistofcommands. playing-Showsthelistofplayers.Thiscanbeusedin-gamebytyping/playingintothechat. clear-Cleartheconsolewindow. exit-Shutdowntheserverandsave. exit-nosave-Shutdowntheserverwithoutsaving. save-Savethegameworld. kick-Kicksaplayerfromtheserver. ban-Bansaplayerfromtheserver. password-Showpassword. password-Changepassword. version-Printversionnumber. time-Displaygametime. port-Printthelisteningport. maxplayers-Printthemaxnumberofplayers. say-Sendamessagetoallplayers.Theywillseethemessageinyellowprefixedwithinthechat. motd-PrintMOTD. motd-ChangeMOTD. dawn-Changetimetodawn(4:30AM). noon-Changetimetonoon(12:00PM). dusk-Changetimetodusk(7:30PM). midnight-Changetimetomidnight(12:00AM). settle-Settleallwater. Notethataforward-slash/isnotrequiredtoprecedethecommand,assomecommandinterfacesrequire.ForalistofTshockcommands,refertotheTShockreadme. Commandlineparameters ThefollowingisalistofparametersthatcanbeenteredwhenrunningTerrariaServerinitially: -config-Specifiesaconfigurationfiletouse(seeServerconfigfilebelow). -port-Specifiestheporttolistenon. -players/-maxplayers-Setsthemaxnumberofplayers. -pass/-password-Setstheserverpassword. -motd-Settheservermottoofthedaytext. -world-Loadaworldandautomaticallystarttheserver. -autocreate-Createsaworldifnoneisfoundinthepathspecifiedby-world.Worldsizeisspecifiedby:1(small),2(medium),and3(large). -banlist-Specifiesthelocationofthebanlist.Defaultsto"banlist.txt"intheworkingdirectory. -worldname-Setsthenameoftheworldwhenusing-autocreate. -secure-Addsadditionalcheatprotectiontotheserver. -noupnp-Disablesautomaticuniversalplugandplay. -steam-EnablesSteamsupport. -lobbyfriends/-lobbyprivate-AllowsonlyfriendstojointheserverorsetsittoprivateifSteamisenabled. -ip-SetstheIPaddressfortheservertolistenon -forcepriority-Setstheprocesspriorityforthistask.Ifthisisusedthe"priority"settingbelowwillbeignored. -disableannouncementbox-DisablesthetextannouncementsAnnouncementBoxmakeswhenpulsedfromwire. -announcementboxrange-Setstheannouncementboxtextmessagingrangeinpixels,-1forserverwideannouncements. -seed-Specifiestheworldseedwhenusing-autocreate Serverconfigfile Itispossibletostartthededicatedserverusingaconfigurationfilethatenterstheaboveparametersautomatically.Theconfigfilemustbecalledusingthe-configparameter.Thefilecanhaveanyname,butmustbeinthesamefolderasTerrariaServer.exe.Ifaserverconfigfileisdefinedandthefileisnotlocatedduringtheserverboot,thentheserverwillasktheusertoinputtheparametersasitwouldifrunwithoutadefinedconfigfile. Thefollowingisalistofavailableconfigcommands: world=C:\Users\Defaults\MyDocuments\MyGames\Terraria\Worlds\world1.wld-Loadaworldandautomaticallystarttheserver. autocreate=3-Createsanewworldifnoneisfound.Worldsizeisspecifiedby:1(small),2(medium),and3(large). seed=AwesomeSeed-Setstheworldseedwhenusingautocreate worldname=World-Setsthenameoftheworldwhenusingautocreate difficulty=0-Setsworlddifficultywhenusing-autocreate.Options:0(normal),1(expert),2(master),3(journey)[Note:MobileServersrequire1tobeaddedtothedifficulty(e.g.2isexpertformobileterrariaservers).] maxplayers=8-Setsthemaxnumberofplayersallowedonaserver.Valuemustbebetween1and255 port=7777-Settheportnumber password=p@55w0rd*-Settheserverpassword motd=Pleasedon’tcutthepurpletrees!-Setthemessageoftheday worldpath=C:\Users\Defaults\MyDocuments\MyGames\Terraria\Worlds\-Setsthefolderwhereworldfileswillbestored banlist=banlist.txt-Thelocationofthebanlist.Defaultsto"banlist.txt"intheworkingdirectory. secure=1-Addsadditionalcheatprotection. language-Setstheserverlanguagefromitslanguagecode.Availablecodes: en-US=English de-DE=German it-IT=Italian fr-FR=French es-ES=Spanish ru-RU=Russian zh-Hans=Chinese pt-BR=Portuguese pl-PL=Polish upnp=1-AutomaticallyforwardportswithuPNP. npcstream=60-Reducesenemyskippingbutincreasesbandwidthusage.Thelowerthenumberthelessskippingwillhappen,butmoredataissent.0isoff. priority=1-Defaultsystempriority0:Realtime,1:High,2:AboveNormal,3:Normal,4:BelowNormal,5:Idle JourneyModepowerpermissionsforeveryindividualpower.0:Lockedforeveryone,1:Canonlybechangedbyhost,2:Canbechangedbyeveryone journeypermission_time_setfrozen=2 journeypermission_time_setdawn=2 journeypermission_time_setnoon=2 journeypermission_time_setdusk=2 journeypermission_time_setmidnight=2 journeypermission_godmode=2 journeypermission_wind_setstrength=2 journeypermission_rain_setstrength=2 journeypermission_time_setspeed=2 journeypermission_rain_setfrozen=2 journeypermission_wind_setfrozen=2 journeypermission_increaseplacementrange=2 journeypermission_setdifficulty=2 journeypermission_biomespread_setfrozen=2 journeypermission_setspawnrate=2 Commentlinescanbeincludedusingthehashsymbol(#).Linesthatbeginwith#willbeskippedentirely. Banningandun-banning Thecommandbanwillbantheindicatedplayerfromtheserver.Abannedplayer,whentheytrytologin,willbedisplayedthemessage:Youarebannedfor[duration]:[reason]-[modname].Abannedplayermaythenbeun-bannedbyeditingthefile"banlist.txt,"whichislocatedintheTerrariafolder.Thisdocumentcontainsalistofallcurrentlybannedplayers.Toun-banaplayer,deletetheplayer'snameandIPaddressfromthelist. Systemrequirements WindowsOperatingSystem 500MBfreeRAMforasmallworld(RAMdependsonworldsizeandnumberofplayers) .NETFramework4.0 XNAFramework Aneasymethodofinstalling.NETandXNAistosimplyinstalltheTerrariaclient,whichshouldinstallbothaspartofitsregularinstallation. Notes Theserverwillauto-savetheworldnowandthen,butwillonlysaveonshutdownwhenusingtheexitcommand.Thatsaid,considersavingmanuallypriortoshutdown. Whennoplayersareonlinetheserverhibernates.Timeonlypasseswhenplayersareconnected. Whenyoulaunchaserver,itwillaskifyouwanttoautoportforward,howeverthisdoesn'talwayswork. ServersareoftensetupusingHamachi.Thisremovestheneedofhavingtoport-forward,butreliesonathirdpartyprogram. Someserverswillboosthealth,Ifaserverisinexpertmode,thedestroyermayhave1,000,000+health/hp(hitpoints) LAN BelowareinstructionsforaverybasicLANpartysetup.Attheveryleast,allcomputersmustbeconnectedtothesamenetworkforthistowork.Ifyoufeelsoinclined,youcansettheservertohaveastaticLANIPaddress,butthat'snotreallynecessary.Notethattheseinstructionsaretargetedatpeoplewhohavelittletononetworkingexperience,andjustwanttoplaygames. Makesurethatallcomputersareconnectedtothesamenetwork Connectthecomputerstothenetworkviaethernetifpossible,sinceethernetisalmostalwaysfasterthanwireless. Ifyouhavearegularhomerouterandwanttoconnectmanyplayers,youcanconnectmorecomputerstothenetworkviaethernetbyuseofaswitch.Simplypluganyportoftheswitchintotherouter,andplugtherestofthecomputers(andtheserver)intotheswitch.Ifyoudon'thaveaswitch,trytoatleastconnectthecomputerrunningtheservertothenetworkviaethernet.Ifyoucan'tdothat,justmakesureallcomputersareconnectedtothesamewificonnectionanditwillprobablywork,justabitmoreslowly. Getserverinformation First,makesurethattheserverisconnectedtotheinternet,oratleastconnectedtoyourrouter.Totestrouterconnectivity,youcantryloggingintoyourrouterviawebpanel.Usuallytherouterlogininformationisprintedonastickeronthebackoftherouter.Ifthepageloads,great-justmakesuretheothercomputersareconnectedtothesamenetwork. Windows: OpenCommandPromptandrun"ipconfig"togetinformationaboutyournetwork.RecordtheIPaddressthatappearsafter"IPV4Address......"Itshouldbesomethinglike192.168.1.27,172.16.0.5510.0.0.42.ThisistheIPaddressyouwilluseforjoiningonterraria.IftheIPaddressstartswith127,lookforonethatdoesn't.Ifitstartswith169,you'redoingsomethingwrong. MacOS: OpenSystemPreferences>NetworkandrecordtheIPAddress.SeeaboveforwhattheIPshouldlooklike. GNU/Linux: Run"ifconfig"or"ipa"fromaterminalwindowtogetyourlocalIP.SeeaboveforwhattheIPshouldlooklike. Connecttheclientstotheserver OpenTerraria,clickmultiplayer,andconnecttotheIPaddressthatyourecordedfromthesecondstep. Youshouldbeconnectedtotheserver! Troubleshooting(ifsomethingdoesn'twork) Makesurethatthefirewallonthecomputerrunningtheserverisdisabled,oratleastallowstrafficthroughonport7777.Besuretore-enablethefirewallonceagainwhenyouhavethechance. IfyourlocalIPaddressdoesstartwith169,youshouldcheckyournetworksettingstogetconnectedtotheinternet. TheIPoftheservermaychange,especiallyiftherouterrestarts.Ifyouareunabletoconnecttotheserver,gothroughstep2onceagaintoseeiftheIPhaschanged. Ifthisbecomesarecurringproblem,youshouldlookup"settingastaticIPon(OSName)",whereOSNameisthenameoftheserver'soperatingsystem. IfyousettheportoftheTerrariaservertosomethingotherthanthedefaultof7777,makesurethattheclientsareconnectingtowhateverporttheserverisconfiguredtouse. History  PCversion Desktop1.4.0.1: Newdifficultyvalues:2formastermode,3forjourneymode. Abunchofconfigurationfileoptionshavebeenaddedforcontrollingjourneymodepowerpermissions. Desktop1.3.0.4: Dedicatedserverscannowbelaunchedwith-forceprioritytooverrideserversettingsfile'sprocesspriority. Dedicatedservercannowuse-ipagaintosettheirlocalIPaddress. Desktop1.3.0.3:Youshouldnowhaveaneasiertimereportingerrorsiftheyhappenonaserver. Desktop1.3.0.2: Youwillnowbeabletoenterthepasswordeverytimewhenenteringorcreatingaserver. Manyissueswiththededicatedserveranditsconfigurationshavebeenresolved. Fixedanissuewhereuserswouldbeunabletoinviteeachotherwhenin"InviteOnly"mode. Desktop1.2.3.1:FixedcrasheswhenstartingthededicatedserverinalanguageotherthanEnglish. Desktop1.0.2: ServersnowlistentoallIPaddressesonthehostingPC,regardlessofhowmanynetworkconnectionsareactive. Typing"localhost"insteadofyourownlocalIPaddresswillconnecttoyourownsame-PCserver. Gamedefaultportchangedfrom31337to7777. ClientwillnowresolveahostnameintoitsIPaddress,forexample,ifrandomsite.orgranaserver,youcouldtyperandomsite.orgastheIPaddressandbeabletoconnect. Desktop-Release:Introduced.  Consoleversion Console-Release:Introduced.  Mobileversion Mobile-Release:Introduced. Nintendo 3DS version 3DS-Release:Introduced. V • D • ECombat​Attackspeed​Autoswing​Criticalhit​Damage​Knockback​Lockon​Minions​VelocityEnvironment​Ambientobjects​Ambiententities​Biomebackgrounds​Biomes(Spread)​Dayandnightcycle​Events​Gravity​Hardmode​Liquids​Moon​Music​NPCdespawning​NPCspawning​Pre-Hardmode​Secretseeds​Statusmessages​Wind​World​WorldSeed​WorldsizeInterface​Minimap​Logo​Titlemessages​Tips​ResourcePacksItems​Alternativecraftingingredients​BlockSwap​Consumables​Craftingstations(ByHand)​Crossovercontent​Explosion-proofobjects​Flatsurfaceitems​Miningspeed​Modifiers​NPCdrops​Placement​Pickaxepower​Rarity​Recipes​Storage​Tooltips​Usetime​ValueGame​Achievements​AI​CameraMode​Config.json​Cursormodes​DataIDs​Difficulty​EmoteCommands​ExpertMode​Fishing​Gamecontrols​Gameplatform​Golf​Hoik​JourneyMode​Lightingmode​MasterMode​Music​NPCnames​Parallax​Pylons​Settings​TownMultiplayer​Server​Chat​MultiplayerPlayer​Aggro​Breathmeter​Buffsanddebuffs​Character​Characterstyles​Damagereduction​Death​Defense​Drowning​Extrajump​Falldamage​Ghost​Hairstyles​Health​Healthregeneration​Inventory​Luck​Mana​Movementspeed​Playerstats​Socialslots​Spawn V • D • E​Servers(TShock)​Mapviewers​Inventoryeditors​Mods(tModLoader)yue:Server/yue Categories: Gamemechanics Thirdpartysoftware Español Français 中文 CommunitycontentisavailableunderCCBY-NC-SA3.0unlessotherwisenoted. Advertisement FanFeed 1 Shimmer 2 Secretworldseeds 3 Bosses UniversalConquestWiki Let'sGoLuna!Wiki Club57Wiki FollowonIG TikTok JoinFanLab



請為這篇文章評分?