April 07, 2020, 10:00:54 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:


NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.
Chat with us online! (or @irc.esper.net/#gg2)
Come Mumble with us!

Pages: [1] 2 3

Author Topic: Steve's Detailed Guide to Servers (All things needed for a successful host!)  (Read 12806 times)

Steve

  • Full Member
  • ***
  • Karma: 45
  • Offline Offline
  • Posts: 505
  • beep beep robot

Let's face it, GG2. Cspot's guide, and those in the same topic, are a bit lacking on detail. I remember back in early 09, when I started my server there were some things I had to find out on my own. I'll be eliminating that possibility here and now with my new hosting guide.

Step 1: Configuring Your Server Properly

Configuring the server should be nice and easy. First thing's first: Let's open up 'gg2.ini' and make sure everything is in order. For convenience, I'll be copying my own 'gg2.ini' here, and giving a brief explanation of what's inside. Keep in mind that in a '0-1' option, '0' is no, and '1' is yes, generally.

(click to show/hide)

Alright, now that we've got a good idea of what's in the 'gg2.ini' file, and we've configured a few things properly, let's move on to the next step. Remember when I said I'd offer an alternative to the dedicated option? We'll do that now. Right click your 'gg2.exe' and create a shortcut in the same folder. Rename your shortcut to show that it's dedicated. For example, I named mine 'GG2 DEDICATE'. Now, right click the shortcut, and go to properties. In the 'Shortcut' tab, look for the line near the top, named 'Target'. Now, say it's target is, for example, 'C:/Program Files/GG2/gg2.exe', you're going to change that into 'C:/Program Files/GG2/gg2.exe -dedicated'. Now when you launch that shortcut, you'll be running it in dedicated, it will skip all menus, be pre-muted, and ready for action. You can turn the sounds back on with F12.

Now that your server is both set up, and dedicated, we'll work on map rotations. There are plenty of sources here on the forums to download maps, but in the event you make your own, or someone makes one for you, you'll need to know how to create a locator file. Say you've got your map, and it's named 'custommap.png', but you've got no locator, so you can't use it! Oh no! To fix that, head over to www.imageshack.us. Create an account if you don't have one, and upload your custom map. From there, view it at the source. Next to the image's thumbnail on the main page should be a small icon, with either an eye or a magnifying glass on it. Click that to view the image. Once you've got the larger image on display, right click it, and click 'View Image'. That will give you the 'raw' link to the image, and that's what you'll need to copy. With that copied, head to your maps folder.

Create a new text file. Name it the same thing as your map, in this case, you'll name it 'custommap.txt'. Open it and copy the link to the image inside, save it and close it. Once you've got the link in the text file, go ahead and rename it again, but this time, we're changing '.txt' to '.locator'. So after you're all done, you'll have 'custommap.locator'. The locator is done, and your map should now work in the rotation. Locators are no longer needed. If you host with the custom map in your rotation and in your maps folder, all players will be able to successfully download your map.

As for filetypes in Windows 7 and Vista, to enable being able to see them and change them properly, you'll need to have a folder open. Assuming your GG2 folder is still open, look for the 'Organize' button near the top left. Click it and look for 'Folder and search options'. A window will pop up. Click the 'View' tab and uncheck 'Hide extensions for known filetypes'. Once you've done that, you'll be able to change things from '.txt' to '.locator'.

Now that we've covered locators and downloadable maps, we'll move on to map rotations entirely. Create a new text file, and name it whatever you want. For convenience, mine is 'maprotation.txt'. Open it up. Take this time to also open the 'sampleMapRotation.txt'. Inside you'll see a bit of information regarding comments and map rotations. Now, down at the bottom, take that list of default maps, and copy it to your map rotation file, unless you'd like to omit all default maps. Now, as an example, I'll show my own map rotation, which I use in my server.

(click to show/hide)

As you can see, I've added a '#' before 'ctfhookshootv2', because it seemed to me the players weren't enjoying it much. Adding a comment before it meant that entire line was ignored, and that map is no longer in the rotation. The appeal in this is that you can readd it by simply removing the '#', and not deleting/retyping the entire name. Once your map rotation file is named and completed, open up your 'gg2.ini' file, and find the 'maprotation=' line. After the '=', enter your map rotation file name, 'maprotation.txt'.

Now that you're all done there, if you have a router you'll need to forward the ports. Unfortunately, there are many different make and model for routers, and what works on my router may not work on yours. With that said, go to www.portforward.com and find your router in that list. After you do, the site will give you instructions on how to forward the ports. Alternatively, you could use the guide found here: http://www.ganggarrison.com/forums/index.php?topic=13891.0 which includes both images and text instructions.

And that's it! Your server is configured and ready for use.

Step 2: Mods, mods, mods!

While many people may play or host 'vanilla' servers(Servers with no mods at all, the game itself.), it would seem the majority prefer a server with mods, one in specific.

Mods are all located here: http://www.ganggarrison.com/forums/index.php?board=16.0

As you can see, there are many mods to choose from, though the only one I'll be covering here is 'Vindicator's Mod', or 'Vinmod' for short. So go ahead and download vinmod, and once you've got the .zip open, refer back here.

Alright, you've got the latest version of Vinmod downloaded and opened. The most current version at the time of writing this is 39.5, so the zip, as I have it, is named 'VinServer39.5.zip'. Inside you'll see one file: 'VinServer39.5.exe'. Just put that in your GG2 folder. Now that you've got that in your folder, open your 'gg2.ini' file. Remember how I had a 'rcon' option in my .ini? Under the '[Server] entry, just add 'Rcon="yourpasswordhere"', and that takes care of your vinserver's rcon password, which is important for moderators, which we'll cover shortly.

As players connect, you'll have their IP Addresses. These are important for banlists, and modlists. Assuming your GG2 folder is still open, create two new txt files. Name them 'modlist.txt' and 'banlist.txt'.

Moderators are players that have console access, and limited control over what happens in your server. Say 'John' connects to your server, and you'd like to make him a mod without having to grant him power each time you start your server. You'll copy his IP Address, we'll say it's '123.12.13.13', to the 'modlist.txt', and every time you start the server, he'll have that moderator power. You can also choose to trust him with your Rcon password, which grants him full power.

Banned players can't connect, and if I'm not mistaken, the 'banlist.txt' should update automatically. If not, just copy the player you wish to ban's IP to the banlist.

Now that those are both done, create one more txt file. Name this one 'autoexec.txt'. This is useful for entering console commands that you want executed as soon as you launch the server. My autoexec.txt file contains the following, and a brief explanation of what the commands I've chosen to add do.


(click to show/hide)

That should be all you need for Vinmod, and keep in mind that all console and chat logs will be automatically saved to your GG2 folder.

You can create a dedicated shortcut to vinmod just like your normal gg2.exe, and I'd advise doing this using the instructions listed above.


Vinmod has since died, and people have since realized that server mods were woefully inefficient, requiring consistent updating as they were frequently broken.

They have since been largely replaced by plugins.

Plugins are small bits of code that execute when you start the game, which add features and functionality to an otherwise vanilla server. They can be found in this forum subsection. Plugins have a wide array of features which they can add, from small aesthetics to large changes, such as new modes. As a host, these larger plugins are what will actually change how your server operates.

There are two types of plugins: server sent, and non server sent. Server sent plugins are loaded by entering into your gg2.ini and typing the server plugins which you want to use after the "ServerPluginList=" option, separating plugins with a comma and no spaces. The list of available server sent plugins can be found here. Set "ServerPluginsRequired" equal to zero if you want to give players a choice to use these sent plugins, one if you want to require their use. Do not make plugins which affect motion optional. At time of writing, spinjumping and chat_v2 are probably the only server plugins which I'd recommend on a serious server.

Non server sent plugins are executed only by the host or individual client. These may still be used to create new modes and massive changes if ran by a server host.

There are many good non server sent plugins, however, at time of writing, the following non server plugins have either seen significant use and praise for the features which they add or are just useful for a host:

Freezetime: Lock the spawn doors for a few seconds before a map starts, allowing more organized class choice and giving everyone a chance to join before the map begins.
Map Voting: Allows players to vote on the next map which they would like to play

In game changer
Dkoth Stall Prevention: If no team can cap the other team's point in dkoth, after a period of time, both team's timers will begin counting down until somebody caps
Respawn Waves: Players will come back to life in groups, allowing for players to coordinate their attacks more easily.
Special Delivery: Mode made for fun. Allows players to play an approximation of special delivery in GG2.

Of course, I almost certainly missed a number of other wonderful plugins. Take a look through the plugins section and see what you find, I doubt you'll be disappointed.


Step 3: Minimizing to The System Tray

An optional download in the vinmod thread shows a file tray icon, which may work for some people, but didn't for me. In the event it doesn't work for you, use this alternative.

http://www.abstractpath.com/powermenu/
The following link leads to a program called PowerMenu. Install it, and restart your computer if it prompts you to. It will add an option to your right click menu that reads 'Minimize to Tray'. If you're using Windows XP, then you should just be able to right click it and minimize it to the tray.

If you're using Windows 7, or Vista, then it's slightly complicated to minimize GG2 to the tray.

After you open your server, use the minimize button on the top bar of the program. Now that it's minimized, hover over it on your taskbar, and a preview should pop up. Right click that preview image, and choose the 'Minimize to Tray' option.

If all went well, it should be properly minimized to the system tray, and out of your way for as long as you need it to be. If you wish to maximize it, just locate the icon in your system tray and click it. That should be it!


Step 4: Creating a Thread on The Forums

Alright, your server is configured, you're running the latest in popular mods, and you've got it to minimize to the system tray. Everything is set up, and you're ready for the final step. Head to General Gang Garrison Discussion board, and create a new topic or poll. Name the topic what you've named your server, along with your user name. For example, my name is Steve, and I host Hooker Shootout, so my topic's name is 'Steve 'n' Slob's Ole Fashioned Hooker Shootout.'.

Once you've named your topic, you'll want to list off basic information inside, like a brief description of the server, your computer's hardware specs, the maprotation, and etc. A thread is very important for player-feedback and suggestions.

Make sure to keep your thread current, and edit your main post whenever you change anything. Ask for suggestions, include the players in the server. People like it when you take their map suggestions to heart and cater your server to their needs!



And that's it for my guide. I think I've covered everything important, but in the event I missed something, or wasn't clear enough, please, feel free to send me a PM on the forums, and I'll address it as soon as possible.



(This is a first draft of the first guide I've written, and I'll update it as it needs to be updated. I may add images in the future as well. If this is helpful enough, sticky it, or don't; I just wrote it to help.)

Extra: Images and Videos
(click to show/hide)

« Last Edit: July 03, 2013, 12:56:02 pm by Machidro »
Logged

Gamer

  • Junior Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 145
  • The Bassist

Nice guide  :z5:
Logged
Become a successful pixel artist; save all images as .jpegs

DSky

  • Seasoned Member
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 3382
    • Steam profile

Too bad my upload speed sucks balls.
But nice guide you got here buddy.
:c1:
I'm sure this will help a lot of people.
Logged
[SOS] [VAL]

Needs more maids

Everything is better with maids

Teekytots [PC][OG]

  • Retired Big Man
  • Soldier of Fortune
  • ******
  • Karma: 142
  • Offline Offline
  • Posts: 6515
  • Fear is only a State of Mind

Stickied
Logged
I have signatures turned off

SCBG

  • Guest

For once teeko makes a good decision
Logged

Gamer

  • Junior Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 145
  • The Bassist

Yay for sticky :woot:
Logged
Become a successful pixel artist; save all images as .jpegs

Steve

  • Full Member
  • ***
  • Karma: 45
  • Offline Offline
  • Posts: 505
  • beep beep robot

Agh

  • 2012 Haxxy Award Winner
  • *
  • Karma: 174
  • Offline Offline
  • Posts: 2439
    • My maps

Why don't you merge it with that other thread?
Logged

Steve

  • Full Member
  • ***
  • Karma: 45
  • Offline Offline
  • Posts: 505
  • beep beep robot

Why don't you merge it with that other thread?
Why doesn't that other thread merge with mine?

Teekytots [PC][OG]

  • Retired Big Man
  • Soldier of Fortune
  • ******
  • Karma: 142
  • Offline Offline
  • Posts: 6515
  • Fear is only a State of Mind

ok
Logged
I have signatures turned off

Teekytots [PC][OG]

  • Retired Big Man
  • Soldier of Fortune
  • ******
  • Karma: 142
  • Offline Offline
  • Posts: 6515
  • Fear is only a State of Mind

Merged!
Logged
I have signatures turned off

Teekytots [PC][OG]

  • Retired Big Man
  • Soldier of Fortune
  • ******
  • Karma: 142
  • Offline Offline
  • Posts: 6515
  • Fear is only a State of Mind

Uhhh, I dunno why it did that? Who cares.
Logged
I have signatures turned off

Teekytots [PC][OG]

  • Retired Big Man
  • Soldier of Fortune
  • ******
  • Karma: 142
  • Offline Offline
  • Posts: 6515
  • Fear is only a State of Mind

hmmm, i cant make it first post. ???
Logged
I have signatures turned off

[BH] sHN3T

  • Lucky Member
  • *******
  • Karma: 0
  • Offline Offline
  • Posts: 1125

If only my computer wasn't weird.
According to NAGN, I should be able to host, but I can't.
Logged

Gamer

  • Junior Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 145
  • The Bassist

My server isn't showing up in the lobby, some help please? I was hosting the other day, so I don't know what's going on. I'm port-forwarded and everything  =/
Logged
Become a successful pixel artist; save all images as .jpegs
Pages: [1] 2 3
 

Page created in 0.036 seconds with 36 queries.