Arkin wrote:
...Speaking of which guys, perhaps you could gather all that information in one place for a more coherent tutorial of how to go about making easy server side support for an owner and his admins?)
Depending on how far you are going in, this stuff could be helpful
http://runningwithrifles.gamepedia.com/ ... _interface. It isn't a tutorial in the slightest sense but for the most part there's everything you can do on the fly via scripting. New stuff is added almost every version, so the dump in the wiki could already be a bit outdated.
Quote:
1) Banning - I understand that it's a work in progress, but I was wondering if it'll be available eventually?
I believe it'll be made eventually (by me/someone). I think it will be done in the scripts, by hooking up some tracking for getting notifications about player connections, matching the client IP/player hash/something with a blacklist, and kicking the newly joined player out if match found. Would need some new command handling for /ban X for adding stuff in the blacklist and the blacklist load/save in some form.
Quote:
2) Map Changing - I know this one exists, but I couldn't for the life of me get it to work, I've seen a couple of versions in the forums (and in the wiki itself) but either I'm missing something imperative to the process or just lack the understanding and the know-how to make it work. I'd appreciate some help with that one.
Looking through the scripts, the intention was that you'd be able to use /warp X -style commands to move between stages in Invasion game mode, but I guess it only works in Adventure (which is the single player campaign based on Invasion), need to verify that later today.
I think Classic doesn't come with convenient map rotation control commands by default. It would be simple to extend it with that support, basically requiring a command handler that can call start_map(index) in the map rotation component. Anyhow, with basic command handler there's always e.g. /0_win command which can be used to declare the first faction as winner, in most cases triggering a map change to next one in the map rotation script.
If you don't have a map rotation script running, you can change maps by assembling a command like
http://runningwithrifles.gamepedia.com/ ... change_map and sending it down to the server. A match with some default settings will start after the map changes, which you might want to override by calling something like
http://runningwithrifles.gamepedia.com/ ... start_game. If you prefer to set up static settings for these in separate XML files, you can have those XML files in the server root folder, and call "execute that_xml_file.xml" directly with the script or via server console.
(Also, there are the old direct console commands for map changing and match starting which might be part of the reason for the confusion; they work, but they don't provide as much control as the XML commands)Quote:
3) spawning - works great in general (mostly thanks to the basic_command_handler as a template), with the exception of grenades. I saw that throwable weapon files are saved under ".projectile", but when I try to spawn them they detonate immediately, is there a way to spawn pickable grenades?
Projectiles can take additional field "activated" which can be used to control that, defaults to 1. So activated="0" would be the way to make them spawn as pickable items.