From 0a033abcafe9b53368d2645ddece371a10a38ae6 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Sat, 17 Feb 2018 18:53:45 +0100 Subject: [PATCH] rename all the configs --- Custom-server-votes.md | 10 +++++----- Music.md | 3 +-- writing-your-first-mutator.md | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Custom-server-votes.md b/Custom-server-votes.md index 45a6b04..9dbff83 100644 --- a/Custom-server-votes.md +++ b/Custom-server-votes.md @@ -12,15 +12,15 @@ Now players will be able to type `vcall bots` or `vcall nobots` which will start You can prefix the contents of an alias with `settemp` to make it be valid only for the current game. For example `alias nobots "settemp minplayers 0"`. -Here's example that allows voting common server types assuming your `server.cfg` doesn't force them: +Here's example that allows voting common server types assuming your `server.cfg` doesn't force them (you get infinite recursion if it does): ``` -alias vanilla "exec defaultXonotic.cfg; exec server.cfg; endmatch" +alias vanilla "exec ruleset-xonotic.cfg; exec server.cfg; endmatch" addvote vanilla -alias instagib "exec defaultXonotic.cfg; exec server.cfg; g_instagib 1; g_grappling_hook 1; endmatch" +alias instagib "exec ruleset-xonotic.cfg; exec server.cfg; g_instagib 1; g_grappling_hook 1; endmatch" addvote instagib -alias overkill "exec defaultOverkill.cfg; exec server.cfg; endmatch" +alias overkill "exec ruleset-overkill.cfg; exec server.cfg; endmatch" addvote overkill -``` \ No newline at end of file +``` diff --git a/Music.md b/Music.md index c33620f..db44715 100644 --- a/Music.md +++ b/Music.md @@ -80,11 +80,10 @@ How-To’s **How to add a sound track to Xonotic?** - Copy the track file to the `data/sound/cdtracks` folder -- Add the name of the track (without the extension) at the end of the cvar `g_cdtracks_remaplist`, on the file `defaultXonotic.cfg`. Count all tracks and remember the position of the added one, this information will be used on the following step. +- Add the name of the track (without the extension) at the end of the cvar `g_cdtracks_remaplist`, in the file `xonotic-common.cfg`. Count all tracks and remember the position of the added one, this information will be used on the following step. - Open the file `.mapinfo` (on `data/xonotic-maps.pk3dir/maps`) and add a line with the text `cd loop x`. This `x` should be the position of the track within the cvar `g_cdtracks_remaplist`. **How to add a sound track to a non official map?** - Copy the track to the folder `sound/cdtracks/` (inside the pk3 file) - Open the file `.mapinfo` and add a line with the text `cd loop ` - diff --git a/writing-your-first-mutator.md b/writing-your-first-mutator.md index c8b8083..be571ac 100644 --- a/writing-your-first-mutator.md +++ b/writing-your-first-mutator.md @@ -85,7 +85,7 @@ Now we need to build the QuakeC code. It is done using the `all` script: ## Step 6: Adjusting config files -The last thing we need to do is to create our console variable `g_helloworld` in configuration file. The best file for it would be `defaultXonotic.cfg`. Mutator variables start around line 423: +The last thing we need to do is to create our console variable `g_helloworld` in a configuration file. The best file for it would be `mutators.cfg`: set g_helloworld 0 @@ -187,4 +187,4 @@ Or less verbose: MUTATOR_HOOKFUNCTION(helloworld, Damage_Calculate) { M_ARGV(4, float) *= 2; - } \ No newline at end of file + } -- 2.39.2