Showing posts with label servers. Show all posts
Showing posts with label servers. Show all posts

Thursday, January 12, 2012

Quake 3 Private Server With Bots

Question

I'm trying to get the right combination of settings for my server so that I can do the following:

  • Start 7 bots (works fine)
  • Allow up to 4 humans to join (works fine)
  • Require password for all humans (not working)

Here are the relevant settings:

//set Maximum number of clients - we have overhead of 7 bots included here
sv_maxclients 11
sv_privateClients 4
sv_privatePassword "******"

What appears to be happening is that 4 of the bots fill the private slots, because when I view the server in my Favorites list, it says "3/7" participants.

If I make ALL of the slots private, (max 11, private 11) it shows "0/0" participants (though all my bots join) and I get "SERVER IS FULL" message.

Any guidance on the right settings?


UPDATE: Full Server Config and Version Info

Server Config:

//set Gametype to 4 for Capture the Flag Mode
g_gametype 4//Capture The Flag settings below
//set timelimit. Timelimit of 30 is default for CTF. Set to 0 for no limit.
timelimit 30
//set frag capture limit before level changes. Set to 0 for no limit (Default: 8)
//capturelimit 8
//turn on friendly fire. Friendlyfire off is default for CTF. 1=on
//g_friendlyFire 0//set host name that shows up in server list. Change below to your server name preference and remove the //
sv_hostname "My CTF Server"//set message of the day that players see while connecting to the server. Must be set before level loads. Change below to your message of the day preference and remove the //
//g_motd "Happy Capturing!"//set Maximum number of clients - we have overhead of 7 bots included here
sv_maxclients 11
g_needpass 1
g_password "*******"//set remote console password used by client
rconpassword "*******"//set max allowable rate for a client. 8000 to 10000 recommended. Max: 25000 (Default: 0)
sv_maxRate 10000//turn on/off pak cheat check. 1=on, 0=off (Default: 1)
sv_pure 0//Set map selection, cycle order, and start first map for Capture The Flag
set d1 "devmap q3ctf1 ; set nextmap vstr d2"
set d2 "devmap q3ctf2 ; set nextmap vstr d3"
set d3 "devmap q3ctf3 ; set nextmap vstr d4"
set d4 "devmap q3ctf4 ; set nextmap vstr d5"
set d5 "devmap q3ctf5 ; set nextmap vstr d1"
vstr d1//set voting. 1=on, 0=off (Default: 1)
g_allowvote 1//set power multiples for quad damage (Default: 3)
g_quadfactor 4//syncronous clients is necessary to allow client demo recording.  Setting to 1 allows recording but play is not smooth and is not recommended for normal use. (Default: 0)
g_syncronousClients 0// add bots
addbot uriel 3 blue 50 Uriel
addbot anarki 3 blue 50 Anarki
addbot bitterman 3 blue 50 Bitterman
addbot lucy 3 blue 50 Lucyaddbot sorlag 3 red 50 Sorlag
addbot grunt 3 red 50 Grunt
addbot xaero 3 red 50 Xaero// fun
give all

Version Info: Q3 1.32b linux-i386 Nov 14 2002

Answer

Instead of using private/reserved slots, what you're probably wanting is a server password.

Try:

g_needpass 1
g_password "myquake3arenaserverrocks"

instead of your sv_privateClients/sv_privatePassword lines. This would make it so that all human clients connecting would need to know the password. I think that entering the password to join the server is part of the GUI and the user will be prompted for it automatically.

If you're sure you want to use private slots, I believe if you've got sv_privatePassword set, and all the slots left are private slots, you'll have to pull the console down and type:

/password "myprivatepassword"

before connecting to the server. You could also put this in a config or on the command line instead. (on the command line it would be +set password myprivatepassword)

Starting Quake 3 Arena Server Using Config File

Question

I would like to know how I can accomplish the following:

  • Start dedicated Quake 3 Server using a config file (rather than manually entering settings each time)
  • Setup bots in the config file
  • Setup teams in the config file (e.g. CTF game)

Can someone point me to an example of how I can do this? I've been searching and cannot find an example of how to add bots or teams to the config file.

Answer

There is a method for doing this on a listen server that GameSpy describes by creating a .cfg file, and then exec'ing that config file from the console in the full game. That article also has a sample .cfg that you can edit if you want different options than the ones they used.

Config files must be placed in baseq3, which is a subdirectory of the main Quake 3 install directory. There will likely be other .cfg files in here. You can name them however you want, you just have to remember that name when exec'ing them from the console.

The GameSpy tutorial uses console commands to add bots to the game, but I believe you could just as easily copy those console commands to a cfg file as well. If you want to get even fancier, you can run the Quake 3 .exe with command line options to automatically load your configuration at startup. (ie, quake3 +exec my_listen_server.cfg)

However, not all of these things may be fully supported in the "client" version of Quake 3. You may want to consider setting up a dedicated server console, even if you're just going to be connecting to it from the same machine. The dedicated server is designed more towards being scripted and automated, and using it might be a better choice if you're getting deep into config files and command line options. Whether or not it makes sense to invest the additional effort depends on what your final goal with the game is.

Sunday, December 25, 2011

Why don't I have permission to use WorldEdit?

Question

I'm trying to install WorldEdit, and I've done the following:

  • Gotten the craftbukkit JAR,
  • run it, stopped it,
  • replaced world with my save from single,
  • run again, stopped again,
  • copied WorldEdit.jar into plugins,
  • tried //hpos1 and other WorldEdit commands.

I get the following error:

You don't have permission to do this

What causes this? (I'm on a Mac, if that's a factor)

Answer

Due to the nature of worldedit, worldedit requires you to specify permissions, either the build in, or by using a permissions plugin

Worldedit uses the WEPIF (WorldEdit Permissions Interoperability Framework) to handle permissions.

If you're not using a permissions plugin, the easiest way is using Flat file permissions which allows you to simply give yourself all permissions by editing two files in the root of your server (same location as bukkit itself):

perms_groups.txt

admins:*

perms_users.txt

sk89q:admins:*

(replace sk89q with your username)

There's a list of permissions, on the Worldedit Wiki which can help you if you want to further specify permissions

What are the various SWTOR servers named after?

Question

In WoW, Blizzard named their servers after prominent characters or groups. I had expected that SWTOR would be the same way.

Now, I'm no starwars neophyte, but I don't recognize half the terms that make up the server list.

"Space Slug"? "Naddist Rebels"? "Bondar Crystal"? "Veela"? (Trying to google that last one got me a list of harry potter references...)

Is there a generic solution to figure out what my server is named after? Where is Bioware getting these names?

Answer

All the servers that I reconize are taken from the various expanded universe novels and graphic novels (a few refrences to kotor as well). I assumed the few I don't are taken from the same place, although I wouldn't put a little "that sounds like star wars, right?" past them.

As for a specific method for finding out about one particular name, you could either read every single star wars licensed property, or you could do a specific search on wookiepedia, who does a pretty good job of keeping track for you.

Minecraft WorldEdit “You dont have permissions to do this”

Question

Gotten the craftbukkit JAR,
run it, stopped it,
replaced world with my save from single,
run again, stop again,
copy WorldEdit.jar into plugins,
tried //hpos1 and other WorldEdit specifics, but:

You don't have permission to do this

Help? (im on a mac? does that change anything?)

Answer

Due to the nature of worldedit, worldedit requires you to specify permissions, either the build in, or by using a permissions plugin

Worldedit uses the WEPIF (WorldEdit Permissions Interoperability Framework) to handle permissions.

If you're not using a permissions plugin, the easiest way is using Flat file permissions which allows you to simply give yourself all permissions by editing two files in the root of your server (same location as bukkit itself):

perms_groups.txt

admins:*

perms_users.txt

sk89q:admins:*

(replace sk89q with your username)

There's a list of permissions, on the Worldedit Wiki which can help you if you want to further specify permissions

Monday, December 5, 2011

Protecting objects in Terraria

Question

I run a dedicated server for Terraria and have a bit of a problem lately with younger people (such as my brother or a friend's brother) playing and finding it hilarious to:

  1. Cheat and give themselves stacks of 999 Dynamite.
  2. Throw the dynamite into tunnels/houses/networks of both that take me >12 hours to make.
  3. Throw the dynamite into the ocean/caves etc which ruins the exploration value of the map.

This can at times be infuriating.

I've come across vague references to protecting stuff in Terraria - is this possible?

If so, is it something that I do through the server software or the game itself?

Edit:
Here is one such reference to 'protected' tiles: Unset spawn point on protected servers?

Answer

Since it was I who wrote the referenced question, I might as well shed some light on the topic here.

The protected servers I mentioned there are most likely TShock servers.
TShock is an alternative dedicated server for Terraria that adds in-game commands that enable, among other things, protection from griefing, spawning objects and enemies and privilege groups.

At the time I write this TShock is not stable for Terraria 1.1 yet, but in case you're interested you could have a look at TShock's website.

Tuesday, November 22, 2011

How do I enable/disable buildings and structures on SMP?

Question

because Minecraft has gotten its full release I'm working on a server for the local scouting group. I'm a system administrator and developer. And used to host hl2 servers.

While Minecraft single-player client has an option to turn on (or off) buildings and structures. The Minecraft Multiplayer server doesn't seem to have one? Is there a way to turn this on?

Answer

While there doesn't appear to be a server setting for the generation of structures, the flag is stored within the world's level.dat, meaning you can generate a world in single-player with structures disabled and then move it to your server.

Monday, November 21, 2011

Minecraft SMP server- Buildings and structures?

Question

because minecraft has gotten its full release I'm working on a server for the local scouting group...

I'm a system administrator and developer. And used to host hl2 servers.

But here is my problem:

While minecraft single-player client has an option to turn on (or off) buildings and structures.

The minecraft multiplayer server doesn't seem to have one?

Is there a way to turn this on?

Grtz, Thomas

Answer

While there doesn't appear to be a server setting for the generation of structures, the flag is stored within the world's level.dat, meaning you can generate a world in single-player with structures disabled and then move it to your server.

Tuesday, November 8, 2011

Does Modern Warfare 3 use dedicated servers on the PC?

Question

Does the multiplayer mode of the PC version of Call of Duty: Modern Warfare 3 use dedicated servers?

As an extra, is there a site that lists all the MW3 server providers approved by Activision for each region? I remember such a list existed for Black Ops even before it launched, and people could even request additional servers for their region.

Again, talking about the PC version.

The reason I ask is that I had serious lag problems with Black Ops. I eventually tracked the problem to the fact that all servers in my region were from the same provider, and that was the only approved provider.

Answer

Modern Warfare 3 does indeed support dedicated servers (see here):

Will Modern Warfare 3 have Dedicated Servers?

Yes! Modern Warfare 3 supported matchmaking as well as Dedicated Servers, allowing players to find and filter via an in-game server browser or set-up their own Dedicated Server for complete control, without being restricted by any 3rd party hosting requirements. If looking for a Dedicated Server to join, if you choose not to set up your own, you can filter and favorite by Ping, Map, Gametype, Hardcore Variants, Voice, Password, and many other options.

As for an approved server list, it appears the ranked servers are managed in-game (you have to enable browsing of dedicated servers in the options to even see those); I'll update if I find anything.

Thursday, October 27, 2011

Why is this message spamming my server log?

Question

Lately, I've started seeing this a lot in my Minecraft server log:

Attempted to place a tile entity where there was no entity tile!

Sometimes I see it a lot, sometimes not at all.

What does it mean?

Answer

Internally, the game refers to blocks as "tiles" and non-blocks (mobs, dropped items, minecarts, etc.) as "entities". Some blocks need extra information associated with them (chests have inventories, furnaces have cook times, …) which are stored as invisible entities called "tile entities". The blocks which have entities associated with them are then "entity tiles". (These are all debug terms; the average player shouldn't ever have to worry about them.)

An error message occurs when, during a chunk load, a tile entity is found, but it's matching entity file isn't. In this case, the entity was one which can contain items (such as a chest, furnace, or dispenser). This can happen because:

  • the chunk's data was corrupted
  • an installed mod was incorrectly written or has been uninstalled
  • good old game bugs (go beta!)

The game is good about recovering from such things — the orphaned tile entity is simply discarded and the chunk continues loading — but it does mean something has gone wrong.

Wednesday, October 12, 2011

How do I pre-generate a Minecraft world?

Question

I want to create a new world on our Minecraft server, but exploring a new map and generating terrain causes massive lag.

Is there a way to pre generate the chunks (with the default map generator) in a specific radius around the spawn?

I'm looking for a Bukkit plugin or tool I can use on our Linux machine. An offline tool I can run on my local machine is ok, too.

Answer

In this thread on Reddit, I found a command line script that will generate terrain by repeatedly restarting a server with varying spawn points until the area you specify is filled. This seems like just what you're looking for.

There's also a Bukkit plugin named WorldGenerationControl which can do it on a live server.

Monday, September 26, 2011

Is infinite inventory possible in multiplayer creative mode?

Question

Setting up a new server for my kids. They love creative mode in SMP, so i thought i'd set the server up to use creative mode.

Works fine, flying enabled, however i cannot seem to enable the item selection from SMP creative mode, where you can just pick whatever block you want.. Anyone tried setting that up, either vanilla or with a mod ?

Answer

You could try using the /gamemode <name> 1 command to set your users to be in creative mode. You'll need to do it for each user.

Monday, September 19, 2011

How do you setup a (public) Minecraft Server on Linux/CentOS? (closed)

Question

Possible Duplicate:
How can I host my own Minecraft server?

I'm learning how to be my own sysadmin and I have a Linux VPS setup. I wanna try and run a minecraft server.

any admins out there that have done this before for a public server? I want to be able to host a world for other users to play on.

Answer

http://www.minecraftwiki.net/wiki/Tutorials/Setting_up_a_server

How can I query data from a source game server?

Question

After reviewing things like Game Tracker, xqf, and HLSW I've come to the bold conclusion that most source games are publicly queryable for basic information like map, player count, player list, etc. Is there some standard for this? I ultimately want to create my own script to poll this information I just can't find any documentation on how it's retrieved.

Answer

Valve's wiki has an article on the topic. Too much to quote, but the link should be stable.

http://developer.valvesoftware.com/wiki/Server_queries

Monday, August 29, 2011

How can I only allow a player to spawn once on a Minecraft server?

Question

I'd like to have a Minecraft server where a user can only spawn once and when they die they get booted from the server. I know I can use white-list.txt to only allow a specific user on at a time, but I'm unsure how to detect that a user has died and drop their connection. How would you go about doing this?

Answer

With this plugin for bukkit -> Exile v2.0 - Banish from the server or world on death!

You can set a timer on how long they can be banned before they can come back to the server or set it to eternity.

Sunday, August 21, 2011

Moving From Vanilla Server to Bukkit

Question

So I have a server running the standard, unmodified Vanilla server on a Linux box. After talking to the people on the server we have decided that moving to a Bukkit Server would be better because of the awesome plugins. However it seems that Minecraft generates nether and "overworld" files differently than Bukkit. Bukkit generates a world and a world_nether folders. I have read the forum post and copying the Vanilla's world folder to world and world_nether seems to work but I feel like this a a bit hackish and might cause problems in the future. Has anyone successively done this?

Answer

Yes, I did the same thing as you a few weeks ago, the only problem I encountered was that Bukkit would crash because of the nether for some reason, and that was fixed by disabling the nether. I'm not sure what you could do if you wanted the nether to work.

Friday, August 19, 2011

Minimum RAM needed for Minecraft server

Question

What is the minimum RAM needed for an Minecraft server? (without using custom servers) There will be at most 5 players, the VPS will be OpenVZ.

Answer

Tip: If you want to spare more memory, you may set the -Xms parameter even lower, say:

java -Xms32M -Xmx512M -jar minecraft_server.jar nogui

The parameter controls how much memory is reserved on startup. Your server will start with 32MB RAM and whenever it needs more memory it will allocate some until it reaches the maximum of 512M. However, this will result in a little slowdown whenever the allocation is done.

Source: http://www.minecraftwiki.net/wiki/Tutorials/Setting_up_a_server#Less_than_1GB_free_RAM

Also you can check this website : http://www.canihostaminecraftserver.com/

With this you can have a small idea on how many players you can handle :D

Thursday, August 18, 2011

Is it possible to export the Statistics from a Minecraft server

Question

statistics are added to the new version (beta 1.5) of minecraft. It would be fun, to have a webpage that shows these statistics, like who was the one with the most deaths or something like that.

So my question: Is there a way to export these statistics in any form?

-- frosch03

Answer

Short Answer: There will be but no one has written it yet.

Long Answer: As 1.5 has recently released no one yet knows how the file-format for a player has changed. However I expect it to be quickly reverse engineered after it is released. Keep an eye on the Programs and editors page of the minecaft wiki and the Alpha and Beta file format to see how it is storing it..

Saturday, July 30, 2011

Are there performance and stability differences between vanilla and Bukkit servers?

Question

I am deciding whether to switch my vanilla server over to a Bukkit server. I did upgrade to the development build of Java 7 which did give me a slight performance boost. Just wondering if anyone has seen noticeable performance or stability difference between the two.

Answer

The core CraftBukkit server (Bukkit's implementation) itself is equivalent from my experience.

But since anyone that can copy/paste Java can create a plugin, it really depends on which plugins you use. It pays to do your research here and understand the impact of each plugin you decide to install.

You can sort of rely on the most popular plugins (plugins with threads that have a lot of comments compared to others) to be fairly reliable. If you start delving into lesser used plugins, spend the time to read the entire thread and understand exacly what the developer is trying to accomplish. If you have any coding experience at all, look through the source code to get an idea of what it exactly does.

What I would say in summary is that a significant portion of most servers (small, medium, and large) run CraftBukkit successfully. There are problems for sure, but there are problems with Vanilla also. Nothing's perfect.