War3Source:Configuration

From Wiki

Jump to: navigation, search

ballsack

Contents

[edit] Modifying leveling XP and kill XP

Navigate yourself to "sourcemod/configs/war3source.ini"
It is pretty straightforward. The long_term block is used to configure if save XP is on, and short_term block is used if save XP is off.

[edit] Console Variables

The proper location configuring war3source console variables is "cfg/war3source.cfg" relative to the mod directory. (eg: ...\cstrike\cfg\war3source.cfg)
There are two systems of Cvars, SRCDS cvars, war3source INTERNAL cvars. SRCDS: war3_blah INTERNAL: war3 blah (notice no underscore after war3)

For SRCDS cvars, issue command "cvarlist war3" (preferably in hlsw).

// War3Source Variables
war3_savexp 1 // 0 = off, 1 = on
war3_autosavetime 300 // how long in seconds between each auto save
war3_minimumultimatelevel 6 // minimum level to level up ultimates
war3_maxcredits 100 // maximum credits for shopmenu
war3_killcredits 2 // Credits awarded per kill
war3_assistcredits 1 // Credits awarded per assist kill
...so on.......

For INTERNAL cvars, issue command "war3 cvarlist" (preferably in hlsw).

war3 cvarlist
LISTING ALL WAR3 INTERNAL CVARS
undead_minlevel "30"           Minimum level for race
undead_accessflag "0"          Admin access flag required for race
undead_raceorder "700"         This race's Race Order on changerace menu
undead_flags ""                This race's flags, ie 'hidden,etc
undead_restrict_items "mask,booWhich items to restrict for people on this race. Separate by comma, ie 'claw,orb'
undead_team1_limit "99"        How many people can play this race on team 1 (RED/T)
undead_team2_limit "99"        How many people can play this race on team 2 (BLU/CT)
ankh_goldcost "3"              item cost with gold
ankh_moneycost "2000"          item cost with cs money
ankh_itemorder "100"           item order
ankh_itemflags ""              item flags
ankh_itemcatagory ""           item catagory
...so on.......

INTERNAL cvars are set with command:

war3 <cvar> "value"     
//(use double quotes if needed, do not use single quotes)
//do not put comments on the same line as the command 
war3 undead_minlevel 1

[edit] Private Races

war3 <shortname>_accessflag "<flag>"
ie: war3 undead_accessflag "o"

[edit] Saving XP MySQL

To use MySQL to save XP so you can share it across servers.
Your game server provider or your web-host may or may not provide this service.
Why MYSQL is better: database manipulation is easier, better integrity, allows xp sharing across servers.
We always recommend mysql over sqlite for saving xp, even if you don't need to share it across servers.

1: Go to your webhost, create a username and database (using GUI control panels such as cPanel). You may need to contact tech support to allow a database connection from your server IP.

2: Go to sourcemod/configs/databases.cfg
edit:

"default"      
{
  "driver" "mysql" 
  "host" "x.x.x.x"
  "database" "database name" 
  "user" "mysqlusername" 
  "pass" "mysqlpassword" 
//"timeout" "0" //<--configure if needed ...
//"port" "0"
}

[edit] Saving XP SQLITE

Why use sqlite?
You don't have a mysql server.

By default War3Source will try to save XP to a database, but many times database.cfg is not configured to a valid database by default.

Go to sourcemod/configs/databases.cfg
edit:

"default"      
{
  "driver" "sqlite" //<-- 
  "host" "localhost" //<-- can leave alone
  "database" "sourcemod" //<-- change if you want, this is the name of the database
  "user" "username" //<-- leave alone sqlite doesnt have authentication
  "pass" "password" //<-- leave alone sqlite doesnt have authentication
//"timeout" "0" //<--leave alone
//"port" "0" //<--leave alone
}


Language: English  • Русский
Personal tools