STAR WARS™ Republic Commando

STAR WARS™ Republic Commando

Not enough ratings
How To Setup A Multiplayer Server
By Eyeris and 2 collaborators
If you are interested in setting up your own Republic Commando Multiplayer Server, this guide is for you! Learn how to get a server up and running using either UCC.exe or the game's built in server commandline, and have it appear on the server browser. You'll also learn how to change server parameters to add customization like map cycles to your server(s).
   
Award
Favorite
Favorited
Unfavorite
Disclaimer
The guide was done on Windows, and it is mean't to simplify the process of creating a server. You can view the inspiration of this guide here.[wiki.swrc-modding.net] If you are a Linux user, the guide linked will provide details on how to get a server up and running using UCC.exe.

Alternatively, rather than use UCC.exe, you can setup a server using the developer's official commandline, with special admin commands added with Unofficial Patch V1.4. Ideally, if you want an easy to start up server to play with friends, go with UCC.exe. If you wish to maintain a dedicated server to be up constantly, as well as have the ability to kick/ban players, MOTD, and admin privileges, skip to the Advanced Server Creation section to get started.
Step 1: Requirements
Here are the things you need to get started:

1. Star Wars: Republic Commando installed
2. Microsoft Visual C++ 2005 Redistributable (x86 and x64; you will most likely have this)
3. Republic Commando UCC[wiki.swrc-modding.net]
4. Modified gamespymgnr.dll file.[drive.google.com] -- Created By Leon0628, Modified by Demon27248
5. CDKey Fix[wiki.swrc-modding.net]
Step 2: Republic Commando UCC Installation
Step 1: Right click on Star Wars: Republic Commando in your library, click on Manage, then click on Browse local files. Open GameData folder, then open System folder.

Step 2: Extract the contents of the zip files you downloaded into the System folder. If prompted to replace files, go ahead and replace them.

Step 3: Right click on CT.exe and create a shortcut. Move the shortcut to your desktop for easy access. Try and launch the game using this shortcut from now on.



Step 4: Right click on UCC.exe and create a shortcut. Right click on the shortcut and click on "Properties". Type in the Target box Engine.ServerCommandlet a space after the quotations. It should look something like this:



Click Apply and Ok. Move the shortcut to the desktop for easy access. You will need to launch this file every time you wish to start up your server.

NOTE: If you would like the server to automatically launch when you start up Windows 10, press Win + R to bring up the run window, type in shell:startup, hit enter, copy and paste your UCC.exe shortcut to the new window that comes up. Trying to start up the server with a shortcut of the regular SWRepublicCommando.exe file will not start the server on startup for unknown reasons.
Step 3: Port Forwarding
Port forwarding is the process of opening a connection (a port) on your router to allow players outside your network to connect to your server. Because port forwarding instructions vary from router to router, you may want to look up your router's manufacturer and model to find specific instructions on how to port forward. This guide may assist you.[www.noip.com] Once you learn how to port forward:

Open ports 7777 and 11138 on your computer's IP Address. You can find your computer's IP address here.[whatismyipaddress.com] Type should be both TCP and UDP. Example:

Internal/External: 7777
Type: TCP/UDP
IP: 192.168.X.X (computer's IP)
Enabled: True

Internal/External: 11138
Type: TCP/UDP
IP: 192.168.X.X (computer's IP)
Enabled: True

To check if your ports are opened, check on this site.[www.canyouseeme.org] If done correctly, both 7777 and 11138 should be opened on your computer's IP.

NOTE: Sometimes you need to allow an Inbound Rule in Windows Firewall settings if port forwarding on your router isn't working.
Step 4: Configuring System.ini
Adjustments to your servers like changing gamemodes and parameters are done in the GameData/System/System.ini file.

Step 1: Open System.ini with your favorite text editor (e.g Notepad) and change the following lines:

Map=Entry.ctm
LocalMap=Entry.ctm

to

Map=DM_Siege?Game=MPGame.DMGame
LocalMap=DM_Siege?Game=MPGame.DMGame



What this does: Boots Arena A17 (DM_Siege) with Deathmatch Gamemode (MPGame.DMGame). Parameters are separated using the "?" symbol. We will leave the settings as is for now. At the end of the guide, you will see all the available parameters and commands you can use to liven up your server.

Step 2: Under [IpDrv.TcpNetDriver], look for NetServerMaxTickRate, and change the attribute to 35:

NetServerMaxTickRate=35



Step 3: Under [IpDrv.MasterServerUplink], change AdvertiseServer to 2:

;Set the below to broadcast on Lan
;Set this to 2 to broadcast to gamespy
AdvertiseServer=2



Step 4:

Under [Engine.GameReplicationInfo], you can change the name of your server:

ServerName=Server name here
ShortName=RC Server



Step 5: Save and close the file.
Step 5: Testing Your Server
Once you have completed all the previous steps, launch your UCC.exe shortcut and a command prompt should open. The command prompt will initialize your server and provide information about your server. Example:



Launch Republic Commando through the CT.exe shortcut. Go to Multiplayer, Internet, Join Internet Game. The name of your server should pop out on the browser. Double click or click on Join to enter your server. If all previous steps were done correctly, you should be able to roam about your server. Have another player enter your server to verify that they will be able to connect to your server (See Troubleshooting if they cannot enter your server.)
Ignore the white background, it's a glitch on my end

Parameters
Parameters let you change your server's gamemode, map, player count, time limit, and other things to liven up your server. All available parameters can be found in the SWRC-Modding Wiki [wiki.swrc-modding.net]but for convenience, they are listed below:

Maps(DM/TDM):

Map Name
In-Game Map Name
DM_Siege
Arena A17
DM_ZeroG
Arena G9
DM_PowSmall
Depot
DM_Engine
Engine
DM_HangingGarden
Garden
DM_Pow
Garrison
DM_Trando
Ghostship
DM_Canyon
Gunship
DM_Hangar
Hangar
DM_Underpass
Kachirho
DM_Detention
Lockdown

Maps (CTF/Assault):

Map Name
In-Game Map Name
CTF_Siege
Arena A17
CTF_ZeroG
Arena G9
CTF_Engine
Engine
CTF_HangingGarden
Garden
CTF_Pow
Garrison
CTF_Trando
Ghostship
CTF_Hangar
Hangar
CTF_Underpass
Kachirho
CTF_Detention
Lockdown

GameModes:

GameMode
In-Game GameMode Name
MPGame.ASGame
Assault
MPGame.CTFGame
Capture The Flag
MPGame.DMGame
DeathMatch
MPGame.TDGame
Team DeathMatch

Useful Parameters:

Param
Description
GoalScore=
Set the score limit
TimeLimit=
Set the timelimit in minutes
MaxPlayers=
Set max players for server
MaxSpectators=
Set max spectators for server
RespawnDelay=
Set respawn time (Maximum 7 seconds)
MapListType=
Tell the server to use this map list pool
NumRounds=
(Assault Only) Set the number of rounds until match ends
RoundTime=
(Assault Only) Set the round time in seconds
bEmptyTeamStart=
Set to either True or False; tells the game to start even if only one player has joined

Map Pools:

Map Pools are used to cycle through maps/gamemodes of your choice. You can assign commandlines to Map Pools at the very bottom of System.ini. For simplicity, [MPGame.MapListMixedDeathMatch] will be used in the following example:

[MPGame.MapListMixedDeathMatch]
MapNum=0
Maps+=DM_Canyon?Game=MPGame.DMGame?GoalScore=20?TimeLimit=30?MaxPlayers=16?MaxSpectators=8?RespawnDelay=2
Maps+=DM_ZeroG?Game=MPGame.TDGame?GoalScore=50?TimeLimit=60?MaxPlayers=20?MaxSpectators=5?RespawnDelay=3
Maps+=CTF_Hangar?Game=MPGame.CTFGame?GoalScore=15?TimeLimit=30?MaxPlayers=16?MaxSpectators=8?RoundTime=0?NumRounds=2?RespawnDelay=3

If the above settings are applied, after the first match is over, it will cycle through maps and gamemodes in this order.:

Gunship, DeathMatch, Score limit is 20, Time limit is 30 minutes, Max amount of players is 16. max spectators is 8, and time to respawn is 2;
ArenaG9, Team DeathMatch, Score limit is 50, Time limit is 60 minutes, Max players is 20,max spectators is 5, and time to respawn is 3;
Hangar, Capture The Flag, Score limit is 15, Time limit is 30 minutes, Max players is 16, Max Spectators is 8, Round Time is 0 (infinite) and number of rounds is 2, and time to respawn is 3;



You can add as many as you like for your server. The cycle will repeat itself once it reaches the last commandline back to the first one and keep repeating as long as the server is up.
Scenario
Suppose I want to start my server on Gunship Map, on DeathMatch GameMode, with a Goal Score of 35, Time Limit set to 60 minutes, Max Players of 8, Max Spectators of 4, and the Respawn Time set to 2 seconds. Here's how it would be done:

Map=DM_Canyon?Game=MPGame.DMGame?GoalScore=35?TimeLimit=60?MaxPlayers=8?MaxSpectators=4?RespawnDelay=2

Suppose after the match is over, I want the server to keep changing maps and/or gamemodes according to the order I want it in. You would use Map Pools to accomplish this:

Map=DM_Canyon?Game=MPGame.DMGame?GoalScore=35?TimeLimit=60?MaxPlayers=8?MaxSpectators=4?RespawnDelay=2?MapListType=MPGame.MapListMixedDeathMatch

Whatever commandlines are assigned under [MapListMixedDeathMatch], the server will act upon.
Advanced Server Creation
Requirements
Alternatively, if you don't want to use UCC.exe, the original developers made it possible to launch a dedicated server via a command-line option that came built into the game.
If using this method, make sure you are using the fixed gamespymgr.dll file[drive.google.com], port forwarded your router and install the Unofficial Patch v1.4 (Optional but useful for changing maps/modes/kick players on the fly). Open the zip file, open the RepComPatch_V1_4 folder and click on the Read.pdf file to learn how to install the patch as well as view it's documentation.

Setting Up The Server
Step 1: Go to your System folder for Republic Commando. Find "SWRepublicCommando.exe". Right click it and hover over "Send To" then select "Desktop (create shortcut)"

Step 2: Go to your new created shortcut and select "Properties".

Step 3: At the end of the target box, go all the way to the end and just add "-server". UCC and this method by default both read your System.ini file. This will now launch your SWRC EXE as a dedicated server by double clicking the shortcut.



Step 4: A window won't pop up, you'll need to check your system tray for the icon and click on it.



That's it! Your server is now up and running with the official original developer's UI. I recommend this way because it has the best compatibility with your system.ini and if you're using the admin patch, the mod.ini.

NOTE: You CAN have multiple instances of the game running, even with a dedicated server running. For example, you can have one shortcut as the server, and the other shortcut of just the game, that way you can launch your server then boot up the game like normal and still be able to play.
Conclusion
Congratulations! You now know how to setup a server and have players connect to it. If this guide helped you out, please share it with others who wish to start their own server as well. I will try my best to update this guide with additional information and corrections if deemed necessary.

Video by unLeashed_FPS:

Video by Demon27249

Additional topics are discussed below this section.
Additional Information/Resources
Republic Commando Discord Server(s) To Join:

Ascendancy - https://discord.gg/9sCMRRmtkU

Running A Server on a VM:
It is possible to run servers on Virtual Operating Systems as far back as Windows XP. You may want to do this if you decide to want to open multiple servers with the UCC method, but ideally that's what the in-game server commandline is for if configured correctly. If you want to run a server on a VM, simply follow this guide and apply it to the VM and it will work like it would on your main OS.

NOTE: If you read further into the Admin patch's readme file, you can see that you can actually run multiple servers on one machine with a modified ncc.u file.
Troubleshooting
Server Not On Internet Server Browser List:
If for some reason you do not see your server on the browser list:

1. Make sure you have port forwarded properly.
2. If you are using the gamespymgnr.dll included in SWRCFix2.7.zip, try replacing it with the modified one instead.

Server Name Not Accurate On Internet Server Browser:
Despite setting a custom name, sometimes your server name would appear only on LAN but not on Internet. Do this if you run into this problem(UCC.exe only):

1.While running UCC.exe, create an Internet server in game and name it whatever you want it to be.

2. Launch the server and wait till you load in the map. Once you do, close the game; UCC.exe should have closed by itself. If it didn't, close it yourself.

3. Relaunch UCC.exe and check the Internet Browser to see if the name change was applied.

UCC Closes When Starting Server:
1. Make sure there are absolutely no typos in your lines in System.ini.
2. Run as admin if need be.
3. If using the official commandline that the devs have baked in, running as Admin may also help if it crashes on startup.